Hi, thanks (!) for useful and fast response.
See below.
Best,
Andreas
Am 14.10.20 um 14:50 schrieb Marc Glisse:
> On Wed, 14 Oct 2020, Andreas Buff wrote:
>
>> We are cross building GMP for use on ARM64 iOS devices using this
>> command:
>>
>> ```
>> export CFLAGS="-arch ${ARCH} -isysroot ${SDK_PATH}
>> -miphoneos-version-min=${MIN_IOS_VERSION} -std=c99"
>> export LDFLAGS="-arch ${ARCH}"
>> export CC="$(whereis gcc) -arch ${ARCH} -isysroot ${SDK_PATH}"
>>
>> PKG_CONFIG_ALLOW_CROSS=1 PKG_CONFIG_PATH=$PREFIX/lib/pkgconfig
>> ./configure --host=${HOST} --prefix=$PREFIX
>> make -j4
>> make install
>> ```
>>
>> Where:
>> ${ARCH}="arm64"
>> ${SDK_PATH}=path to iOS14 SDK (failed also wirth previous SDK versions
>> MIN_IOS_VERSION="11.0"
>> ${HOST}="arm-apple-darwin"
>
> That triplet looks like 32 bits to me, don't you mean something like
> aarch64 or arm64 instead of arm there?
Ah, Good catch.
Using host `aarch64-apple-darwin` gives me "unknown AArch64 fixup kind!"
errors.
Find relevant part of the log attached.
tmp-bdiv_q_1.s:75:2: libtool: compile: /Applications/Xcode_11.6.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch arm64 -isysroot /Applications/Xcode_11.6.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.6.sdk -DHAVE_CONFIG_H -I. -I.. -D__GMP_WITHIN_GMP -I.. -DOPERATION_sbpi1_bdiv_r -arch arm64 -isysroot /Applications/Xcode_11.6.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.6.sdk -miphoneos-version-min=11.0 -std=c99 -c sbpi1_bdiv_r.c -fno-common -DPIC -o .libs/sbpi1_bdiv_r.o libtool: compile: /Applications/Xcode_11.6.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch arm64 -isysroot /Applications/Xcode_11.6.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.6.sdk -DHAVE_CONFIG_H -I. -I.. -D__GMP_WITHIN_GMP -I.. -DOPERATION_sbpi1_bdiv_qr -arch arm64 -isysroot /Applications/Xcode_11.6.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.6.sdk -miphoneos-version-min=11.0 -std=c99 -c sbpi1_bdiv_qr.c -o sbpi1_bdiv_qr.o >/dev/null 2>&1 libtool: compile: /Applications/Xcode_11.6.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch arm64 -isysroot /Applications/Xcode_11.6.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.6.sdk -DHAVE_CONFIG_H -I. -I.. -D__GMP_WITHIN_GMP -I.. -DOPERATION_sbpi1_bdiv_r -arch arm64 -isysroot /Applications/Xcode_11.6.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.6.sdk -miphoneos-version-min=11.0 -std=c99 -c sbpi1_bdiv_r.c -o sbpi1_bdiv_r.o >/dev/null 2>&1 libtool: compile: /Applications/Xcode_11.6.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch arm64 -isysroot /Applications/Xcode_11.6.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.6.sdk -DHAVE_CONFIG_H -I. -I.. -D__GMP_WITHIN_GMP -I.. -DOPERATION_dcpi1_bdiv_q -arch arm64 -isysroot /Applications/Xcode_11.6.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.6.sdk -miphoneos-version-min=11.0 -std=c99 -c dcpi1_bdiv_q.c -fno-common -DPIC -o .libs/dcpi1_bdiv_q.o error: /bin/sh ../libtool --tag=CC --mode=compile /Applications/Xcode_11.6.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch arm64 -isysroot /Applications/Xcode_11.6.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.6.sdk -DHAVE_CONFIG_H -I. -I.. -D__GMP_WITHIN_GMP -I.. -DOPERATION_`echo dcpi1_bdiv_qr | sed 's/_$//'` -arch arm64 -isysroot /Applications/Xcode_11.6.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.6.sdk -miphoneos-version-min=11.0 -std=c99 -c -o dcpi1_bdiv_qr.lo dcpi1_bdiv_qr.c ADR/ADRP relocations must be GOT relative adrp x7, :got:__gmp_binvert_limb_table ^ tmp-bdiv_q_1.s:75:2: error: unknown AArch64 fixup kind! /bin/sh ../libtool --tag=CC --mode=compile /Applications/Xcode_11.6.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch arm64 -isysroot /Applications/Xcode_11.6.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.6.sdk -DHAVE_CONFIG_H -I. -I.. -D__GMP_WITHIN_GMP -I.. -DOPERATION_`echo mu_bdiv_q | sed 's/_$//'` -arch arm64 -isysroot /Applications/Xcode_11.6.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.6.sdk -miphoneos-version-min=11.0 -std=c99 -c -o mu_bdiv_q.lo mu_bdiv_q.c libtool: compile: /Applications/Xcode_11.6.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch arm64 -isysroot /Applications/Xcode_11.6.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.6.sdk -DHAVE_CONFIG_H -I. -I.. -D__GMP_WITHIN_GMP -I.. -DOPERATION_dcpi1_bdiv_qr -arch arm64 -isysroot /Applications/Xcode_11.6.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.6.sdk -miphoneos-version-min=11.0 -std=c99 -c dcpi1_bdiv_qr.c -fno-common -DPIC -o .libs/dcpi1_bdiv_qr.o adrp x7, :got:__gmp_binvert_limb_tablelibtool: compile: /Applications/Xcode_11.6.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch arm64 -isysroot /Applications/Xcode_11.6.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.6.sdk -DHAVE_CONFIG_H -I. -I.. -D__GMP_WITHIN_GMP -I.. -DOPERATION_dcpi1_bdiv_q -arch arm64 -isysroot /Applications/Xcode_11.6.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.6.sdk -miphoneos-version-min=11.0 -std=c99 -c dcpi1_bdiv_q.c -o dcpi1_bdiv_q.o >/dev/null 2>&1 libtool: compile: /Applications/Xcode_11.6.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch arm64 -isysroot /Applications/Xcode_11.6.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.6.sdk -DHAVE_CONFIG_H -I. -I.. -D__GMP_WITHIN_GMP -I.. -DOPERATION_dcpi1_bdiv_qr -arch arm64 -isysroot /Applications/Xcode_11.6.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.6.sdk -miphoneos-version-min=11.0 -std=c99 -c dcpi1_bdiv_qr.c -o dcpi1_bdiv_qr.o >/dev/null 2>&1 libtool: compile: /Applications/Xcode_11.6.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch arm64 -isysroot /Applications/Xcode_11.6.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.6.sdk -DHAVE_CONFIG_H -I. -I.. -D__GMP_WITHIN_GMP -I.. -DOPERATION_mu_bdiv_q -arch arm64 -isysroot /Applications/Xcode_11.6.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.6.sdk -miphoneos-version-min=11.0 -std=c99 -c mu_bdiv_q.c -fno-common -DPIC -o .libs/mu_bdiv_q.o /bin/sh ../libtool --tag=CC --mode=compile /Applications/Xcode_11.6.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch arm64 -isysroot /Applications/Xcode_11.6.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.6.sdk -DHAVE_CONFIG_H -I. -I.. -D__GMP_WITHIN_GMP -I.. -DOPERATION_`echo mu_bdiv_qr | sed 's/_$//'` -arch arm64 -isysroot /Applilibtool: compile: /Applications/Xcode_11.6.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch arm64 -isysroot /Applications/Xcode_11.6.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.6.sdk -DHAVE_CONFIG_H -I. -I.. -D__GMP_WITHIN_GMP -I.. -DOPERATION_mu_bdiv_q -arch arm64 -isysroot /Applications/Xcode_11.6.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.6.sdk -miphoneos-version-min=11.0 -std=c99 -c mu_bdiv_q.c -o mu_bdiv_q.o >/dev/null 2>&1 cations/Xcode_11.6.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.6.sdk -miphoneos-version-min=11.0 -std=c99 -c -o mu_bdiv_qr.lo mu_bdiv_qr.c ^ tmp-bdiv_q_1.s:77:2: error: unknown AArch64 fixup kind! ldr x7, [x7, #:got_lo12:__gmp_binvert_limb_table] ^ /bin/sh ../libtool --tag=CC --mode=compile /Applications/Xcode_11.6.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch arm64 -isysroot /Applications/Xcode_11.6.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.6.sdk -DHAVE_CONFIG_H -I. -I.. -D__GMP_WITHIN_GMP -I.. -DOPERATION_`echo bdiv_q | sed 's/_$//'` -arch arm64 -isysroot /Applications/Xcode_11.6.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.6.sdk -miphoneos-version-min=11.0 -std=c99 -c -o bdiv_q.lo bdiv_q.c libtool: compile: /Applications/Xcode_11.6.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch arm64 -isysroot /Applications/Xcode_11.6.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.6.sdk -DHAVE_CONFIG_H -I. -I.. -D__GMP_WITHIN_GMP -I.. -DOPERATION_mu_bdiv_qr -arch arm64 -isysroot /Applications/Xcode_11.6.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.6.sdk -miphoneos-version-min=11.0 -std=c99 -c mu_bdiv_qr.c -fno-common -DPIC -o .libs/mu_bdiv_qr.o make[2]: *** [bdiv_q_1.lo] Error 1 make[2]: *** Waiting for unfinished jobs.... libtool: compile: /Applications/Xcode_11.6.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch arm64 -isysroot /Applications/Xcode_11.6.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.6.sdk -DHAVE_CONFIG_H -I. -I.. -D__GMP_WITHIN_GMP -I.. -DOPERATION_mu_bdiv_qr -arch arm64 -isysroot /Applications/Xcode_11.6.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.6.sdk -miphoneos-version-min=11.0 -std=c99 -c mu_bdiv_qr.c -o mu_bdiv_qr.o >/dev/null 2>&1 libtool: compile: /Applications/Xcode_11.6.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch arm64 -isysroot /Applications/Xcode_11.6.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.6.sdk -DHAVE_CONFIG_H -I. -I.. -D__GMP_WITHIN_GMP -I.. -DOPERATION_bdiv_q -arch arm64 -isysroot /Applications/Xcode_11.6.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.6.sdk -miphoneos-version-min=11.0 -std=c99 -c bdiv_q.c -fno-common -DPIC -o .libs/bdiv_q.o libtool: compile: /Applications/Xcode_11.6.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch arm64 -isysroot /Applications/Xcode_11.6.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.6.sdk -DHAVE_CONFIG_H -I. -I.. -D__GMP_WITHIN_GMP -I.. -DOPERATION_bdiv_q -arch arm64 -isysroot /Applications/Xcode_11.6.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.6.sdk -miphoneos-version-min=11.0 -std=c99 -c bdiv_q.c -o bdiv_q.o >/dev/null 2>&1 make[1]: *** [all-recursive] Error 1 make: *** [all] Error 2
pEpkey.asc
Description: application/pgp-keys
_______________________________________________ gmp-bugs mailing list [email protected] https://gmplib.org/mailman/listinfo/gmp-bugs
