/usr/lib/libstdc++.so: could not read symbols: File in wrong format

Baho Utot baho-utot at columbus.rr.com
Sat Feb 13 14:32:20 PST 2010


 From Book version 1.1.0-x86_64-multilib

Section 6.4 GCC-4.2.4

Slackware 12.2 as the build system.

I am getting this error on compiling

x86_64-unknown-linux-gnu-c++  -shared -nostdlib 
/tools/lib/../lib64/crti.o 
/cross-tools/lib/gcc/x86_64-unknown-linux-gnu/4.2.4/crtbeginS.o  
.libs/bitmap_allocator.o .libs/pool_allocator.o .libs/mt_allocator.o 
.libs/codecvt.o .libs/compatibility.o .libs/complex_io.o .libs/ctype.o 
.libs/debug.o .libs/debug_list.o .libs/functexcept.o .libs/globals_io.o 
.libs/ios.o .libs/ios_failure.o .libs/ios_init.o .libs/ios_locale.o 
.libs/limits.o .libs/list.o .libs/locale.o .libs/locale_init.o 
.libs/locale_facets.o .libs/localename.o .libs/stdexcept.o 
.libs/strstream.o .libs/tree.o .libs/allocator-inst.o 
.libs/concept-inst.o .libs/fstream-inst.o .libs/ext-inst.o 
.libs/ios-inst.o .libs/iostream-inst.o .libs/istream-inst.o 
.libs/istream.o .libs/locale-inst.o .libs/misc-inst.o 
.libs/ostream-inst.o .libs/sstream-inst.o .libs/streambuf-inst.o 
.libs/streambuf.o .libs/string-inst.o .libs/valarray-inst.o 
.libs/wlocale-inst.o .libs/wstring-inst.o .libs/atomicity.o 
.libs/codecvt_members.o .libs/collate_members.o .libs/ctype_members.o 
.libs/messages_members.o .libs/monetary_members.o 
.libs/numeric_members.o .libs/time_members.o .libs/basic_file.o 
.libs/c++locale.o -Wl,--whole-archive ../libmath/.libs/libmath.a 
../libsupc++/.libs/libsupc++convenience.a -Wl,--no-whole-archive  -lm 
../libmath/.libs/libmath.a -lm ../libsupc++/.libs/libsupc++convenience.a 
-lm -L/cross-tools/lib/gcc/x86_64-unknown-linux-gnu/4.2.4 
-L/cross-tools/lib/gcc/x86_64-unknown-linux-gnu/4.2.4/../../../../x86_64-unknown-linux-gnu/lib/../lib64 
-L/tools/lib/../lib64 
-L/cross-tools/lib/gcc/x86_64-unknown-linux-gnu/4.2.4/../../../../x86_64-unknown-linux-gnu/lib 
-L/tools/lib -L/usr/i486-slackware-linux/bin 
-L/usr/i486-slackware-linux/lib 
-L/usr/lib/gcc/i486-slackware-linux/4.2.4 
-L/usr/lib/gcc/i486-slackware-linux/4.2.4/../../../../i486-slackware-linux/lib 
-L/usr/lib/gcc/i486-slackware-linux/4.2.4/../../.. -lm -lm -lm -lgcc_s 
-lc -lgcc_s -lm -lgcc_s -lc -lgcc_s -lm -lgcc_s -lc -lgcc_s -lm 
/usr/lib/libstdc++.so -lm -lgcc_s -lc -lgcc_s   
/cross-tools/lib/gcc/x86_64-unknown-linux-gnu/4.2.4/crtendS.o 
/tools/lib/../lib64/crtn.o  -Wl,-O1 -Wl,-z -Wl,relro -Wl,--gc-sections 
-Wl,--version-script=libstdc++-symbols.ver -Wl,-soname 
-Wl,libstdc++.so.6 -o .libs/libstdc++.so.6.0.9
/usr/lib/libstdc++.so: could not read symbols: File in wrong format
collect2: ld returned 1 exit status
make[5]: *** [libstdc++.la] Error 1

I don't think the compile should be using/linking to  
/usr/lib/libstdc++.so at this point but I could be wrong

Is there a way to get past this?



Sorry for sending this here but I can not find the clfs support mailing 
list,
Could someone point me to the correct place?

Thanks



More information about the lfs-support mailing list