This is the mail archive of the libffi-discuss@sourceware.org mailing list for the libffi project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

libffi 3.2.1 built on a PowerPC G3


I just subscribed to the list, so Iâm not able to answer directly to the message Ryan Schmidt sent about "libffi 3.2.1 on a PowerPC G3 Mac Â.

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 n /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

-- 
BenoÃt RIVET


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]