ffi: MacOS: error 'cputype does not match previous archive members' since ffi-1.9.21
Hi,
Today our project that depends on compass, that depends on ffi, stopped building. To workaround, I changed:
gem install -i ./compass compass --version $COMPASS_VERSION
to
CFLAGS="--disable-asm-optimizations" gem install -i ./compass compass --version $COMPASS_VERSION
Hope this helps.
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Reactions: 2
- Comments: 15 (5 by maintainers)
Commits related to this issue
- Update libffi to latest master commit This hopefully fixes #605 . — committed to larskanis/ffi by larskanis 6 years ago
- Fix native build extension build: ffi When running `bundle install` the native extensions for the gem `ffi` failed (see error message below). Fortunately, upgrading to 1.9.22 solves the problem. See ... — committed to alphagov/content-data-api by pmanrubia 6 years ago
- Fix native build extension build: ffi When running `bundle install` the native extensions for the gem `ffi` failed (see error message below). Fortunately, upgrading to 1.9.22 solves the problem. See ... — committed to alphagov/content-data-api by pmanrubia 6 years ago
brew install automake
Worked for me.
@matteosecli Thanks for the confirmation! I just pushed final ffi-1.9.23 to rubygems.org. It should fix this issue, so that the workaround to use
CFLAGS="--disable-asm-optimizations"
isn’t needed any longer.