[Clfs-support] error at cross compiler final stage

Grzegorz Myszkier grzegorz.myszkier at gmail.com
Fri Sep 25 05:30:33 PDT 2009


I'd like to ask for help. Here's a problem:

clfs book: sysroot SVN-0.0.1-20090726 for ARM
chapter: 5.12. GCC-4.4.1 - Cross Compiler Final
command: make AS_FOR_TARGET="${CLFS_TARGET}-as"
few variables:

CLFS_TARGET = arm-unknown-linux-gnu
CLFS_HOST = i486-cross-linux-gnu

error message:

Checking multilib configuration for libgomp...
mkdir -p -- arm-unknown-linux-gnu/libgomp
Configuring in arm-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... i486-cross-linux-gnu
checking host system type... arm-unknown-linux-gnu
checking target system type... arm-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 arm-unknown-linux-gnu-strip...
checking for arm-unknown-linux-gnu-gcc...
-B/mnt/clfs/cross-tools/arm-unknown-linux-gnu/lib/ -isystem
/mnt/clfs/cross-tools/arm-unknown-linux-gnu/include -isystem
checking for C compiler default output file name... configure: error:
in `/mnt/clfs/sources/gcc-build/arm-unknown-linux-gnu/libgomp':
configure: error: C compiler cannot create executables
See `config.log' for more details.
make[1]: *** [configure-target-libgomp] Error 1
make[1]: Leaving directory `/mnt/clfs/sources/gcc-build'
make: *** [all] Error 2

I looked into /mnt/clfs/sources/gcc-build/arm-unknown-linux-gnu/libgomp/config.log
. Here's a fragment of this file:

configure:2543: /mnt/clfs/sources/gcc-build/./gcc/xgcc
-B/mnt/clfs/cross-tools/arm-unknown-linux-gnu/lib/ -isystem
/mnt/clfs/cross-tools/arm-unknown-linux-gnu/include -isystem
/mnt/clfs/cross-tools/arm-unknown-linux-gnu/sys-include -V </dev/null
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: /mnt/clfs/sources/gcc-build/./gcc/xgcc
-B/mnt/clfs/cross-tools/arm-unknown-linux-gnu/lib/ -isystem
/mnt/clfs/cross-tools/arm-unknown-linux-gnu/include -isystem
/mnt/clfs/cross-tools/arm-unknown-linux-gnu/sys-include -g -O2
conftest.c  >&5
/mnt/clfs/sources/gcc-build/./gcc/cc1: error while loading shared
libraries: /mnt/clfs/sources/gcc-build/./gcc/libgcc_s.so.1: ELF file
OS ABI invalid
configure:2575: $? = 1
configure: failed program was:
| /* confdefs.h.  */
| #define PACKAGE_NAME "GNU OpenMP Runtime Library"
| #define PACKAGE_TARNAME "libgomp"
| #define PACKAGE_VERSION "1.0"
| #define PACKAGE_STRING "GNU OpenMP Runtime Library 1.0"
| #define PACKAGE "libgomp"
| #define VERSION "1.0"
| /* end confdefs.h.  */
| int
| main ()
| {
|   ;
|   return 0;
| }
configure:2613: error: in
configure:2616: error: C compiler cannot create executables
See `config.log' for more details.

What should i try now to compile gcc correctly?

Regards, GM

More information about the Clfs-support mailing list