This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug bootstrap/45554] New: gmp in nonstandard-location results in '-lgmpxx: not found'
- From: "nicolai dot stange at zmaw dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 6 Sep 2010 10:51:38 -0000
- Subject: [Bug bootstrap/45554] New: gmp in nonstandard-location results in '-lgmpxx: not found'
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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