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
Native extension ABI version check failing for some gems #2382
Comments
…n loading a native extension PullRequest: truffleruby/2735
What happens here most likely is that |
https://github.com/Shopify/semian/blob/6ff4b8292038fe3f6fc785884129039d5cf3e05f/ext/semian/extconf.rb#L26 is most likely what overrides the CFLAGS and causes the error. |
Makes sense. Is the suggestion that this must be fixed in the gem? Do we have no way of supporting what it’s currently doing? |
I'll try to find a way that's more reliably to pass the define, but overriding |
I found a way, I moved the define from debugflags (part of CFLAGS), to DEFS, part of CPPFLAGS (= C preprocessor flags, |
FWIW I couldn’t find any other gems with this specific problem. All of the other failures I saw were the |
FWIW RubyInline includes CFLAGS but not CPPFLAGS when it compiles, but that's probably a bug of RubyInline (there are other known bugs with it), so doesn't matter too much. |
Fixed by 3252693 |
As discussed, the native extension ABI version check in d497bae is causing failures when loading some gems on Linux (Ubuntu 20.04.2 LTS).
My current example is the
semian
gem:@nirvdrum reported a similar problem with the
google-protobuf
gem. I’ll add more examples as I find them.The text was updated successfully, but these errors were encountered: