[Xorg-driver-geode] proposal: always build with -march=geode

Martin-Éric Racine q-funk at iki.fi
Tue Jul 13 14:49:47 PDT 2010


On Tue, Jul 13, 2010 at 11:31 PM, Gaetan Nadon <memsize at videotron.ca> wrote:
> On Tue, 2010-07-13 at 22:52 +0300, Martin-Éric Racine wrote:
>
> On Tue, Jul 13, 2010 at 10:48 PM, Gaetan Nadon <memsize at videotron.ca> wrote:
>> On Tue, 2010-07-13 at 20:47 +0300, Martin-Éric Racine wrote:
>>
>> 1) to transform the current check for 64-bit CPU to make it add -m32
>> to CFLAGS if the build host is a 64-bit.
>>
>>> I had tried this compiler option a while ago:
>>>
>>> /usr/include/gnu/stubs.h:7:27: error: gnu/stubs-32.h: No such file or
>>> directory
>
>> That would be a sign that the 32-bit libraries are missing, unless I'm
>> mistaken.
>
> Correct. On my distro, the 32 bit libs aren't installed by default. That
> brings us back to a compile error for the unsuspecting builder/new comer.
> That's not an issue for a geode developer who wishes to use AMD64 as a
> developing platform.

I don't expect a newcomer to try cross-compiling or even building
32-bit binaries on a 64-bit x86 host.

Anyhow, if we really wanna prevent this, we could simply insert a loop
to check for the presence of 32-bit headers a part of the 64-bit build
host check. When we detect a 64-bit build host, we'll immediately
check for the presence of 32-bit headers and barf with a LOUD error if
not found, already at the configure stage.

Martin-Éric


More information about the Xorg-driver-geode mailing list