Error:"Staging_dir/lib/libc.so.0: could not read symbols:file in wrong format" while "make" buildroot with xscale, gcc-4.2.3
I have struggled with this problem for few days. Actually I found a similar subject in
http://busybox.net/lists/buildroot/2007-October/005854.html
However, I checked the mentioned patch in that thread, it actually applied to the gcc-4.2.3. Unfortunately, the issue wasn't be solved. Moreover, I couldn't find further useful info regarding to this problem. I really appreciate if anyone could tell me the solution. If any further log or info could help to diagnose this issue,please don't hesitate to ask me. Thank you very much in advance.
~LL
Try performing the last failing operation again (move to the correct directory and copy the last command from the console window, then execute it)
while also inserting the --verbose flag (or whatever the verbose flag is). This may give you a few more clues.
-Rex
Quoted 17 lines · Li Liang
I have struggled with this problem for few days. Actually I found a similar
subject inhttp://busybox.net/lists/buildroot/2007-October/005854.html
However, I checked the mentioned patch in that thread, it actually applied to
the gcc-4.2.3. Unfortunately, the issue wasn't be solved. Moreover, I couldn't
find further useful info regarding to this problem. I really appreciate if anyone could tell me the solution. If any further log or info could help to
diagnose this issue,please don't hesitate to ask me. Thank you very much in
advance.
Quoted 6 lines
~LL
_______________________________________________
buildroot mailing list
buildroot at uclibc.org
http://busybox.net/mailman/listinfo/buildroot
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://busybox.net/lists/buildroot/attachments/20080422/1a9ccaa5/attachment.htm
The same error message appeared again as following while I executed "make" after "make menuconfig"
/home/user/workspace/MFSP/uCroot/buildroot/build_armeb/staging_dir/lib/libc.so.0:
could not read symbols: File in wrong format
collect2: ld returned 1 exit status
make[4]: *** [libgcc_s.so] Error 1
make[4]: Leaving directory `/home/user/workspace/MFSP/uCroot/buildroot/toolchain_build_armeb/gcc-4.2.3-final/gcc' make[3]: *** [stmp-multilib] Error 2
make[3]: Leaving directory `/home/user/workspace/MFSP/uCroot/buildroot/toolchain_build_armeb/gcc-4.2.3-final/gcc' make[2]: *** [all-gcc] Error 2
make[2]: Leaving directory `/home/user/workspace/MFSP/uCroot/buildroot/toolchain_build_armeb/gcc-4.2.3-final' make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/user/workspace/MFSP/uCroot/buildroot/toolchain_build_armeb/gcc-4.2.3-final'
make: *** [/home/user/workspace/MFSP/uCroot/buildroot/toolchain_build_armeb/gcc-4.2.3-final/.compiled] Error 2
I am using the following packages to build the tool-chain:
kernel 2.6.24
uClibc 0.9.29
binutils 2.18
gcc 4.2.3
~LL
Quoting Rex Ashbaugh <[email protected]>:
Quoted 34 lines
Try performing the last failing operation again (move to the correct directory and copy the last command from the console window, then execute it)
while also inserting the --verbose flag (or whatever the verbose flag is). This may give you a few more clues.
-RexQuoted 23 lines · Li Liang
I have struggled with this problem for few days. Actually I found a similar
subject inhttp://busybox.net/lists/buildroot/2007-October/005854.html
However, I checked the mentioned patch in that thread, it actually applied to
the gcc-4.2.3. Unfortunately, the issue wasn't be solved. Moreover, I couldn't
find further useful info regarding to this problem. I really appreciate if anyone could tell me the solution. If any further log or info could help to
diagnose this issue,please don't hesitate to ask me. Thank you very much in
advance.~LL
_______________________________________________
buildroot mailing list
buildroot at uclibc.org
http://busybox.net/mailman/listinfo/buildroot
Quoted 6 lines · Li Liang
The same error message appeared again as following while I executed "make" after "make menuconfig"
/home/user/workspace/MFSP/uCroot/buildroot/build_armeb/staging_dir/lib/libc.so.0:
could not read symbols: File in wrong format
collect2: ld returned 1 exit status
So can you run "file" on the libc.so.0? It should say 32-bit ARM MSB.
Quoted 6 lines
I am using the following packages to build the tool-chain:
kernel 2.6.24
uClibc 0.9.29
binutils 2.18
gcc 4.2.3
I'm using gcc 4.1.x here. I couldn't get 4.2.3 built successfully for armeb, but that was months ago and it might be fixed by now. Also I'm still using OABI rather than EABI because I couldn't get the latter compiled either.
Unless you really need 4.2.x you could try the older version.
Hamish
Signature · 1 line
Hamish Moffatt VK3SB <[email protected]> <[email protected]>