This is the mail archive of the
libffi-discuss@sourceware.org
mailing list for the libffi project.
Re: Problems with libffi on PowerPC64
- From: Andrew Haley <aph at redhat dot com>
- To: Daniela Quaresima <daniela_quaresima at yahoo dot it>
- Cc: libffi-discuss at sourceware dot org
- Date: Tue, 16 Jun 2009 15:10:10 +0100
- Subject: Re: Problems with libffi on PowerPC64
- References: <371969.20311.qm@web23307.mail.ird.yahoo.com>
Daniela Quaresima wrote:
> Thanks for answering so quickly.
> I tried to update libffi with the latest version from CVS and I made
> the tests again, but nothing changed.
> If the result of the tests isn't so bad, does it mean that the
> problem could be somewhere else?
I think so. You're only seeing a failure with long doubles (which
Java doesn't support), with a huge struct, and some sort of C++
exception compilation problem. I would not expect any of these to
cause JNA failures.
> One of the errors with the testsuite of JNA occurs when the function
> ffi_call is invoked and the expected result type is an int (smaller
> than 64 bit): the value returned is 0 instead of whatever it should
> be.
I think the bug may be inside JNA itself. The libffi test results
show no problems in this area. I think you've got to start debugging.
Andrew.