To compile on 32-bit mode on on X86_64 bit systems , once needs to
install corresponding i386/i586 libs on 64-bit systems. For my
Fedora-11 X86_64 systems, I have gcc,libc,glibc for X86_64 packages.
But I was getting the crt1.o error. So after some trials, found that I
need to install packages for glibc for i586.
Here are some commands for updating of FC11:
# yum search glibc-devel
...
glibc-devel.i586 : Object files for development using standard C
libraries.
glibc-devel.x86_64 : Object files for development using standard C
libraries.
So I installed the i586 packge using
# yum install glibc-devel.i586
More info similair problems earlier.
http://www.linuxquestions.org/questions/linux-software-2/how-to-compile-32bit-.c-.cc-on-64bit-x8664-systems-612311/
Finally on my system I have following packages:
# rpm -qa|grep glibc
glibc-2.10.1-2.i686
glibc-2.10.1-2.x86_64
glibc-headers-2.10.1-2.x86_64
glibc-devel-2.10.1-2.i586
glibc-common-2.10.1-2.x86_64
glibc-devel-2.10.1-2.x86_64
Hope this helps
mahadevan