From: Benoit RIVET <benoit.rivet@free.fr>
To: libffi-discuss@sourceware.org
Subject: libffi 3.2.1 built on a PowerPC G3
Date: Mon, 14 Sep 2015 11:53:00 -0000 [thread overview]
Message-ID: <EEC9D42D-AC44-4787-8F91-57944BCE8E30@free.fr> (raw)
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
reply other threads:[~2015-09-14 11:53 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=EEC9D42D-AC44-4787-8F91-57944BCE8E30@free.fr \
--to=benoit.rivet@free.fr \
--cc=libffi-discuss@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).