-
-
Notifications
You must be signed in to change notification settings - Fork 921
-
-
Notifications
You must be signed in to change notification settings - Fork 921
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 can Not load JFFI library under IBM Power 64 with PLinux platform #1389
Comments
We generally don't have access to these hardware, so we ask users to provide us with binary files such as these. Thanks. |
Ok, I got the lib file and jar file that could provide you with jruby, but how I could share with you and the project , Fork the project ? |
I am facing the same issue. Xialixl, can you please send the files to fmorakzai@gmail.com ? |
@xialixl sorry for the late reply: fork https://github.com/jnr/jffi and send a pull request |
A pull request has been sent to jffi repo with both ppc64-Linux and ppc64le-Linux binaries. Now the question here is whether the binaries 'ppc64 (ppc64le) libjffi-1.0.so' files will be added to the already published jruby-complete-1.6.8.jar file ? |
we can not republish released jar (at least on maven central this is not |
Ok. We have this problem of locally building jruby-complete-1.6.8.jar file in ppc64 (Big Endian) systems |
Can any maintainers look into this issue ( jnr/jffi#12 ) |
Wow, apologies for missing this one for so long. The PR has been merged and we'll try to get releases of the whole JNR chain out for JRuby 1.7.x and 9k.pre2. |
Oops...don't close until we have updated JNR-* in a JRuby release. |
Can this be added to upcoming JRuby 1.7.x release also ? |
Any update for the above comment? |
@ayappanec, did you see this issue? |
I don't see why we couldn't update this in 1.7.x as well. @enebo and I know we need to update everything for next releases, which will involve fixing some regressions in the jnr-* chain of projects. Marking for 1.7.20. |
jnr/jffi#16 details the now-mitigated showstopper preventing us from releaseing jffi 1.2.8. Should be able to get the family released this week. |
I came to know about the problem you guys facing for releasing jffi 1.2.8. I hope this one will get into Jruby 1.7.20 & 9000. Thank you. |
@headius was able to release jffi and dependent artifacts yesterday so the plan is to update master and jruby-1_7 before our next releases. |
1.7 and master have both been updated for latest jnr-* projects. If it's possible for someone on PLinux/ppc64 to do a build of jruby-1_7 branch and confirm it works properly, we'd appreciate it :-) |
Building jruby-1_7 branch fails in PLinux/ppc64 & PLinux/ppc64le due to unknown compilation issue. But the main problem here is we are not able to build jruby-complete jar individually due to missing artfifacts. It seems like the artifacts are not yet available in sonatype repository. |
to build jruby-complete you need to run from the basedir of jruby On Wed, Mar 4, 2015 at 8:25 AM, ayappanec notifications@github.com wrote:
|
I tried both the options but they failed to get beyond jruby-core. Finally i went into the maven/jruby-complete directory and tried to build jruby-complete jar by issuing "mvn clean install" and there i faced this missing artifacts issue.. |
I built the snapshot for you: |
@ayappanec Please open a separate issue for your problems building JRuby on PLinux and we'll work through them separately. I suspect it's some oddity in how our build interacts with the JVM on that platform. |
@mkristian It requires jruby-core,jruby-stdlib and other such jars also.Can you please place those jars also in sonatype? |
https://oss.sonatype.org/content/repositories/snapshots/org/jruby/jruby-core/
https://oss.sonatype.org/content/repositories/snapshots/org/jruby/jruby-stdlib/
BUT I do not understand since jruby-complete contains both the other
artifacts. and you do not need to build anything anymore, just download
what you need. if you need them as maven artifacts somehow you should be
able to build everything after the core with
mvn clean install -Pcomplete -rf :jruby-lib
let me know if you need something else.
|
I tried with the command mentioned above. its trying to download the jruby-core jar from sonatype but failed since the jar uploaded there has some number associated with the filename "jruby-stdlib-1.7.20-20150304.132127-1.jar" |
@ayappanec Thank you...please let us know when you've opened the other issue. For confirming this issue right now, just download the 1.7.20 build that @mkristian provided above. |
@headius I could see the jffi binaries for ppc64 & ppc64le in the jruby-complete jar. Thank you |
It seems like we need ppc64le jnr-ffi TypeAliases and ruby ffi ppc64le platform specific types.conf as well to get the latest jruby working ppc64le. I could see the changes already went into the master branch of jnr-ffi & jruby. I don't know when the jnr-ffi next release is going to happen. If it happens before jruby release, then we need to change the jnr-ffi version to 2.0.3 in jruby to make use of it. Otherwise we have wait till further releases of jruby. |
@ayappanec I'm largely paralyzed from improving ppc64le support right now without your help, so if there are additional issues we need to fix, I'm hoping to see PRs from you :-) |
Environments:
IBM Power ppc 64 bit , POWER7 architecture,
Red Hat Enterprise Linux Server release 6.3 (Santiago)
JRuby ver 1.6.8, jar file: jruby-complete-1.6.8.jar
Apache Hbase 0.95.2
In case of running Command from Hbase :
.../hbase-0.95.2/bin/hbase shell
We got Errors like following:
My Analysis:
It looks like JRuby was going to load Java JFFI lib: libjffi-1.0.so which is supposed to exist under location jni/ppc64-Linux/libjffi-1.0.so inside the Jar 'ruby-complete-1.6.8.jar'.
for 1.6.8 version currently Jruby only has following kinds of JFFI lib for choices :
Fix:
Since '/jni/ppc64-Linux/libjffi-1.0.so' is missed inside jar , I downloaded the right version of JFFI sources (https://github.com/jnr/jffi) and built them by IBM XL C Compiler instead of default GCC at IBM ppc64 platform , Added the output libjffi-1.0.so into the right place of the jruby-complete-1.6.8.jar. Now it works well at my ppc64 env.
Advice:
To support IBM ppc64 with Linux env , Could Jruby add JFFI library for ppc64 version into released Jruby jar files.
Thanks
The text was updated successfully, but these errors were encountered: