Skip to content
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

Can't build JRuby with J9 #79

Closed
zzak opened this issue Dec 25, 2015 · 4 comments
Closed

Can't build JRuby with J9 #79

zzak opened this issue Dec 25, 2015 · 4 comments
Assignees

Comments

@zzak
Copy link

zzak commented Dec 25, 2015

My good friend @headius pointed me to report this issue here, so here we are.

I'm having issues building JRuby, both 1.7 and 9.0.4.0 using the latest j9 pre-release binary.

Here's the output I'm getting when trying to use ruby-build to install the latest JRuby 9000:

~ => export JAVA_HOME=/home/zzak/src/jre-9/
~ => ruby-build jruby-9.0.4.0 ~/.rubies/j9-jruby-9
Downloading jruby-bin-9.0.4.0.tar.gz...
-> https://dqw8nmjcqpjn7.cloudfront.net/fcf828c4ad5b92430a349f1e873c067a15e0952d167d07368135c513fe0d18fb
Installing jruby-9.0.4.0...

BUILD FAILED (Ubuntu 14.04 using ruby-build 20151216)

Inspect or clean up the working tree at /tmp/ruby-build.20151226050234.9234
Results logged to /tmp/ruby-build.20151226050234.9234.log

Last 10 log lines:
X-Cache: Hit from cloudfront
Via: 1.1 d14fd6248e8744adca7a99428b205190.cloudfront.net (CloudFront)
X-Amz-Cf-Id: hFe0VpY7S8-z_waAJOU0YrQWQqGd2HU3aKkz8POTb0Epy9d4MEechw==

/tmp/ruby-build.20151226050234.9234/jruby-9.0.4.0 /tmp/ruby-build.20151226050234.9234 ~
unsupported Java version "9", defaulting to 1.5
ERROR:  Loading command: install (OpenSSL::X509::StoreError)
        setting default path failed: No password supplied for PKCS#12 KeyStore.
ERROR:  While executing gem ... (NoMethodError)
    undefined method `invoke_with_build_args' for nil:NilClass

Also, interesting that it says unsupported Java version "9"..

Here's the log from the JRuby 1.7 build (which is missing the unsupported Java version bit):

/tmp/ruby-build.20151226043906.8024 ~
HTTP/1.1 200 OK
Content-Type: binary/octet-stream
Content-Length: 21630974
Connection: keep-alive
Date: Fri, 25 Dec 2015 18:44:26 GMT
Last-Modified: Wed, 25 Nov 2015 21:28:16 GMT
ETag: "41e3f45c28c94a275f9eeb22721da35d"
Accept-Ranges: bytes
Server: AmazonS3
Age: 3281
X-Cache: Hit from cloudfront
Via: 1.1 9aaf336897fdd8a2dfd1b375c61d8b0b.cloudfront.net (CloudFront)
X-Amz-Cf-Id: 7tw86yOaG0EMZcxPBFeJQYFhLMkK3elRJXJ_2_Mh1Hl7xNCr0brg9g==

/tmp/ruby-build.20151226043906.8024/jruby-1.7.23 /tmp/ruby-build.20151226043906.8024 ~
io/console not supported; tty will not be manipulated
ERROR:  Loading command: install (OpenSSL::X509::StoreError)
    setting default path failed: No password supplied for PKCS#12 KeyStore.
ERROR:  While executing gem ... (NoMethodError)
    undefined method `invoke_with_build_args' for nil:NilClass
@mkristian
Copy link
Member

I can reproduce it, will look into it . . . .

@mkristian mkristian self-assigned this Dec 26, 2015
@zzak
Copy link
Author

zzak commented Dec 27, 2015

@mkristian How did you setup j9?

I downloaded an early access release from here: https://jdk9.java.net/download/
Then set JAVA_HOME to the extracted tarball directory.

Maybe I missed a step?

@mkristian
Copy link
Member

@zzak thanx for the link. I did use an early access version from the oracle.com website.

I can reproduce it without ruby-build by just using jdk9 on the github build (both master or jruby-1_7 branch)

bin/jruby bin/gem install jruby-launcher

the "unsupported Java version" comes from version check in RubyInstanceConfig.java jruby/jruby#3563

@mkristian
Copy link
Member

$ bin/jruby -ropenssl -e 'OpenSSL::X509::Store.new.set_default_paths'
unsupported Java version "9", defaulting to 1.5
OpenSSL::X509::StoreError: setting default path failed: No password supplied for PKCS#12 KeyStore.
  set_default_paths at org/jruby/ext/openssl/X509Store.java:185
              <top> at /Users/cmeier/projects/active/jruby/lib/ruby/stdlib/jopenssl/load.rb:25
            require at org/jruby/RubyKernel.java:939
             (root) at /Users/cmeier/projects/active/jruby/lib/ruby/stdlib/rubygems/core_ext/kernel_require.rb:1
              <top> at /Users/cmeier/projects/active/jruby/lib/ruby/stdlib/rubygems/core_ext/kernel_require.rb:54
            require at org/jruby/RubyKernel.java:939
             (root) at /Users/cmeier/projects/active/jruby/lib/ruby/stdlib/openssl.rb:1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants