[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: Cross-building NetBSD-current on Mac OS X 10.5 (Leopard)
On Thu, 18 Aug 2011, Alistair Crooks wrote:
checking for recent GMP... yes
checking for __gmpz_init in -lgmp... no
configure: error: libgmp not found or uses a different ABI.
Please read the INSTALL file -- see "In case of problem".
Full/more output is appended below.
Yeah, we really need to see the link error from the mpz_init test in
Full log is at http://www.feyrer.de/Misc/mpfr-config.log, the interesting
configure:13571: checking for __gmpz_init in -lgmp
configure:13596: cc -o conftest -Wall -Wmissing-prototypes
ld: warning: ignoring file
file was built for archive which is not the architecture being linked
Undefined symbols for architecture x86_64:
"___gmpz_init", referenced from:
_main in cc1RpI4I.o
ld: symbol(s) not found for architecture x86_64
collect2: ld returned 1 exit status
It seems that gmp was properly(?) built as 32bit object files:
mini% file obj.i386-Darwin-XXX/tools/gmp/build/*.o
obj.i386-Darwin-XXX/tools/gmp/build/assert.o: Mach-O object i386
obj.i386-Darwin-XXX/tools/gmp/build/compat.o: Mach-O object i386
In the gmp config.log, -m32 is used (probably because of the ABI=32?),
I do not see this in the mpfr config.log. Example:
configure:8564: checking whether the C compiler works
configure:8586: cc -m32 -O2 -pedantic -fomit-frame-pointer -mtune=core2
-march=core2 conftest.c >&5
configure:3950: checking whether the C compiler works
-L/Users/feyrer/work/NetBSD/cvs/src-current/tooldir.Darwin/lib conftest.c >&5
Also, it looks like the gcc version on Snow Leopard's
xcode is gcc 4.2, and there was a special case for that compiler in
gmp-h.in - more investigation required.
I have a newer Xcode than what Snow Leopart comes with, received from the
Mac App Store. Version:
mini% gcc -v
Using built-in specs.
Configured with: /var/tmp/gcc/gcc-5666.3~123/src/configure
--disable-checking --enable-werror --prefix=/usr --mandir=/share/man
Thread model: posix
gcc version 4.2.1 (Apple Inc. build 5666) (dot 3)
Where to go from there?
Main Index |
Thread Index |