rbenv / ruby-build

A tool to download, compile, and install Ruby on Unix-like systems.
https://rbenv.org/man/ruby-build.1
MIT License
3.89k stars 784 forks source link

Truffleruby cannot build #1910

Closed KieranP closed 2 years ago

KieranP commented 2 years ago

Steps to reproduce the behavior

% asdf install ruby truffleruby+graalvm-21.3.0

Expected vs. actual behavior

Should install like other ruby interpreters, but does not.

Logs

% asdf install ruby truffleruby+graalvm-21.3.0
ruby-build: using openssl from homebrew
Downloading graalvm-ce-java11-darwin-amd64-21.3.0.tar.gz...
-> https://dqw8nmjcqpjn7.cloudfront.net/6c2bf7f6e5fab901e8a2284a0dbec6ce214bde65aa80cfeb90bfef8eabb5f862
Installing truffleruby+graalvm-21.3.0...

ERROR: cannot install TruffleRuby to /Users/kieran/.asdf/installs/ruby/truffleruby+graalvm-21.3.0, which does not look like a valid TruffleRuby prefix
TruffleRuby only supports being installed to a not existing directory or replacing an existing TruffleRuby installation
See https://github.com/oracle/truffleruby/issues/1389 for details

BUILD FAILED (macOS 12.1 using ruby-build 20211227)

Inspect or clean up the working tree at /var/folders/xy/ryc1ry312wq8378j14qj7q100000gn/T/ruby-build.20220116211228.81181.SfKGkE
Results logged to /var/folders/xy/ryc1ry312wq8378j14qj7q100000gn/T/ruby-build.20220116211228.81181.log

Last 10 log lines:
ETag: "f89d77b6cfd089cca441e4cc6fe3422a-49"
Accept-Ranges: bytes
Server: AmazonS3
X-Cache: Hit from cloudfront
Via: 1.1 7f2634ab02503490a050083667b6ffd4.cloudfront.net (CloudFront)
X-Amz-Cf-Pop: ORD53-C3
X-Amz-Cf-Id: KJQpdLmn1fKQrYJc1RdPZDC8QbV8PHzlm98sdvpvsQ4w_RdwbdAcmw==
Age: 71794

/var/folders/xy/ryc1ry312wq8378j14qj7q100000gn/T/ruby-build.20220116211228.81181.SfKGkE/truffleruby+graalvm-21.3.0 /var/folders/xy/ryc1ry312wq8378j14qj7q100000gn/T/ruby-build.20220116211228.81181.SfKGkE ~

Even if I remove /Users/kieran/.asdf/installs/ruby/truffleruby+graalvm-21.3.0, the issue remains

KieranP commented 2 years ago

Bypassed asdf and ran ruby-build direct and it worked fine, so not a ruby-build issue