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
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/ginstall -c
checking for -p flag to install... yes
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for kde-config... /usr/bin/kde-config
checking where to install... /usr (as returned by kde-config)
checking for style of include used by make... GNU
checking for gcc... gcc
checking for C compiler default output file name... configure: error: C compiler cannot create executables
See `config.log' for more details.
Excerpt from config.log:
Code:
configure:3189: result: gcc
configure:3427: checking for C compiler version
configure:3434: gcc --version >&5
gcc (GCC) 4.1.2
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
configure:3437: $? = 0
configure:3444: gcc -v >&5
Reading specs from /usr/lib/gcc/i486-slackware-linux/4.1.2/specs
Target: i486-slackware-linux
Configured with: ../gcc-4.1.2/configure --prefix=/usr --enable-shared --enable-languages=ada,c,c++,fortran,java,objc --enable-threads=posix
--enable-__cxa_atexit --disable-checking --with-gnu-ld --verbose --with-arch=i486 --target=i486-slackware-linux --host=i486-slackware-linux
Thread model: posix
gcc version 4.1.2
configure:3447: $? = 0
configure:3454: gcc -v >&5
Reading specs from /usr/lib/gcc/i486-slackware-linux/4.1.2/specs
Target: i486-slackware-linux
Configured with: ../gcc-4.1.2/configure --prefix=/usr --enable-shared --enable-languages=ada,c,c++,fortran,java,objc --enable-threads=posix
--enable-__cxa_atexit --disable-checking --with-gnu-ld --verbose --with-arch=i486 --target=i486-slackware-linux --host=i486-slackware-linux
Thread model: posix
gcc version 4.1.2
configure:3457: $? = 0
configure:3480: checking for C compiler default output file name
configure:3507: gcc conftest.c >&5
/usr/lib/gcc/i486-slackware-linux/4.1.2/../../../../i486-slackware-linux/bin/ld:/usr/lib/gcc/i486-slackware-linux/4.1.2/../../../libc.so: fi
le format not recognized; treating as linker script
/usr/lib/gcc/i486-slackware-linux/4.1.2/../../../../i486-slackware-linux/bin/ld:/usr/lib/gcc/i486-slackware-linux/4.1.2/../../../libc.so:5:
parse error
collect2: ld returned 1 exit status
configure:3510: $? = 1
configure: failed program was:
| /* confdefs.h. */
This is the "C compiler cannot create executables" error that there are a lot of threads on (eg
http://www.linuxquestions.org/questi...readid=321150). Most seem to have distro specific fixes in them though.
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
is issued.
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
/usr/lib/gcc/i486-slackware-linux/4.1.2/../../../../i486-slackware-linux/bin/ld:/usr/lib/gcc/i486-slackware-linux/4.1.2/../../../libc.so: file format not recognized; treating as linker script
/usr/lib/gcc/i486-slackware-linux/4.1.2/../../../../i486-slackware-linux/bin/ld:/usr/lib/gcc/i486-slackware-linux/4.1.2/../../../libc.so:5: parse error
collect2: ld returned 1 exit status
Code:
user@hostname:ll `locate libc.so`
lrwxrwxrwx 1 root root 11 2007-04-16 00:34 /lib/libc.so.6 -> libc-2.5.so*
lrwxrwxrwx 1 root root 13 2007-01-24 00:16 /lib/obsolete/tls/libc.so.6 -> libc-2.3.6.so*
-rw-r--r-- 1 root root 238 2006-12-21 19:51 /usr/lib/libc.so
Any thoughts on how to proceed?