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 fails simple file.stat operations on ppc64 architecture. #2729

Open
ralphbellofatto opened this issue Mar 19, 2015 · 0 comments
Open

Comments

@ralphbellofatto
Copy link

We found running jruby on the openJDK on ppc64 architecture throws an uncaught exception.

we obtained a the 1.7.20 snapshot from:

http://ci.jruby.org/snapshots/jruby-1_7/jruby-dist-1.7.20-SNAPSHOT-bin.tar.gz

and we constructed a very simple jruby script:

cat testdev.rb

require 'fileutils'

stat = File::Stat.new("./testdev.rb")
inode = [stat.ino.to_s, stat.dev_major, stat.dev_minor]

and then ran the following script:

jruby-1.7.20-SNAPSHOT/bin/jruby testdev.rb

and it produced the following output:

Mar 19, 2015 11:11:29 AM jnr.ffi.provider.jffi.NativeRuntime buildNativeTypeAliases
SEVERE: failed to load type aliases: java.lang.ClassNotFoundException: jnr/ffi/provider/jffi/platform/ppc64/linux/TypeAliases
NotImplementedError: stat.st_dev unsupported or native support failed to load
  dev_major at org/jruby/RubyFileStat.java:201
     (root) at testdev.rb:4

the java version is:

 java -version
openjdk version "1.8.0_31"
OpenJDK Runtime Environment (build 1.8.0_31-b13)
OpenJDK 64-Bit Server VM (build 25.31-b07, mixed mode)
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