Bug #20760
closedRuby 3.0.6 fails to build on macOS 15.0 24A335 arm64
Description
I support a Rails 6.1 project with Ruby 3.0.6 and am unable to build 3.0.6 on a new mac book pro running macOS 15.0 24A335 arm64.
I've attached the build log the primary failure is related to maybe_unused
in BigDecimal.
I tried multiple workarounds suggested in:
- https://github.com/rvm/rvm/issues/5365
- https://www.reddit.com/r/ruby/comments/yjvn5c/ruby_30_on_m1_failing_because_of_bigdecimal/
- https://bugs.ruby-lang.org/issues/18912#note-6
- https://github.com/rbenv/ruby-build/discussions/2185
I'm able to install 3.0.6 on macOS 14.6.1 23G93 arm64 with only these changes:
brew install rbenv/tap/openssl@1.0
asdf install ruby 3.0.6 --with-openssl-dir="$(brew --prefix)/opt/openssl@1.0"
Files
Updated by nobu (Nobuyoshi Nakada) 2 months ago
- Related to Bug #20499: Ruby builds on macOS store absolute paths for AR and NM in rbconfig since Ruby 3.2.3/3.3.0 added
Updated by nobu (Nobuyoshi Nakada) 2 months ago
- Related to Bug #18504: configure prints a warning when cross-compiling added
Updated by nobu (Nobuyoshi Nakada) 2 months ago ยท Edited
Following commits will be needed to compile 3.0 with the recent Xcode:
- 4113862c0068a8a95d752f5fdf14980f92cd41d7
Do not search for commands with double tool prefixes [Bug #18504] - 17c8bf2c63192036058b03a04edf7a8478e47833
configure: Don't use use LD=clang, ld takes different flags - 1e08a9f0e9058186db18f29efc6458c00f10a856
[Bug #20499] Use Xcode owned tools for Xcode clang - 1dfe75b0beb7171b8154ff0856d5149be0207724
Fixed 'maybe_unused' attribute
Updated by hsbt (Hiroshi SHIBATA) 2 months ago
openssl@1.0
is not related for this build failure.
I could build applied https://bugs.ruby-lang.org/projects/ruby-master/repository/git/revisions/1dfe75b0beb7171b8154ff0856d5149be0207724 on Ruby 3.0.6 with macOS 15.1 beta5. The instruction of ruby-build is here:
$ curl -sSL https://github.com/ruby/ruby/commit/1dfe75b0beb7171b8154ff0856d5149be0207724.patch | rbenv install --patch 3.0.6
Updated by hsbt (Hiroshi SHIBATA) 2 months ago
- Status changed from Open to Closed
Ruby 3.0 is EOL now. We will not backport related changes into ruby_3_0
branch.