a***@ducksburg.ca.us
2008-03-27 19:39:35 UTC
Just a question on a weird behaviour of C compiler.
If I'm off place, please give the right place where I can post.
Why C compiler cannot create executables (both as root and as user) ?
-------------------------------------------------
Running configure for building software, I was stymied since I got this:
-------------------------------------------------
checking for gcc... gcc
checking for C compiler default output... configure: error: C compiler
cannot create executables
See `config.log' for more details.
-------------------------------------------------------
And in config.log I found:
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:2029: $? = 0
configure:2031: gcc -v </dev/null >&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!
Thread model: posix
gcc version 4.1.2
configure:2034: $? = 0
configure:2036: gcc -V </dev/null >&5
gcc: '-V' option must have argument
configure:2039: $? = 1
configure:2063: checking for C compiler default output
configure:2066: gcc conftest.c >&5
/usr/lib/gcc/i486-slackware-linux/4.1.2/../../../crt1.o(.text+0xc): In
functio!
: undefined reference to `__libc_csu_fini'
/usr/lib/gcc/i486-slackware-linux/4.1.2/../../../crt1.o(.text+0x11): In
functi!
: undefined reference to `__libc_csu_init'
collect2: ld returned 1 exit status
configure:2069: $? = 1
configure: failed program was:
| #line 2042 "configure"
| /* confdefs.h. */
|
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE "goben"
| #define VERSION "0.1.1"
| /* end confdefs.h. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:2108: error: C compiler cannot create executables
See `config.log' for more details.
**********************************************************
Thanks for any reply or suggestion,
Aku Ankka
If I'm off place, please give the right place where I can post.
Why C compiler cannot create executables (both as root and as user) ?
-------------------------------------------------
Running configure for building software, I was stymied since I got this:
-------------------------------------------------
checking for gcc... gcc
checking for C compiler default output... configure: error: C compiler
cannot create executables
See `config.log' for more details.
-------------------------------------------------------
And in config.log I found:
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:2029: $? = 0
configure:2031: gcc -v </dev/null >&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!
Thread model: posix
gcc version 4.1.2
configure:2034: $? = 0
configure:2036: gcc -V </dev/null >&5
gcc: '-V' option must have argument
configure:2039: $? = 1
configure:2063: checking for C compiler default output
configure:2066: gcc conftest.c >&5
/usr/lib/gcc/i486-slackware-linux/4.1.2/../../../crt1.o(.text+0xc): In
functio!
: undefined reference to `__libc_csu_fini'
/usr/lib/gcc/i486-slackware-linux/4.1.2/../../../crt1.o(.text+0x11): In
functi!
: undefined reference to `__libc_csu_init'
collect2: ld returned 1 exit status
configure:2069: $? = 1
configure: failed program was:
| #line 2042 "configure"
| /* confdefs.h. */
|
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE "goben"
| #define VERSION "0.1.1"
| /* end confdefs.h. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:2108: error: C compiler cannot create executables
See `config.log' for more details.
**********************************************************
Thanks for any reply or suggestion,
Aku Ankka