-
Notifications
You must be signed in to change notification settings - Fork 141
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
Installing 0.7.8 on macOS 14.5 (Sonoma) error. #177
Comments
Belive this is related to the change made here - #174 I'm seeing similar issues on OSX as the flags aren't set by default. If you have installed icu4c via homebrew you can configure bundle to pass the cxxflags like so
However it would be nice if this worked out of the box like 0.7.7 did |
I'm having the same issue with Sonoma (14.5) installing 0.7.8 after upgrading ruby version to 3.3.3. However, it didn't work for me even with -std=c++11 in cxxflags. Literally tried everything in #122 , but nothing worked for me. It always ended up with the same output. My icu4c version 74.2
|
clang requires manually enabling C++ extensions via `-std=c++<version>`, and ICU 75.1 needs C++17. Auto-detect the flags that are needed to build. Relates to brianmario#172 Closes brianmario#177
I think #179 solves this. |
exact same issue as @em1l1o for me except Ruby 3.3.1. I'm able to get 0.7.7 installed with |
The error from the logs above:
This seems related to https://bugs.ruby-lang.org/issues/18616 with a workaround in ruby/ruby@0958e19. What happens if you run irb(main):001> RbConfig::CONFIG['CFLAGS']
=> "-fdeclspec -O3 -fno-fast-math -ggdb3 -Wall -Wextra -Wextra-tokens -Wdeprecated-declarations -Wdivision-by-zero -Wdiv-by-zero -Wimplicit-function-declaration -Wimplicit-int -Wmisleading-indentation -Wpointer-arith -Wshorten-64-to-32 -Wwrite-strings -Wold-style-definition -Wmissing-noreturn -Wno-cast-function-type -Wno-constant-logical-operand -Wno-long-long -Wno-missing-field-initializers -Wno-overlength-strings -Wno-parentheses-equality -Wno-self-assign -Wno-tautological-compare -Wno-unused-parameter -Wno-unused-value -Wunused-variable -Wundef -fno-common -pipe"
irb(main):002> RbConfig::CONFIG['CXXFLAGS']
=> "-fdeclspec"
irb(main):003> RbConfig::CONFIG['CC']
=> "clang"
irb(main):004> RbConfig::CONFIG['CXX']
=> "clang++" |
Also you can try installing |
@stanhu Here are my outputs in IRB: irb(main):001> RbConfig::CONFIG['CFLAGS']
=> "-fdeclspec -O3 -fno-fast-math -ggdb3 -Wall -Wextra -Wextra-tokens -Wdeprecated-declarations -Wdivision-by-zero -Wdiv-by-zero -Wimplicit-function-declaration -Wimplicit-int -Wpointer-arith -Wshorten-64-to-32 -Wwrite-strings -Wold-style-definition -Wmissing-noreturn -Wno-cast-function-type -Wno-constant-logical-operand -Wno-long-long -Wno-missing-field-initializers -Wno-overlength-strings -Wno-parentheses-equality -Wno-self-assign -Wno-tautological-compare -Wno-unused-parameter -Wno-unused-value -Wunused-variable -Wmisleading-indentation -Wundef -fno-common -pipe"
irb(main):002> RbConfig::CONFIG['CXXFLAGS']
=> "-fdeclspec"
irb(main):003> RbConfig::CONFIG['CC']
=> "clang"
irb(main):004> RbConfig::CONFIG['CXX']
=> "clang++" I don't think it matters, but this is with my |
@joshuapinter Ok, can you try running |
@alexrogers |
@tenderlove Thanks for merging the fix for this. Any idea when a new Release/Tag will be made? |
@joshuapinter I just shipped it, so it should be out now. |
@tenderlove You the man. Just installed it and it worked perfectly. Thanks again. 🙏 |
thanks everyone for your help |
0.7.7 appears to be fine but 0.7.8 causes this issue. After a few attempts to fix it I just pinned our
Gemfile
with version 0.7.7.The text was updated successfully, but these errors were encountered: