GMP bug (?) - unable to build for ARM64 with assembly enabled
Marc Glisse
marc.glisse at inria.fr
Wed Oct 14 12:50:24 UTC 2020
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?
--
Marc Glisse
More information about the gmp-bugs
mailing list