This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

How to get gcc-2.95.2 to use binutils?




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,


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]