Page MenuHome GnuPG

libgcrypt Mac M1 build fix proposal
Needs ReviewPublic

Authored by devnexen on Jan 24 2021, 10:03 AM.

Details

Reviewers
gniibe
Summary
  • getentropy needs sys/random.h
  • leading zero counting needs w constraint due to wider types than int.
Test Plan

Just tried to build in a mac m1

Diff Detail

Lint
Lint Skipped
Unit
Unit Tests Skipped

Event Timeline

Check header presence instead for getentropy.

mpi/longlong.h
308

Did you checked the output in assembly language?

IIUC, it doesn't work.

%w is for HImode (2-byte) register.

Do you mean %q, which specifies DImode, to generate register name of X<something>?

I created T5268, please continue discussion there.