<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html; charset=ISO-8859-1"
 http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
On 11/30/2009 08:08 AM, Adriano Pallavicino wrote:
<blockquote
 cite="mid:7fd1f5930911300508h7386358fs3bddbb91abe1ead@mail.gmail.com"
 type="cite">
  <pre><font size="4">Hi, 
I am building a toolchain for my arm11 target.
I am reading this version of book: </font>Cross-Compiled Linux From Scratch - Sysroot - Version SVN-0.0.1-20090726-ARM
  </pre>
The host is a fedora kde 11, on Intel core 2 duo 2.4 Ghz.<br>
The target is an ARM1136JF-S.<br>
  <br>
Here the env command from clfs user:<br>
=======================================<br>
clfs:~$ env<br>
CLFS_HOST=i386-cross-linux-gnu<br>
TERM=xterm<br>
CLFS_TARGET=arm-unknown-linux-gnu<br>
LC_ALL=POSIX<br>
CLFS=/mnt/clfs<br>
PATH=/mnt/clfs/cross-tools/bin:/bin:/usr/bin<br>
PWD=/home/clfs<br>
PS1=\u:\w\$<br>
SHLVL=1<br>
HOME=/home/clfs<br>
_=/bin/env<br>
======================================= <br>
The problem is in section 5.12, gcc cross-compiler final.<br>
I do the configure then:<br>
  <pre wrap=""><kbd class="command">make AS_FOR_TARGET="${CLFS_TARGET}-as" \
    LD_FOR_TARGET="${CLFS_TARGET}-ld"</kbd>

  </pre>
</blockquote>
<snip><br>
<blockquote
 cite="mid:7fd1f5930911300508h7386358fs3bddbb91abe1ead@mail.gmail.com"
 type="cite">
  <pre wrap="">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<font
 size="4">

Any help is appreciated, best regards</font>

  </pre>
</blockquote>
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.<br>
</body>
</html>