View Full Version : v3.3 compilers to 32-bit on x86_64

February 6th, 2006, 10:49 AM

I'm a new ubuntu convert (from fedora). We had fedora set up nicely (on the same machine) to compile our s/w using v3.3 compilers to 32-bit executables (even though the machine is amd64).

Now I'm trying to do the same thing on ubuntu (we would make our development machines run ubuntu), and I'm having trouble building.

I have installed seemingly relevant packages so I have the -3.3 compilers, and I have /lib32 and /usr/lib32, but the linker complains about libstdc++, with lines such as :

/usr/bin/ld: skipping incompatible /usr/lib/gcc-lib/x86_64-linux-gnu/3.3.6/./libstdc++.so when searching for -lstdc++

I've read posts from other people who have the same trouble, but the usual 'solution' is to chroot, which isn't a possibility in our case (we have too many toolchains - this isn't the only one).

Can someone give me some pointers for how to get around this?