bootstrap/6969: [sparc-solaris2.8] can't build gcc-3.1 with binutils-2.12.1: configure-target-libiberty decides newly built compiler 'doesn't work'

Niki Waibel niki.waibel@newlogic.com
Wed Mar 12 10:52:00 GMT 2003


On 11-Mar-2003 ebotcazou@gcc.gnu.org wrote:
> Synopsis: [sparc-solaris2.8] can't build gcc-3.1 with binutils-2.12.1: configure-target-libiberty
> decides newly built compiler
> 'doesn't work'
> 
> State-Changed-From-To: open->feedback
> State-Changed-By: ebotcazou
> State-Changed-When: Tue Mar 11 16:51:49 2003
> State-Changed-Why:
>     Could you try to pass --disable-multilib to the configure script?
> 
> http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=6969

huh - this is very long time ago.
now i use gcc-3.2.2 and binutils-2.13.2.1 on solaris8.
everything works fine if i do:
nwaibel@blade100-1 ~/compile $ unset CFLAGS
nwaibel@blade100-1 ~/compile $ unset CXXFLAGS
nwaibel@blade100-1 ~/compile $ unset CPPFLAGS
nwaibel@blade100-1 ~/compile $ unset LDFLAGS
nwaibel@blade100-1 ~/compile $ unset LD_LIBRARY_PATH
nwaibel@blade100-1 ~/compile $ mkdir gcc_comp
nwaibel@blade100-1 ~/compile $ cd gcc_comp/
nwaibel@blade100-1 ~/compile/gcc_comp $ ../gcc-3.2.2/configure \
> --with-gnu-as \
> --with-as=as \
> --with-gnu-ld \
> --with-ld=ld \
> --prefix=/misc/sparc-sun-solaris2.8/opt/gcc/3.2.2 \
> --disable-shared \
> --enable-languages=all \
> --disable-nls \
> --with-cpu=ultrasparc

have found this compilation comments for 3.1 in my docu:
# ``--with-gnu-as'' and ``--with-gnu-ld'' are VERY important.
# without these options gcc thinks that ``as'' and ``ld'' are
# from sun --> bootstrap failes ...
# (see gcc.gnu.org / gnats / id: 6969)
#
# ``unset LD_LIBRARY_PATH'' is also important.
# otherwise gcc might not find the 64bit libs if LD_LIBRARY_PATH
# is not set to the 64bit dirs also.
# so better compile without it!

the gnu as and ld are used by setting the PATH var pointing to them.
i also always move /usr/ccs/bin/as and /usr/ccs/bin/ls to some
other place to make sure that the gnu tools are used.

i know for sure that there were troubles with binutils-2.13.
but that is another topic (and anyway the troubles are gone
with 2.13.2.1). there is also a problem with g++ (3.2.2)
on solaris when using wchar_t (../src/.libs/libid3.so: undefined
reference to std::char_traits<wchar_t>::compare(wchar_t
const*, wchar_t const*, unsigned) that happens during compilation
of id3lib-3.8.3/examples. but that is also another kind
of problem...

-->
the problem was solved for me by unsetting LD_LIBRARY_PATH and
using the config options --with-gnu-as --with-as=as --with-gnu-ld
--with-ld=ld (and PATH pointing to gnu as and ld).

i dont think that it is necessary that i recompile by using
--disable-multilib...

happy coding, niki
-- 
niki w. waibel - system administrator @ newlogic technologies ag



More information about the Gcc-bugs mailing list