5.1.2 assembler error on Solaris 10 with CC='cc -xtarget=opteron -xarch=amd64'
Marc Glisse
marc.glisse at inria.fr
Tue Oct 8 08:19:04 CEST 2013
On Tue, 8 Oct 2013, Daniel Richard G. wrote:
> Building 5.1.2 on Solaris 10 (amd64) with the vendor compiler fails with
> the following error:
You must be using an ancient version of that compiler, since AFAIK it
understands -m64 now. Could you use a more recent version?
You missed some of the required information in your email:
http://gmplib.org/manual/Reporting-Bugs.html
> /bin/bash ../libtool --mode=compile --tag=CC /tmp/gmp-5.1.2/mpn/m4-ccas --m4="m4" cc -xtarget=opteron -xarch=amd64 -D_STDC_C99= -c -DHAVE_CONFIG_H -I. -I/tmp/gmp-5.1.2/mpn -I.. -D__GMP_WITHIN_GMP -I/tmp/gmp-5.1.2 -DOPERATION_`echo add_n | sed 's/_$//'` -xO3 -m64 `test -f 'add_n.asm' || echo '/tmp/gmp-5.1.2/mpn/'`add_n.asm
> libtool: compile: /tmp/gmp-5.1.2/mpn/m4-ccas --m4=m4 cc -xtarget=opteron -xarch=amd64 -D_STDC_C99= -c -DHAVE_CONFIG_H -I. -I/tmp/gmp-5.1.2/mpn -I.. -D__GMP_WITHIN_GMP -I/tmp/gmp-5.1.2 -DOPERATION_add_n -xO3 -m64 add_n.asm -KPIC -DPIC -o add_n.o
> m4 -D_STDC_C99= -DHAVE_CONFIG_H -D__GMP_WITHIN_GMP -DOPERATION_add_n -DPIC add_n.asm >tmp-add_n.s
mpn/add_n.asm is a symlink for what file?
> cc -xtarget=opteron -xarch=amd64 -D_STDC_C99= -c -DHAVE_CONFIG_H -I. -I/tmp/gmp-5.1.2/mpn -I.. -D__GMP_WITHIN_GMP -I/tmp/gmp-5.1.2 -DOPERATION_add_n -xO3 -m64 tmp-add_n.s -KPIC -DPIC -o add_n.o
> cc: Warning: illegal option -m64
> Assembler:
> "tmp-add_n.s", line 86 : Syntax error
> "tmp-add_n.s", line 88 : Illegal mnemonic
> "tmp-add_n.s", line 88 : Syntax error
Could you show some of those lines?
(you many need to remove the last line of mpn/m4-ccas so the file doesn't
disappear)
> Dropping the -m64 option does not help.
How about dropping the xtarget/xarch options, or using -xarch=native64
maybe?
--
Marc Glisse
More information about the gmp-bugs
mailing list