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

MacPorts noreply at macports.org
Fri Jan 21 15:12:01 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]:
 > There are many occurrences of "x86" in the log, suggesting to me that
 the build system needs more than just `-arch` flags to tell it what
 architectures to build for.

 Yeah, I noticed that, but could not figure out how to fix it. I got only
 `ppc` as build arch in settings, I even tried to specify it directly when
 calling `sudo port -v install`, to no effect.

 > The port already uses the muniversal portgroup and includes these lines
 to assist with that process for ppc64:
 >
 > {{{
 > array set merger_host {
 >     ppc64 powerpc-apple-darwin
 > }
 > }}}
 >
 > Try changing this to:
 >
 > {{{
 > array set merger_host {
 >     ppc powerpc-apple-darwin
 >     ppc64 powerpc-apple-darwin
 > }
 > }}}

 Tried, same failure:

 {{{

 libtool: link: /usr/bin/gcc-4.2 -dynamiclib  -o .libs/libffi.8.dylib
 src/.libs/prep_cif.o src/.libs/types.o src/.libs/raw_api.o
 src/.libs/java_raw_api.o src/.libs/closures.o src/.libs/tramp.o
 src/x86/.libs/ffi.o src/x86/.libs/sysv.o   -L/opt/powerpc/lib  -Os -arch
 ppc -Wl,-headerpad_max_install_names -arch ppc
 -Wl,-headerpad_max_install_names -arch ppc   -install_name
 /opt/powerpc/lib/libffi.8.dylib -compatibility_version 10 -current_version
 10.0 -Wl,-single_module
 Undefined symbols:
   "_ffi_prep_closure_loc", referenced from:
       _ffi_prep_closure in prep_cif.o
   "_ffi_prep_cif_machdep", referenced from:
       _ffi_prep_cif_core in prep_cif.o
   "_ffi_prep_raw_closure_loc", referenced from:
       _ffi_prep_raw_closure in raw_api.o
 ld: symbol(s) not found
 collect2: ld returned 1 exit status
 make[3]: *** [libffi.la] Error 1
 make[3]: Leaving directory
 `/opt/powerpc/var/macports/build/_opt_powerpc_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_libffi/libffi/work/libffi-3.4.2/x86_64
 -apple-darwin10.8.0'
 make[2]: *** [all-recursive] Error 1
 make[2]: Leaving directory
 `/opt/powerpc/var/macports/build/_opt_powerpc_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_libffi/libffi/work/libffi-3.4.2/x86_64
 -apple-darwin10.8.0'
 make[1]: *** [all] Error 2
 make[1]: Leaving directory
 `/opt/powerpc/var/macports/build/_opt_powerpc_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_libffi/libffi/work/libffi-3.4.2/x86_64
 -apple-darwin10.8.0'
 make: *** [all] Error 2
 make: Leaving directory
 `/opt/powerpc/var/macports/build/_opt_powerpc_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_libffi/libffi/work/libffi-3.4.2'
 Command failed:  cd
 "/opt/powerpc/var/macports/build/_opt_powerpc_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_libffi/libffi/work/libffi-3.4.2"
 && /usr/bin/make -j8 -w all
 Exit code: 2
 Error: Failed to build libffi: command execution failed
 Error: See
 /opt/powerpc/var/macports/logs/_opt_powerpc_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_libffi/libffi/main.log
 for details.
 Error: Follow https://guide.macports.org/#project.tickets if you believe
 there is a bug.
 Error: Processing of port libffi failed
 Sergey-Fedorovs-Mac-mini:bin svacchanda$

 }}}

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


More information about the macports-tickets mailing list