-
-
Notifications
You must be signed in to change notification settings - Fork 925
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
FFI Load Failure on ARM #1137
Comments
As a test case, I created a file that does nothing but require 'ffi-ncurses'
|
Its probably not recognising the cpu. What is the result of running this jruby command on the box?
|
Pretty straightforward output:
|
@cadwallion Can you checkout the jffi source from https://github.com/jnr/jffi (preferably on the Pi), and run:
If you don't have ant on the dest machine, you can run it on your mac, then just copy the jar over. That should display some basic diagnostics, and more importantly, dump out all errors it encountered when trying trying to load the stub library. |
Certainly, here's the output:
|
Do you have the full dev toolchain installed? There should be a config.log in /root/jffi/build/jni/libffi-arm-linux/ that tells you the problem it was having. |
Yup, here's the output:
|
Ok, that seems to be due the '-m32' that is put in by the jni makefile. Can you update your jffi tree and try building again? |
This got much further along, successfully building but then erroring after the Hello World. Since the output is getting pretty long, I threw it in a gist here: https://gist.github.com/cadwallion/7081956 |
There appears to be something wrong with jffi unpacking to /tmp. If you explicitly copy to /usr/lib/libjffi-1.2.so then this jffi-complete.jar runs:
I seem to be able to make files on my pi in /tmp so I don't know anything more currently. I am also able to load this:
So it is definitely something wrong with the magic unpacking which happens....The workaround for now is to cp libjffi-1.2.so to /usr/lib. |
I am resolving this here because I know there is an issue open for this in jnr/ffi-30. |
JRuby Version: 1.7.5 (1.9.3p392) 2013-10-07 74e9291 on Java HotSpot(TM) Client VM 1.7.0_40-b43 [linux-arm]
RVM Version: 1.23.7 (stable)
OS Version: Linux raspberrypi 3.6.11+ #371 PREEMPT Thu Feb 7 16:31:35 GMT 2013 armv6l GNU/Linux
I have been developing a JRuby-based version of my application on my MacBook Pro without issues. I loaded the working branch onto my Raspberry Pi and startup results in the following error:
FFI was working on the Raspberry Pi using MRI 1.9.3. Any assistance would be appreciated.
The text was updated successfully, but these errors were encountered: