This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
error building gcc w/ newlib
- From: "Wilkes, John" <John dot Wilkes at amd dot com>
- To: "newlib at sourceware dot org" <newlib at sourceware dot org>
- Cc: "Wilkes, John" <John dot Wilkes at amd dot com>
- Date: Sat, 25 Jun 2016 05:23:05 +0000
- Subject: error building gcc w/ newlib
- Authentication-results: sourceware.org; auth=none
- Authentication-results: spf=none (sender IP is ) smtp dot mailfrom=John dot Wilkes at amd dot com;
- Spamdiagnosticmetadata: NSPM
- Spamdiagnosticoutput: 1:99
I am trying to build a tool chain for embedded x86_64 development, and I get this error when building gcc with newlib:
checking for shl_load... configure: error: Link tests are not allowed after GCC_NO_EXECUTABLES
First I build binutils-2.26:
export TARGET=x86-pc-elf
export PREFIX=$HOME/tools/cross-compiler
export PATH=$PATH:$PREFIX/bin
../binutils-2.26/configure --target=$TARGET --prefix=$PREFIX
make all
make install
Then I build a bootstrap gcc:
../gcc-6.1.0/configure --target=$TARGET --prefix=$PREFIX --disable-nls --enable-languages=c --without-headers --with-newlib
make all-gcc
make install-gcc
Then I build newlib:
../newlib-2.4.0/configure --target=$TARGET --prefix=$PREFIX --enable-newlib-nano-formatted-io --disable-multilib --disable-shared
make
make install
Then I build gcc again with newlib:
../gcc-6.1.0/configure --target=$TARGET --prefix=$PREFIX --with-system-zlib --disable-shared --enable-languages=c,c++
make
And this is where I get the error:
checking for shl_load... configure: error: Link tests are not allowed after GCC_NO_EXECUTABLES.
Makefile:11152: recipe for target 'configure-target-libstdc++-v3' failed
Apparently it is complaining about a shared library test. The --disable-shared configuration option does not disable the test.
There are lots of reports of this problem, but few proposed solutions, none of which have worked for me.
Any help is very much appreciated!
--
John Wilkes | AMD Research | john.wilkes@amd.com | office: +1 425.586.6412 (x26412)