[prev in list] [next in list] [prev in thread] [next in thread]
List: gcrypt-devel
Subject: Libgcrypt 1.9.3 fails to build on MacOS for arm64 architecture
From: Salman Soumik via Gcrypt-devel <gcrypt-devel () gnupg ! org>
Date: 2021-04-30 11:47:57
Message-ID: CAK1Tq2B29sCYj_e6ksQ3AHOxoX5AYvEpav7qq9uAswwF03Xe_g () mail ! gmail ! com
[Download RAW message or body]
[Attachment #2 (multipart/alternative)]
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
[Attachment #5 (text/html)]
<div dir="ltr">Hello,<div>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:</div><div><br><div>
<p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-as \
ian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span \
class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"><b>"use of \
undeclared identifier 'getentropy'" .</b></span></p><p class="gmail-p1" \
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stre \
tch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><br></p><p \
class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian \
:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)">FYI, \
libgcrypt 1.9.2 and prior versions can be built without issues on the same \
platform.</p><p class="gmail-p1" \
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stre \
tch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><br></p><p \
class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian \
:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)">Here's \
the configuration I'm trying to build:</p><p class="gmail-p1" \
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stre \
tch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><br></p><p \
class="gmail-p1" style="margin:0px;font:11px Menlo;color:rgb(0,0,0)"><span \
class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">Libgcrypt v1.9.3 \
has been configured as follows:</span></p><p class="gmail-p2" \
style="margin:0px;font:11px Menlo;color:rgb(0,0,0);min-height:13px"><span \
class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span \
class="gmail-Apple-converted-space"> </span></span></p><p \
class="gmail-p1" style="margin:0px;font:11px Menlo;color:rgb(0,0,0)"><span \
class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span \
class="gmail-Apple-converted-space"> </span>Platform:<span \
class="gmail-Apple-converted-space"> </span>Darwin \
(aarch64-apple-darwin)</span></p><p class="gmail-p1" style="margin:0px;font:11px \
Menlo;color:rgb(0,0,0)"><span class="gmail-s1" \
style="font-variant-ligatures:no-common-ligatures"><span \
class="gmail-Apple-converted-space"> </span>Hardware detection module: \
none</span></p><p class="gmail-p1" style="margin:0px;font:11px \
Menlo;color:rgb(0,0,0)"><span class="gmail-s1" \
style="font-variant-ligatures:no-common-ligatures"><span \
class="gmail-Apple-converted-space"> </span>Enabled cipher algorithms: \
arcfour blowfish cast5 des aes twofish</span></p><p class="gmail-p1" \
style="margin:0px;font:11px Menlo;color:rgb(0,0,0)"><span class="gmail-s1" \
style="font-variant-ligatures:no-common-ligatures"><span \
class="gmail-Apple-converted-space"> \
</span>serpent rfc2268 seed camellia idea salsa20</span></p><p class="gmail-p1" \
style="margin:0px;font:11px Menlo;color:rgb(0,0,0)"><span class="gmail-s1" \
style="font-variant-ligatures:no-common-ligatures"><span \
class="gmail-Apple-converted-space"> \
</span>gost28147 chacha20 sm4</span></p><p class="gmail-p1" \
style="margin:0px;font:11px Menlo;color:rgb(0,0,0)"><span class="gmail-s1" \
style="font-variant-ligatures:no-common-ligatures"><span \
class="gmail-Apple-converted-space"> </span>Enabled digest algorithms: crc \
gostr3411-94 md4 md5 rmd160 sha1</span></p><p class="gmail-p1" \
style="margin:0px;font:11px Menlo;color:rgb(0,0,0)"><span class="gmail-s1" \
style="font-variant-ligatures:no-common-ligatures"><span \
class="gmail-Apple-converted-space"> \
</span>sha256 sha512 sha3 tiger whirlpool stribog</span></p><p class="gmail-p1" \
style="margin:0px;font:11px Menlo;color:rgb(0,0,0)"><span class="gmail-s1" \
style="font-variant-ligatures:no-common-ligatures"><span \
class="gmail-Apple-converted-space"> \
</span>blake2 sm3</span></p><p class="gmail-p1" style="margin:0px;font:11px \
Menlo;color:rgb(0,0,0)"><span class="gmail-s1" \
style="font-variant-ligatures:no-common-ligatures"><span \
class="gmail-Apple-converted-space"> </span>Enabled kdf algorithms:<span \
class="gmail-Apple-converted-space"> </span>s2k pkdf2 scrypt</span></p><p \
class="gmail-p1" style="margin:0px;font:11px Menlo;color:rgb(0,0,0)"><span \
class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span \
class="gmail-Apple-converted-space"> </span>Enabled pubkey algorithms: dsa \
elgamal rsa ecc</span></p><p class="gmail-p1" style="margin:0px;font:11px \
Menlo;color:rgb(0,0,0)"><span class="gmail-s1" \
style="font-variant-ligatures:no-common-ligatures"><span \
class="gmail-Apple-converted-space"> </span>Random number generator: <span \
class="gmail-Apple-converted-space"> </span>default</span></p><p class="gmail-p1" \
style="margin:0px;font:11px Menlo;color:rgb(0,0,0)"><span class="gmail-s1" \
style="font-variant-ligatures:no-common-ligatures"><span \
class="gmail-Apple-converted-space"> </span>Try using jitter entropy:<span \
class="gmail-Apple-converted-space"> </span>yes</span></p><p class="gmail-p1" \
style="margin:0px;font:11px Menlo;color:rgb(0,0,0)"><span class="gmail-s1" \
style="font-variant-ligatures:no-common-ligatures"><span \
class="gmail-Apple-converted-space"> </span>Using linux capabilities:<span \
class="gmail-Apple-converted-space"> </span>no</span></p><p class="gmail-p1" \
style="margin:0px;font:11px Menlo;color:rgb(0,0,0)"><span class="gmail-s1" \
style="font-variant-ligatures:no-common-ligatures"><span \
class="gmail-Apple-converted-space"> </span>Try using Padlock crypto:<span \
class="gmail-Apple-converted-space"> </span>n/a</span></p><p class="gmail-p1" \
style="margin:0px;font:11px Menlo;color:rgb(0,0,0)"><span class="gmail-s1" \
style="font-variant-ligatures:no-common-ligatures"><span \
class="gmail-Apple-converted-space"> </span>Try using AES-NI crypto: <span \
class="gmail-Apple-converted-space"> </span>n/a</span></p><p class="gmail-p1" \
style="margin:0px;font:11px Menlo;color:rgb(0,0,0)"><span class="gmail-s1" \
style="font-variant-ligatures:no-common-ligatures"><span \
class="gmail-Apple-converted-space"> </span>Try using Intel SHAEXT:<span \
class="gmail-Apple-converted-space"> </span>n/a</span></p><p class="gmail-p1" \
style="margin:0px;font:11px Menlo;color:rgb(0,0,0)"><span class="gmail-s1" \
style="font-variant-ligatures:no-common-ligatures"><span \
class="gmail-Apple-converted-space"> </span>Try using Intel PCLMUL:<span \
class="gmail-Apple-converted-space"> </span>n/a</span></p><p class="gmail-p1" \
style="margin:0px;font:11px Menlo;color:rgb(0,0,0)"><span class="gmail-s1" \
style="font-variant-ligatures:no-common-ligatures"><span \
class="gmail-Apple-converted-space"> </span>Try using Intel SSE4.1:<span \
class="gmail-Apple-converted-space"> </span>n/a</span></p><p class="gmail-p1" \
style="margin:0px;font:11px Menlo;color:rgb(0,0,0)"><span class="gmail-s1" \
style="font-variant-ligatures:no-common-ligatures"><span \
class="gmail-Apple-converted-space"> </span>Try using DRNG (RDRAND): <span \
class="gmail-Apple-converted-space"> </span>n/a</span></p><p class="gmail-p1" \
style="margin:0px;font:11px Menlo;color:rgb(0,0,0)"><span class="gmail-s1" \
style="font-variant-ligatures:no-common-ligatures"><span \
class="gmail-Apple-converted-space"> </span>Try using Intel AVX: <span \
class="gmail-Apple-converted-space"> </span>n/a</span></p><p class="gmail-p1" \
style="margin:0px;font:11px Menlo;color:rgb(0,0,0)"><span class="gmail-s1" \
style="font-variant-ligatures:no-common-ligatures"><span \
class="gmail-Apple-converted-space"> </span>Try using Intel AVX2:<span \
class="gmail-Apple-converted-space"> </span>n/a</span></p><p class="gmail-p1" \
style="margin:0px;font:11px Menlo;color:rgb(0,0,0)"><span class="gmail-s1" \
style="font-variant-ligatures:no-common-ligatures"><span \
class="gmail-Apple-converted-space"> </span>Try using ARM NEON:<span \
class="gmail-Apple-converted-space"> </span>n/a</span></p><p \
class="gmail-p1" style="margin:0px;font:11px Menlo;color:rgb(0,0,0)"><span \
class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span \
class="gmail-Apple-converted-space"> </span>Try using ARMv8 crypto:<span \
class="gmail-Apple-converted-space"> </span>n/a</span></p><p class="gmail-p1" \
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stre \
tch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)">
</p><p class="gmail-p1" \
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stre \
tch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span \
class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span \
class="gmail-Apple-converted-space"> </span>Try using PPC crypto:<span \
class="gmail-Apple-converted-space"> </span>n/a</span></p><p class="gmail-p1" \
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stre \
tch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span \
class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"><br></span></p><p \
class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian \
:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span \
class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">Here's the \
make command that fails:</span></p><p class="gmail-p1" \
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stre \
tch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span \
class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"><br></span></p><p \
class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian \
:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span \
class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">
</span></p><p class="gmail-p1" \
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stre \
tch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span \
class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">libtool: \
compile:<span class="gmail-Apple-converted-space"> </span>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<span \
class="gmail-Apple-converted-space"> </span>-fno-common -DPIC -o \
rndlinux.o</span></p><p class="gmail-p1" \
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stre \
tch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span \
class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"><br></span></p><p \
class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian \
:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span \
class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">Do I need to make \
any change for building 1.9.3? Or there's issue on libgcrypt that needs to be \
addressed?</span></p><p class="gmail-p1" \
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stre \
tch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span \
class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"><br></span></p><p \
class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian \
:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span \
class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">Thank \
you.</span></p><p class="gmail-p1" \
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stre \
tch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span \
class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">Kind \
Regards,</span></p><p class="gmail-p1" \
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stre \
tch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span \
class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">Udoy \
Soumik</span></p></div></div></div>
_______________________________________________
Gcrypt-devel mailing list
Gcrypt-devel@gnupg.org
http://lists.gnupg.org/mailman/listinfo/gcrypt-devel
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic