LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (http://www.linuxquestions.org/questions/programming-9/)
-   -   Link tests are not allowed after GCC_NO_EXECUTABLES! (http://www.linuxquestions.org/questions/programming-9/link-tests-are-not-allowed-after-gcc_no_executables-941791/)

Zssfssz 04-26-2012 02:40 AM

Link tests are not allowed after GCC_NO_EXECUTABLES!
 
This is honestly the farthest in the gcc build prosess I have gotten to in a while, but I'm still rosted.
Here ya go:
Code:

checking whether the /home/todd/lang/gcc-build/./gcc/xgcc -B/home/todd/lang/gcc-build/./gcc/ -B/usr/local/lang/i586-elf/bin/ -B/usr/local/lang/i586-elf/lib/ -isystem /usr/local/lang/i586-elf/include -isystem /usr/local/lang/i586-elf/sys-include    linker (/home/todd/lang/gcc-build/./gcc/collect-ld) supports shared libraries... 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
make[1]: Leaving directory `/home/todd/lang/gcc-build'
make: *** [all] Error 2

Now the stuff I found On This On google was outdated and had no clear fix path.
Ubuntu 11.10 (12.04 Tomarrow!) AMD64
Building GCC 4.6.3 Cross Compileing To i586-elf (Like Ususal)
Binutils 2.22
--disable-shared and --disable-nls used on both configure scripts.
How can I clean up this mess?

orgcandman 04-27-2012 12:06 PM

Quote:

Originally Posted by Zssfssz (Post 4663252)
...
Building GCC 4.6.3 Cross Compileing To i586-elf (Like Ususal)
...
How can I clean up this mess?

First - why are you building i586? gcc that comes with ubuntu should have multilib support, and should produce 32-bit code via -m32?

Second - that error indicates that you didn't tell the compiler what platform it should be targeting. Without that information, the compiler will complain that it cannot link executables (which is the behavior you're seeing).

Third - Check out the linux from scratch documentation for information on building an i586 cross compiler


All times are GMT -5. The time now is 04:12 PM.