Mailing List Archive

Libgcrypt 1.9.3 fails to build on MacOS for arm64 architecture
I am trying to build libgcrypt 1.9.3 for iOS arm64 architecture using XCode
commandline tool. On macos 11.1 and Xcode 12.4, I am getting this error
while building:

*"use of undeclared identifier 'getentropy'" .*

FYI, libgcrypt 1.9.2 and prior versions can be built without issues on the
same platform.

Here's the configuration I'm trying to build:

Libgcrypt v1.9.3 has been configured as follows:

Platform: Darwin (aarch64-apple-darwin)

Hardware detection module: none

Enabled cipher algorithms: arcfour blowfish cast5 des aes twofish

serpent rfc2268 seed camellia idea

gost28147 chacha20 sm4

Enabled digest algorithms: crc gostr3411-94 md4 md5 rmd160 sha1

sha256 sha512 sha3 tiger whirlpool

blake2 sm3

Enabled kdf algorithms: s2k pkdf2 scrypt

Enabled pubkey algorithms: dsa elgamal rsa ecc

Random number generator: default

Try using jitter entropy: yes

Using linux capabilities: no

Try using Padlock crypto: n/a

Try using AES-NI crypto: n/a

Try using Intel SHAEXT: n/a

Try using Intel PCLMUL: n/a

Try using Intel SSE4.1: n/a

Try using DRNG (RDRAND): n/a

Try using Intel AVX: n/a

Try using Intel AVX2: n/a

Try using ARM NEON: n/a

Try using ARMv8 crypto: n/a

Try using PPC crypto: n/a

Here's the make command that fails:

libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -I../src -I../src
-arch arm64 -isysroot
-miphoneos-version-min=8.0 -fembed-bitcode -fno-delete-null-pointer-checks
-Wall -MT rndlinux.lo -MD -MP -MF .deps/rndlinux.Tpo -c rndlinux.c -fno-common
-DPIC -o rndlinux.o

Do I need to make any change for building 1.9.3? Or there's issue on
libgcrypt that needs to be addressed?

Thank you.

Kind Regards,

Udoy Soumik