[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: bug#13342: [PARTIALLY SOLVED] bug#13342: Errors trying to build Guil
Mark H Weaver
Re: bug#13342: [PARTIALLY SOLVED] bug#13342: Errors trying to build Guile 2.0.7
Sun, 27 Jan 2013 21:05:30 -0500
Gnus/5.13 (Gnus v5.13) Emacs/24.2 (gnu/linux)
Peter Teeson <address@hidden> writes:
> Many thanks for your reply. A nice demo but, no disrespect, maybe not
> really the issue.
With all due respect, I think that Ludovic discovered the root of the
problem, and that you're on the wrong track. However, I've reached a
different conclusion than Ludovic about where the fault lies, based on
my different interpretation of the x86-64 ABI.
I've replied to the original bug report with my analysis of the problem:
In brief, the problem is an incompatibility between libffi and Clang,
because they have interpreted the x86-64 ABI requirements differently.
Specifically, libffi ZERO-extends arguments passed in registers when
calling foreign functions on x86-64 platforms, and Clang assumes that
the caller will SIGN-extend the arguments.