Build error on Solaris 10 (libiconv messages)

Dr. David Kirkby david.kirkby@onetel.net
Sun Jun 21 00:24:00 GMT 2009


I'm trying to build gcc 4.4.0 on a sun Blade 2000 running Solaris 10 
update 6.

  $ uname -a
SunOS kestrel 5.10 Generic_139555-08 sun4u sparc SUNW,Sun-Blade-1000 Solaris

The compiler I'm tyring to use to build gcc 4.4.0 is gcc 3.4.3 which is 
installed in /usr/sfw/bin.

drkirkby@kestrel:[~] $ /usr/sfw/bin/gcc -v
Reading specs from /usr/sfw/lib/gcc/sparc-sun-solaris2.10/3.4.3/specs
Configured with: 
/sfw10/builds/build/sfw10-patch/usr/src/cmd/gcc/gcc-3.4.3/configure 
--prefix=/usr/sfw --with-as=/usr/ccs/bin/as --without-gnu-as 
--with-ld=/usr/ccs/bin/ld --without-gnu-ld --enable-languages=c,c++ 
--enable-shared
Thread model: posix
gcc version 3.4.3 (csl-sol210-3_4-branch+sol_rpath)


I particularly want to use both the Sun linker and assembler, not the 
GNU ones, so linked as below.

   $ ../gcc-4.4.0/configure CC=/usr/sfw/bin/gcc 
--prefix=/export/home/drkirkby/install-gcc-4.4.0-Sun-as-ld 
--with-as=/usr/ccs/bin/as --without-gnu-as --with-ld=/usr/ccs/bin/ld 
--without-gnu-ld --enable-languages=c,c++,fortran 
--with-mpfr-include=/export/home/drkirkby/install-mpfr-2.3.1/include 
--with-mpfr-lib=/export/home/drkirkby/install-mpfr-2.3.1/lib 
--with-gmp-include=/export/home/drkirkby/install-gmp-4.3.1/include 
--with-gmp-lib=/export/home/drkirkby/install-gmp-4.3.1/lib --disable-nls

(I've tried both with and without the --disable-nls, but it made no 
difference).

I get the following errors, which mention libiconv. As far as I can 
tell, having that is not a prequisite (or at least it is not listed as 
one at

http://gcc.gnu.org/install/prerequisites.html


make[3]: Leaving directory 
`/export/home/drkirkby/build-gcc-4.4.0-Sun-as-ld/build-sparc-sun-solaris2.10/libiberty'
make[3]: Entering directory 
`/export/home/drkirkby/build-gcc-4.4.0-Sun-as-ld/build-sparc-sun-solaris2.10/fixincludes'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory 
`/export/home/drkirkby/build-gcc-4.4.0-Sun-as-ld/build-sparc-sun-solaris2.10/fixincludes'
make[3]: Entering directory 
`/export/home/drkirkby/build-gcc-4.4.0-Sun-as-ld/libcpp'
test -f config.h || (rm -f stamp-h1 && make stamp-h1)
make[3]: Leaving directory 
`/export/home/drkirkby/build-gcc-4.4.0-Sun-as-ld/libcpp'
make[3]: Entering directory 
`/export/home/drkirkby/build-gcc-4.4.0-Sun-as-ld/libdecnumber'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory 
`/export/home/drkirkby/build-gcc-4.4.0-Sun-as-ld/libdecnumber'
make[3]: Entering directory 
`/export/home/drkirkby/build-gcc-4.4.0-Sun-as-ld/gcc'
/usr/sfw/bin/gcc  -g -fkeep-inline-functions -DIN_GCC   -W -Wall 
-Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wcast-qual 
-Wold-style-definition -Wmissing-format-attribute -fno-common 
-DHAVE_CONFIG_H  -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-info.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 
../libiberty/libiberty.a ../libdecnumber/libdecnumber.a 
-L/export/home/drkirkby/install-gmp-4.3.1/lib 
-L/export/home/drkirkby/install-mpfr-2.3.1/lib -lmpfr -lgmp
Undefined                       first referenced
  symbol                             in file
libiconv_close                      ../libcpp/libcpp.a(charset.o)
libiconv_open                       ../libcpp/libcpp.a(charset.o)
libiconv                            ../libcpp/libcpp.a(charset.o)
ld: fatal: Symbol referencing errors. No output written to cc1-dummy
collect2: ld returned 1 exit status
make[3]: *** [cc1-dummy] Error 1
make[3]: Leaving directory 
`/export/home/drkirkby/build-gcc-4.4.0-Sun-as-ld/gcc'
make[2]: *** [all-stage1-gcc] Error 2
make[2]: Leaving directory `/export/home/drkirkby/build-gcc-4.4.0-Sun-as-ld'
make[1]: *** [stage1-bubble] Error 2
make[1]: Leaving directory `/export/home/drkirkby/build-gcc-4.4.0-Sun-as-ld'
make: *** [all] Error 2

Any ideas how I might solve this?






More information about the Gcc-help mailing list