[MacPorts] #47085: libffi is built for G4 when running on a G3

MacPorts noreply at macports.org
Mon Sep 14 04:59:30 PDT 2015


#47085: libffi is built for G4 when running on a G3
---------------------+--------------------------------
  Reporter:  tome@…  |      Owner:  macports-tickets@…
      Type:  defect  |     Status:  new
  Priority:  Normal  |  Milestone:
 Component:  ports   |    Version:  2.3.3
Resolution:          |   Keywords:  tiger powerpc
      Port:  libffi  |
---------------------+--------------------------------

Comment (by benoit.rivet@…):

 I’ve been able to build libffi successfully on a G3 Mac after downloading
 libffi-3.2.1.tar.gz, modifying line 34 in src/powerpc/darwin.S and line 37
 in src/powerpc/darwin_closure.S from

 {{{
 #define machine_choice MODE_CHOICE(ppc7400,ppc64)
 }}}

 to :

 {{{
 #define machine_choice MODE_CHOICE(ppc,ppc64)
 }}}

 Of course, this may break libffi on G4 Mac (where ppc7400 or ppc7450 may
 be expected). However, since I wanted to build on a G3 Mac, I did not
 bother to check what happens on G4 Mac with that change. After that,
 ./configure, make then make install installed libffi.6.dylib and
 libffi.dylib in /usr/local/lib and

 {{{
 lipo -info /usr/local/lib/libffi.6.dylib
 }}}

 gives :

 {{{
 Non fat file: /usr/local/lib/libffi.6.dylib is architecture: ppc750
 }}}

 I was then able to install the gobject-introspection port through macports
 via :

 {{{
 sudo port install gobject-introspection
 }}}

 which failed previously due to libffi with the message :

 {{{
 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
 }}}

 PS: I reported [https://sourceware.org/ml/libffi-
 discuss/2015/msg00085.html this success] to the libffi-discuss mailing
 list.

-- 
Ticket URL: <https://trac.macports.org/ticket/47085#comment:7>
MacPorts <https://www.macports.org/>
Ports system for OS X


More information about the macports-tickets mailing list