Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have installed multi2sim on my 64-bit Ubuntu machine. Both gcc 4.8 and 4.8.1 is installed in my system. Even after setting and exporting the LD_LIBRARY_PATH AND LD_INCLUDE_PATH, and installing the gcc-multilib, I am facing the following error on compiling with multi2sim:

$ sudo gcc -m32 test-argc.c
/usr/bin/ld: skipping incompatible/usr/lib/gcc/x86_64-linux-gnu/4.8/libgcc.a when searching for -lgcc <BR >
/usr/bin/ld: cannot find -lgcc<BR>
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.8/ when searching for -lgcc_s<BR>
/usr/bin/ld: cannot find -lgcc_s<BR>
collect2: error: ld returned 1 exit status

I am unable to figure what is wrong. Please help

share|improve this question

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.