Can't build 32-bit GMP on OS X 10.5.6
Wade Williams
wadesworld at mac.com
Wed Jan 14 23:11:19 CET 2009
I'm trying to build 32-bit GMP on OS X and getting the following error:
Making all in mpn
/bin/sh ../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I.. -
D__GMP_WITHIN_GMP -I.. -DOPERATION_`echo fib_table | sed 's/_$//'` -
DNO_ASM -O3 -c -o fib_table.lo fib_table.c
mkdir .libs
gcc -DHAVE_CONFIG_H -I. -I. -I.. -D__GMP_WITHIN_GMP -I.. -
DOPERATION_fib_table -DNO_ASM -O3 -c fib_table.c -fno-common -DPIC -
o .libs/fib_table.o
In file included from ../gmp-impl.h:102,
from fib_table.c:4:
../fib_table.h:4: error: syntax error before 'data'
fib_table.c:7: error: syntax error before 'data'
The following configure command was used:
./configure --disable-dependency-tracking --host=none-apple-darwin
I have also tried with:
./configure --disable-dependency-tracking ABI=32
GMP compiles perfectly in 64-bit mode, but unfotunately, I can't use
that.
I know "Apple compiler bug" is usually the answer. I'll be happy to
report it if I know what the issue is, but unfortunately I'm not a low-
level enough guy to figure it out.
However, if there's a workaround, I'd be tremendously grateful - my
project depends on GMP and thus, I'm dead in the water at the moment.
GCC info:
rtp-wwilliam-8712:gmp-4.2.4 wwilliam$ gcc -v
Using built-in specs.
Target: i686-apple-darwin9
Configured with: /var/tmp/gcc/gcc-5488~2/src/configure --disable-
checking -enable-werror --prefix=/usr --mandir=/share/man --enable-
languages=c,objc,c++,obj-c++ --program-transform-name=/^[cg][^.-]*$/s/
$/-4.0/ --with-gxx-include-dir=/include/c++/4.0.0 --with-slibdir=/usr/
lib --build=i686-apple-darwin9 --with-arch=apple --with-tune=generic --
host=i686-apple-darwin9 --target=i686-apple-darwin9
Thread model: posix
gcc version 4.0.1 (Apple Inc. build 5488)
Thanks,
Wade
More information about the gmp-discuss
mailing list