[MacPorts] #64485: libffi fails to build on 10.6.8 for ppc (under Rosetta)

MacPorts noreply at macports.org
Sat Jan 22 23:48:13 UTC 2022


#64485: libffi fails to build on 10.6.8 for ppc (under Rosetta)
---------------------------+---------------------
  Reporter:  barracuda156  |      Owner:  (none)
      Type:  defect        |     Status:  new
  Priority:  Normal        |  Milestone:
 Component:  ports         |    Version:  2.7.1
Resolution:                |   Keywords:  powerpc
      Port:  libffi        |
---------------------------+---------------------

Comment (by barracuda156):

 Replying to [comment:1 ryandesign]:

 Ok, I have found a way to make needed settings and build it:

 {{{

 Sergey-Fedorovs-Mac-mini:~ svacchanda$ port -v installed libffi
 The following ports are currently installed:
   libffi @3.4.2_2 (active) requested_variants='' platform='darwin 10'
 archs='ppc' date='2022-01-23T07:45:23+0800'
 }}}

 Here is what I added to the port file (probably an overkill, but something
 of these worked):


 {{{
 configure.args-append       CC_FOR_BUILD="gcc-4.2 -arch ppc" \
                             CFLAGS_FOR_BUILD="-arch ppc" \
                             --build=powerpc-apple-darwin10 \
                             --with-ld=/usr/bin/ld \
                             --with-as=/usr/bin/as
 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/64485#comment:4>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list