version: 4.9.1 host compiler: gcc-4.8.2 host OS: Ubuntu 14.04 target: lm32-unknown-elf
Here's the problem I see: tm@tm-VirtualBox:~/lm32-toolchain/lm32-gcc$ ../gcc-4.9.1/configure --prefix=/home/tm/bin --target=lm32-uclibc-elf --enable-languges=c ; make ... checking if /home/tm/lm32-toolchain/lm32-gcc/./gcc/xgcc -B/home/tm/lm32-toolchain/lm32-gcc/./gcc/ -B/home/tm/bin/lm32-uclibc-elf/bin/ -B/home/tm/bin/lm32-uclibc-elf/lib/ -isystem /home/tm/bin/lm32-uclibc-elf/include -isystem /home/tm/bin/lm32-uclibc-elf/sys-include supports -c -o file.o... (cached) yes checking whether the /home/tm/lm32-toolchain/lm32-gcc/./gcc/xgcc -B/home/tm/lm32-toolchain/lm32-gcc/./gcc/ -B/home/tm/bin/lm32-uclibc-elf/bin/ -B/home/tm/bin/lm32-uclibc-elf/lib/ -isystem /home/tm/bin/lm32-uclibc-elf/include -isystem /home/tm/bin/lm32-uclibc-elf/sys-include linker (/home/tm/lm32-toolchain/lm32-gcc/./gcc/collect-ld) supports shared libraries... yes checking whether -lc should be explicitly linked in... yes checking dynamic linker characteristics... no checking how to hardcode library paths into programs... immediate checking for shl_load... configure: error: Link tests are not allowed after GCC_NO_EXECUTABLES. make[1]: *** [configure-target-libstdc++-v3] Error 1