configure problem on Solaris/Intel
Steven Dirkse
sdirkse at gams.com
Mon Dec 22 18:42:54 CET 2008
I am building GMP on a Solaris/Intel machine:
-bash-3.2# uname -a
SunOS sigvm 5.11 snv_95 i86pc i386 i86pc
I could build GMP 4.2.1 very simply, using
./configure ABI=32
where the output of config.guess was:
bash-3.2# cd gmp-4.2.1
-bash-3.2# ./config.guess
pentium3-pc-solaris2.11
But moving to 4.2.[2,3,4] I get different output from config.guess and
the build fails with an assembler problem. I can fix it by manually
putting in the --build.
-bash-3.2# cd ../gmp-4.2.4
-bash-3.2# ./config.guess
core2-pc-solaris2.11
-bash-3.2# cd mpz/
-bash-3.2# gcc -DHAVE_CONFIG_H -I. -I. -I.. -D__GMP_WITHIN_GMP -I..
-m32 -O2 -fomit-frame-pointer -mtune=k8 -march=k8 -c cmp_d.c -fPIC
-DPIC -o .libs/cmp_d.o
Assembler: cmp_d.c
"/var/tmp//ccH2vmCb.s", line 59 : Illegal mnemonic
Near line: " ffreep %st(0)"
"/var/tmp//ccH2vmCb.s", line 59 : Syntax error
Near line: " ffreep %st(0)"
"/var/tmp//ccH2vmCb.s", line 61 : Illegal mnemonic
Near line: " ffreep %st(0)"
"/var/tmp//ccH2vmCb.s", line 61 : Syntax error
Near line: " ffreep %st(0)"
"/var/tmp//ccH2vmCb.s", line 125 : Illegal mnemonic
Near line: " ffreep %st(0)"
"/var/tmp//ccH2vmCb.s", line 125 : Syntax error
Near line: " ffreep %st(0)"
-bash-3.2# gcc -DHAVE_CONFIG_H -I. -I. -I.. -D__GMP_WITHIN_GMP -I..
-m32 -O2 -fomit-frame-pointer -mtune=k6 -march=k6 -c cmp_d.c -fPIC
-DPIC -o .libs/cmp_d.o
-bash-3.2#
./configure ABI=32 --build=k6-pc-solaris2.11 works, for example.
BTW, the 4.2.1 configure got me --mtune=pentium3 -march=pentium3. Not
sure if that's preferable to k6 on the machine or not.
--
Steven Dirkse, Ph.D.
GAMS Development Corp., Washington DC
Voice: (202)342-0180 Fax: (202)342-0181
sdirkse at gams.com
http://www.gams.com
More information about the gmp-bugs
mailing list