GMP bug (?) - unable to build for ARM64 with assembly enabled

Andreas Buff ab at pep.security
Wed Oct 14 13:19:43 UTC 2020


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.

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: GMPLog.txt
URL: <https://gmplib.org/list-archives/gmp-bugs/attachments/20201014/c662da97/attachment.txt>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pEpkey.asc
Type: application/pgp-keys
Size: 6884 bytes
Desc: not available
URL: <https://gmplib.org/list-archives/gmp-bugs/attachments/20201014/c662da97/attachment.bin>


More information about the gmp-bugs mailing list