Hi, I am building a toolchain for my arm11 target. I am reading this version of book: Cross-Compiled Linux From Scratch - Sysroot - Version SVN-0.0.1-20090726-ARM
The host is a fedora kde 11, on Intel core 2 duo 2.4 Ghz. The target is an ARM1136JF-S. Here the env command from clfs user: ======================================= clfs:~$ env CLFS_HOST=i386-cross-linux-gnu TERM=xterm CLFS_TARGET=arm-unknown-linux-gnu LC_ALL=POSIX CLFS=/mnt/clfs PATH=/mnt/clfs/cross-tools/bin:/bin:/usr/bin PWD=/home/clfs PS1=\u:\w\$ SHLVL=1 HOME=/home/clfs _=/bin/env ======================================= The problem is in section 5.12, gcc cross-compiler final. I do the configure then: make AS_FOR_TARGET="${CLFS_TARGET}-as" \ LD_FOR_TARGET="${CLFS_TARGET}-ld" after few minutes, i obtain: ======================================================================== 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... i386-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... /mnt/clfs/cross-tools/arm-unknown-linux-gnu/bin/strip checking for arm-unknown-linux-gnu-gcc... /mnt/clfs/sources/gcc-build/./gcc/xgcc -B/mnt/clfs/sources/gcc-build/./gcc/ -B/mnt/clfs/cross-tools/arm-unknown-linux-gnu/bin/ -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 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 ======================================================================== the config.log in gcc-build is: ======================================================================== This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. It was created by configure, which was generated by GNU Autoconf 2.59. Invocation command line was $ ../gcc-4.4.1/configure --prefix=/mnt/clfs/cross-tools --build=i386-cross-linux-gnu --host=i386-cross-linux-gnu --target=arm-unknown-linux-gnu --disable-multilib --with-sysroot=/mnt/clfs --disable-nls --enable-shared --enable-languages=c,c++ --enable-__cxa_atexit --with-mpfr=/mnt/clfs/cross-tools --with-gmp=/mnt/clfs/cross-tools --with-ppl=/mnt/clfs/cross-tools --with-cloog=/mnt/clfs/cross-tools --enable-c99 --enable-long-long --enable-threads=posix ## --------- ## ## Platform. ## ## --------- ## hostname = linuxbox.home uname -m = i686 uname -r = 2.6.30.9-96.fc11.i586 uname -s = Linux uname -v = #1 SMP Tue Nov 3 23:33:04 EST 2009 /usr/bin/uname -p = unknown /bin/uname -X = unknown /bin/arch = i686 /usr/bin/arch -k = unknown /usr/convex/getsysinfo = unknown hostinfo = unknown /bin/machine = unknown /usr/bin/oslevel = unknown /bin/universe = unknown PATH: /mnt/clfs/cross-tools/bin PATH: /bin PATH: /usr/bin ## ----------- ## ## Core tests. ## ## ----------- ## configure:1563: checking build system type configure:1581: result: i386-cross-linux-gnu configure:1616: checking host system type configure:1630: result: i386-cross-linux-gnu configure:1638: checking target system type configure:1652: result: arm-unknown-linux-gnu configure:1696: checking for a BSD-compatible install configure:1762: result: /usr/bin/install -c configure:1773: checking whether ln works configure:1795: result: yes configure:1799: checking whether ln -s works configure:1803: result: yes configure:2964: checking for i386-cross-linux-gnu-gcc configure:2993: result: no configure:3002: checking for gcc configure:3018: found /usr/bin/gcc configure:3028: result: gcc configure:3274: checking for C compiler version configure:3277: gcc --version </dev/null >&5 gcc (GCC) 4.4.1 20090725 (Red Hat 4.4.1-2) Copyright (C) 2009 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. configure:3280: $? = 0 configure:3282: gcc -v </dev/null >&5 Using built-in specs. Target: i586-redhat-linux Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-bootstrap --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-languages=c,c++,objc,obj-c++,java,fortran,ada --enable-java-awt=gtk --disable-dssi --enable-plugin --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-1.5.0.0/jre --enable-libgcj-multifile --enable-java-maintainer-mode --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --disable-libjava-multilib --with-ppl --with-cloog --with-tune=generic --with-arch=i586 --build=i586-redhat-linux Thread model: posix gcc version 4.4.1 20090725 (Red Hat 4.4.1-2) (GCC) configure:3285: $? = 0 configure:3287: gcc -V </dev/null >&5 gcc: '-V' option must have argument configure:3290: $? = 1 configure:3313: checking for C compiler default output file name configure:3316: gcc -Wl,-rpath,/mnt/clfs/cross-tools/lib conftest.c >&5 configure:3319: $? = 0 configure:3367: result: a.out configure:3372: checking whether the C compiler works configure:3378: ./a.out configure:3381: $? = 0 configure:3400: result: yes configure:3407: checking whether we are cross compiling configure:3409: result: no configure:3412: checking for suffix of executables configure:3414: gcc -o conftest -Wl,-rpath,/mnt/clfs/cross-tools/lib conftest.c >&5 configure:3417: $? = 0 configure:3444: result: configure:3450: checking for suffix of object files configure:3471: gcc -c conftest.c >&5 configure:3474: $? = 0 configure:3498: result: o configure:3502: checking whether we are using the GNU C compiler configure:3526: gcc -c conftest.c >&5 configure:3532: $? = 0 configure:3536: test -z || test ! -s conftest.err configure:3539: $? = 0 configure:3542: test -s conftest.o configure:3545: $? = 0 configure:3558: result: yes configure:3564: checking whether gcc accepts -g configure:3585: gcc -c -g conftest.c >&5 configure:3591: $? = 0 configure:3595: test -z || test ! -s conftest.err configure:3598: $? = 0 configure:3601: test -s conftest.o configure:3604: $? = 0 configure:3615: result: yes configure:3632: checking for gcc option to accept ANSI C configure:3702: gcc -c -g -O2 conftest.c >&5 configure:3708: $? = 0 configure:3712: test -z || test ! -s conftest.err configure:3715: $? = 0 configure:3718: test -s conftest.o configure:3721: $? = 0 configure:3739: result: none needed configure:3757: gcc -c -g -O2 conftest.c >&5 conftest.c:2: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'me' configure:3763: $? = 1 configure: failed program was: | #ifndef __cplusplus | choke me | #endif ========================================================================================= And the config.log in libgomp ========================================================================================= This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. It was created by GNU OpenMP Runtime Library configure 1.0, which was generated by GNU Autoconf 2.59. Invocation command line was $ /mnt/clfs/sources/gcc-4.4.1/libgomp/configure --cache-file=./config.cache --with-cross-host=i386-cross-linux-gnu --prefix=/mnt/clfs/cross-tools --disable-multilib --with-sysroot=/mnt/clfs --disable-nls --enable-shared --enable-__cxa_atexit --with-mpfr=/mnt/clfs/cross-tools --with-gmp=/mnt/clfs/cross-tools --with-ppl=/mnt/clfs/cross-tools --with-cloog=/mnt/clfs/cross-tools --enable-c99 --enable-long-long --enable-threads=posix --enable-languages=c,c++ --program-transform-name=s,^,arm-unknown-linux-gnu-, --with-target-subdir=arm-unknown-linux-gnu --build=i386-cross-linux-gnu --host=arm-unknown-linux-gnu --target=arm-unknown-linux-gnu --srcdir=../../../gcc-4.4.1/libgomp ## --------- ## ## Platform. ## ## --------- ## hostname = linuxbox.home uname -m = i686 uname -r = 2.6.30.9-96.fc11.i586 uname -s = Linux uname -v = #1 SMP Tue Nov 3 23:33:04 EST 2009 /usr/bin/uname -p = unknown /bin/uname -X = unknown /bin/arch = i686 /usr/bin/arch -k = unknown /usr/convex/getsysinfo = unknown hostinfo = unknown /bin/machine = unknown /usr/bin/oslevel = unknown /bin/universe = unknown PATH: /mnt/clfs/cross-tools/bin PATH: /bin PATH: /usr/bin ## ----------- ## ## Core tests. ## ## ----------- ## configure:1407: creating cache ./config.cache configure:1516: checking for --enable-version-specific-runtime-libs configure:1533: result: no configure:1541: checking for --enable-generated-files-in-srcdir configure:1558: result: no configure:1621: checking build system type configure:1639: result: i386-cross-linux-gnu configure:1647: checking host system type configure:1661: result: arm-unknown-linux-gnu configure:1669: checking target system type configure:1683: result: arm-unknown-linux-gnu configure:1725: checking for a BSD-compatible install configure:1791: result: /usr/bin/install -c configure:1802: checking whether build environment is sane configure:1845: result: yes configure:1910: checking for gawk configure:1926: found /bin/gawk configure:1936: result: gawk configure:1946: checking whether make sets $(MAKE) configure:1966: result: yes configure:2042: checking for arm-unknown-linux-gnu-strip configure:2068: result: /mnt/clfs/cross-tools/arm-unknown-linux-gnu/bin/strip configure:2220: checking for arm-unknown-linux-gnu-gcc configure:2246: result: /mnt/clfs/sources/gcc-build/./gcc/xgcc -B/mnt/clfs/sources/gcc-build/./gcc/ -B/mnt/clfs/cross-tools/arm-unknown-linux-gnu/bin/ -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 configure:2530: checking for C compiler version configure:2533: /mnt/clfs/sources/gcc-build/./gcc/xgcc -B/mnt/clfs/sources/gcc-build/./gcc/ -B/mnt/clfs/cross-tools/arm-unknown-linux-gnu/bin/ -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 --version </dev/null >&5 xgcc (GCC for Cross-LFS 4.4.1.20090722) 4.4.1 Copyright (C) 2009 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. configure:2536: $? = 0 configure:2538: /mnt/clfs/sources/gcc-build/./gcc/xgcc -B/mnt/clfs/sources/gcc-build/./gcc/ -B/mnt/clfs/cross-tools/arm-unknown-linux-gnu/bin/ -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 >&5 Reading specs from /mnt/clfs/sources/gcc-build/./gcc/specs Target: arm-unknown-linux-gnu Configured with: ../gcc-4.4.1/configure --prefix=/mnt/clfs/cross-tools --build=i386-cross-linux-gnu --host=i386-cross-linux-gnu --target=arm-unknown-linux-gnu --disable-multilib --with-sysroot=/mnt/clfs --disable-nls --enable-shared --enable-languages=c,c++ --enable-__cxa_atexit --with-mpfr=/mnt/clfs/cross-tools --with-gmp=/mnt/clfs/cross-tools --with-ppl=/mnt/clfs/cross-tools --with-cloog=/mnt/clfs/cross-tools --enable-c99 --enable-long-long --enable-threads=posix Thread model: posix gcc version 4.4.1 (GCC for Cross-LFS 4.4.1.20090722) configure:2541: $? = 0 configure:2543: /mnt/clfs/sources/gcc-build/./gcc/xgcc -B/mnt/clfs/sources/gcc-build/./gcc/ -B/mnt/clfs/cross-tools/arm-unknown-linux-gnu/bin/ -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 >&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: /mnt/clfs/sources/gcc-build/./gcc/xgcc -B/mnt/clfs/sources/gcc-build/./gcc/ -B/mnt/clfs/cross-tools/arm-unknown-linux-gnu/bin/ -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_BUGREPORT "" | #define PACKAGE "libgomp" | #define VERSION "1.0" | /* end confdefs.h. */ | | int | main () | { | | ; | return 0; | } configure:2613: error: in `/mnt/clfs/sources/gcc-build/arm-unknown-linux-gnu/libgomp': configure:2616: error: C compiler cannot create executables See `config.log' for more details. ======================================================================================= Any help is appreciated, best regards --- Adriano Pallavicino
_______________________________________________ Clfs-dev mailing list Clfs-dev@lists.cross-lfs.org http://lists.cross-lfs.org/listinfo.cgi/clfs-dev-cross-lfs.org