bug-gmp
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: gmp on solaris 2.6/sparc


From: Torbjorn Granlund
Subject: Re: gmp on solaris 2.6/sparc
Date: 07 Oct 2000 14:20:03 +0200
User-agent: Gnus/5.0807 (Gnus v5.8.7) Emacs/20.6

Dan Stromberg <address@hidden> writes:

  Hi.
  
  I'm trying to compile gmp on solaris 2.6/sparc.
  
  I get the following errors:
  
  m4 -DPIC -DOPERATION_mul_1 mul_1.asm >tmp-mul_1.s
  /dcs/bin/bash ../libtool --mode=compile cc -c -DHAVE_CONFIG_H -I. -I. -I.. 
-I.. -DOPERATION_mul_1    -g tmp-mul_1.s -o mul_1.lo
  rm -f .libs/mul_1.lo
  cc -c -DHAVE_CONFIG_H -I. -I. -I.. -I.. -DOPERATION_mul_1 -g tmp-mul_1.s  
-KPIC -DPIC -o mul_1.o
  /opt/SUNWspro/bin/../SC5.0/bin/fbe: "tmp-mul_1.s", line 50: error: cannot use 
v8plus instructions in a non-v8plus target binary
  /opt/SUNWspro/bin/../SC5.0/bin/fbe: "tmp-mul_1.s", line 57: error: cannot use 
v8plus instructions in a non-v8plus target binary
  /opt/SUNWspro/bin/../SC5.0/bin/fbe: "tmp-mul_1.s", line 62: error: cannot use 
v8plus instructions in a non-v8plus target binary
  /opt/SUNWspro/bin/../SC5.0/bin/fbe: "tmp-mul_1.s", line 68: error: cannot use 
v8plus instructions in a non-v8plus target binary
  /opt/SUNWspro/bin/../SC5.0/bin/fbe: "tmp-mul_1.s", line 71: error: cannot use 
v8plus instructions in a non-v8plus target binary
  
  I'm compiling on an ultra 5, but I hope to run this on sun4c and up.
  
  Any suggestions?

You are basically asking two questions.  How you can solve the compile
problem above, and how you can build GMP in a mode that runs on SPARC
systems.

Kevin replied to the first question.

If you really want GMP to run on all sparc systems, do like this:

        configure --target=sparc-sun-solaris2.6
        make

That will avoid both the multiply instructions added for SPARC v8 and
those added for SPARC v9.  You should be aware that the resulting
library will run very slowly on any sparc hardware from the last 10
years.

-- 
Torbjörn



reply via email to

[Prev in Thread] Current Thread [Next in Thread]