gcc-4.8.1 with mingw, [configure-stage1-target-libstdc++-v3] error: GCC_NO_EXECUTABLES

Felix fnems.cqu@gmail.com
Sun Aug 18 05:13:00 GMT 2013


Hi there
I'm trying to build gcc-4.8.1 with mingw. the configuration is:

export CPP=/mingw/bin/cpp
export C_INCLUDE_PATH=/mingw/include
export CPLUS_INCLUDE_PATH=/mingw/include
../configure \
--prefix=/mingw/gcc-4.8.1 \
--with-gmp=/mingw/gcc-4.8.1 \
--with-mpfr=/mingw/gcc-4.8.1 \
--with-mpc=/mingw/gcc-4.8.1 \
--enable-languages=c,c++ \
--enable-threads \
--enable-lto \
--disable-shared \
--disable-build-poststage1-with-cxx \
--disable-win32-registry

then the error occures.
the last lines in config.log (under
[build-dir]/i686-pc-mingw32/libstdc++-v3 ) is:

configure:20520: checking for wchar.h
configure:20520: result: yes
configure:20520: checking for wctype.h
configure:20520: result: yes
configure:20550: checking for ld used by
/f/res_mygcc/gcc-4.8.1/build-20130818/./gcc/xgcc
-B/f/res_mygcc/gcc-4.8.1/build-20130818/./gcc/
-L/f/res_mygcc/gcc-4.8.1/build-20130818/i686-pc-mingw32/winsup/mingw
-L/f/res_mygcc/gcc-4.8.1/build-20130818/i686-pc-mingw32/winsup/w32api/lib
-isystem /f/res_mygcc/gcc-4.8.1/winsup/mingw/include -isystem
/f/res_mygcc/gcc-4.8.1/winsup/w32api/include
-B/mingw/gcc-4.8.1/i686-pc-mingw32/bin/
-B/mingw/gcc-4.8.1/i686-pc-mingw32/lib/ -isystem
/mingw/gcc-4.8.1/i686-pc-mingw32/include -isystem
/mingw/gcc-4.8.1/i686-pc-mingw32/sys-include
configure:20617: result: /f/res_mygcc/gcc-4.8.1/build-20130818/./gcc/collect-ld
configure:20624: checking if the linker
(/f/res_mygcc/gcc-4.8.1/build-20130818/./gcc/collect-ld) is GNU ld
configure:20639: result: yes
configure:20676: checking for ld version
configure:20687: result: 22200
configure:20714: checking for ld that supports -Wl,--gc-sections
configure:20717: error: Link tests are not allowed after GCC_NO_EXECUTABLES.


I tried to perform the last check by running the command, and the result:

Fnems@Fnems-Oak ~
$ /f/res_mygcc/gcc-4.8.1/build-20130818/./gcc/collect-ld -Wl,--gc-sections
D:\MinGW2012\mingw32\bin\ld.exe: unrecognized option '-Wl,--gc-sections'
D:\MinGW2012\mingw32\bin\ld.exe: use the --help option for usage information

anyone can help me ?
I've no idea what caused this error...

Thanks for any help



More information about the Gcc-help mailing list