Help! GCC 4.5.1 pass 2 compilation failed.

frank.zhu at spx.com frank.zhu at spx.com
Wed Mar 2 06:17:02 PST 2011


Hi,

I was following LFS book & source version 6.7.  Completed steps before 
step 5.10.
In 5.10, I need compile Gcc - pass 2. Got a fatal error "ac_nonexistent.h 
no such file or directory", details please see config.log below,

  $ ../gcc-4.5.1/configure --prefix=/tools --with-local-prefix=/tools 
--enable-clocale=gnu --enable-shared --enable-threads=posix 
--enable-__cxa_atexit --enable-languages=c,c++ --disable-libstdcxx-pch 
--disable-multilib --disable-bootstrap --disable-libgomp 
--with-gmp-include=/mnt/lfs/sources/gcc-build/gmp 
--with-gmp-lib=/mnt/lfs/sources/gcc-build/gmp/.libs --without-ppl 
--without-cloog

## --------- ##
## Platform. ##
## --------- ##

hostname = lfslivecd
uname -m = i686
uname -r = 2.6.22.5
uname -s = Linux
uname -v = #1 SMP Sat Dec 29 22:40:37 GMT 2007

/usr/bin/uname -p = unknown
/bin/uname -X     = unknown

/bin/arch              = i686
/usr/bin/arch -k       = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo      = unknown
/bin/machine           = unknown
/usr/bin/oslevel       = unknown
/bin/universe          = unknown

PATH: /tools/bin
PATH: /bin
PATH: /usr/bin

...

conftest.c:10:28: fatal error: ac_nonexistent.h: No such file or directory
compilation terminated.
configure:6049: $? = 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 LT_OBJDIR ".libs/"
| /* end confdefs.h.  */
| #include <ac_nonexistent.h>

...

configure:6475: i686-lfs-linux-gnu-gcc -B/tools/lib/ -E 
-I/usr/include/libelf conftest.c
conftest.c:20:20: fatal error: libelf.h: No such file or directory
compilation terminated.
configure:6475: $? = 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 LT_OBJDIR ".libs/"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| /* end confdefs.h.  */
| #include <libelf.h>

...
conftest.c:53:18: fatal error: gelf.h: No such file or directory
compilation terminated.
...
conftest.c:20:18: fatal error: gelf.h: No such file or directory
compilation terminated.
...
conftest.c:53:27: fatal error: libelf/libelf.h: No such file or directory
compilation terminated.
...


Make error message:
...
mkdir: created directory `../gcc-build'
*** This configuration is not supported in the following subdirectories:
     target-libada gnattools target-libgfortran target-libffi target-zlib 
target-libjava target-libobjc target-libgomp target-boehm-gc
    (Any other directories should still work fine.)
configure: WARNING: fixed-point is not supported for this target
Links are now set up to build a native compiler for i686-pc-linux-gnu.
...
configure: error: in 
`/mnt/lfs/sources/gcc-build/i686-pc-linux-gnu/libstdc++-v3':
configure: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details.
make[1]: *** [configure-target-libstdc++-v3] Error 1
make: *** [all] Error 2


Thanks for your help!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxfromscratch.org/pipermail/lfs-support/attachments/20110302/b742afda/attachment.html>


More information about the lfs-support mailing list