For those coming new to this issue, the following packages need installing (on Gutsy) to do full 32-bit cross-compilation and linking on the 64-bit architecture:
$ apt-get install ia32-libs lib32gcc1 lib32stdc++6 libc6-dev-i386 gcc- multilib And then use the gcc flag '-m32', either added to CCFLAGS in the Makefile or directly: $ gcc -m32 program.c -o program $ file program program: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for GNU/Linux 2.6.8, dynamically linked (uses shared libs), not stripped $ uname -m x86_64 -- Cannot do 32-bit C compile on 64-bit https://bugs.launchpad.net/bugs/68859 You received this bug notification because you are a member of Ubuntu Bugs, which is the bug contact for Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs