sys-filesystem: `attach_function': Function 'getmntinfo64' not found in [libc.dylib] (FFI::NotFoundError)
There seem to be an issue with Apple Silicon machines:
Romans-MacBook-Air.local ➜ TestApp git:(master) ✗ bundle exec rails c
/opt/homebrew/lib/ruby/gems/2.7.0/bundler/gems/ffi-2b44904f8323/lib/ffi/library.rb:273:in `attach_function': Function 'getmntinfo64' not found in [libc.dylib] (FFI::NotFoundError)
from /opt/homebrew/lib/ruby/gems/2.7.0/gems/sys-filesystem-1.4.0/lib/sys/unix/sys/filesystem/functions.rb:44:in `rescue in <module:Functions>'
from /opt/homebrew/lib/ruby/gems/2.7.0/gems/sys-filesystem-1.4.0/lib/sys/unix/sys/filesystem/functions.rb:29:in `<module:Functions>'
from /opt/homebrew/lib/ruby/gems/2.7.0/gems/sys-filesystem-1.4.0/lib/sys/unix/sys/filesystem/functions.rb:5:in `<class:Filesystem>'
from /opt/homebrew/lib/ruby/gems/2.7.0/gems/sys-filesystem-1.4.0/lib/sys/unix/sys/filesystem/functions.rb:4:in `<module:Sys>'
from /opt/homebrew/lib/ruby/gems/2.7.0/gems/sys-filesystem-1.4.0/lib/sys/unix/sys/filesystem/functions.rb:3:in `<main>'
from /opt/homebrew/lib/ruby/gems/2.7.0/gems/bootsnap-1.5.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `require'
from /opt/homebrew/lib/ruby/gems/2.7.0/gems/bootsnap-1.5.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `block in require_with_bootsnap_lfi'
from /opt/homebrew/lib/ruby/gems/2.7.0/gems/bootsnap-1.5.1/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register'
from /opt/homebrew/lib/ruby/gems/2.7.0/gems/bootsnap-1.5.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require_with_bootsnap_lfi'
from /opt/homebrew/lib/ruby/gems/2.7.0/gems/bootsnap-1.5.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:31:in `require'
from /opt/homebrew/lib/ruby/gems/2.7.0/gems/activesupport-6.1.0/lib/active_support/dependencies.rb:332:in `block in require'
from /opt/homebrew/lib/ruby/gems/2.7.0/gems/activesupport-6.1.0/lib/active_support/dependencies.rb:299:in `load_dependency'
from /opt/homebrew/lib/ruby/gems/2.7.0/gems/activesupport-6.1.0/lib/active_support/dependencies.rb:332:in `require'
from /opt/homebrew/lib/ruby/gems/2.7.0/gems/bootsnap-1.5.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:53:in `require_relative'
from /opt/homebrew/lib/ruby/gems/2.7.0/gems/sys-filesystem-1.4.0/lib/sys/unix/sys/filesystem.rb:3:in `<main>'
from /opt/homebrew/lib/ruby/gems/2.7.0/gems/bootsnap-1.5.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `require'
from /opt/homebrew/lib/ruby/gems/2.7.0/gems/bootsnap-1.5.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `block in require_with_bootsnap_lfi'
from /opt/homebrew/lib/ruby/gems/2.7.0/gems/bootsnap-1.5.1/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register'
from /opt/homebrew/lib/ruby/gems/2.7.0/gems/bootsnap-1.5.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require_with_bootsnap_lfi'
from /opt/homebrew/lib/ruby/gems/2.7.0/gems/bootsnap-1.5.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:31:in `require'
from /opt/homebrew/lib/ruby/gems/2.7.0/gems/activesupport-6.1.0/lib/active_support/dependencies.rb:332:in `block in require'
from /opt/homebrew/lib/ruby/gems/2.7.0/gems/activesupport-6.1.0/lib/active_support/dependencies.rb:299:in `load_dependency'
from /opt/homebrew/lib/ruby/gems/2.7.0/gems/activesupport-6.1.0/lib/active_support/dependencies.rb:332:in `require'
from /opt/homebrew/lib/ruby/gems/2.7.0/gems/bootsnap-1.5.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:53:in `require_relative'
from /opt/homebrew/lib/ruby/gems/2.7.0/gems/sys-filesystem-1.4.0/lib/sys/filesystem.rb:13:in `<main>'
from /opt/homebrew/lib/ruby/gems/2.7.0/gems/bootsnap-1.5.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `require'
from /opt/homebrew/lib/ruby/gems/2.7.0/gems/bootsnap-1.5.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `block in require_with_bootsnap_lfi'
from /opt/homebrew/lib/ruby/gems/2.7.0/gems/bootsnap-1.5.1/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register'
from /opt/homebrew/lib/ruby/gems/2.7.0/gems/bootsnap-1.5.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require_with_bootsnap_lfi'
from /opt/homebrew/lib/ruby/gems/2.7.0/gems/bootsnap-1.5.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:31:in `require'
from /opt/homebrew/lib/ruby/gems/2.7.0/gems/activesupport-6.1.0/lib/active_support/dependencies.rb:332:in `block in require'
from /opt/homebrew/lib/ruby/gems/2.7.0/gems/activesupport-6.1.0/lib/active_support/dependencies.rb:299:in `load_dependency'
from /opt/homebrew/lib/ruby/gems/2.7.0/gems/activesupport-6.1.0/lib/active_support/dependencies.rb:332:in `require'
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 18 (8 by maintainers)
Commits related to this issue
- Accommodate M1 macs: bump gems sys-filesystem, ffi This fixes the following error in the ffi gem when running, among other things, the BOSH Director unit specs on an M1 mac: ``` FFI::NotFoundError: ... — committed to cloudfoundry/bosh by cunnie 2 years ago
- Accommodate M1 macs: bump gems sys-filesystem, ffi This fixes the following error in the ffi gem when running, among other things, the BOSH Director unit specs on an M1 mac: ``` FFI::NotFoundError: ... — committed to cloudfoundry/bosh by cunnie 2 years ago
Alright, I’ve pushed out 1.4.1 which should address the issue then. Thanks for testing for me.