gmp-4.2 on MacIntel

Enrico Franchi at
Tue Mar 28 14:45:03 CEST 2006

I just tried to compile gmp-4.2 on a Intel Macintosh.
While using ./configure works, if I enable the c++ support, the
library does not compile.

The last few lines before the error are

/bin/sh ../libtool --mode=compile --tag=CC ../mpn/m4-ccas --m4="m4"
gcc -c -DHAVE_CONFIG_H -I. -I. -I.. -D__GMP_WITHIN_GMP -I..
-DOPERATION_`echo dive_1 | sed 's/_$//'`    -m32 -O2
-fomit-frame-pointer -mtune=pentium3 -march=pentium3 `test -f
'dive_1.asm' || echo './'`dive_1.asm
 ../mpn/m4-ccas --m4=m4 gcc -c -DHAVE_CONFIG_H -I. -I. -I..
-D__GMP_WITHIN_GMP -I.. -DOPERATION_dive_1 -m32 -O2
-fomit-frame-pointer -mtune=pentium3 -march=pentium3 dive_1.asm 
-fno-common -DPIC -o .libs/dive_1.o
dive_1.asm >tmp-dive_1.s
 gcc -c -DHAVE_CONFIG_H -I. -I. -I.. -D__GMP_WITHIN_GMP -I..
-DOPERATION_dive_1 -m32 -O2 -fomit-frame-pointer -mtune=pentium3
-march=pentium3 tmp-dive_1.s -fno-common -DPIC -o .libs/dive_1.o
tmp-dive_1.s:108:invalid character '@' in first operand
make[2]: *** [dive_1.lo] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

If I open the file mpn/tmp-dive_1.s it is empty.

the command was
./configure --enable-cxx

I also attach the config.log
-------------- next part --------------
A non-text attachment was scrubbed...
Name: config.log
Type: application/octet-stream
Size: 175875 bytes
Desc: not available
Url :

More information about the gmp-bugs mailing list