Libgcrypt 1.9.3 fails to build on MacOS for arm64 architecture

Salman Soumik udoy.soumik at gmail.com
Fri Apr 30 13:47:57 CEST 2021


Hello,
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
salsa20

                                   gost28147 chacha20 sm4

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

                                   sha256 sha512 sha3 tiger whirlpool
stribog

                                   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
-I/Users/soumik/Downloads/OTRKit-master/scripts/build/iPhoneOS-14.4-arm64/include
-arch arm64 -isysroot
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.4.sdk
-I/Users/soumik/Downloads/OTRKit-master/scripts/built/arm64/include
-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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.gnupg.org/pipermail/gcrypt-devel/attachments/20210430/a07dae99/attachment-0001.html>


More information about the Gcrypt-devel mailing list