[MacPorts] #72339: libffi @3.4.6: error: invalid CFI advance_loc expression (was: libffi 3.4.6 - build failure on arm64)

MacPorts noreply at macports.org
Sat Apr 12 21:29:31 UTC 2025


#72339: libffi @3.4.6: error: invalid CFI advance_loc expression
-------------------------+---------------------------
  Reporter:  GabryBarbe  |      Owner:  fhgwright
      Type:  defect      |     Status:  assigned
  Priority:  Normal      |  Milestone:
 Component:  ports       |    Version:  2.10.5
Resolution:              |   Keywords:  arm64 sequoia
      Port:  libffi      |
-------------------------+---------------------------
Changes (by ryandesign):

 * status:  new => assigned
 * owner:  (none) => fhgwright
 * keywords:   => arm64 sequoia
 * port:   => libffi


Old description:

> --->  Fetching distfiles for libffi
> --->  Verifying checksums for libffi
> --->  Extracting libffi
> --->  Applying patches to libffi
> --->  Configuring libffi
> --->  Building libffi
> Error: Failed to build libffi: command execution failed
> Error: See /Users/gabrielebarbero/macports-gimp3-arm64/var/macports/logs
> /_Users_gabrielebarbero_macports-
> gimp3-arm64_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 curl failed
>

> that's what I obtain when I try to install dependencies of GIMP. I attach
> both the log and the bash script I use to install dependencies.

New description:

 {{{
 --->  Fetching distfiles for libffi
 --->  Verifying checksums for libffi
 --->  Extracting libffi
 --->  Applying patches to libffi
 --->  Configuring libffi
 --->  Building libffi
 Error: Failed to build libffi: command execution failed
 Error: See /Users/gabrielebarbero/macports-gimp3-arm64/var/macports/logs
 /_Users_gabrielebarbero_macports-
 gimp3-arm64_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 curl failed
 }}}

 that's what I obtain when I try to install dependencies of GIMP. I attach
 both the log and the bash script I use to install dependencies.

--

Comment:

 The log shows the error is:

 {{{
 /Users/gabrielebarbero/macports-gimp3-arm64/var/macports/build
 /_Users_gabrielebarbero_macports-
 gimp3-arm64_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_libffi/libffi/work/.tmp
 /sysv-b220dc.s:28:2: error: invalid CFI advance_loc expression
  .cfi_def_cfa x1, 40;
  ^
 /Users/gabrielebarbero/macports-gimp3-arm64/var/macports/build
 /_Users_gabrielebarbero_macports-
 gimp3-arm64_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_libffi/libffi/work/.tmp
 /sysv-b220dc.s:255:2: error: invalid CFI advance_loc expression
  .cfi_adjust_cfa_offset (8*2 + (8 * 16 + 8 * 8) + 64)
  ^
 make[3]: *** [src/aarch64/sysv.lo] Error 1
 }}}

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


More information about the macports-tickets mailing list