LFS GCC-4.4.3 Pass 2 failure

Alexey Chernov 4ernov at gmail.com
Thu Feb 11 11:45:41 PST 2010


Hello,
I try to build toolchain according to LFS development book (SVN-20100201), 
everything seems to go ok until I build temporary GCC-4.4.3 Pass 2. Build 
fails prompting to the console:

Checking multilib configuration for libgomp...
mkdir -p -- x86_64-unknown-linux-gnu/libgomp
Configuring in x86_64-unknown-linux-gnu/libgomp
configure: creating cache ./config.cache
checking for --enable-version-specific-runtime-libs... no
checking for --enable-generated-files-in-srcdir... no
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for x86_64-unknown-linux-gnu-gcc... /usr/src/toolchain2/gcc-
build/./gcc/xgcc -B/usr/src/toolchain2/gcc-build/./gcc/ -
B/usr/src/tools/x86_64-unknown-linux-gnu/bin/ -B/usr/src/tools/x86_64-unknown-
linux-gnu/lib/ -isystem /usr/src/tools/x86_64-unknown-linux-gnu/include -
isystem /usr/src/tools/x86_64-unknown-linux-gnu/sys-include
checking for C compiler default output file name... a.out
checking whether the C compiler works... configure: error: in 
`/usr/src/toolchain2/gcc-build/x86_64-unknown-linux-gnu/libgomp':
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-libgomp] Error 1
make[1]: Leaving directory `/usr/src/toolchain2/gcc-build'
make: *** [all] Error 2

config.log in x86_64-unknown-linux-gnu/libgomp end with something like this:

configure:2536: $? = 0
configure:2538: /usr/src/toolchain2/gcc-build/./gcc/xgcc -
B/usr/src/toolchain2/gcc-build/./gcc/ -B/usr/src/tools/x86_64-unknown-linux-
gnu/bin/ -B/usr/src/tools/x86_64-unknown-linux-gnu/lib/ -isystem 
/usr/src/tools/x86_64-unknown-linux-gnu/include -isystem 
/usr/src/tools/x86_64-unknown-linux-gnu/sys-include -v </dev/null >&5
Reading specs from /usr/src/toolchain2/gcc-build/./gcc/specs
Target: x86_64-unknown-linux-gnu
Configured with: ../gcc-4.4.3/configure --prefix=/usr/src/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
Thread model: posix
gcc version 4.4.3 (GCC)
configure:2541: $? = 0
configure:2543: /usr/src/toolchain2/gcc-build/./gcc/xgcc -
B/usr/src/toolchain2/gcc-build/./gcc/ -B/usr/src/tools/x86_64-unknown-linux-
gnu/bin/ -B/usr/src/tools/x86_64-unknown-linux-gnu/lib/ -isystem 
/usr/src/tools/x86_64-unknown-linux-gnu/include -isystem 
/usr/src/tools/x86_64-unknown-linux-gnu/sys-include -V </dev/null >&5
xgcc: '-V' must come at the start of the command line
configure:2546: $? = 1
configure:2569: checking for C compiler default output file name
configure:2572: /usr/src/toolchain2/gcc-build/./gcc/xgcc -
B/usr/src/toolchain2/gcc-build/./gcc/ -B/usr/src/tools/x86_64-unknown-linux-
gnu/bin/ -B/usr/src/tools/x86_64-unknown-linux-gnu/lib/ -isystem 
/usr/src/tools/x86_64-unknown-linux-gnu/include -isystem 
/usr/src/tools/x86_64-unknown-linux-gnu/sys-include -g -O2     conftest.c  >&5
configure:2575: $? = 0
configure:2623: result: a.out
configure:2628: checking whether the C compiler works
configure:2634: ./a.out
/usr/src/toolchain2/gcc-4.4.3/libgomp/configure: line 2635: ./a.out: No such 
file or directory
configure:2637: $? = 127
configure:2644: error: in `/usr/src/toolchain2/gcc-build/x86_64-unknown-linux-
gnu/libgomp':
configure:2648: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details.

Also, if to cd to the directory and execute configure script from config.log:

/usr/src/toolchain2/gcc-4.4.3/libgomp/configure --cache-file=./config.cache --
prefix=/usr/src/tools --with-local-prefix=/tools --enable-clocale=gnu --enable-
shared --enable-threads=posix --enable-__cxa_atexit --disable-libstdcxx-pch --
disable-multilib --disable-bootstrap --enable-languages=c,c++ --program-
transform-name=s,y,y, --with-target-subdir=x86_64-unknown-linux-gnu --
build=x86_64-unknown-linux-gnu --host=x86_64-unknown-linux-gnu --
target=x86_64-unknown-linux-gnu --srcdir=../../../gcc-4.4.3/libgomp

everything configures ok in this dir, but if I start `make` in the gcc-build it 
fails again with similar error for libstdc++, libiberty etc. Even if to 
configure all of them manually it start to compile a little but then fails with 
loads of errors.

The host system is pure64 x86_64 LFS with gcc-4.3.2 glibc-2.8 and 
binutils-2.18.

Could someone help me with this problem? Maybe I do something wrong or 
there're differences to book for 64-bit system?

Thank you in advance,
Alexey Chernov



More information about the lfs-support mailing list