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

make images failed on branch osx_aarch64 #46

Closed
reinmind opened this issue Dec 1, 2020 · 2 comments
Closed

make images failed on branch osx_aarch64 #46

reinmind opened this issue Dec 1, 2020 · 2 comments

Comments

@reinmind
Copy link

reinmind commented Dec 1, 2020

hardware information

os : macos 11.0.1
chip: Apple m1

follwoing is my configure output

Tools summary:
* Boot JDK:       openjdk version "11.0.9.1" 2020-11-04 LTS OpenJDK Runtime Environment Zulu11.43+1007-CA (build 11.0.9.1+1-LTS) OpenJDK 64-Bit Server VM Zulu11.43+1007-CA (build 11.0.9.1+1-LTS, mixed mode)  (at /Users/xyz/workspace/zulu11.43.1007-ca-jdk11.0.9.1-macos_aarch64/zulu-11.jdk/Contents/Home)
* Toolchain:      clang (clang/LLVM from Xcode 12.2)
* C Compiler:     Version 12.0.0 (at /usr/bin/clang)
* C++ Compiler:   Version 12.0.0 (at /usr/bin/clang++)

Build performance summary:
* Cores to use:   8
* Memory limit:   8192 MB

following is my make images error output

=== Output from failing command(s) repeated here ===
* For target support_native_java.base_libosxsecurity_BUILD_LIBOSXSECURITY_link:
ld: warning: ignoring file /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.0.sdk/System/Library/Frameworks/JavaNativeFoundation.framework/JavaNativeFoundation.tbd, missing required architecture arm64 in file /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.0.sdk/System/Library/Frameworks/JavaNativeFoundation.framework/JavaNativeFoundation.tbd
Undefined symbols for architecture arm64:
  "_JNFCallVoidMethod", referenced from:
      _Java_apple_security_KeychainStore__1scanKeychain in KeystoreImpl.o
  "_JNFJavaToNSString", referenced from:
      _Java_apple_security_KeychainStore__1addItemToKeychain in KeystoreImpl.o
  "_JNFNativeMethodEnter", referenced from:
      _Java_apple_security_KeychainStore__1addItemToKeychain in KeystoreImpl.o
  "_JNFNativeMethodExit", referenced from:
      _Java_apple_security_KeychainStore__1addItemToKeychain in KeystoreImpl.o
  "_OBJC_CLASS_$_JNFException", referenced from:
      objc-class-ref in KeystoreImpl.o
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

* All command lines available in /Users/xyz/workspace/jbr/JetBrainsRuntime/build/macosx-aarch64-normal-server-release/make-support/failure-logs.
=== End of repeated output ===
@PriMEtor
Copy link

PriMEtor commented Feb 5, 2021

try this:

sh ./configure --prefix=$(pwd)/build  --disable-warnings-as-errors --with-extra-ldflags='-F /Applications/Xcode.app/Contents/SharedFrameworks/ContentDeliveryServices.framework/Versions/A/itms/java/Frameworks/'  
make images
cp -r /Applications/Xcode.app/Contents/SharedFrameworks/ContentDeliveryServices.framework/Versions/A/itms/java/Frameworks/JavaNativeFoundation.framework build/macosx-aarch64-normal-server-release/images/jdk/lib
cp -r /Applications/Xcode.app/Contents/SharedFrameworks/ContentDeliveryServices.framework/Versions/A/itms/java/Frameworks/JavaNativeFoundation.framework build/macosx-aarch64-normal-server-release/images/jdk-bundle/jdk-11.0.10.jdk/Contents/Home/lib

@avu
Copy link
Collaborator

avu commented Feb 10, 2022

JNF library usage has been removed, so there should not be any problem

@avu avu closed this as completed Feb 10, 2022
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

No branches or pull requests

3 participants