Can't build gmp 4.2.1 on Solaris 10/Intel

Torbjorn Granlund tege at swox.com
Tue Oct 31 22:32:46 CET 2006


Skip Montanaro <skip at pobox.com> writes:

  Running "make" reported:
  
      ...
      /bin/bash ../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I..
  -D__GMP_WITHIN_GMP -I.. -DOPERATION_`echo add | sed 's/_$//'`    -m32 -O2
  -fomit-frame-pointer -mtune=pentium4 -march=pentium4 -c -o add.lo add.c
       gcc -DHAVE_CONFIG_H -I. -I. -I.. -D__GMP_WITHIN_GMP -I.. -DOPERATION_add
  -m32 -O2 -fomit-frame-pointer -mtune=pentium4 -march=pentium4 -c add.c  -fPIC
  -DPIC -o .libs/add.o
      Assembler: add.c
  	    "/var/tmp//ccGPxZig.s", line 61 : Syntax error
  	    Near line: "    cs ; jne        .L3"
      make[2]: *** [add.lo] Error 1
      make[2]: Leaving directory `/home/ink/skipm/src/gmp-4.2.1/mpn'
      make[1]: *** [all-recursive] Error 1
      make[1]: Leaving directory `/home/ink/skipm/src/gmp-4.2.1'
      make: *** [all] Error 2
  
  I'm using Sun's as:
  
      % type -a as
      as is /usr/ccs/bin/as
  
When the assembler fails to assemble output from the compiler, that's
hardly a GMP bug.

  I also tried building with --host=none-pc-solaris2.10 (according to
  the Build Options this is approximately the correct way to specify a
  generic C build) which reports:
  
      using ABI="long"
  	  CC="gcc"
  	  CFLAGS="-O3"
  	  CPPFLAGS="-DNO_ASM"
  	  MPN_PATH="  generic"
  
  This configuration builds, but fails "make check":
  
      Undefined                       first referenced
       symbol                             in file
      __gmpn_add_nc                      \
          /home/titan/skipm/src/gmp-4.2.1/.libs/libgmp.so
      __gmpn_sub_nc                      \
          /home/titan/skipm/src/gmp-4.2.1/.libs/libgmp.so
  
  Any suggestions about how to get a clean build in this environment
  appreciated.
  
I have no idea about that error.  Did you forget to cleanup your
build directory from the previuos build?

-- 
Torbjörn


More information about the gmp-bugs mailing list