Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issues running it on Mac Intel (12.6) #748

Closed
brodock opened this issue Apr 13, 2023 · 3 comments
Closed

Issues running it on Mac Intel (12.6) #748

brodock opened this issue Apr 13, 2023 · 3 comments

Comments

@brodock
Copy link

brodock commented Apr 13, 2023

It seems one of the dependencies of this gem: llhttp-ffi is failing to load the ffi library on x86_64 intel mac.

I'm seeing this on a CI instance (running from Macstadium machine), so it's a bit harder to debug.

It seems the library was installed correctly, which I assume compiled the native library, but when executing code it can't find/load it:

LoadError: cannot find 'llhttp-ext' library
/.../.rvm/gems/ruby-3.0.5/gems/ffi-compiler-1.0.1/lib/ffi-compiler/loader.rb:21:in `find'
/.../.rvm/gems/ruby-3.0.5/gems/llhttp-ffi-0.4.0/lib/llhttp.rb:13:in `<module:LLHttp>'
/.../.rvm/gems/ruby-3.0.5/gems/llhttp-ffi-0.4.0/lib/llhttp.rb:6:in `<top (required)>'
/.../.rvm/gems/ruby-3.0.5/gems/activesupport-6.1.7.2/lib/active_support/dependencies.rb:332:in `require'
/.../.rvm/gems/ruby-3.0.5/gems/activesupport-6.1.7.2/lib/active_support/dependencies.rb:332:in `block in require'
/.../.rvm/gems/ruby-3.0.5/gems/activesupport-6.1.7.2/lib/active_support/dependencies.rb:299:in `load_dependency'
/.../.rvm/gems/ruby-3.0.5/gems/activesupport-6.1.7.2/lib/active_support/dependencies.rb:332:in `require'
/.../.rvm/gems/ruby-3.0.5/gems/http-5.1.1/lib/http/response/parser.rb:3:in `<top (required)>'
...

relevant dependencies from the Gemfile.lock:

    http (5.1.1)
      addressable (~> 2.8)
      http-cookie (~> 1.0)
      http-form_data (~> 2.2)
      llhttp-ffi (~> 0.4.0)

I've also noticed that llhttp-ffi has a new version released, but unsure whether it could help here or not.

@tarcieri
Copy link
Member

tarcieri commented Apr 13, 2023

This seems like an llhttp-ffi issue. Can you report it upstream?

Also can you try running the http.rb tests after cloning from git? We did merge a patch that updates llhttp-ffi (#744) but it's unreleased

@tarcieri
Copy link
Member

We should probably add macOS CI, but FWIW I am unable to reproduce this problem on an Intel MacBook

@brodock
Copy link
Author

brodock commented Apr 17, 2023

@tarcieri thanks for testing it out. It seems this is a bundler issue. I was trying out the new "global cache" setting and it seems to be breaking native libraries when trying to reuse/reinstall from the cache: rubygems/rubygems#6616

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants