Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 2 Feb 2013 16:40:25 GMT
From:      Andreas Tobler <andreast@FreeBSD.org>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/175781: patch: libffi broken on powerpc
Message-ID:  <201302021640.r12GePxa010148@red.freebsd.org>
Resent-Message-ID: <201302021650.r12Go0xr012448@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         175781
>Category:       ports
>Synopsis:       patch: libffi broken on powerpc
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Feb 02 16:50:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator:     Andreas Tobler
>Release:        CURRRENT
>Organization:
None
>Environment:
>Description:
the libffi package 3.0.11 fails during compilation due to a upstream bug.

Until this is fixed use the below.

I'll take care that the upstream libffi gets fixed asap.
>How-To-Repeat:

>Fix:
--- src/powerpc/ffi.c.orig      2013-02-02 17:22:50.000000000 +0100
+++ src/powerpc/ffi.c   2013-02-02 15:30:37.000000000 +0100
@@ -664,9 +664,11 @@
   switch (type)
     {
 #ifndef __NO_FPRS__
+#if FFI_TYPE_LONGDOUBLE != FFI_TYPE_DOUBLE
     case FFI_TYPE_LONGDOUBLE:
       flags |= FLAG_RETURNS_128BITS;
       /* Fall through.  */
+#endif
     case FFI_TYPE_DOUBLE:
       flags |= FLAG_RETURNS_64BITS;
       /* Fall through.  */

>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201302021640.r12GePxa010148>