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

JRuby doesn't work in Trusty #18

Closed
untergeek opened this issue Jun 21, 2016 · 2 comments
Closed

JRuby doesn't work in Trusty #18

untergeek opened this issue Jun 21, 2016 · 2 comments

Comments

@untergeek
Copy link

I've tried multiple JVMs, and multiple versions of JRuby, but JRuby gives the following error when I try to test JRuby in Trusty:

jruby: unknown option --Xcompile.invokedynamic=false

This is the greater context of the error, with JRuby-9.0.1.0:

rvm
$ rvm use jruby-9.0.1.0 --install --binary --fuzzy
Warning! PATH is not properly set up, '/usr/local/rvm/gems/ruby-2.2.3/bin' is not at first place,
         usually this is caused by shell initialization files - check them for 'PATH=...' entries,
         it might also help to re-add RVM to your dotfiles: 'rvm get stable --auto-dotfiles',
         to fix temporarily in this shell session run: 'rvm use ruby-2.2.3'.
Using /usr/local/rvm/gems/jruby-9.0.1.0
$ export BUNDLE_GEMFILE=$PWD/Gemfile
cache.1
Setting up build cache
$ export CASHER_DIR=$HOME/.casher
$ Installing caching utilities

attempting to download cache archive
fetching PR.15/cache-linux-trusty-b9f68dcbfe0afdd55df103b828d634a25132304706f4ed46ade2bd085a82ed13--jdk-oraclejdk8--rvm-jruby-9.0.1.0--gemfile-Gemfile.tgz
fetching PR.15/cache--jdk-oraclejdk8--rvm-jruby-9.0.1.0--gemfile-Gemfile.tgz
fetching master/cache-linux-trusty-b9f68dcbfe0afdd55df103b828d634a25132304706f4ed46ade2bd085a82ed13--jdk-oraclejdk8--rvm-jruby-9.0.1.0--gemfile-Gemfile.tgz
fetching master/cache--jdk-oraclejdk8--rvm-jruby-9.0.1.0--gemfile-Gemfile.tgz
could not download cache
cache.bundler

adding /home/travis/build/logstash-plugins/logstash-output-zabbix/vendor/bundle to cache
$ java -Xmx32m -version
java version "1.8.0_51"
Java(TM) SE Runtime Environment (build 1.8.0_51-b16)
Java HotSpot(TM) 64-Bit Server VM (build 25.51-b03, mixed mode)
$ javac -J-Xmx32m -version
javac 1.8.0_51
$ ruby --version
jruby: warning: unknown property jruby.cext.enabled
jruby: unknown option --Xcompile.invokedynamic=false
$ rvm --version
rvm 1.26.11 (stable) by Wayne E. Seguin <[email protected]>, Michal Papis <[email protected]> [https://rvm.io/]
$ bundle --version
jruby: warning: unknown property jruby.cext.enabled
jruby: unknown option --Xcompile.invokedynamic=false
$ gem --version
jruby: warning: unknown property jruby.cext.enabled
jruby: unknown option --Xcompile.invokedynamic=false
before_install.1
$ docker pull untergeek/logstash_output_zabbix_rspec:latest
latest: Pulling from untergeek/logstash_output_zabbix_rspec
Status: Downloaded newer image for untergeek/logstash_output_zabbix_rspec:latest
before_install.2
$ docker run -i --name="logstash_zabbix_rspec" -t -d -p 10051:10051 untergeek/logstash_output_zabbix_rspec:latest run
70bdc185e01f80be557bafa3b4779fd58ba728ffae55a1c5de7d1c3bbf464cd0
$ bundle install --jobs=3 --retry=3 --path=${BUNDLE_PATH:-vendor/bundle}
jruby: warning: unknown property jruby.cext.enabled
jruby: unknown option --Xcompile.invokedynamic=false

untergeek added a commit to untergeek/logstash-output-zabbix that referenced this issue Jun 21, 2016
Update version dependency for zabbix_protocol ruby gem
Update to do testing with Travis CI

Disabling Docker testing for now

TravisCI and JRuby are not playing nice.

Filed a ticket at: travis-ci/travis-rubies#18
elasticsearch-bot pushed a commit to logstash-plugins/logstash-output-zabbix that referenced this issue Jun 21, 2016
Update version dependency for zabbix_protocol ruby gem
Update to do testing with Travis CI

Disabling Docker testing for now

TravisCI and JRuby are not playing nice.

Filed a ticket at: travis-ci/travis-rubies#18

Fixes #15
@mpapis
Copy link
Contributor

mpapis commented Jun 21, 2016

@enebo & @headius would you know what the problem might be here?

@BanzaiMan
Copy link
Contributor

The option --Xcompile.invokedynamic=false is set somewhere in your configuration, maybe in ~/.jrubyrc. (See jruby/jruby#953, for example.)

This is not a travis-rubies issue.

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

3 participants