==================================================== The existing configuration has been successfully updated in /Users/lozhu/Documents/projects/jdk12-06222165c35f/build/macosx-x86_64-server-slowdebug using configure arguments '--disable-warnings-as-errors --with-debug-level=slowdebug --with-jvm-variants=server --enable-ccache'.
Tools summary: * Boot JDK: openjdk version "11.0.21" 2023-10-17 LTS OpenJDK Runtime Environment Microsoft-8519785 (build 11.0.21+9-LTS) OpenJDK 64-Bit Server VM Microsoft-8519785 (build 11.0.21+9-LTS, mixed mode) (at /opt/java/jdk-11.0.21+9/Contents/Home) * Toolchain: clang (clang/LLVM from Xcode 15.0.1) * C Compiler: Version 15.0.0 (at /usr/bin/clang) * C++ Compiler: Version 15.0.0 (at /usr/bin/clang++)
Build performance summary: * Cores to use: 8 * Memory limit: 16384 MB * ccache status: Active (4.8.3)
WARNING: The result of this configuration has overridden an older configuration. You *should* run 'make clean' to make sure you get a proper build. Failure to do so might result in strange build problems.
然后运行 make images 进行编译,根据机器配置编译时间长短会有较大差异,2020款MacBook pro编译了15分钟。
1 2
Stopping sjavac server Finished building target 'images' in configuration 'macosx-x86_64-server-slowdebug'
openjdk version "12-internal" 2019-03-19 OpenJDK Runtime Environment (slowdebug build 12-internal+0-adhoc.root.jdk12-06222165c35f) OpenJDK 64-Bit Server VM (slowdebug build 12-internal+0-adhoc.root.jdk12-06222165c35f, mixed mode)
问题记录
问题1
./jdk12-06222165c35f/src/java.base/macosx/native/libosxsecurity/KeystoreImpl.m note: did not find header ‘JavaNativeFoundation.h’ in framework ‘JavaNativeFoundation’ (loaded from ‘/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.0.sdk/System/Library/Frameworks’)
clang: error: SDK does not contain ‘libarclite’ at the path ‘/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/arc/libarclite_macosx.a’; try increasing the minimum deployment target