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

Investigate supporting arm soft- and hardfloat #753

Closed
matthiasblaesing opened this issue Jan 16, 2017 · 4 comments · Fixed by #761
Closed

Investigate supporting arm soft- and hardfloat #753

matthiasblaesing opened this issue Jan 16, 2017 · 4 comments · Fixed by #761

Comments

@matthiasblaesing
Copy link
Member

This is a spin off of #538 - the arm binaries distributed with JNA are build for armv6l hardfloat. At runtime the ABI needs to be determined and the right binary be loaded:

https://www.raspberrypi.org/forums/viewtopic.php?f=33&t=20873
https://bugs.openjdk.java.net/browse/JDK-8005545
https://blogs.oracle.com/jtc/entry/is_it_armhf_or_armel

@matthiasblaesing
Copy link
Member Author

sun.arch.abi is not present on openJDK

Currently best looking option: use readelf to read the Tag_ABI_VFP_args from the java binary running the current process.

matthiasblaesing added a commit to matthiasblaesing/jna that referenced this issue Feb 1, 2017
- add prebuild arm softfloat binaries
- add option to override prefix detection by specifying jna.prefix
- add prefix autodetection to platform code. Autodetection depends
  on the presence of readelf
- adjust build.xml to implement prefix detection

Closes: java-native-access#753
matthiasblaesing added a commit to matthiasblaesing/jna that referenced this issue Feb 23, 2017
- add prebuild arm softfloat binaries
- add option to override prefix detection by specifying jna.prefix
- add prefix autodetection to platform code. Autodetection is
  based on the JVM image
- adjust build.xml to implement prefix detection

Closes: java-native-access#753
matthiasblaesing added a commit to matthiasblaesing/jna that referenced this issue Feb 24, 2017
- add prebuild arm softfloat binaries
- add option to override prefix detection by specifying jna.prefix
- add prefix autodetection to platform code. Autodetection is
  based on the JVM image
- adjust build.xml to implement prefix detection

Closes: java-native-access#753
matthiasblaesing added a commit to matthiasblaesing/jna that referenced this issue Feb 24, 2017
- add prebuild arm softfloat binaries
- add option to override prefix detection by specifying jna.prefix
- add prefix autodetection to platform code. Autodetection is
  based on the JVM image
- adjust build.xml to implement prefix detection

Closes: java-native-access#753
@bondolo
Copy link

bondolo commented Jul 25, 2017

Any chance of a new release for this fix?

@matthiasblaesing
Copy link
Member Author

This was part of 4.4.0.

@bondolo
Copy link

bondolo commented Jul 26, 2017

Doh! Thank you! I've been patiently waiting for a release that already happened!

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

Successfully merging a pull request may close this issue.

2 participants