Can't build gmp 4.2.1 on Solaris 10/Intel
Skip Montanaro
skip at pobox.com
Tue Oct 31 21:14:05 CET 2006
(Lines wrapped to appease gmane... *sigh*)
I downloaded gmp 4.2.1 today and tried building it on Solaris 10/Intel
without success.
./configure reported:
using ABI="32"
CC="gcc"
CFLAGS="-m32 -O2 -fomit-frame-pointer -mtune=pentium4 \
-march=pentium4"
CPPFLAGS=""
MPN_PATH=" x86/pentium4/sse2 x86/pentium4/mmx \
x86/pentium4 x86 generic"
My gcc is:
Reading specs from
/opt/app/g++lib6/gcc-3.4/lib/gcc/i386-pc-solaris2.10/3.4.1/specs
Configured with: ../configure --prefix=/opt/app/g++lib6/gcc-3.4
--enable-languages=c,c++,objc,f77 --disable-nls --with-included-gettext
Thread model: posix
gcc version 3.4.1
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
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":
...
gcc -O3 -o .libs/t-bswap t-bswap.o ./.libs/libtests.a \
/home/titan/skipm/src/gmp-4.2.1/.libs/libgmp.so \
../.libs/libgmp.so -R/usr/local/lib
ld: warning: file ../.libs/libgmp.so: linked to \
/home/titan/skipm/src/gmp-4.2.1/.libs/libgmp.so: attempted \
multiple inclusion of file
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
ld: fatal: Symbol referencing errors. No output written to .libs/t-bswap
collect2: ld returned 1 exit status
make[4]: *** [t-bswap] Error 1
make[4]: Leaving directory `/home/ink/skipm/src/gmp-4.2.1/tests'
make[3]: *** [check-am] Error 2
make[3]: Leaving directory `/home/ink/skipm/src/gmp-4.2.1/tests'
make[2]: *** [check-recursive] Error 1
make[2]: Leaving directory `/home/ink/skipm/src/gmp-4.2.1/tests'
make[1]: *** [check-recursive] Error 1
make[1]: Leaving directory `/home/ink/skipm/src/gmp-4.2.1'
make: *** [check] Error 2
Any suggestions about how to get a clean build in this environment
appreciated.
Thx,
Skip Montanaro - skip at pobox.com - http://www.mojam.com/
"The hippies and the hipsters did some great stuff in the sixties,
but the geeks pulled their weight too." -- Billy Bragg
More information about the gmp-bugs
mailing list