This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
How to get gcc-2.95.2 to use binutils?
- To: gcc-help at gcc dot gnu dot org
- Subject: How to get gcc-2.95.2 to use binutils?
- From: Mark Crosland <mjc at c1000907-b dot sttls1 dot wa dot home dot com>
- Date: Sun, 14 Jan 2001 11:48:25 -0800 (PST)
I tried building binutils with GCC but couldn't quite get it to work. I am
trying to get gcc to use as/ld that come with binutils to get around an as
problem oon Solaris 5.6.
- unpack gcc-2.95.2.tar.gz
- unpack binutils-2.10.1 in a different directory
- made softlinks from bfd, binutils, gas, gprof, opcodes and ld into the
top of the gcc-2.95.2/ source tree
- ran configure in gcc-2.95.2/objdir, it configures the 6 binutils
directories
../configure
--prefix=/homedir/markc/sw/gcc-2.95.2
--enable-threads
--enable-shared
--enable-languages=c++
--with-gnu-as
--with-gnu-ld
- then
make CFLAGS='-O' LIBCFLAGS='-g -O2' LIBCXXFLAGS='-g -O2 -fno-implicit-templates' bootstrap-lean
very soon into the build I get
gcc -DHAVE_CONFIG_H -I. -I../../binutils -I. -D_GNU_SOURCE -I. -I../../binutils
-I../bfd -I../../binutils/../bfd -I../../binutils/../include -I../../binutils/.
./intl -I../intl -DLOCALEDIR="\"/homedir/markc/sw/gcc-2.95.2/share/locale\""
-O -c underscore.c
/bin/sh ./libtool --mode=link gcc -O -o cxxfilt cplus-dem.o underscore.o ../
libiberty/libiberty.a
gcc -O -o cxxfilt cplus-dem.o underscore.o ../libiberty/libiberty.a
Undefined first referenced
symbol in file
cplus_demangle_new_abi cplus-dem.o
ld: fatal: Symbol referencing errors. No output written to cxxfilt
collect2: ld returned 1 exit status
make[3]: *** [cxxfilt] Error 1
make[3]: Leaving directory
`/homedir/markc/sw/gcc-2.95.2/gcc-2.95.2/objdir/binutils'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/homedir/markc/sw/gcc-2.95.2/gcc-2.95.2/objdir/binutils'
make[1]: *** [all-recursive-am] Error 2
make[1]: Leaving directory `/homedir/markc/sw/gcc-2.95.2/gcc-2.95.2/objdir/binutils'
make: *** [all-binutils] Error 2
Seems like the libiberty and include dirs that come with binutils are much
more recent that those that come with gcc-2.95.2?
Any clues as to what I need to link/move from binutils into the gcc tree
to get gcc to use binutils gas/ld/???
Mark,