can't compile; configure won't complete: "C compiler cannot create executables"
Ok I've tried to compile a couple of things (kaffeine, kipi-plugins) now after upgrading to gcc-4.1.2 and nothing gets past the configure:
Error in console: Code:
user@hostname:/usr/local/kaffeine-0.8.3$ ./configure Code:
configure:3189: result: gcc I've tried, clearing LDFLAGS (nothing was set). Looking blankly at /etc/ld.so.conf (seemed fine to me and as you can see in the output the system is finding the 4.1.2 files). I've also tried reinstalling glibc-*.tgz packages. Looking at the "configure" script the problem arises when the command Code:
gcc -V </dev/null >&5 Running gcc -V requires a number (eg 4.1.2). I've also tried compiling a "hello world" that I found in another thread but this fails too: Code:
gcc test.c -o test Code:
user@hostname:ll `locate libc.so` Any thoughts on how to proceed? |
Did you cherry pick gcc 4 from current? If yes, try upgrading the rest of your toolchain from current (glibc, binutils, headers) ... and probably the rest of the system too =)
If you self-compiled gcc: did you run the test suites after compilation? - Piete. |
I took gcc-4 and glibc-* and also upgrade binutils, and quite a lot of other stuff from current.
I didn't upgrade the headers, but then I've read elsewhere that this isn't a good idea (I'm running a self-compiled 2.6.16.13 kernel). I've not gone the whole hog as I don't want to upgrade any Xorg stuff (which usually causes me problems). |
I'm an idiot, I hadn't actually updated binutils ... whoops there goes a day I'll never get back again.
|
I was having the same problem on my Gentoo system. The box was very outdated so I had to manually update gcc from a precompiled package but even after doing that it would not "emerge gcc" to update the system using portage. I finally stumbled upon this after a couple of days that I also needed to update binutils from the latest precompiled package also.
Tips for updating old Gentoo systems. http://blog.jolexa.net/2009/03/25/ge...-installation/ Code:
cd Code:
eselect binutils list |
This is Slackware forum, we do not care about Gentoo... and please do not resurrect a thread that has been dead for three and a half year!
Eric |
All times are GMT -5. The time now is 06:40 AM. |