[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
C compiler cannot create executables
From: |
Lee Duke |
Subject: |
C compiler cannot create executables |
Date: |
Tue, 18 Apr 2006 09:09:54 +0000 |
First, I'm new to the Gnu Autotools. I've looked through the archives
and if there is something in there relevant to this problem, I either
could not find it or didn't understand it.
Second, I'm running Fedora 4 with the latest updates. The version
numbers for the various programs are:
(GCC) 4.0.2 20051125 (Red Hat 4.0.2-8)
autoconf (GNU Autoconf) 2.5
Both were installed using yum and rpms--that is to say, I didn't put
anything in any weird places.
I'm getting an error with configure wherever I try it. What's really
strange--to me, anyway--is the configure function worked before I made
some upgrade, but I'm not sure which one caused it.
Okay.
CONFIGURE.IN
AC_INIT(pi.c)
dnl find and test the C compiler
(_AC_COMPILER_EXEEXT_WORKS)
(_AC_COMPILER_EXEEXT_CROSS)
(_AC_COMPILER_EXEEXT)
AC_PROG_CC
AC_LANG_C
AC_PROG_MAKE_SET
AC_HEADER_STDC
AC_CHECK_FUNC(atol,,AC_MSG_ERROR(oops! no atol ?!?))
VERSION="0.0.1"
AC_SUBST(VERSION)
dnl read Makefile.in and write Makefile
AC_OUTPUT(Makefile)
ERROR MESSAGES:
$ ./configure
checking whether the C compiler works... configure: error:
cannot run C compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details.
checking whether we are cross compiling... no
checking for C compiler default output file name... configure:
error: C compiler cannot create executables
See `config.log' for more details.
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.
Relevant CONFIG.LOG information:
## ----------- ##
## Core tests. ##
## ----------- ##
configure:1253: checking whether the C compiler works
configure:1259: ./
./configure: line 1260: ./: is a directory
configure:1262: $? = 126
configure:1271: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details.
configure:1284: checking whether we are cross compiling
configure:1286: result: no
configure:1309: checking for C compiler default output file name
configure:1312: conftest.c :/usr/lib >&5
./configure: line 1313: conftest.c: command not found
configure:1315: $? = 127
configure: failed program was:
| /* confdefs.h. */
|
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| /* end confdefs.h. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:1354: error: C compiler cannot create executables
See `config.log' for more details.
configure:1488: checking for gcc
configure:1504: found /usr/bin/gcc
configure:1514: result: gcc
configure:1758: checking for C compiler version
configure:1761: gcc --version </dev/null >&5
gcc (GCC) 4.0.2 20051125 (Red Hat 4.0.2-8)
Copyright (C) 2005 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:1764: $? = 0
configure:1766: gcc -v </dev/null >&5
Using built-in specs.
Target: i386-redhat-linux
Configured with: ../configure --prefix=/usr
--mandir=/usr/share/man --infodir=/usr/share/info
--enable-shared --enable-threads=posix --enable-checking=release
--with-system-zlib --enable-__cxa_atexit
--disable-libunwind-exceptions --enable-libgcj-multifile
--enable-languages=c,c++,objc,java,f95,ada --enable-java-awt=gtk
--with-java-home=/usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/jre
--host=i386-redhat-linux
Thread model: posix
gcc version 4.0.2 20051125 (Red Hat 4.0.2-8)
configure:1769: $? = 0
configure:1771: gcc -V </dev/null >&5
gcc: '-V' option must have argument
configure:1774: $? = 1
configure:1797: checking for C compiler default output file name
configure:1800: gcc conftest.c :/usr/lib >&5
gcc: :/usr/lib: No such file or directory
configure:1803: $? = 1
configure: failed program was:
| /* confdefs.h. */
|
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| /* end confdefs.h. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:1842: error: C compiler cannot create executables
Otherwise, gcc and g++ work fine.
Thanks for your help.
Lee Duke
- C compiler cannot create executables,
Lee Duke <=