Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: macos: "configure: error: gmp library too old"



At Thu, 26 Sep 2024 13:32:35 +1000, matthew green <mrg%eterna23.net@localhost> wrote:
Subject: re: macos: "configure: error: gmp library too old"
>
> > I tried a build of yesterday's -current on macos and it got this far:
> >
> > checking for main in -lgmp... yes
> > configure: error: gmp library too old
>
> that's odd.. what's in the config.log for tools/isl where it fails?
> normally that's about 60% in the file, if you've not seen before,
> and contains the useful info..

I see much the same as Kurt, and I'm guessing Hubert's report in
netbsd-users is of the same problem (also in netbsd-10):

configure:24492: cc -o conftest -O -O2 -O2 -no-cpp-precomp -I/Users/woods/build/woods/very.local/trunk-x86_64-amd64-tools/include  -L/Users/woods/build/woods/very.local/trunk-x86_64-amd64-tools/lib -O conftest.c -lgmp -lgmp  >&5
ld: warning: ignoring duplicate libraries: '-lgmp'
ld: warning: disabling chained fixups because of unaligned pointers
ld: illegal text-relocation in '___gmpn_add_nc'+0x1E0 (/Users/woods/build/woods/very.local/trunk-x86_64-amd64-tools/lib/libgmp.a[282](add_n.o)) to '___gmpn_add_n'
clang: error: linker command failed with exit code 1 (use -v to see invocation)
configure:24492: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "isl"
| #define PACKAGE_TARNAME "isl"
| #define PACKAGE_VERSION "0.26"
| #define PACKAGE_STRING "isl 0.26"
| #define PACKAGE_BUGREPORT "isl-development%googlegroups.com@localhost"
| #define PACKAGE_URL ""
| #define PACKAGE "isl"
| #define VERSION "0.26"
| #define GCC_WARN_UNUSED_RESULT __attribute__((__warn_unused_result__))
| #define HAVE___ATTRIBUTE__ 1
| #define HAVE_CXX11 1
| #define HAVE_CXX17 1
| #define HAVE_STDIO_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_UNISTD_H 1
| #define STDC_HEADERS 1
| #define HAVE_DLFCN_H 1
| #define LT_OBJDIR ".libs/"
| #define USE_GMP_FOR_MP /**/
| #define HAVE_LIBGMP 1
| /* end confdefs.h.  */
| #include <gmp.h>
| int
| main (void)
| {
|
|               mpz_t n, d;
|               if (mpz_divisible_p(n, d))
|                       mpz_divexact_ui(n, n, 4);
|
|   ;
|   return 0;
| }
configure:24496: error: gmp library too old


I also have the same build environment as Hubert reports:

$ sw_vers
ProductName:            macOS
ProductVersion:         14.6.1
BuildVersion:           23G93
$ clang --version
Apple clang version 16.0.0 (clang-1600.0.26.3)
Target: x86_64-apple-darwin23.6.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin

though I will very soon do the upgrade to 15.x and there may be a new
xcode with that.

--
					Greg A. Woods <gwoods%acm.org@localhost>

Kelowna, BC     +1 250 762-7675           RoboHack <woods%robohack.ca@localhost>
Planix, Inc. <woods%planix.com@localhost>     Avoncote Farms <woods%avoncote.ca@localhost>

Attachment: pgpIu26iUnvql.pgp
Description: OpenPGP Digital Signature



Home | Main Index | Thread Index | Old Index