Hi, here is what I have done (on my UBUNTU 11.04 host, which has
build-essential installed, and is meeting "lfs 6.8 host system requirements"
lfs@ubuntulu:/mnt/lfs/sources/gcc-build$ ../gcc-4.5.2/configure \
> --target=$LFS_TGT --prefix=/tools \
> --disable-nls --disable-shared --disable-multilib \
> --disable-decimal-float --disable-threads \
> --disable-libmudflap --disable-libssp \
> --disable-libgomp --enable-languages=c \
> --with-gmp-include=$(pwd)/gmp --with-gmp-lib=$(pwd)/gmp/.libs \
> --without-ppl --without-cloog
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-lfs-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether ln works... yes
checking whether ln -s works... yes
checking for a sed that does not truncate output... /bin/sed
checking for gawk... gawk
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... *????? yes/no or what ??????*
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking
.
.
checking for libelf/gelf.h... no *!!!!!!!!!!!*
*** This configuration is not supported in the following subdirectories:
target-libada gnattools target-libstdc++-v3 target-libgfortran
target-libffi target-zlib target-libjava target-libobjc target-libgomp
target-libmudflap target-libssp target-boehm-gc
(Any other directories should still work fine.) *???? any relevance
????*
checking whether to enable maintainer-specific portions of Makefiles... no
checking whether -fkeep-inline-functions is supported... yes
configure: creating ./config.status
config.status: creating Makefile
lfs@ubuntulu:/mnt/lfs/sources/gcc-build$make
...
...
...
checking for i686-lfs-linux-gnu-strip... i686-lfs-linux-gnu-strip
checking whether ln -s works... yes
checking for i686-lfs-linux-gnu-gcc...
/mnt/lfs/sources/gcc-build/./gcc/xgcc
-B/mnt/lfs/sources/gcc-build/./gcc/ -B/tools/i686-lfs-linux-gnu/bin/
-B/tools/i686-lfs-linux-gnu/lib/ -isystem
/tools/i686-lfs-linux-gnu/include -isystem
/tools/i686-lfs-linux-gnu/sys-include
checking for suffix of object files... configure: error: in
`/mnt/lfs/sources/gcc-build/i686-lfs-linux-gnu/libgcc':
configure: error: cannot compute suffix of object files: cannot compile
See `config.log' for more details.
make[1]: *** [configure-target-libgcc] Error 1
make[1]: Leaving directory `/mnt/lfs/sources/gcc-build'
make: *** [all] Error 2
lfs@ubuntulu:/mnt/lfs/sources/gcc-build$
*config.log* excerpts:
...
configure:6049: gcc -E conftest.c *??????*
conftest.c:10:28: fatal error: ac_nonexistent.h: No such file or directory
compilation terminated. *??????*
...
configure:6475: gcc -c -g -O2 -I/usr/include/libelf
-I/usr/include/libelf conftest.c >&5
conftest.c:53: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. */
...
configure:6475: checking libelf.h presence
configure:6475: gcc -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>
...
configure:6487: checking gelf.h presence
configure:6487: gcc -E -I/usr/include/libelf conftest.c
conftest.c:20:18: fatal error: gelf.h: No such file or directory
compilation terminated.
...
configure:6500: gcc -c -g -O2 -I/usr/include/libelf
-I/usr/include/libelf conftest.c >&5
conftest.c:53:27: fatal error: libelf/libelf.h: No such file or directory
compilation terminated.
...
configure:6500: checking for libelf/libelf.h
configure:6500: result: no
configure:6512: checking libelf/gelf.h usability
configure:6512: gcc -c -g -O2 -I/usr/include/libelf
-I/usr/include/libelf conftest.c >&5
conftest.c:53:25: fatal error: libelf/gelf.h: No such file or directory
compilation terminated.
...
| #include <libelf/gelf.h>
configure:6512: result: no
configure:6512: checking libelf/gelf.h presence
configure:6512: gcc -E -I/usr/include/libelf conftest.c
conftest.c:20:25: fatal error: libelf/gelf.h: No such file or directory
compilation terminated.
...
configure: exit 0
So, header files ac_nonexistent.h libelf.h gelf.h libelf/libelf.h
libelf/gelf.h are missing.......
I am at a loss - will appreciate any and all suggestions
--
Dipl. Ing. Franz L. Kuhlmann
Mitteranger 34
82418 Murnau
--
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page