GNU bug report logs - #10015
Guile-2.0.3: test-ffi fails

Previous Next

Package: guile;

Reported by: Hans Aberg <haberg-1 <at> telia.com>

Date: Thu, 10 Nov 2011 21:17:01 UTC

Severity: normal

Done: Mark H Weaver <mhw <at> netris.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Hans Aberg <haberg-1 <at> telia.com>
Subject: bug#10015: closed (Re: bug#10015: Guile-2.0.3: test-ffi fails)
Date: Mon, 25 Feb 2013 03:19:03 +0000
[Message part 1 (text/plain, inline)]
Your bug report

#10015: Guile-2.0.3: test-ffi fails

which was filed against the guile package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to 10015 <at> debbugs.gnu.org.

-- 
10015: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10015
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Mark H Weaver <mhw <at> netris.org>
To: Hans Aberg <haberg-1 <at> telia.com>
Cc: 10015-done <at> debbugs.gnu.org
Subject: Re: bug#10015: Guile-2.0.3: test-ffi fails
Date: Sun, 24 Feb 2013 22:16:40 -0500
Hi Hans.  Following up on an old bug report:

Hans Aberg <haberg-1 <at> telia.com> wrote:
> bad return from expression `(f-sum -1 2000 -30000 40000000000)': expected 39999971999; got 39999972255
> FAIL: test-ffi

This turns out to be due to a bug in LLVM, namely that it improperly
assumes that signed integer arguments will be sign-extended by the
caller, although this is not specified by the SysV x86-64 PS ABI.
The recently-released libffi 3.0.12 works around this problem.

If you're interested in the gory details, see:

  http://sourceware.org/ml/libffi-discuss/2013/msg00012.html
  http://gcc.gnu.org/ml/gcc/2013-01/msg00447.html
  http://bugs.gnu.org/13342

We've been told by another MacOS user that the FFI tests now pass when
Guile is linked against libffi 3.0.12, so I'm closing this bug.  Please
let us know if you continue to have problems with the FFI on MacOS.

Thanks again for the bug report!

     Mark

[Message part 3 (message/rfc822, inline)]
From: Hans Aberg <haberg-1 <at> telia.com>
To: bug-guile bug <bug-guile <at> gnu.org>
Subject: Guile-2.0.3: test-ffi fails
Date: Thu, 10 Nov 2011 22:16:26 +0100
With guile-2.0.3, OS X 10.7.2, Xcode 4.2, i686-apple-darwin11-llvm-gcc-4.2 (GCC) 4.2.1, 'make check' fails on test-ffi. Here, libffi-3.0.9 is used; libffi-3.0.10 does not compile with the same setup.

Hans





This bug report was last modified 12 years and 95 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.