public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug bootstrap/49667] New: Duplicate -L's with configure --with-gmp-lib on Solaris 10
@ 2011-07-07 7:15 greg.robinson at dsto dot defence.gov.au
2011-07-07 7:33 ` [Bug bootstrap/49667] " greg.robinson at dsto dot defence.gov.au
2011-07-07 8:07 ` redi at gcc dot gnu.org
0 siblings, 2 replies; 3+ messages in thread
From: greg.robinson at dsto dot defence.gov.au @ 2011-07-07 7:15 UTC (permalink / raw)
To: gcc-bugs
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.
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug bootstrap/49667] Duplicate -L's with configure --with-gmp-lib on Solaris 10
2011-07-07 7:15 [Bug bootstrap/49667] New: Duplicate -L's with configure --with-gmp-lib on Solaris 10 greg.robinson at dsto dot defence.gov.au
@ 2011-07-07 7:33 ` greg.robinson at dsto dot defence.gov.au
2011-07-07 8:07 ` redi at gcc dot gnu.org
1 sibling, 0 replies; 3+ messages in thread
From: greg.robinson at dsto dot defence.gov.au @ 2011-07-07 7:33 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49667
--- Comment #1 from Greg Robinson <greg.robinson at dsto dot defence.gov.au> 2011-07-07 07:33:07 UTC ---
Ok, I think I might know whats going on. I believe, I am assuming, that, say,
an LDFLAGS option, where you specify -L and -R is the same format as
--with-gmp-lib.
In other words, --with-gmp-lib takes a directory as the option, and LDFLAGS has
the -L and -R options and the directory? Right?
should have check configure before posting...
sorry 'bout that. It's been a long time...
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug bootstrap/49667] Duplicate -L's with configure --with-gmp-lib on Solaris 10
2011-07-07 7:15 [Bug bootstrap/49667] New: Duplicate -L's with configure --with-gmp-lib on Solaris 10 greg.robinson at dsto dot defence.gov.au
2011-07-07 7:33 ` [Bug bootstrap/49667] " greg.robinson at dsto dot defence.gov.au
@ 2011-07-07 8:07 ` redi at gcc dot gnu.org
1 sibling, 0 replies; 3+ messages in thread
From: redi at gcc dot gnu.org @ 2011-07-07 8:07 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49667
Jonathan Wakely <redi at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> 2011-07-07 08:06:56 UTC ---
yes, as documented at http://gcc.gnu.org/install/configure.html
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2011-07-07 8:07 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-07-07 7:15 [Bug bootstrap/49667] New: Duplicate -L's with configure --with-gmp-lib on Solaris 10 greg.robinson at dsto dot defence.gov.au
2011-07-07 7:33 ` [Bug bootstrap/49667] " greg.robinson at dsto dot defence.gov.au
2011-07-07 8:07 ` redi at gcc dot gnu.org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).