ziggythehamster commented on issue #15279: URL: https://github.com/apache/arrow/issues/15279#issuecomment-1377795361
`-Wno-register` gets it working, but `red-arrow` does not honor any config options, e.g. `gem install red-arrow:10.0.1 -- --with-cflags="-Wno-register"` doesn't pass those parameters to the configure script. It also doesn't pass through `CFLAGS` in the env (ditto for CXXFLAGS/--with-cxxflags). The issue is that Ruby 2.6 in Homebrew was compiled with clang 13, which seems to not treat this as an error, but the latest dev tools has clang 14, which does. This leaves these options: 1. Compile Ruby from source (`brew reinstall [email protected] --build-from-source`) - probably works but am currently testing 2. Lie about the cflags Ruby was built with by editing `/usr/local/opt/[email protected]//lib/ruby/2.6.0/x86_64-darwin21/rbconfig.rb` such that `warnflags` now has `-Wno-register` at the end (works, but yuck) 3. Add `$CFLAGS << ' -Wno-register'` to `ext/arrow/extconf.rb` and maintain a fork of the gem (almost worse than the second option) Assuming the first option is going to work, that is the best choice obviously :) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
