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 to use upcoming jnr-ffi release to have ppc64le TypeAliases #2790

Closed
ayappanec opened this issue Apr 1, 2015 · 4 comments
Closed

Jruby to use upcoming jnr-ffi release to have ppc64le TypeAliases #2790

ayappanec opened this issue Apr 1, 2015 · 4 comments

Comments

@ayappanec
Copy link

@ayappanec ayappanec commented Apr 1, 2015

Recently jnr-ffi master branch is updated with ppc64le specific TypeAliases. Older versions don't have ppc64le specific TypeAliases due to which we are not above to invoke hbase shell in ppc64le.

[ayappan@soe07-vm3 bin]$ ./hbase shell
include_class is deprecated. Use java_import.
include_class is deprecated. Use java_import.
include_class is deprecated. Use java_import.
Apr 01, 2015 6:09:35 AM jnr.ffi.provider.jffi.NativeRuntime buildNativeTypeAliases
SEVERE: failed to load type aliases: java.lang.ClassNotFoundException: jnr.ffi.provider.jffi.platform.unknown.linux.TypeAliases
NoMethodError: undefined method `getTerminal' for Java::Jline::Terminal:Module
refresh_width at /home/ayappan/hbase/hbase-shell/src/main/ruby/shell/formatter.rb:33
initialize at /home/ayappan/hbase/hbase-shell/src/main/ruby/shell/formatter.rb:46
(root) at /home/ayappan/hbase/bin/../bin/hirb.rb:128

So jruby has to pickup the upcoming jnr-ffi version to have ppc64le support

@headius
Copy link
Member

@headius headius commented Apr 2, 2015

@ayappanec I have been away from JNR stuff for a bit...what's the status of the ppc64le support? Have you managed to sort out remaining issues to get it to load and work?

@ayappanec
Copy link
Author

@ayappanec ayappanec commented Apr 6, 2015

@headius As of today, i remember three issues made jruby not able to get loaded and working in ppc64le First issue, missing of libjffi binaries is resolved. Second is this TypeAliases issue here. One more issue is the missing types.conf ( #1897 ). This is fixed in master branch but not in jruby-1_7 branch. It's good that we have the fix in jruby-1_7 branch as well.

@headius
Copy link
Member

@headius headius commented May 4, 2015

I'm spinning releases as we speak to get this all into 1.7.20. If anyone interested can verify that PPC64[LE] are working on jruby-1_7 branch, I'd really appreciate that.

@headius
Copy link
Member

@headius headius commented May 4, 2015

Done deal! jffi, jnr-ffi, jnr-posix, jnr-constants, jnr-enxio, and jnr-unixsocket have all been released, and JRuby master and jruby-1_7 branches updated to use them.

@headius headius closed this May 4, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants