public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug bootstrap/45554] New: gmp in nonstandard-location results in '-lgmpxx: not found'
@ 2010-09-06 10:51 nicolai dot stange at zmaw dot de
2010-09-09 23:55 ` [Bug bootstrap/45554] -lgmpxx is before GMPLIB for graphite pinskia at gcc dot gnu dot org
0 siblings, 1 reply; 2+ messages in thread
From: nicolai dot stange at zmaw dot de @ 2010-09-06 10:51 UTC (permalink / raw)
To: gcc-bugs
For me, gmp and ppl are both in non-standard and different locations given via
--with-gmp/--with-ppl to gcc's configure
'make bootstrap' results in
suncc -g -DIN_GCC -DHAVE_CONFIG_H
-Wl,-R/pf/m/m222086/xas/solaris10/gcc/libe
lf-latest/lib -Wl,-R/pf/m/m222086/xas/solaris10/gcc/cloog-ppl-latest/lib
-Wl,-R/
pf/m/m222086/xas/solaris10/gcc/ppl-latest/lib
-Wl,-R/pf/m/m222086/xas/solaris10/
gcc/mpc-latest/lib -Wl,-R/pf/m/m222086/xas/solaris10/gcc/mpfr-latest/lib
-Wl,-R/
pf/m/m222086/xas/solaris10/gcc/gmp-latest/lib -o cc1-dummy c-lang.o
stub-objc.o
attribs.o c-errors.o c-lex.o c-pragma.o c-decl.o c-typeck.o c-convert.o
c-aux-i
nfo.o c-common.o c-opts.o c-format.o c-semantics.o c-ppoutput.o c-cppbuiltin.o
c
-objc-common.o c-dump.o c-pch.o c-parser.o sol2-c.o c-gimplify.o tree-mudflap.o
c-pretty-print.o c-omp.o \
dummy-checksum.o main.o tree-browser.o libbackend.a
../libcpp/libcpp.a ../libdecnumber/libdecnumber.a ../libcpp/libcpp.a
./../intl/libintl.a ../libiberty/libiberty.a ../libdecnumber/libdecnumber.a
-L/pf/m/m222086/xas/solaris10/gcc/ppl-latest/lib -lppl_c -lppl -lgmpxx
-L/pf/m/m222086/xas/solaris10/gcc/gmp-latest/lib
-L/pf/m/m222086/xas/solaris10/gcc/mpfr-latest/lib
-L/pf/m/m222086/xas/solaris10/gcc/mpc-latest/lib -lmpc -lmpfr -lgmp -L../zlib
-lz -L/pf/m/m222086/xas/solaris10/gcc/libelf-latest/lib -lelf
ld: fatal: library -lgmpxx: not found
The reason is obvious: The configure-script just appends '-lgmpxx' to @ppllibs@
without any gmp library search path.
For those of you who stumbled over this bug report by utilizing your favourite
search engine:
A quick fix is to give
--with-ppl="<ppl_dir> -L<gmp_dir>/lib"
to configure.
BTW: On systems with a shared libppl, libgmpxx is not needed as it is pulled in
via DT_NEEDED.
--
Summary: gmp in nonstandard-location results in '-lgmpxx: not
found'
Product: gcc
Version: 4.5.1
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: bootstrap
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: nicolai dot stange at zmaw dot de
GCC build triplet: sparc-sun-solaris2.10
GCC host triplet: sparc-sun-solaris2.10
GCC target triplet: sparc-sun-solaris2.10
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45554
^ permalink raw reply [flat|nested] 2+ messages in thread
* [Bug bootstrap/45554] -lgmpxx is before GMPLIB for graphite
2010-09-06 10:51 [Bug bootstrap/45554] New: gmp in nonstandard-location results in '-lgmpxx: not found' nicolai dot stange at zmaw dot de
@ 2010-09-09 23:55 ` pinskia at gcc dot gnu dot org
0 siblings, 0 replies; 2+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2010-09-09 23:55 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from pinskia at gcc dot gnu dot org 2010-09-09 23:55 -------
Confirmed.
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Keywords| |build
Last reconfirmed|0000-00-00 00:00:00 |2010-09-09 23:55:32
date| |
Summary|gmp in nonstandard-location |-lgmpxx is before GMPLIB for
|results in '-lgmpxx: not |graphite
|found' |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45554
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-09-09 23:55 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-09-06 10:51 [Bug bootstrap/45554] New: gmp in nonstandard-location results in '-lgmpxx: not found' nicolai dot stange at zmaw dot de
2010-09-09 23:55 ` [Bug bootstrap/45554] -lgmpxx is before GMPLIB for graphite pinskia at gcc dot gnu dot 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).