Subject: [ruby-ffi] Re: Fwd: PPC not getting __WORDSIZE set |
From: Wayne Meissner |
Date: 11/4/09 6:27 PM |
To: ruby-ffi@googlegroups.com |
Ok, that one is fixed. Does that mean it works (at least all the tests) on ppc32 now? 2009/11/5 Bryan Kearney <bkearney@redhat.com>:
On 11/03/2009 01:46 PM, Wayne Meissner wrote:
<bkearney@redhat.com>:2009/11/4 Bryan KearneyI 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.Yeah.. If I dont get this running in fedora I wont be able to use it for Augeas/Puppet. Here is a patch for the ppc platform. Change is in the test library only. -- bk