This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Building GCC 5.3.0 and binutils 2.26


I'm not sure if this belongs on the GCC mailing list or the binutils
list, so sorry if I've got it wrong.

I'm trying to build GCC 5.3 and binutils 2.26 together on Ubuntu 14.04
using the system-supplied GCC 4.8 and binutils 2.24.  I've done this:

$ pwd
/home/teamcity
$ mkdir -p gcc/build
$ mkdir -p gcc/dist
$ cd gcc
$ tar xf ~/gcc-5.3.0.tar.bz2
$ tar xf ~/binutils-2.26.tar.bz2
$ cd gcc-5.3.0
$ contrib/download_prerequisites
$ for file in ../binutils-2.26/* ; do ln -s "${file}"; done
$ ./configure --prefix=/home/teamcity/gcc/dist --disable-multilib
--with-system-zlib --enable-languages=c,c++,fortran
--program-suffix=-mine
$ make

This builds the stage 1 compiler without errors, but then configuring
intl in the stage 2 build fails with this:

checking for x86_64-unknown-linux-gnu-gcc...
/home/teamcity/gcc/build/./prev-gcc/xgcc
-B/home/teamcity/gcc/build/./prev-gcc/
-B/home/teamcity/gcc/dist/x86_64-unknown-linux-gnu/bin/
-B/home/teamcity/gcc/dist/x86_64-unknown-linux-gnu/bin/
-B/home/teamcity/gcc/dist/x86_64-unknown-linux-gnu/lib/ -isystem
/home/teamcity/gcc/dist/x86_64-unknown-linux-gnu/include -isystem
/home/teamcity/gcc/dist/x86_64-unknown-linux-gnu/sys-include
-L/home/teamcity/gcc/build/./ld
checking for C compiler default output file name...
configure: error: in `/home/teamcity/gcc/build/intl':
configure: error: C compiler cannot create executables
See `config.log' for more details.

The relevant bit of config.log appears to be this:

configure:2978: checking for C compiler default output file name
configure:3000:  /home/teamcity/gcc/build/./prev-gcc/xgcc
-B/home/teamcity/gcc/build/./prev-gcc/
-B/home/teamcity/gcc/dist/x86_64-unknown-linux-gnu/bin/
-B/home/teamcity/gcc/dist/x86_64-unknown-linux-gnu/bin/
-B/home/teamcity/gcc/dist/x86_64-unknown-linux-gnu/lib/ -isystem
/home/teamcity/gcc/dist/x86_64-unknown-linux-gnu/include -isystem
/home/teamcity/gcc/dist/x86_64-unknown-linux-gnu/sys-include
-L/home/teamcity/gcc/build/./ld    -g -O2 -gtoggle  -static-libstdc++
-static-libgcc  conftest.c  >&5
/home/teamcity/gcc/build/./prev-gcc/as: 106: exec:
/home/teamcity/gcc/build/./gas/as-new: not found

This is not that surprising as as-new has been built in
prev-gas/as-new, not in gas/as-new.

Building either GCC or binutils separately works, but then I can't
figure out how to get the built GCC to use the built binutils - it
always ends up using the system ld, for instance.

Am i doing something wrong?

Thanks for any help,
Tom


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