[Clfs-dev] error at cross compiler final stage

Joe Ciccone jciccone at gmail.com
Fri Dec 11 05:40:52 PST 2009


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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.clfs.org/pipermail/clfs-dev-clfs.org/attachments/20091211/7ad1bae1/attachment.html>


More information about the Clfs-dev mailing list