Build failure on macOS Sonoma 14.0 beta

Torbjörn Granlund tg at gmplib.org
Wed Sep 20 17:33:32 CEST 2023


Marc Culler <marc.culler at gmail.com> writes:

  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)"

Have you tried letting GMP figure out how to best compile things?

You want to retain the --enable-fat option only.

Passing an arm long set of options usually makes the build worse, or
breaks it completely.

-- 
Torbjörn
Please encrypt, key id 0xC8601622


More information about the gmp-bugs mailing list