discuss-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: gcc problem


From: Thomas Gamper
Subject: Re: gcc problem
Date: Wed, 02 Sep 2009 21:23:34 +0200
User-agent: Thunderbird 2.0.0.23 (X11/20090817)

Another hint:
http://wiki.blastwave.org/forum/viewtopic.php?f=7&t=5

Looks like you need rahter actual GNU binutils, 2.18 or 2.19.

Cheers
TOM

Riccardo Mottola schrieb:
Hi,

checking whether the C compiler works... configure: error: cannot run C compiled programs.

This one is familiar. I had this problem while trying to compile GCC in /tmp on a cluster. The partition was mounted with the noexecute flag. You need to make sure that you are building GCC somewhere where it can emit binary files that they can run. The cross-compile line is a red herring; one common cause for this problem is if you are building a cross compiler the host probably won't be able to run binaries compiled for the target system.

I am building gcc in /usr/src as root and it can do there whatever it wants!? I don't wantto build a cross-compiler. Is this the default? How can I switch that off in the ../configure line:

../configure --with-gnu-as --with-as=/usr/sfw/bin/gas --without-gnu-ld --with-ld=/usr/ccs/bin/ld --enable-shared --disable-nls --enable-languages=c,c++,objc
I used to do quite some gcc compiles to have gcc on some of my less-mainstream platforms.

It is painful. And every gcc past 3.2 has become a pain in the ass. 4.1 was the last one which I got to at least build up to the end on most of my computer. The newest ones are very terrible.

I remember when the gcj guy used to compile and test on my SMP-sparc32 :)

anyway, using non gnu linkers and assemblers is usually a lost battle. Especially mixing them, like you are trying to do. The unfortunate thing is that gnu as and ld are not always the best on the platform of choice...

Also, which compiler are you using to bootstrap? latest gcc 4.x series work only with gcc 3.2 and newer.

Check on the sun freeware site, there are the configure options for their packages.

Just give it a try with the gnu linker.

Riccardo


_______________________________________________
Discuss-gnustep mailing list
Discuss-gnustep@gnu.org
http://lists.gnu.org/mailman/listinfo/discuss-gnustep





reply via email to

[Prev in Thread] Current Thread [Next in Thread]