[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Bug in configure
From: |
Nicholas Oxhøj |
Subject: |
Bug in configure |
Date: |
Wed, 03 Dec 2003 13:59:26 +0100 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.5) Gecko/20031013 Thunderbird/0.3 |
Hi,
I tried compiling gmp-4.1.2.tar.gz on a Solaris 2.6 sun4u sparc.
The Makefile generated by configure does not work on this setup and
causes compile errors. The problem seems to be that the code chosen for
this system by configure (mpn/sparc32/v9/) contains "v8plus" assembler
instructions but the compiler options generated for "cc" in the Makefile
contains "-xarch=v8", which leads to "cc" exiting with the error message
"cannot use v8plus instructions in a non-v8plus target binary".
./config.guess returns "ultrasparc2i-sun-solaris2.6"
./configfsf.guess returns "sparc-sun-solaris2.6"
I fixed the problem locally, by changing line 2488 of configure, such
that the compiler option now reads "-xarch=v8plus" instead of
"-xarch=v8". This seems to be a good fix, which should probably be
applied to the released version of GMP:
2488c2488
< cc_cflags="-xtarget=native -xarch=v8 -xO4"
---
> cc_cflags="-xtarget=native -xarch=v8plus -xO4"
Regards,
Nicholas Oxhøj
- Bug in configure,
Nicholas Oxhøj <=