View Full Version : Having problems compiling for 32-bit arch, now on Fedora 10

25th December 2008, 08:42 AM
Hi everyone,

I have Fedora 10 x64. I've had problems before compiling for 32-bit in Fedora 9, and could solve the problem by instaling "glibc-devel-2.8-3.i386" package.

Now in Fedora 10 I'm having similar problem, so I went ahead and installed "glibc-devel-2.9-3.i386" version of that glibc package. But there's still something missing because I get this error when compiling for 32-bit arch:

[user@localhost temp]$ gcc -o solver solver.c randNum.c --std=c99 -lm -m32
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-redhat-linux/4.3.2/libgcc_s.so when searching for -lgcc_s
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-redhat-linux/4.3.2/libgcc_s.so when searching for -lgcc_s
/usr/bin/ld: cannot find -lgcc_s
collect2: ld returned 1 exit status
[user@localhost temp]$

What else should I install? What am I missing?

BTW, it compiles just fine for 64-bit and in Fedora 9 this program compiled just fine for both 64 and 32-bit archs.

Thank you!

25th December 2008, 08:52 AM
Solved it!

I'd delete this thread, but I thought that it might be useful for someone who will have the same problem.

I needed the GCC compatibility packages:


So, all I did was:

yum install compat-libstdc++-33 compat-libstdc++-296

Now everything compiles just fine.