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
as there were no x86 libraries. Installing these libraries solved the problem for me:
/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
I am getting the same problem for libz.so
ReplyDelete/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.3.2/../../../libz.so when searching for -lz
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.3.2/../../../libz.a when searching for -lz
/usr/bin/ld: skipping incompatible /usr/lib/libz.so when searching for -lz
/usr/bin/ld: skipping incompatible /usr/lib/libz.a when searching for -lz
Any suggestions? What package should I install?
lib32z-dev
ReplyDeleteThanks anonymous! Most important help!!
ReplyDeleteı have similar problem... when ı try to build linphone ı got errors:
ReplyDelete/usr/bin/ld: skipping incompatible /usr/lib/libmediastreamer.so when searching for -lmediastreamer
/usr/bin/ld: cannot find -lmediastreamer
can u tell me how can ı fix that problem ?