Wilkes, John
2016-06-25 05:23:05 UTC
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!
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 | ***@amd.com | office: +1 425.586.6412 (x26412)
John Wilkes | AMD Research | ***@amd.com | office: +1 425.586.6412 (x26412)