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

jrubyc fails with invokedynamic parameters in linux #1429

Closed
xushijie opened this issue Jan 21, 2014 · 2 comments
Closed

jrubyc fails with invokedynamic parameters in linux #1429

xushijie opened this issue Jan 21, 2014 · 2 comments

Comments

@xushijie
Copy link

The issue is also post at
http://stackoverflow.com/questions/21244046/jrubyc-fails-with-invokedynamic-parameters-in-linux

The problem is:
[sxu3@* rubyscript]$ jrubyc -Xcompile.invokedynamic=true hello.rb
OptionParser::InvalidOption: invalid option: -Xcompile.invokedynamic=true
complete at /homes/sxu3/tools/jruby-1.7.10/lib/ruby/1.9/optparse.rb:1542
catch at org/jruby/RubyKernel.java:1282
complete at /homes/sxu3/tools/jruby-1.7.10/lib/ruby/1.9/optparse.rb:1540
parse_in_order at /homes/sxu3/tools/jruby-1.7.10/lib/ruby/1.9/optparse.rb:1380
catch at org/jruby/RubyKernel.java:1282
parse_in_order at /homes/sxu3/tools/jruby-1.7.10/lib/ruby/1.9/optparse.rb:1347
order! at /homes/sxu3/tools/jruby-1.7.10/lib/ruby/1.9/optparse.rb:1341
permute! at /homes/sxu3/tools/jruby-1.7.10/lib/ruby/1.9/optparse.rb:1432
parse! at /homes/sxu3/tools/jruby-1.7.10/lib/ruby/1.9/optparse.rb:1453
compile_argv at /homes/sxu3/tools/jruby-1.7.10/lib/ruby/shared/jruby/compiler.rb:83
initialize at /homes/sxu3/tools/jruby-1.7.10/lib/ruby/1.9/optparse.rb:882
compile_argv at /homes/sxu3/tools/jruby-1.7.10/lib/ruby/shared/jruby/compiler.rb:35
(root) at /homes/sxu3/tools/jruby-1.7.10/bin/jrubyc:5
[sxu3@
* rubyscript]$ jrubyc -Xcompile.invokedynamic=true hello.rb ^C
[sxu3@* rubyscript]$ which jrubyc
~/tools/jruby-1.7.10/bin/jrubyc
[sxu3@
* rubyscript]$ jruby -v
jruby 1.7.10 (1.9.3p392) 2014-01-09 c4ecd6b on Java HotSpot(TM) Server VM 1.7.0_51-b13 [linux-i386]
[sxu3@** rubyscript]$

[sxu3@** rubyscript]$ uname -a
Linux .. 2.6.32-358.23.2.el6.x86_64 #1 SMP Wed Oct 16 18:37:12 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux

Without -Xcompile.invokedynamic=true, jrubyc works but none of invokedynamic instruction is in generated bytecodes. Also,

  "jrubyc -Xcompile.invokedynamic=true hello.rb" 

works in window and i saw invokedynamic in class file in window.

I leave all other jrubyc properties(.jrubyrc) as default value

hello.rb is one line ruby script:

puts "hello world"

I also tried jrubyc 1.7.6 and the same errors

@enebo
Copy link
Member

enebo commented Feb 17, 2017

@xushijie I have never seen this issue until now but if you still care you can try JRUBY_OPTS=-Xcompile.invokedynamic=true jrubyc hello.rb

@enebo enebo added this to the Invalid or Duplicate milestone Feb 17, 2017
@enebo
Copy link
Member

enebo commented Feb 17, 2017

@xushijie if you are still interested and that does not work then please reopen this issue.

@enebo enebo closed this as completed Feb 17, 2017
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