[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: PPC not getting __WORDSIZE set

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.


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

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]