2008-09-17

How to fix: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu

Building Chromium, the raw version of Googles state of the art browser Chrome under Linux x64/x86_64 the following error occurred

/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.2.4/libstdc++.so when searching for -lstdc++
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.2.4/libstdc++.a when searching for -lstdc++
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.2.4/libstdc++.so when searching for -lstdc++
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.2.4/libstdc++.a when searching for -lstdc++
/usr/bin/ld: cannot find -lstdc++
collect2: ld returned 1 exit status
scons: *** [obj/release/mksnapshot] Error 1
scons: *** [/home/alex/Documents/dev/prj/chromium/src/v8/obj/release/mksnapshot] Error 2
scons: building terminated because of errors.


as there were no x86 libraries. Installing these libraries solved the problem for me:

aptitude install g++-multilib g++-4.2-multilib