error building gcc w/ newlib

Wilkes, John John.Wilkes@amd.com
Sat Jun 25 05:23:00 GMT 2016


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)



More information about the Newlib mailing list