This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Error while building gcc: Link tests are not allowed after GCC_NO_EXECUTABLES
- From: Anmol Sarma <unmole dot in at gmail dot com>
- To: gcc-help at gcc dot gnu dot org
- Date: Wed, 21 Mar 2012 13:06:35 +0530
- Subject: Error while building gcc: Link tests are not allowed after GCC_NO_EXECUTABLES
I'm trying to build GCC 4.6.3 but I get the following error when I invoke make:
checking for library containing strerror... configure: error: Link
tests are not allowed after GCC_NO_EXECUTABLES.
make[2]: *** [configure-stage2-libiberty] Error 1
make[2]: Leaving directory `/media/LFS/build/gcc'
make[1]: *** [stage2-bubble] Error 2
make[1]: Leaving directory `/media/LFS/build/gcc'
make: *** [all] Error 2
I tried to configure with "--with-system-zlib" but got the same error.
The zlib config.log has this:
conftest.c:11:28: fatal error: ac_nonexistent.h: No such file or directory
compilation terminated.
configure:6654: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| #define PACKAGE "zlib"
| #define VERSION "1.1.4"
| /* end confdefs.h. */
| #include <ac_nonexistent.h>
What's going here?
--
Anmol Sarma