gmp-4.1.4 fails to build as 64-bit library
Dr. David Kirkby
david.kirkby at onetel.net
Sun Dec 11 07:51:31 CET 2005
I built gmp 4.1.4 on my Sun Ultra 80 running Solaris 10 using Sun's
Studio 11 C compiler in 32-bit mode. All was okay.
Changing the compiler options a bit
CC=/opt/SUNWspro/bin/cc
CFLAGS=-fast -xarch=v9 -xinline=auto
and things are not as smooth.
Making all in cxx
Making all in mpbsd
Making all in mpn
/bin/sh ../libtool --mode=compile --tag=CC ../mpn/m4-ccas --m4="m4"
/opt/SUNWspro/bin/cc -c -DHAVE_CONFIG_H -I. -I. -I.. -D__GMP_WITHIN_GMP
-I.. -DOPERATION_`echo udiv_fp | sed 's/_$//'` -fast -xarch=v9
-xinline=auto `test -f udiv_fp.asm || echo './'`udiv_fp.asm
../mpn/m4-ccas --m4=m4 /opt/SUNWspro/bin/cc -c -DHAVE_CONFIG_H -I. -I.
-I.. -D__GMP_WITHIN_GMP -I.. -DOPERATION_udiv_fp -fast -xarch=v9
-xinline=auto udiv_fp.asm -KPIC -DPIC -o .libs/udiv_fp.o
m4 -DHAVE_CONFIG_H -D__GMP_WITHIN_GMP -DOPERATION_udiv_fp -DPIC
udiv_fp.asm >tmp-udiv_fp.s
/opt/SUNWspro/bin/cc -c -DHAVE_CONFIG_H -I. -I. -I..
-D__GMP_WITHIN_GMP -I.. -DOPERATION_udiv_fp -fast -xarch=v9
-xinline=auto tmp-udiv_fp.s -KPIC -DPIC -o .libs/udiv_fp.o
/opt/SUNWspro/prod/bin/fbe: "tmp-udiv_fp.s", line 109: error: detect
global register use not covered .register pseudo-op
/opt/SUNWspro/prod/bin/fbe: "tmp-udiv_fp.s", line 110: error: detect
global register use not covered .register pseudo-op
/opt/SUNWspro/prod/bin/fbe: "tmp-udiv_fp.s", line 113: error: detect
global register use not covered .register pseudo-op
/opt/SUNWspro/prod/bin/fbe: "tmp-udiv_fp.s", line 113: error: detect
global register use not covered .register pseudo-op
/
etc. The flag that causes this is "-xarch=v9" which makes it compile
64-bit.
Any suggestions how I can avoid this?
I have seen this reported before
http://news.vejas.lt/article.php?id=535&group=gmane.os.netbsd.devel.pkgsrc.bulk
dave k
-------------- next part --------------
A non-text attachment was scrubbed...
Name: config.log
Type: text/x-log
Size: 73064 bytes
Desc: not available
Url : http://gmplib.org/list-archives/gmp-bugs/attachments/20051211/35320105/config-0001.bin
More information about the gmp-bugs
mailing list