From: "nobu (Nobuyoshi Nakada) via ruby-core" Date: 2024-09-25T23:43:06+00:00 Subject: [ruby-core:119291] [Ruby master Bug#20760] Ruby 3.0.6 fails to build on macOS 15.0 24A335 arm64 Issue #20760 has been updated by nobu (Nobuyoshi Nakada). 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 ---------------------------------------- Bug #20760: Ruby 3.0.6 fails to build on macOS 15.0 24A335 arm64 https://bugs.ruby-lang.org/issues/20760#change-109903 * Author: jschoolcraft (Jeff Schoolcraft) * Status: Open * Backport: 3.1: UNKNOWN, 3.2: UNKNOWN, 3.3: UNKNOWN ---------------------------------------- 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-------------------------------- ruby-build.20240924112240.30103.log (71.6 KB) -- https://bugs.ruby-lang.org/ ______________________________________________ ruby-core mailing list -- ruby-core@ml.ruby-lang.org To unsubscribe send an email to ruby-core-leave@ml.ruby-lang.org ruby-core info -- https://ml.ruby-lang.org/mailman3/lists/ruby-core.ml.ruby-lang.org/