From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 84260 invoked by alias); 14 Sep 2015 03:46:44 -0000 Mailing-List: contact libffi-discuss-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libffi-discuss-owner@sourceware.org Received: (qmail 84241 invoked by uid 89); 14 Sep 2015 03:46:43 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=3.7 required=5.0 tests=AWL,BAYES_00,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_DNSWL_LOW,SPF_HELO_PASS autolearn=no version=3.3.2 X-HELO: smtprelay04.ispgateway.de Received: from smtprelay04.ispgateway.de (HELO smtprelay04.ispgateway.de) (80.67.31.38) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Mon, 14 Sep 2015 03:46:42 +0000 Received: from [216.82.220.34] (helo=[192.168.2.167]) by smtprelay04.ispgateway.de with esmtpsa (TLSv1:DHE-RSA-AES256-SHA:256) (Exim 4.84) (envelope-from ) id 1ZbKj0-0005G6-SZ for libffi-discuss@sourceware.org; Mon, 14 Sep 2015 05:46:39 +0200 From: Ryan Schmidt Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Subject: libffi 3.2.1 built on a PowerPC G3 Mac builds for a PowerPC G4 and therefore does not work Message-Id: <9BA7E517-FFB6-4A1C-B1F1-BA820D6CA9D3@ryandesign.com> Date: Mon, 14 Sep 2015 03:46:00 -0000 To: libffi-discuss@sourceware.org Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2104\)) X-Df-Sender: MzY4ODE4 X-IsSubscribed: yes X-SW-Source: 2015/txt/msg00084.txt.bz2 Hello, I'm writing on behalf of the MacPorts package management system, whe= re a number of our users who are using older Macs using the PowerPC G3 proc= essor have noticed the following problem: When built on a PowerPC G3, libffi 3.2.1 builds itself in such a way that i= t requires a PowerPC G4 processor (specifically: it builds itself for archi= tecture "ppc7400" instead of "ppc"), and therefore it cannot actually be us= ed on a G3. The error you see is something like: Library not loaded: /opt/local/lib/libffi.6.dylib Referenced from: /opt/local/lib/libgio-2.0.0.dylib Reason: no suitable image found. Did find: /opt/local/lib/libffi.6.dylib: incompatible cpu-subtype (replacing "/opt/local/lib/libgio-2.0.0.dylib" with whatever program or lib= rary is linked with libffi) When inspecting those two files with the "lipo" program, we see that libffi= has been built for "ppc7400" (i.e. a G4 or newer) while the other program = or library was correctly built for just "ppc" (G3 or newer). $ lipo -info /opt/local/lib/libffi.6.dylib /opt/local/lib/libgio-2.0.0.dylib Non-fat file: /opt/local/lib/libffi.6.dylib is architecture: ppc7400 Non-fat file: /opt/local/lib/libgio-2.0.0.dylib is architecture: ppc Here is the ticket under which we are tracking this problem: https://trac.macports.org/ticket/47085 The use of ppc7400 appears to have been deliberate since it is explicitly l= isted in the files src/powerpc/darwin.S and src/powerpc/darwin_closure.S. T= he question is why, and if and how it can be changed to work on a G3 again. Thanks.