You are not logged in.
Pages: 1
I am currently running Arch x86_64 with the latest version of gcc from the core repository. I seem to have come across a peculiar error while compiling with the -m32 and -march=i386 flags:
/usr/bin/ld: i386:x86-64 architecture of input file `/usr/lib/gcc/x86_64-unknown-linux-gnu/4.5.1/crtbeginS.o' is incompatible with i386 output
/usr/bin/ld: i386:x86-64 architecture of input file `/usr/lib/gcc/x86_64-unknown-linux-gnu/4.5.1/crtendS.o' is incompatible with i386 output
I'm using g++ to compile, if that makes a difference over gcc, but I doubt that it does.
I've googled these objects and they seem to be used for constructors/destructors, but is there any way that I can fix this without having to install a different version of the GCC? Am I missing a certain package?
Last edited by RetroX (2010-08-14 00:01:35)
Offline
The gcc in Arch is not multi-architecture so -m32 does not work.
Offline
So, in other words, I can't do it without gcc-multilib. Which, I was trying to avoid, because the package doesn't seem to be updated in accordance with the rest of the repositories.
Offline
Pages: 1