gcc-4.6.2-RC-20111019 build problem in stage 2

Eric Botcazou ebotcazou@adacore.com
Tue Oct 25 14:27:00 GMT 2011


>   cc1-checksum.o main.o  libbackend.a ../libcpp/libcpp.a
> ../libdecnumber/libdecnumber.a ../libcpp/libcpp.a ./../intl/libintl.a
> ../libiberty/libiberty.a ../libdecnumber/libdecnumber.a
> -L/opt/bw/lib/sparcv8 -L/opt/bw/lib/sparcv8 -L/opt/bw/lib/sparcv8 -lmpc
> -lmpfr -lgmp -ldl  -L../zlib -lz
> Undefined                       first referenced
>  symbol                             in file
> libiconv_close                      libbackend.a(pretty-print.o)
> libiconv_open                       libbackend.a(pretty-print.o)
> libiconv                            libbackend.a(pretty-print.o)
> ld: fatal: Symbol referencing errors. No output written to cc1

This is one of the most reported problems over the last decade, see bugzilla.

> I don't see a -liconv there and that would be a problem.

Presumably because the configure test passed without it.

> Did I miss something here ?

This usually means that the libiconv installation is botched, e.g. the compiler 
sees a mix of GNU libiconv and Solaris libiconv, or something like that.

-- 
Eric Botcazou



More information about the Gcc mailing list