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
lf-latest/lib -Wl,-R/pf/m/m222086/xas/solaris10/gcc/cloog-ppl-latest/lib
gcc/mpc-latest/lib -Wl,-R/pf/m/m222086/xas/solaris10/gcc/mpfr-latest/lib
pf/m/m222086/xas/solaris10/gcc/gmp-latest/lib  -o cc1-dummy c-lang.o
 attribs.o c-errors.o c-lex.o c-pragma.o c-decl.o c-typeck.o c-convert.o
nfo.o c-common.o c-opts.o c-format.o c-semantics.o c-ppoutput.o c-cppbuiltin.o
-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/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

           Summary: gmp in nonstandard-location results in '-lgmpxx: not
           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

Reply via email to