Hi forum!<br><br>I am trying to build a custom cross-toolchain for my ARM920T S3C2440 following step by step all the useful information explained on the book:<br><br>  ==> <a href="http://cross-lfs.org/view/clfs-embedded/arm/">http://cross-lfs.org/view/clfs-embedded/arm/</a><br>
<br>I have succesfully compiled and installed on the cross-environ:<br>  - gmp-5.0.1<br>  - mpfr-3.0.0<br>  - mpc-0.8.2<br>  - binutils-2.21<br>  - gcc-4.5.2<br><br>but the uClibc compilation with 'make' fails at some linking stage. <br>
All the needed information to track that isssue is attached. <br><br>* Version of the book being used: CLFS Embedded GIT-0.0.1-20110323<br><br>* Host distribution: [Ubuntu 9.04 _Jaunty Jackalope_ - Release i386 (20090420.1)]<br>
<br>* Host architecture:<br>$ cat /proc/cpuinfo <br>processor    : 0<br>vendor_id    : GenuineIntel<br>cpu family    : 6<br>model        : 23<br>model name    : Pentium(R) Dual-Core  CPU      E5300  @ 2.60GHz<br>stepping    : 10<br>
cpu MHz        : 2602.168<br>cache size    : 2048 KB<br>physical id    : 0<br>siblings    : 2<br>core id        : 0<br>cpu cores    : 2<br>apicid        : 0<br>initial apicid    : 0<br>fdiv_bug    : no<br>hlt_bug        : no<br>
f00f_bug    : no<br>coma_bug    : no<br>fpu        : yes<br>fpu_exception    : yes<br>cpuid level    : 13<br>wp        : yes<br>flags        : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx lm constant_tsc arch_perfmon pebs bts pni dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm xsave lahf_lm tpr_shadow vnmi flexpriority<br>
bogomips    : 5204.33<br>clflush size    : 64<br>power management:<br><br>processor    : 1<br>vendor_id    : GenuineIntel<br>cpu family    : 6<br>model        : 23<br>model name    : Pentium(R) Dual-Core  CPU      E5300  @ 2.60GHz<br>
stepping    : 10<br>cpu MHz        : 2602.168<br>cache size    : 2048 KB<br>physical id    : 0<br>siblings    : 2<br>core id        : 1<br>cpu cores    : 2<br>apicid        : 1<br>initial apicid    : 1<br>fdiv_bug    : no<br>
hlt_bug        : no<br>f00f_bug    : no<br>coma_bug    : no<br>fpu        : yes<br>fpu_exception    : yes<br>cpuid level    : 13<br>wp        : yes<br>flags        : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx lm constant_tsc arch_perfmon pebs bts pni dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm xsave lahf_lm tpr_shadow vnmi flexpriority<br>
bogomips    : 5204.51<br>clflush size    : 64<br>power management:<br><br><br>* Target architecture:<br>$ cat /proc/cpuinfo <br>Processor    : ARM920T rev 0 (v4l)<br>BogoMIPS    : 199.47<br>Features    : swp half thumb <br>
CPU implementer    : 0x41<br>CPU architecture: 4T<br>CPU variant    : 0x1<br>CPU part    : 0x920<br>CPU revision    : 0<br><br>Hardware    : BDC2440<br>Revision    : 0000<br>Serial        : 0000000000000000<br><br><br>* Environ variables for the 'clfs' user:<br>
<br>$ env | grep CLFS<br>CLFS_HOST=i486-cross-linux-gnu<br>CLFS_TARGET=armv4-linux-uclibc<br>CLFS_ARM_ARCH=armv4t<br>CLFS_ARM_MODE=arm<br>CLFS=/opt/GNU-CPT/<br>CLFS_ARCH=arm<br>CLFS_ABI=apcs-gnu<br>CLFS_ENDIAN=little<br>CLFS_FLOAT=soft<br>
<br><br>* Package or section in which the problem was encountered: section 6.11. uClibc-0.9.31<br><br>* Steps to reproduce the problem (following all the steps in the previous book section):<br><br>$ wget <a href="http://www.uclibc.org/downloads/uClibc-0.9.31.tar.bz2">http://www.uclibc.org/downloads/uClibc-0.9.31.tar.bz2</a><br>
$ wget <a href="http://patches.cross-lfs.org/embedded-dev/uClibc-0.9.31-configs-2.patch">http://patches.cross-lfs.org/embedded-dev/uClibc-0.9.31-configs-2.patch</a><br>$ tar xvfj uClibc-0.9.31.tar.bz2<br>$ cd uClibc-0.9.31<br>
$ patch -Np1 -i ../uClibc-0.9.31-configs-2.patch<br>$ cp -v clfs/config.${CLFS_ARCH}.${CLFS_ENDIAN} .config<br>$ if [ "${CLFS_ABI}" == "aapcs" ] || [ "${CLFS_ABI}" == "aapcs-linux" ]; then<br>
      sed -i s/CONFIG_ARM_OABI/CONFIG_ARM_EABI/g .config;<br>fi<br>$ make oldconfig<br>$ make<br><br>[...]<br>In file included from ./ldso/include/dl-string.h:11:0,<br>                 from ./ldso/include/ldso.h:40,<br>                 from libc/misc/elf/dl-iterate-phdr.c:16:<br>
./ldso/ldso/arm/dl-sysdep.h: In function 'elf_machine_load_address':<br>./ldso/ldso/arm/dl-sysdep.h:119:37: warning: taking address of expression of type 'void'<br>  CC libc/misc/internals/__uClibc_main.os<br>
  CC libc/inet/rpc/rpc_thread.os<br>  CC libc/stdlib/atexit.os<br>  AR cr lib/libc.a<br>  STRIP -x -R .note -R .comment lib/libc.a<br>  AR cr lib/uclibc_nonshared.a<br>  STRIP -x -R .note -R .comment lib/uclibc_nonshared.a<br>
  AR cr libc/libc_so.a<br>  STRIP -x -R .note -R .comment libc/libc_so.a<br>  LD <a href="http://libuClibc-0.9.31.so">libuClibc-0.9.31.so</a><br>libc/libc_so.a(_fpmaxtostr.os): In function `_fpmaxtostr':<br>_fpmaxtostr.c:(.text+0xbc): undefined reference to `__nedf2'<br>
_fpmaxtostr.c:(.text+0xe0): undefined reference to `__eqdf2'<br>_fpmaxtostr.c:(.text+0xfc): undefined reference to `__divdf3'<br>_fpmaxtostr.c:(.text+0x108): undefined reference to `__ltdf2'<br>_fpmaxtostr.c:(.text+0x17c): undefined reference to `__muldf3'<br>
_fpmaxtostr.c:(.text+0x348): undefined reference to `__gedf2'<br>_fpmaxtostr.c:(.text+0x40c): undefined reference to `__fixunsdfsi'<br>libc/libc_so.a(__psfs_do_numeric.os): In function `__psfs_do_numeric':<br>
__psfs_do_numeric.c:(.text+0x53c): undefined reference to `__truncdfsf2'<br>collect2: ld returned 1 exit status<br>make: *** [lib/libc.so] Error 1<br><br>Googling for that error, I found some post  to fix a similar issue here:<br>
<br>  ==> <a href="http://www.mail-archive.com/uclibc@uclibc.org/msg02438.html">http://www.mail-archive.com/uclibc@uclibc.org/msg02438.html</a><br><br>But that  does not fix the problem for me (still the same problem).<br>
<br>Hope you can help me with that. <br><br>Thank you very much for the time spent in writing that USEFUL book!!<br><br>Best regards,<br>  -- Ivan<br><br>