Subject:
[ruby-ffi] Re: Fwd: PPC not getting __WORDSIZE set
From:
Wayne Meissner
Date:
11/3/09 12:46 PM
To:
ruby-ffi@googlegroups.com


2009/11/4 Bryan Kearney <bkearney@redhat.com>:
> I  have applied both, and I have gotten past the earlier issue (Thank you!).
> I am now seeing different errors on ppc and ppc64. On the ppc build [1] I
> build and get a couple of unit test failures.. On the ppc64 build [2] I see
> a wierd error about wrong number of arguments.

I'm not surprised.  You're probably the first person on the planet to
try ruby-ffi on either ppc-linux or ppc64-linux.

You have two choices:
1) Cut your losses and declare the package usable for i386 and x86_64
only.  This is probably the easiest path, and given how obsolete ppc
machines are, probably not a huge loss.

2) Learn enough details about the ppc32 and ppc64 abi, and debug
ruby-ffi.  It will probably turn out to be something simple, but it
could take a lot of tears and pain to track down.  The upside is that
this will help knock out any bugs for other arches like arm.

Naturally, I advocate option #1.