Skip to content

Instantly share code, notes, and snippets.

@daeyun
Last active December 11, 2015 19:09
Show Gist options
  • Save daeyun/4646703 to your computer and use it in GitHub Desktop.
Save daeyun/4646703 to your computer and use it in GitHub Desktop.
random x86 note

If you see this error when compiling a 32 bit x86 assembly code with the -m32 flag on a 64 bit environment, install gcc-multilib.

/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.2/libgcc.a when searching for -lgcc
/usr/bin/ld: cannot find -lgcc
collect2: error: ld returned 1 exit status
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment