PPC not getting __WORDSIZE set

Jakub Jelinek jakub at redhat.com
Mon Nov 2 22:34:26 UTC 2009


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




More information about the fedora-devel-list mailing list