The problem is in the book. It says to apply gcc-4.4.1-branch_update-1.patch but on repository there are many others patch to apply. If you apply them, it will compile correctly. Best regards
Adriano Il giorno 11/dic/2009, alle ore 14.40, Joe Ciccone ha scritto: > On 11/30/2009 08:08 AM, Adriano Pallavicino wrote: >> >> 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" >> >> > <snip> >> 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 >> >> Any help is appreciated, best regards >> >> > The build is currently broken when using a 32bit host system. Please either > use a 64bit host system or build a static final cross-compiler. The problem > is in the way the Makefile sets LD_LIBRARY_PATH. I haven't had a chance to > sit down and figure this one out yet. I'm fairly certain that this bug > affects all 3 books, std, sysroot, and embedded. I've seen other people with > the same error while building a sparc64 toolchain from x86_64. > _______________________________________________ > Clfs-dev mailing list > Clfs-dev@lists.cross-lfs.org > http://lists.cross-lfs.org/listinfo.cgi/clfs-dev-cross-lfs.org
_______________________________________________ Clfs-dev mailing list Clfs-dev@lists.cross-lfs.org http://lists.cross-lfs.org/listinfo.cgi/clfs-dev-cross-lfs.org