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 complete not working with Solaris on Sparc with Java 7 #4743

Open
dagoss opened this issue Aug 17, 2017 · 0 comments
Open

JRuby complete not working with Solaris on Sparc with Java 7 #4743

dagoss opened this issue Aug 17, 2017 · 0 comments

Comments

@dagoss
Copy link

dagoss commented Aug 17, 2017

Environment

$ jruby -v
  jruby 9.1.12.0 (2.3.3) 2017-06-15 33c6439 Java HotSpot(TM) Server VM 24.75-b04 on 1.7.0_75-b13 +jit [solaris-sparc]
$ uname -a
  SunOS logo 5.10 Generic_150400-30 sun4v sparc sun4v
$ java -version
  java version "1.7.0_75"
  Java(TM) SE Runtime Environment (build 1.7.0_75-b13)
  Java HotSpot(TM) Server VM (build 24.75-b04, mixed mode)

Expected Behavior

I should be able to use -S to run commands or run a .rb file using Java 7. According to the README Java 7 or higher is supported.

Actual Behavior

It attempting to run any command with -S or run a .rb file, I get the following error (it is the same, regardless what what Ruby program or script I try to run):

$ java -version
  java version "1.7.0_75"
  Java(TM) SE Runtime Environment (build 1.7.0_75-b13)
  Java HotSpot(TM) Server VM (build 24.75-b04, mixed mode)
$ java -jar jruby-complete-9.1.12.0.jar -S irb
NameError: uninitialized constant FFI::Struct
   const_missing at org/jruby/RubyModule.java:3340
  <module:Fcntl> at uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/ffi/platform/x86_64-solaris/fcntl-flock.rb:2
          <main> at uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/ffi/platform/x86_64-solaris/fcntl-flock.rb:1
         require at org/jruby/RubyKernel.java:961
          <main> at uri:classloader:/jruby/kernel/file.rb:1
            load at org/jruby/RubyKernel.java:979
          <main> at uri:classloader:/jruby/kernel/file.rb:189

If I change this command and JAVA_HOME to use Java 8 instead, it works as expected. One thing I see in this command is that it's referencing a rb file in x86_64-solaris, even though I'm running the command from a Sparc system. Is that expected?

I believe this is platform specific. If I attempt to run the same jar file from Windows 7 command line using Java 7, and it worked as expected.

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

1 participant