Bug 47

Summary: File in worng format libc.so.o
Product: uClibc Reporter: Mark <sharkconi>
Component: Shared Library SupportAssignee: unassigned
Status: CLOSED INVALID    
Severity: major CC: aldot, raj.khem, rhabarber1848, uclibc-cvs
Priority: P5    
Version: 0.9.30   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Host: i686-pc-linux-gnu Target: arm-cb-linux-uclibc
Build: i686-pc-linux-gnu

Description Mark 2009-01-15 02:14:32 UTC
Hi All:
 I just cross compile the arm-*-linux-uclibc cross tools for my board.
 The software I used are binutils 2.19 & gcc 4.3.2 & uClibc 0.9.30
 Everything seems ok but failed the last step while build the whole gcc compiler.
 The uClibc lib compiled successed. The configuration for arm is:"Generic Arm && Little endian", the lib generated and install in the right place.
 When I compile the gcc for the last time, the error occurs:"/toolchain/root/usr/lib/libc.so.0: could not read symbols: File in wrong format"

 I use 'file' command to see the format about the libc.so.o,it shows "lib/libuClibc-0.9.30.so: ELF 32-bit LSB shared object, ARM, version 1 (ARM), stripped".

  Also another thing is when I change directory to 'toolchain/root/usr/lib', using 'ls' conmmand to what file are, the error occurs "ls: error while loading shared libraries: libpthread.so.0: ELF file OS ABI invalid
"
  Can everyone give me a hand?

Mark
Comment 1 Khem Raj 2009-01-17 00:26:41 UTC
this question is more appropriate for cross-compilation related mailing lists.
Comment 2 rhabarber1848 2009-02-19 21:41:04 UTC
Maybe /toolchain/root/usr/lib/libc.so contains /lib/ as path instead of the complete path of your cross-compile environment.