This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug bootstrap/49667] New: Duplicate -L's with configure --with-gmp-lib on Solaris 10
- From: "greg.robinson at dsto dot defence.gov.au" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 7 Jul 2011 07:15:21 +0000
- Subject: [Bug bootstrap/49667] New: Duplicate -L's with configure --with-gmp-lib on Solaris 10
- Auto-submitted: auto-generated
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49667
Summary: Duplicate -L's with configure --with-gmp-lib on
Solaris 10
Product: gcc
Version: 4.6.1
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: bootstrap
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: greg.robinson@dsto.defence.gov.au
Hi,
I'm running Solaris 10 sparc.
If I configure gcc as this (from config.log):
$ ../configure --with-gmp-lib=-L/usr/local/lib -R/usr/local/lib
(using ../configire --with-gmp-lib="-L/usr/local/lib -R/usr/local/lib"
(as I don't run a global LD_LIBRARY_PATH)
It produces double -L entries as such (from config.log):
configure:5514: checking for the correct version of the gmp/mpfr/mpc libraries
configure:5545: gcc -o conftest -g -O2 conftest.c -L-L/usr/local/lib
-R/usr/local/lib -lmpc -lmpfr -lgmp >&5
configure:5545: $? = 0
configure:5546: result: yes
and:
gmpinc=''
gmplibs='-L-L/usr/local/lib -R/usr/local/lib -lmpc -lmpfr -lgmp'
host='sparc-sun-solaris2.10'
As you can see, the test compile works. However, when compiling the compiler,
it fails to link with mpc, mpfr and gmp libraries, and says that they dont
exist. I can't show you the error, as it's gone from my scroll back and I've
fixed the offending Makefiles, so my compiling is continuing without error.
The offending Makefiles where I found the -L-L/usr/local/lib are:
objdir/Makefile
objdir/gcc/Makefile
objdir/prev-gcc/Makefile
After I corrected these, the compile continues.