Open brauliobo opened 1 year ago
Thanks for the report.
I cannot reproduce it locally with bundle install
.
Did you pass any flags to Bundler, what was your Bundler command?
It looks like it could be a concurrency issue in Bundler, so that might explain why it does not reproduce.
I reproduced it:
Interestingly, I dont understand how chruby involves into it:
Installing seven_zip_ruby 1.3.0 with native extensions
zsh:1: command not found: chruby
It might be related to this bundle config:
✗ cat .bundle/config
---
BUNDLE_JOBS: 5
@brauliobo essentially deleting of the old Gemfile.lock should help here
@brauliobo essentially deleting of the old Gemfile.lock should help here
indeed @gogainda
now it is failing to require it:
/home/braulio/.rvm/gems/truffleruby-22.3.0/gems/seven_zip_ruby-1.3.0/lib/seven_zip_ruby.rb:26:in `<top (required)>': Failed to initialize SevenZipRuby (RuntimeError)
from <internal:core> core/kernel.rb:234:in `gem_original_require'
from script.rb:8:in `<main>
Indeed, that can be reproduced with:
$ gem i seven_zip_ruby
Fetching seven_zip_ruby-1.3.0.gem
Building native extensions. This could take a while...
Successfully installed seven_zip_ruby-1.3.0
1 gem installed
$ruby -w -rseven_zip_ruby -e0
7z library is not found.
/home/eregon/.rubies/truffleruby-dev/lib/gems/gems/seven_zip_ruby-1.3.0/lib/seven_zip_ruby.rb:26:in `<top (required)>': Failed to initialize SevenZipRuby (RuntimeError)
from <internal:core> core/kernel.rb:234:in `gem_original_require'
from <internal:/home/eregon/.rubies/truffleruby-dev/lib/mri/rubygems/core_ext/kernel_require.rb>:160:in `require'
from <internal:core> core/unbound_method.rb:18:in `bind_call'
from <internal:core> core/kernel.rb:272:in `require'
<internal:core> core/kernel.rb:236:in `gem_original_require': cannot load such file -- seven_zip_ruby (LoadError)
from <internal:/home/eregon/.rubies/truffleruby-dev/lib/mri/rubygems/core_ext/kernel_require.rb>:85:in `require'
from <internal:core> core/unbound_method.rb:18:in `bind_call'
from <internal:core> core/kernel.rb:272:in `require'
which means the dlopen
of 7z.so
fails for some reason (Sulong/NFI issue maybe? The file does exist).
Still reproduce it on TruffleRuby 24.0.0:
$ ruby -v
truffleruby 24.0.0, like ruby 3.2.2, Oracle GraalVM Native [x86_64-darwin]
$ truffleruby-gems-to-test ruby -w -rseven_zip_ruby -e0
/Users/andrykonchin/.rbenv/versions/truffleruby-24.0.0/lib/gems/gems/seven_zip_ruby-1.3.0/lib/seven_zip_ruby.rb:12:in `find_external_lib_dir': Failed to find 7z.dll or 7z.so (RuntimeError)
from /Users/andrykonchin/.rbenv/versions/truffleruby-24.0.0/lib/gems/gems/seven_zip_ruby-1.3.0/lib/seven_zip_ruby.rb:17:in `<module:SevenZipRuby>'
from /Users/andrykonchin/.rbenv/versions/truffleruby-24.0.0/lib/gems/gems/seven_zip_ruby-1.3.0/lib/seven_zip_ruby.rb:5:in `<top (required)>'
from <internal:core> core/kernel.rb:229:in `gem_original_require'
from <internal:/Users/andrykonchin/.rbenv/versions/truffleruby-24.0.0/lib/mri/rubygems/core_ext/kernel_require.rb>:159:in `require'
from <internal:core> core/unbound_method.rb:18:in `bind_call'
from <internal:core> core/kernel.rb:267:in `require'
<internal:core> core/kernel.rb:231:in `gem_original_require': cannot load such file -- seven_zip_ruby (LoadError)
from <internal:/Users/andrykonchin/.rbenv/versions/truffleruby-24.0.0/lib/mri/rubygems/core_ext/kernel_require.rb>:85:in `require'
from <internal:core> core/unbound_method.rb:18:in `bind_call'
from <internal:core> core/kernel.rb:267:in `require'
Installing seven_zip_ruby 1.3.0 with native extensions
--- ERROR REPORT TEMPLATE -------------------------------------------------------
Environment
Bundler Build Metadata
Gemfile
Gemfile
Gemfile.lock
--- TEMPLATE END ----------------------------------------------------------------