<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">The problem is in the book. It says to apply <span class="Apple-style-span" style="color: rgb(16, 19, 16); line-height: 19px; white-space: pre; "><font class="Apple-style-span" face="Monaco" size="3"><span class="Apple-style-span" style="font-size: 11px;">gcc-4.4.1-branch_update-1.patch </span><font class="Apple-style-span" face="Helvetica" size="3"><span class="Apple-style-span" style="font-size: 12px;">but on repository there are many others patch to apply. If you apply them, it will compile correctly. Best regards</span></font></font></span><div><font class="Apple-style-span" color="#101310"><span class="Apple-style-span" style="line-height: 19px; white-space: pre;"><br></span></font></div><div><font class="Apple-style-span" face="Monaco" size="3"><font class="Apple-style-span" face="Helvetica" size="3"><span class="Apple-style-span" style="font-size: 12px;"></span></font></font><font class="Apple-style-span" color="#101310"><span class="Apple-style-span" style="line-height: 19px; white-space: pre;">Adriano<br></span></font><div><br></div><div><div>Il giorno 11/dic/2009, alle ore 14.40, Joe Ciccone ha scritto:</div><br class="Apple-interchange-newline"><blockquote type="cite">
<div 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>
</div>

_______________________________________________<br>Clfs-dev mailing list<br><a href="mailto:Clfs-dev@lists.cross-lfs.org">Clfs-dev@lists.cross-lfs.org</a><br>http://lists.cross-lfs.org/listinfo.cgi/clfs-dev-cross-lfs.org<br></blockquote></div><br></div></body></html>