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

v1.4.15 does not install under JRuby #103

Closed
flavorjones opened this issue Mar 8, 2019 · 4 comments
Closed

v1.4.15 does not install under JRuby #103

flavorjones opened this issue Mar 8, 2019 · 4 comments

Comments

@flavorjones
Copy link
Collaborator

To reproduce:

$ rvm use jruby
Using /home/flavorjones/.rvm/gems/jruby-9.2.5.0

$ gem install racc -v 1.4.15
Building native extensions. This could take a while...
ERROR:  Error installing racc:
	ERROR: Failed to build gem native extension.

    current directory: /home/flavorjones/.rvm/gems/jruby-9.2.5.0/gems/racc-1.4.15/ext/racc
/home/flavorjones/.rvm/rubies/jruby-9.2.5.0/bin/jruby -r ./siteconf20190308-9330-hpy0c5.rb extconf.rb
checking for rb_ary_subseq()... 
RuntimeError: The compiler failed to generate an executable file.
You have to install development tools first.

        try_do at /home/flavorjones/.rvm/rubies/jruby-9.2.5.0/lib/ruby/stdlib/mkmf.rb:456
     try_link0 at /home/flavorjones/.rvm/rubies/jruby-9.2.5.0/lib/ruby/stdlib/mkmf.rb:541
      try_link at /home/flavorjones/.rvm/rubies/jruby-9.2.5.0/lib/ruby/stdlib/mkmf.rb:556
      try_func at /home/flavorjones/.rvm/rubies/jruby-9.2.5.0/lib/ruby/stdlib/mkmf.rb:765
     have_func at /home/flavorjones/.rvm/rubies/jruby-9.2.5.0/lib/ruby/stdlib/mkmf.rb:1051
  checking_for at /home/flavorjones/.rvm/rubies/jruby-9.2.5.0/lib/ruby/stdlib/mkmf.rb:942
      postpone at /home/flavorjones/.rvm/rubies/jruby-9.2.5.0/lib/ruby/stdlib/mkmf.rb:350
          open at /home/flavorjones/.rvm/rubies/jruby-9.2.5.0/lib/ruby/stdlib/mkmf.rb:320
      postpone at /home/flavorjones/.rvm/rubies/jruby-9.2.5.0/lib/ruby/stdlib/mkmf.rb:350
          open at /home/flavorjones/.rvm/rubies/jruby-9.2.5.0/lib/ruby/stdlib/mkmf.rb:320
      postpone at /home/flavorjones/.rvm/rubies/jruby-9.2.5.0/lib/ruby/stdlib/mkmf.rb:346
  checking_for at /home/flavorjones/.rvm/rubies/jruby-9.2.5.0/lib/ruby/stdlib/mkmf.rb:941
     have_func at /home/flavorjones/.rvm/rubies/jruby-9.2.5.0/lib/ruby/stdlib/mkmf.rb:1050
        <main> at extconf.rb:5
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of necessary
libraries and/or headers.  Check the mkmf.log file for more details.  You may
need configuration options.

Provided configuration options:
	--with-opt-dir
	--without-opt-dir
	--with-opt-include
	--without-opt-include=${opt-dir}/include
	--with-opt-lib
	--without-opt-lib=${opt-dir}/lib
	--with-make-prog
	--without-make-prog
	--srcdir=.
	--curdir
	--ruby=/home/flavorjones/.rvm/rubies/jruby-9.2.5.0/bin/jruby

To see why this extension failed to compile, please check the mkmf.log which can be found here:

  /home/flavorjones/.rvm/gems/jruby-9.2.5.0/extensions/universal-java-10/2.5.0/racc-1.4.15/mkmf.log

extconf failed, exit code 1

Gem files will remain installed in /home/flavorjones/.rvm/gems/jruby-9.2.5.0/gems/racc-1.4.15 for inspection.
Results logged to /home/flavorjones/.rvm/gems/jruby-9.2.5.0/extensions/universal-java-10/2.5.0/racc-1.4.15/gem_make.out

Note that v1.4.14 installed fine under JRuby:

$ gem install racc -v 1.4.14
Successfully installed racc-1.4.14-java
1 gem installed

$ ruby -v
jruby 9.2.5.0 (2.5.0) 2018-12-06 6d5a228 OpenJDK 64-Bit Server VM 10.0.2+13-Ubuntu-1ubuntu0.18.04.4 on 10.0.2+13-Ubuntu-1ubuntu0.18.04.4 [linux-x86_64]

$ racc -o calc /home/flavorjones/.rvm/gems/jruby-9.2.5.0/gems/racc-1.4.14-java/sample/calc.y 

$ ruby calc

type "Q" to quit.


? 1 + 2
= 3
@flavorjones
Copy link
Collaborator Author

@headius Any thoughts there? The changeset between 1.4.14 and .15 is quite large.

@flavorjones
Copy link
Collaborator Author

Ah - the issue is that there isn't a java platform version pushed to rubygems. Can someone do that, please?

@flavorjones
Copy link
Collaborator Author

@tenderlove has added me as an owner on Rubygems.org, so I'll push this now.

@flavorjones
Copy link
Collaborator Author

I've pushed v1.4.15-java to rubygems.org.

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

No branches or pull requests

1 participant