Skip to content

[Bug]: ffi 1.16.3 doesn't compile on M4 macOS 26 #239

@binford2k

Description

@binford2k

Is this a critical security issue?

  • This is not a security issue.

Describe the Bug

bundle install fails while attempting to compile native code. This makes is awkward to run spec tests.
Upgrading the gem to ~> 1.17 fixes the problem, but this needs to be validated on windows too.

Expected Behavior

bundle install should complete successfully.

Steps to Reproduce

  1. clone repo
  2. bundle install

Environment

Apple M4 Pro
macOS Taho3 26.2
Ruby 3.3.4

Additional Context

No response

Relevant log output

/var/folders/q8/fyv27kj11fd7m45tlf_f4hl00000gp/T/sysv-d768a7.s:27:2: error: invalid CFI advance_loc expression
 .cfi_def_cfa x1, 40;
 ^
/var/folders/q8/fyv27kj11fd7m45tlf_f4hl00000gp/T/sysv-d768a7.s:188: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
make[2]: *** [all-recursive] Error 1
make[1]: *** [all] Error 2
make: *** ["/Volumes/Projects/voxpupuli/openvox/vendor/ruby/3.3.0/gems/ffi-1.16.3/ext/ffi_c/libffi-arm64-darwin24"/.libs/libffi_convenience.a] Error 2

make failed, exit code 2

Gem files will remain installed in /Volumes/Projects/voxpupuli/openvox/vendor/ruby/3.3.0/gems/ffi-1.16.3 for inspection.
Results logged to /Volumes/Projects/voxpupuli/openvox/vendor/ruby/3.3.0/extensions/arm64-darwin-24/3.3.0/ffi-1.16.3/gem_make.out

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions