Description
Attempting to compile Ruby 4.0.7 with ruby-install 0.10.2 on macOS 26.6.2 fails with the following output:
building libruby.a
partial linking /Users/mudge/src/ruby-4.0.7/target/release/libruby.a into /Users/mudge/src/ruby-4.0.7/target/release/libruby.o
linking miniruby
make: *** [builtin_binary.rbbin] Segmentation fault: 11
!!! Compiling ruby 4.0.7 failed!
Steps To Reproduce
Steps to reproduce the bug:
$ ruby-install ruby 4.0.7
Expected Behavior
Ruby 4.0.7 should be compiled and installed.
Actual Behavior
building libruby.a
partial linking /Users/mudge/src/ruby-4.0.7/target/release/libruby.a into /Users/mudge/src/ruby-4.0.7/target/release/libruby.o
linking miniruby
make: *** [builtin_binary.rbbin] Segmentation fault: 11
!!! Compiling ruby 4.0.7 failed!
Environment
$ ruby-install --version
ruby-install: 0.10.1
$ uname -a
Darwin Pauls-MacBook-Pro.local 25.6.0 Darwin Kernel Version 25.6.0: Fri Jul 31 19:18:48 PDT 2026; root:xnu-12377.161.14~5/RELEASE_ARM64_T6020 arm64
$ cc --version
Apple clang version 21.0.0 (clang-2100.3.34.2)
Target: arm64-apple-darwin25.6.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin
$ openssl version
OpenSSL 3.6.4 25 Aug 2026 (Library: OpenSSL 3.6.4 25 Aug 2026)
See rbenv/ruby-build#2641 for the same issue and resolution with ruby-build, their workaround appears to be set the following:
export ac_cv_func_dup3=no ac_cv_func_pipe2=no
Description
Attempting to compile Ruby 4.0.7 with ruby-install 0.10.2 on macOS 26.6.2 fails with the following output:
Steps To Reproduce
Steps to reproduce the bug:
$ ruby-install ruby 4.0.7Expected Behavior
Ruby 4.0.7 should be compiled and installed.
Actual Behavior
Environment
Target: arm64-apple-darwin25.6.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin
$ openssl version
OpenSSL 3.6.4 25 Aug 2026 (Library: OpenSSL 3.6.4 25 Aug 2026)
See rbenv/ruby-build#2641 for the same issue and resolution with ruby-build, their workaround appears to be set the following: