You are not logged in.

#1 2010-08-13 23:59:01

RetroX
Member
Registered: 2009-10-17
Posts: 106

Incompatible GCC objects?

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

#2 2010-08-14 00:07:10

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,487
Website

Re: Incompatible GCC objects?

The gcc in Arch is not multi-architecture so -m32 does not work.

Offline

#3 2010-08-14 01:50:04

RetroX
Member
Registered: 2009-10-17
Posts: 106

Re: Incompatible GCC objects?

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

Board footer

Powered by FluxBB