Build failure on macOS Sonoma 14.0 beta
Marc Culler
marc.culler at gmail.com
Wed Sep 20 16:36:04 CEST 2023
I am unable to build gmp-6.2.1 on macOS Sonoma beta using the command line
tools released for that system. The system is up to date. The hardware of
the build system is "1.6 GHz Dual-Core Intel Core i5".
The build commands I am using are:
$ export GMPPREFIX=/a/path/on/my/system
$ export CFLAGS="-arch x86_64 -mmacosx-version-min=10.9 -mno-avx -mno-avx2
-mno-bmi2"
$ ./configure --with-pic --build=x86_64-none-darwin
--host=x86_64-none-darwin --enable-fat --prefix=${GMPPREFIX}/intel
The error message I get is:
ld: branch8 out of range 501588 in ___gmpn_add_nc_x86_64
The error occurs when using: "Apple clang version 15.0.0
(clang-1500.0.40.1)"
The build succeeds with: "Apple clang version 14.0.3 (clang-1403.0.22.14.1)"
The build also succeeds if I cross compile for arm using:
$ export CFLAGS="-arch arm64 -mmacosx-version-min=10.9"
$ ./configure --with-pic --build=${BUILD_SYSTEM} --host=arm64-none-darwin
--prefix=${GMPPREFIX}/arm
Note that the actual release of Sonoma is scheduled for September 26.
- Marc Culler
More information about the gmp-bugs
mailing list