Compile software targeting MacOS ARM linking to JavaNativeFoundation
Originator: | gonzalolarralde | ||
Number: | rdar://FB7858293 | Date Originated: | 7/6/2020 |
Status: | open | Resolved: | |
Product: | macOS | Product Version: | |
Classification: | Reproducible: |
I’m trying to compile OpenJDK, reached the point where I need to link against JavaNativeFoundation, but based on its tbd seems that it's only provided in the x86_64 system library cache, or that the tbd is not in sync with the supported arch. ``` % cat /Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.0.sdk/System/Library/Frameworks/JavaNativeFoundation.framework/JavaNativeFoundation.tbd | HEAD -3 --- !tapi-tbd tbd-version: 4 targets: [ x86_64-macos ] ```
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!
JavaNativeFoundation has been deprecated and will not be available for arm64.
If you want to work on porting OpenJDK to Apple Silicon, I suggest starting with https://github.com/apple/openjdk/tree/xcodejdk14-release, which includes an OSS drop of JavaNativeFoundation, my patch series, and my build script to build JNF, and OpenJDK (zero) for arm64.