gmp-4.2 on MacIntel

Torbjorn Granlund tege at swox.com
Tue Mar 28 15:58:51 CEST 2006


"Enrico Franchi" <rik0.py at gmail.com> writes:

  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
  m4  -DHAVE_CONFIG_H -D__GMP_WITHIN_GMP -DOPERATION_dive_1 -DPIC
  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
  
If you "configure" command actually starts compiling things, then
something is seriously wrong with your system.

And if the command that generated the above output was actually
"make", and if the above error only happens if c++ is enabled,
something else is seriously wrong.  (The assembly code should not be
included or excluded as a result of if the c++ stuff is enabled!)

At any rate, MacIntel is unsupported in GMP 4.2.

--
Torbjörn


More information about the gmp-bugs mailing list