PPC not getting __WORDSIZE set
Bryan Kearney
bkearney at redhat.com
Tue Nov 3 00:26:31 UTC 2009
On 11/02/2009 05:34 PM, Jakub Jelinek wrote:
> On Mon, Nov 02, 2009 at 05:15:50PM -0500, Bryan Kearney wrote:
>> Word of warning.. I am no too familiar with C across platforms. I am
>> trying to package ruby-ffi (spec file is at [1]) and when I do a scratch
>> build in Koji [2] it runs fine on x86 but is failing in ppc_64. It
>> appears that __WORDSIZE is not being set [3]. I looked at the CFLags for
>> the x86_64 and they are the same, so I assumed things would run fine.
>> Can anyone point me at what to look at next?
>
> __WORDSIZE is a glibc internal macro, packages shouldn't be using it.
> Whether it is defined or not depends on whether any of the headers that are
> included needed to check that macro or not.
>
> You should be using __LP64__ or similar macros instead.
>
> Jakub
>
I saw the macro in the
/usr/include/gnu/stubs.h:7:27: error: gnu/stubs-32.h: No such file or
directory
So.. I am not setting it, I assume it is not being set correctly on my
behalf.
-- bk
More information about the fedora-devel-list
mailing list