-
-
Save claui/ea4248aa64d6a1b06c6d6ed80bc2d2b8 to your computer and use it in GitHub Desktop.
Homebrew build logs for openjdk on macOS 11.0 | |
Build date: 2020-07-07 12:28:36 |
HOMEBREW_VERSION: 2.4.3-99-g9cce4c5 | |
ORIGIN: https://github.com/Homebrew/brew | |
HEAD: 9cce4c5be3a740dfa6b3d14fc14eadec29b1657c | |
Last commit: 15 hours ago | |
Core tap ORIGIN: https://github.com/Homebrew/homebrew-core | |
Core tap HEAD: dd432d5adb947f753a1327acb53c4f586da20758 | |
Core tap last commit: 11 hours ago | |
HOMEBREW_PREFIX: /usr/local | |
HOMEBREW_DEVELOPER: set | |
HOMEBREW_EDITOR: /usr/bin/vim | |
HOMEBREW_GITHUB_API_TOKEN: set | |
HOMEBREW_MAKE_JOBS: 8 | |
HOMEBREW_NO_AUTO_UPDATE: set | |
HOMEBREW_SKIP_OR_LATER_BOTTLES: set | |
CPU: octa-core 64-bit dunno | |
Homebrew Ruby: 2.6.3 => /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/bin/ruby | |
Clang: 12.0 build 1200 | |
Git: 2.27.0 => /usr/local/bin/git | |
Curl: 7.64.1 => /usr/bin/curl | |
macOS: 11.0-arm64 | |
CLT: N/A | |
Xcode: 12.0 => /Applications/Xcode-beta.app/Contents/Developer |
Please note that these warnings are just used to help the Homebrew maintainers | |
with debugging if you file an issue. If everything you use Homebrew for is | |
working fine: please don't worry or file an issue; just ignore this. Thanks! | |
Warning: You have uncommitted modifications to Homebrew/homebrew-core. | |
If this is a surprise to you, then you should stash these modifications. | |
Stashing returns Homebrew to a pristine state but can be undone | |
should you later need to do so for some reason. | |
cd /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core && git stash && git clean -d -f | |
Uncommitted files: | |
M Formula/gcc.rb | |
M Formula/openjdk.rb | |
Warning: Homebrew's sbin was not found in your PATH but you have installed | |
formulae that put executables in /usr/local/sbin. | |
Consider setting the PATH for example like so: | |
echo 'export PATH="/usr/local/sbin:$PATH"' >> ~/.zshrc |
openjdk |
2020-07-07 12:07:46 +0200 | |
./configure | |
--build=aarch64-apple-darwin20 | |
--without-version-pre | |
--without-version-opt | |
--with-version-build=14.0.1 | |
--with-toolchain-path=/usr/bin | |
--with-extra-ldflags=-headerpad_max_install_names | |
--with-boot-jdk=/private/tmp/openjdk-20200707-29161-7nd6vz/jdk14u-jdk-14.0.1-ga/boot-jdk/Contents/Home | |
--with-boot-jdk-jvmargs=-Duser.home=/var/brew/Library/Caches/Homebrew/java_cache | |
--with-debug-level=release | |
--with-native-debug-symbols=none | |
--enable-dtrace=auto | |
--with-jvm-variants=server | |
Runnable configure script is not present | |
Generating runnable configure script at /private/tmp/openjdk-20200707-29161-7nd6vz/jdk14u-jdk-14.0.1-ga/build/.configure-support/generated-configure.sh | |
Using autoconf at /usr/local/opt/autoconf/bin/autoconf [autoconf (GNU Autoconf) 2.69] | |
Warning: You are using legacy autoconf cross-compilation flags. | |
It is recommended that you use --openjdk-target instead. | |
configure: Configuration created at Tue Jul 7 12:07:49 CEST 2020. | |
checking for basename... /usr/bin/basename | |
checking for bash... /bin/bash | |
checking for cat... /bin/cat | |
checking for chmod... /bin/chmod | |
checking for cmp... /usr/bin/cmp | |
checking for comm... /usr/bin/comm | |
checking for cp... /bin/cp | |
checking for cut... /usr/bin/cut | |
checking for date... /bin/date | |
checking for gdiff... no | |
checking for diff... /usr/bin/diff | |
checking for dirname... /usr/bin/dirname | |
checking for echo... /bin/echo | |
checking for expr... /bin/expr | |
checking for file... /usr/bin/file | |
checking for find... /usr/bin/find | |
checking for head... /usr/bin/head | |
checking for gunzip... /usr/bin/gunzip | |
checking for pigz... no | |
checking for gzip... /usr/bin/gzip | |
checking for ln... /bin/ln | |
checking for ls... /bin/ls | |
checking for gmkdir... no | |
checking for mkdir... /bin/mkdir | |
checking for mktemp... /usr/bin/mktemp | |
checking for mv... /bin/mv | |
checking for nawk... no | |
checking for gawk... no | |
checking for awk... /usr/bin/awk | |
checking for printf... /usr/bin/printf | |
checking for greadlink... no | |
checking for readlink... /usr/bin/readlink | |
checking for rm... /bin/rm | |
checking for rmdir... /bin/rmdir | |
checking for sh... /bin/sh | |
checking for sort... /usr/bin/sort | |
checking for tail... /usr/bin/tail | |
checking for gtar... no | |
checking for tar... /usr/bin/tar | |
checking for tee... /usr/bin/tee | |
checking for touch... /usr/bin/touch | |
checking for tr... /usr/bin/tr | |
checking for uname... /usr/bin/uname | |
checking for uniq... /usr/bin/uniq | |
checking for wc... /usr/bin/wc | |
checking for which... /usr/bin/which | |
checking for xargs... /usr/bin/xargs | |
checking for gawk... no | |
checking for mawk... no | |
checking for nawk... no | |
checking for awk... awk | |
checking for grep that handles long lines and -e... /usr/bin/grep | |
checking for egrep... /usr/bin/grep -E | |
checking for fgrep... /usr/bin/grep -F | |
checking for a sed that does not truncate output... /usr/local/Homebrew/Library/Homebrew/shims/mac/super/sed | |
checking for cygpath... no | |
checking for wslpath... no | |
checking for df... /bin/df | |
checking for cpio... /usr/bin/cpio | |
checking for nice... /usr/bin/nice | |
checking for lsb_release... no | |
checking for cmd.exe... no | |
checking for /mnt/c/Windows/System32/cmd.exe... no | |
checking build system type... aarch64-apple-darwin20 | |
checking host system type... aarch64-apple-darwin20 | |
checking target system type... aarch64-apple-darwin20 | |
checking openjdk-build os-cpu... macosx-aarch64 | |
checking openjdk-target os-cpu... macosx-aarch64 | |
checking compilation type... native | |
checking for top-level directory... /private/tmp/openjdk-20200707-29161-7nd6vz/jdk14u-jdk-14.0.1-ga | |
checking if custom source is suppressed (openjdk-only)... no | |
checking which debug level to use... release | |
checking which variants of the JVM to build... server | |
checking if absolute paths should be allowed in the build output... no, release build | |
checking for xcodebuild... /usr/bin/xcodebuild | |
checking for sdk name... | |
checking for sysroot... /Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.0.sdk | |
checking for toolchain path... /usr/bin | |
checking for extra path... | |
checking where to store configuration... in default location | |
checking what configuration name to use... macosx-aarch64-server-release | |
checking for zypper... no | |
checking for apt-get... no | |
checking for yum... no | |
checking for brew... no | |
checking for port... no | |
checking for pkgutil... pkgutil | |
checking for pandoc... no | |
checking for gmake... /usr/local/Homebrew/Library/Homebrew/shims/mac/super/gmake | |
configure: Testing potential make at /usr/local/Homebrew/Library/Homebrew/shims/mac/super/gmake, found using gmake in PATH | |
configure: Using GNU make at /usr/local/Homebrew/Library/Homebrew/shims/mac/super/gmake (version: GNU Make 3.81) | |
checking if make --output-sync is supported... no | |
checking if find supports -delete... yes | |
checking what type of tar was found... bsd | |
checking that grep (/usr/bin/grep) -Fx handles empty lines in the pattern list correctly... yes | |
checking for unzip... /usr/bin/unzip | |
checking for zip... /usr/bin/zip | |
checking for ldd... no | |
checking for greadelf... no | |
checking for readelf... no | |
checking for dot... no | |
checking for hg... no | |
checking for git... /usr/local/Homebrew/Library/Homebrew/shims/mac/super/git | |
checking for stat... /usr/bin/stat | |
checking for time... /usr/bin/time | |
checking for flock... no | |
checking for dtrace... /usr/sbin/dtrace | |
checking for gpatch... no | |
checking for patch... /usr/bin/patch | |
checking for dsymutil... /usr/bin/dsymutil | |
checking for mig... /usr/local/Homebrew/Library/Homebrew/shims/mac/super/mig | |
checking for xattr... /usr/bin/xattr | |
checking for codesign... /usr/bin/codesign | |
checking if codesign certificate is present... no | |
checking for SetFile... /usr/bin/SetFile | |
checking for ulimit... /usr/bin/ulimit | |
checking bash version... 3.2.57 | |
checking if bash supports pipefail... yes | |
checking if bash supports errexit (-e)... yes | |
checking for pkg-config... /usr/local/Homebrew/Library/Homebrew/shims/mac/super/pkg-config | |
checking pkg-config is at least version 0.9.0... yes | |
checking for default LOG value... | |
checking headless only... no | |
checking for graphviz dot... no, cannot generate full docs | |
checking for pandoc... no, cannot generate full docs | |
checking full docs... no, missing dependencies | |
checking for cacerts file... default | |
checking for jni library path... default | |
checking if packaged modules are kept... yes (default) | |
configure: WARNING: Value for VERSION_BUILD has been sanitized from '14.0.1' to '14' | |
checking for version string... 14.0.1+14 | |
configure: Found potential Boot JDK using configure arguments | |
checking for Boot JDK... /private/tmp/openjdk-20200707-29161-7nd6vz/jdk14u-jdk-14.0.1-ga/boot-jdk/Contents/Home | |
checking Boot JDK version... openjdk version "13.0.2" 2020-01-14 OpenJDK Runtime Environment (build 13.0.2+8) OpenJDK 64-Bit Server VM (build 13.0.2+8, mixed mode) | |
checking for java in Boot JDK... ok | |
checking for javac in Boot JDK... ok | |
checking for javadoc in Boot JDK... ok | |
checking for jar in Boot JDK... ok | |
checking for jarsigner in Boot JDK... ok | |
checking if Boot JDK is 32 or 64 bits... 64 | |
checking for local Boot JDK Class Data Sharing (CDS)... yes, created | |
checking for Build JDK... yes, will use output dir | |
configure: Xcode major version: 12 | |
configure: Using default toolchain clang (clang/LLVM) | |
configure: Will use user supplied compiler CC=clang | |
checking for clang... /usr/bin/clang | |
checking resolved symbolic links for CC... no symlink | |
configure: Using clang C compiler version 12.0.0 [Apple clang version 12.0.0 (clang-1200.0.22.19) Target: arm64-apple-darwin20.0.0 Thread model: posix InstalledDir: /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin] | |
checking whether the C compiler works... yes | |
checking for C compiler default output file name... a.out | |
checking for suffix of executables... | |
checking whether we are cross compiling... no | |
checking for suffix of object files... o | |
checking whether we are using the GNU C compiler... yes | |
checking whether /usr/bin/clang accepts -g... yes | |
checking for /usr/bin/clang option to accept ISO C89... none needed | |
configure: Will use user supplied compiler CXX=clang++ | |
checking for clang++... /usr/bin/clang++ | |
checking resolved symbolic links for CXX... no symlink | |
configure: Using clang C++ compiler version 12.0.0 [Apple clang version 12.0.0 (clang-1200.0.22.19) Target: arm64-apple-darwin20.0.0 Thread model: posix InstalledDir: /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin] | |
checking whether we are using the GNU C++ compiler... yes | |
checking whether /usr/bin/clang++ accepts -g... yes | |
checking how to run the C preprocessor... /usr/bin/clang -E | |
checking how to run the C++ preprocessor... /usr/bin/clang++ -E | |
checking for ld... ld | |
configure: Rewriting LD_JAOTC to "/usr/bin/ld" | |
configure: Using clang linker version 607.2 [@(#)PROGRAM:ld PROJECT:ld64-607.2] | |
checking for ar... ar | |
configure: Rewriting AR to "/usr/bin/ar" | |
checking for lipo... /usr/bin/lipo | |
checking for otool... /usr/bin/otool | |
checking for install_name_tool... /usr/bin/install_name_tool | |
checking for strip... strip | |
configure: Rewriting STRIP to "/usr/bin/strip" | |
checking for nm... nm | |
configure: Rewriting NM to "/usr/bin/nm" | |
checking for gobjdump... no | |
checking for objdump... objdump | |
configure: Rewriting OBJDUMP to "/usr/bin/objdump" | |
checking for c++filt... c++filt | |
configure: Rewriting CXXFILT to "/usr/bin/c++filt" | |
checking for jtreg... no | |
checking for jtreg test harness... no, not found | |
checking for jmh (Java Microbenchmark Harness)... no, disabled | |
checking for jib... no | |
checking if CC supports "-m64"... yes | |
checking if CXX supports "-m64"... yes | |
checking if both CC and CXX support "-m64"... yes | |
checking for ANSI C header files... yes | |
checking for sys/types.h... yes | |
checking for sys/stat.h... yes | |
checking for stdlib.h... yes | |
checking for string.h... yes | |
checking for memory.h... yes | |
checking for strings.h... yes | |
checking for inttypes.h... yes | |
checking for stdint.h... yes | |
checking for unistd.h... yes | |
checking stdio.h usability... yes | |
checking stdio.h presence... yes | |
checking for stdio.h... yes | |
checking size of int *... 8 | |
checking for target address size... 64 bits | |
checking whether byte ordering is bigendian... no | |
checking if native warnings are errors... true (default) | |
checking for library containing clock_gettime... none required | |
checking if CC supports "-fmacro-prefix-map=/private/tmp/openjdk-20200707-29161-7nd6vz/jdk14u-jdk-14.0.1-ga/="... yes | |
checking if CXX supports "-fmacro-prefix-map=/private/tmp/openjdk-20200707-29161-7nd6vz/jdk14u-jdk-14.0.1-ga/="... yes | |
checking if both CC and CXX support "-fmacro-prefix-map=/private/tmp/openjdk-20200707-29161-7nd6vz/jdk14u-jdk-14.0.1-ga/="... yes | |
checking if CC supports "-ffp-contract=off"... yes | |
checking if CXX supports "-ffp-contract=off"... yes | |
checking if both CC and CXX support "-ffp-contract=off"... yes | |
checking if BUILD_CC supports "-fmacro-prefix-map=/private/tmp/openjdk-20200707-29161-7nd6vz/jdk14u-jdk-14.0.1-ga/="... yes | |
checking if BUILD_CXX supports "-fmacro-prefix-map=/private/tmp/openjdk-20200707-29161-7nd6vz/jdk14u-jdk-14.0.1-ga/="... yes | |
checking if both BUILD_CC and BUILD_CXX support "-fmacro-prefix-map=/private/tmp/openjdk-20200707-29161-7nd6vz/jdk14u-jdk-14.0.1-ga/="... yes | |
checking if BUILD_CC supports "-ffp-contract=off"... yes | |
checking if BUILD_CXX supports "-ffp-contract=off"... yes | |
checking if both BUILD_CC and BUILD_CXX support "-ffp-contract=off"... yes | |
checking what type of native debug symbols to use... none | |
checking for dtrace tool... /usr/sbin/dtrace | |
checking sys/sdt.h usability... yes | |
checking sys/sdt.h presence... yes | |
checking for sys/sdt.h... yes | |
checking if dtrace should be built... yes, dependencies present | |
checking if Hotspot gtest unit tests should be built... yes | |
checking cups/cups.h usability... yes | |
checking cups/cups.h presence... yes | |
checking for cups/cups.h... yes | |
checking cups/ppd.h usability... yes | |
checking cups/ppd.h presence... yes | |
checking for cups/ppd.h... yes | |
Using freetype: bundled | |
checking for which libjpeg to use... bundled | |
checking for which giflib to use... bundled | |
checking for PNG... no | |
checking for which libpng to use... bundled | |
checking for compress in -lz... yes | |
checking for which zlib to use... system | |
checking for system zlib functionality... ok | |
checking for which lcms to use... bundled | |
checking for cos in -lm... yes | |
checking for dlopen in -ldl... yes | |
checking if shenandoah can be built... yes | |
checking if zgc can be built... no, platform not supported | |
checking if jvmci module jdk.internal.vm.ci should be built... yes | |
checking if graal module jdk.internal.vm.compiler should be built... yes | |
checking if aot should be enabled... yes | |
checking if cds should be enabled... yes | |
checking if elliptic curve crypto implementation is present... yes | |
checking if jtreg failure handler should be built... no, missing jtreg | |
checking if the CDS classlist generation should be enabled... yes | |
checking if any translations should be excluded... no | |
checking if static man pages should be copied... yes | |
checking if a default CDS archive should be generated... yes | |
checking for number of cores... 8 | |
checking for memory size... 16384 MB | |
checking for appropriate number of jobs to run in parallel... 8 | |
checking flags for boot jdk java command ... -Duser.language=en -Duser.country=US -XX:+UnlockDiagnosticVMOptions -XX:-VerifySharedSpaces -XX:SharedArchiveFile=/private/tmp/openjdk-20200707-29161-7nd6vz/jdk14u-jdk-14.0.1-ga/build/macosx-aarch64-server-release/configure-support/classes.jsa -Xshare:auto -Duser.home=/var/brew/Library/Caches/Homebrew/java_cache | |
checking flags for boot jdk java command for big workloads... -Xms64M -Xmx1600M -XX:ThreadStackSize=1536 | |
checking flags for bootcycle boot jdk java command for big workloads... -Xms64M -Xmx1600M -XX:ThreadStackSize=1536 | |
checking flags for boot jdk java command for small workloads... -XX:+UseSerialGC -Xms32M -Xmx512M -XX:TieredStopAtLevel=1 | |
checking whether to use sjavac... no | |
checking whether to use javac server... yes | |
checking If precompiled header is enabled... yes | |
checking is ccache enabled... no | |
checking if build directory is on local disk... yes | |
checking JVM features for JVM variant 'server'... "aot cds compiler1 compiler2 dtrace epsilongc g1gc graal jfr jni-check jvmci jvmti management nmt parallelgc serialgc services shenandoahgc vm-structs" | |
configure: creating /private/tmp/openjdk-20200707-29161-7nd6vz/jdk14u-jdk-14.0.1-ga/build/macosx-aarch64-server-release/configure-support/config.status | |
config.status: creating /private/tmp/openjdk-20200707-29161-7nd6vz/jdk14u-jdk-14.0.1-ga/build/macosx-aarch64-server-release/spec.gmk | |
config.status: creating /private/tmp/openjdk-20200707-29161-7nd6vz/jdk14u-jdk-14.0.1-ga/build/macosx-aarch64-server-release/bootcycle-spec.gmk | |
config.status: creating /private/tmp/openjdk-20200707-29161-7nd6vz/jdk14u-jdk-14.0.1-ga/build/macosx-aarch64-server-release/buildjdk-spec.gmk | |
config.status: creating /private/tmp/openjdk-20200707-29161-7nd6vz/jdk14u-jdk-14.0.1-ga/build/macosx-aarch64-server-release/compare.sh | |
config.status: creating /private/tmp/openjdk-20200707-29161-7nd6vz/jdk14u-jdk-14.0.1-ga/build/macosx-aarch64-server-release/Makefile | |
==================================================== | |
A new configuration has been successfully created in | |
/private/tmp/openjdk-20200707-29161-7nd6vz/jdk14u-jdk-14.0.1-ga/build/macosx-aarch64-server-release | |
using configure arguments '--build=aarch64-apple-darwin20 --without-version-pre --without-version-opt --with-version-build=14.0.1 --with-toolchain-path=/usr/bin --with-extra-ldflags=-headerpad_max_install_names --with-boot-jdk=/private/tmp/openjdk-20200707-29161-7nd6vz/jdk14u-jdk-14.0.1-ga/boot-jdk/Contents/Home --with-boot-jdk-jvmargs=-Duser.home=/var/brew/Library/Caches/Homebrew/java_cache --with-debug-level=release --with-native-debug-symbols=none --enable-dtrace=auto --with-jvm-variants=server'. | |
Configuration summary: | |
* Debug level: release | |
* HS debug level: product | |
* JVM variants: server | |
* JVM features: server: 'aot cds compiler1 compiler2 dtrace epsilongc g1gc graal jfr jni-check jvmci jvmti management nmt parallelgc serialgc services shenandoahgc vm-structs' | |
* OpenJDK target: OS: macosx, CPU architecture: aarch64, address length: 64 | |
* Version string: 14.0.1+14 (14.0.1) | |
Tools summary: | |
* Boot JDK: openjdk version "13.0.2" 2020-01-14 OpenJDK Runtime Environment (build 13.0.2+8) OpenJDK 64-Bit Server VM (build 13.0.2+8, mixed mode) (at /private/tmp/openjdk-20200707-29161-7nd6vz/jdk14u-jdk-14.0.1-ga/boot-jdk/Contents/Home) | |
* Toolchain: clang (clang/LLVM from Xcode 12.0) | |
* 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: 16384 MB | |
The following warnings were produced. Repeated here for convenience: | |
WARNING: Value for VERSION_BUILD has been sanitized from '14.0.1' to '14' | |
2020-07-07 12:08:03 +0200 | |
make | |
images | |
Building target 'images' in configuration 'macosx-aarch64-server-release' | |
Compiling 8 files for BUILD_TOOLS_LANGTOOLS | |
Warning: No SCM configuration present and no .src-rev | |
Compiling 1 files for BUILD_JFR_TOOLS | |
Creating hotspot/variant-server/tools/adlc/adlc from 13 file(s) | |
Compiling 2 files for BUILD_JVMTI_TOOLS | |
Parsing 2 properties into enum-like class for jdk.compiler | |
Compiling 7 properties into resource bundles for jdk.jshell | |
Compiling 10 properties into resource bundles for jdk.javadoc | |
Compiling 19 properties into resource bundles for jdk.compiler | |
Compiling 12 properties into resource bundles for jdk.jdeps | |
ld: warning: directory not found for option '-F/Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.0.sdk/System/Library/Frameworks/JavaVM.framework/Frameworks' | |
Compiling 127 files for BUILD_java.compiler.interim | |
Creating support/modules_libs/java.base/server/libjvm.dylib from 921 file(s) | |
Creating hotspot/variant-server/libjvm/gtest/libjvm.dylib from 118 file(s) | |
Creating hotspot/variant-server/libjvm/gtest/gtestLauncher from 1 file(s) | |
In file included from /private/tmp/openjdk-20200707-29161-7nd6vz/jdk14u-jdk-14.0.1-ga/src/hotspot/share/precompiled/precompiled.hpp:34: | |
In file included from /private/tmp/openjdk-20200707-29161-7nd6vz/jdk14u-jdk-14.0.1-ga/src/hotspot/share/classfile/classLoaderData.hpp:30: | |
In file included from /private/tmp/openjdk-20200707-29161-7nd6vz/jdk14u-jdk-14.0.1-ga/src/hotspot/share/memory/metaspace.hpp:32: | |
/private/tmp/openjdk-20200707-29161-7nd6vz/jdk14u-jdk-14.0.1-ga/src/hotspot/share/runtime/globals.hpp:36:10: fatal error: In file included from /private/tmp/openjdk-20200707-29161-7nd6vz/jdk14u-jdk-14.0.1-ga/src/hotspot/share/precompiled/precompiled.hpp:34: | |
In file included from /private/tmp/openjdk-20200707-29161-7nd6vz/jdk14u-jdk-14.0.1-ga/src/hotspot/share/classfile/classLoaderData.hpp:30: | |
In file included from /private/tmp/openjdk-20200707-29161-7nd6vz/jdk14u-jdk-14.0.1-ga/src/hotspot/share/memory/metaspace.hpp:32: | |
/private/tmp/openjdk-20200707-29161-7nd6vz/jdk14u-jdk-14.0.1-ga/src/hotspot/share/runtime/globals.hpp:36:10: fatal error: 'globals_bsd_aarch64.hpp' file not found | |
#include OS_CPU_HEADER(globals) | |
^~~~~~~~~~~~~~~~~~~~~~ | |
/private/tmp/openjdk-20200707-29161-7nd6vz/jdk14u-jdk-14.0.1-ga/src/hotspot/share/utilities/macros.hpp:607:40: note: expanded from macro 'OS_CPU_HEADER' | |
#define OS_CPU_HEADER(basename) XSTR(OS_CPU_HEADER_STEM(basename).hpp) | |
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
/private/tmp/openjdk-20200707-29161-7nd6vz/jdk14u-jdk-14.0.1-ga/src/hotspot/share/utilities/macros.hpp:35:17: note: expanded from macro 'XSTR' | |
#define XSTR(a) STR(a) | |
^~~~~~ | |
/private/tmp/openjdk-20200707-29161-7nd6vz/jdk14u-jdk-14.0.1-ga/src/hotspot/share/utilities/macros.hpp:32:17: note: expanded from macro 'STR' | |
#define STR(a) #a | |
^~ | |
<scratch space>:68:1: note: 'globals_bsd_aarch64.hpp' file not found | |
expanded from here | |
"globals_bsd_aarch64.hpp" | |
^~~~~~~~~~~~~~~~~~~~~~~~~ | |
#include OS_CPU_HEADER(globals) | |
^~~~~~~~~~~~~~~~~~~~~~ | |
/private/tmp/openjdk-20200707-29161-7nd6vz/jdk14u-jdk-14.0.1-ga/src/hotspot/share/utilities/macros.hpp:607:40: note: expanded from macro 'OS_CPU_HEADER' | |
#define OS_CPU_HEADER(basename) XSTR(OS_CPU_HEADER_STEM(basename).hpp) | |
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
/private/tmp/openjdk-20200707-29161-7nd6vz/jdk14u-jdk-14.0.1-ga/src/hotspot/share/utilities/macros.hpp:35:17: note: expanded from macro 'XSTR' | |
#define XSTR(a) STR(a) | |
^~~~~~ | |
/private/tmp/openjdk-20200707-29161-7nd6vz/jdk14u-jdk-14.0.1-ga/src/hotspot/share/utilities/macros.hpp:32:17: note: expanded from macro 'STR' | |
#define STR(a) #a | |
^~ | |
<scratch space>:68:1: note: expanded from here | |
"globals_bsd_aarch64.hpp" | |
^~~~~~~~~~~~~~~~~~~~~~~~~ | |
1 error generated. | |
1 error generated. | |
make[3]: *** [/private/tmp/openjdk-20200707-29161-7nd6vz/jdk14u-jdk-14.0.1-ga/build/macosx-aarch64-server-release/hotspot/variant-server/libjvm/objs/precompiled/precompiled.hpp.pch] Error 1 | |
make[3]: *** Waiting for unfinished jobs.... | |
make[3]: *** [/private/tmp/openjdk-20200707-29161-7nd6vz/jdk14u-jdk-14.0.1-ga/build/macosx-aarch64-server-release/hotspot/variant-server/libjvm/gtest/objs/precompiled/precompiled.hpp.pch] Error 1 | |
make[2]: *** [hotspot-server-libs] Error 2 | |
make[2]: *** Waiting for unfinished jobs.... | |
Compiling 405 files for BUILD_jdk.compiler.interim | |
Compiling 220 files for BUILD_jdk.javadoc.interim | |
ERROR: Build failed for target 'images' in configuration 'macosx-aarch64-server-release' (exit code 2) | |
=== Output from failing command(s) repeated here === | |
* For target hotspot_variant-server_libjvm_gtest_objs_precompiled_precompiled.hpp.pch: | |
In file included from /private/tmp/openjdk-20200707-29161-7nd6vz/jdk14u-jdk-14.0.1-ga/src/hotspot/share/precompiled/precompiled.hpp:34: | |
In file included from /private/tmp/openjdk-20200707-29161-7nd6vz/jdk14u-jdk-14.0.1-ga/src/hotspot/share/classfile/classLoaderData.hpp:30: | |
In file included from /private/tmp/openjdk-20200707-29161-7nd6vz/jdk14u-jdk-14.0.1-ga/src/hotspot/share/memory/metaspace.hpp:32: | |
/private/tmp/openjdk-20200707-29161-7nd6vz/jdk14u-jdk-14.0.1-ga/src/hotspot/share/runtime/globals.hpp:36:10: fatal error: 'globals_bsd_aarch64.hpp' file not found | |
#include OS_CPU_HEADER(globals) | |
^~~~~~~~~~~~~~~~~~~~~~ | |
/private/tmp/openjdk-20200707-29161-7nd6vz/jdk14u-jdk-14.0.1-ga/src/hotspot/share/utilities/macros.hpp:607:40: note: expanded from macro 'OS_CPU_HEADER' | |
#define OS_CPU_HEADER(basename) XSTR(OS_CPU_HEADER_STEM(basename).hpp) | |
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
/private/tmp/openjdk-20200707-29161-7nd6vz/jdk14u-jdk-14.0.1-ga/src/hotspot/share/utilities/macros.hpp:35:17: note: expanded from macro 'XSTR' | |
#define XSTR(a) STR(a) | |
^~~~~~ | |
/private/tmp/openjdk-20200707-29161-7nd6vz/jdk14u-jdk-14.0.1-ga/src/hotspot/share/utilities/macros.hpp:32:17: note: expanded from macro 'STR' | |
#define STR(a) #a | |
^~ | |
... (rest of output omitted) | |
* For target hotspot_variant-server_libjvm_objs_precompiled_precompiled.hpp.pch: | |
In file included from /private/tmp/openjdk-20200707-29161-7nd6vz/jdk14u-jdk-14.0.1-ga/src/hotspot/share/precompiled/precompiled.hpp:34: | |
In file included from /private/tmp/openjdk-20200707-29161-7nd6vz/jdk14u-jdk-14.0.1-ga/src/hotspot/share/classfile/classLoaderData.hpp:30: | |
In file included from /private/tmp/openjdk-20200707-29161-7nd6vz/jdk14u-jdk-14.0.1-ga/src/hotspot/share/memory/metaspace.hpp:32: | |
/private/tmp/openjdk-20200707-29161-7nd6vz/jdk14u-jdk-14.0.1-ga/src/hotspot/share/runtime/globals.hpp:36:10: fatal error: 'globals_bsd_aarch64.hpp' file not found | |
#include OS_CPU_HEADER(globals) | |
^~~~~~~~~~~~~~~~~~~~~~ | |
/private/tmp/openjdk-20200707-29161-7nd6vz/jdk14u-jdk-14.0.1-ga/src/hotspot/share/utilities/macros.hpp:607:40: note: expanded from macro 'OS_CPU_HEADER' | |
#define OS_CPU_HEADER(basename) XSTR(OS_CPU_HEADER_STEM(basename).hpp) | |
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
/private/tmp/openjdk-20200707-29161-7nd6vz/jdk14u-jdk-14.0.1-ga/src/hotspot/share/utilities/macros.hpp:35:17: note: expanded from macro 'XSTR' | |
#define XSTR(a) STR(a) | |
^~~~~~ | |
/private/tmp/openjdk-20200707-29161-7nd6vz/jdk14u-jdk-14.0.1-ga/src/hotspot/share/utilities/macros.hpp:32:17: note: expanded from macro 'STR' | |
#define STR(a) #a | |
^~ | |
... (rest of output omitted) | |
* All command lines available in /private/tmp/openjdk-20200707-29161-7nd6vz/jdk14u-jdk-14.0.1-ga/build/macosx-aarch64-server-release/make-support/failure-logs. | |
=== End of repeated output === | |
No indication of failed target found. | |
Hint: Try searching the build log for '] Error'. | |
Hint: See doc/building.html#troubleshooting for assistance. | |
make[1]: *** [main] Error 2 | |
make: *** [images] Error 2 |
zsh: killed
Big sur has issues with caching signature checks when one overwrites (e.g. with cp) an executable file,
you have two options:
- reboot the host
- fixup script:
cp $a $b
rm $a
mv $b $a
but since you don't know which exactly binary/dylib has issue, better to do it with whole built jdk.
this will force the kernel to update signature cache.
Thanks. lldb finally told me to look at the Console.app application, which confirms the suspicion that this is a bad or cached signature. It may be that JavaNativeFoundation
I built earlier, but I'm confused how to fix it.
Neither rebooting nor copying the directory fixed it (yet). Note, Homebrew seems to have some automatic handling of the copying you're talking about here: https://github.com/Homebrew/brew/blob/e945b1c42ab44feb1c6814f47cc833d76b1a921c/Library/Homebrew/os/mac/keg.rb#L42, so I was hoping this problem would not crop up.
I'll dig a bit deeper, thanks for the pointer, hopefully it's simple once I figure it out.
Exception Type: EXC_BAD_ACCESS (Code Signature Invalid)
Exception Codes: 0x0000000000000032, 0x0000000103050000
Exception Note: EXC_CORPSE_NOTIFY
Termination Reason: Namespace CODESIGNING, Code 0x2
kernel messages:
VM Regions Near 0x103050000:
__LINKEDIT 103048000-103050000 [ 32K] r--/rwx SM=COW /opt/homebrew/*/*.dylib
--> mapped file 103050000-103054000 [ 16K] r--/r-x SM=PRV Object_id=9c24063d
MALLOC_TINY 103100000-103200000 [ 1024K] rw-/rwx SM=PRV
Application Specific Information:
dyld: in dlopen()
@rpath/JavaNativeFoundation.framework/Versions/A/JavaNativeFoundation
When I try to self-sign the offending file, it complains with this:
/opt/homebrew/Cellar/openjdk/16/libexec/openjdk.jdk/Contents/Home/lib/JavaNativeFoundation.framework/Versions/A/JavaNativeFoundation: replacing existing signature
/opt/homebrew/Cellar/openjdk/16/libexec/openjdk.jdk/Contents/Home/lib/JavaNativeFoundation.framework/Versions/A/JavaNativeFoundation: code object is not signed at all
In subcomponent: /opt/homebrew/Cellar/openjdk/16/libexec/openjdk.jdk/Contents/Home/lib/JavaNativeFoundation.framework/Versions/A/JavaNativeFoundation.tbd
As I first step I would try JNF.framework form Xcode12.2 which can be found in folder /Applications/Xcode.app/Contents/SharedFrameworks/ContentDeliveryServices.framework/Versions/A/itms/java/Frameworks/
then just replace binary and Info.plist inside and resign the framework.
Ok, I got it. Man this is painful. I'm not sure how to handle this long term, this JavaNativeFoundation.framework
will need to be built and bundled.
cp -R /opt/homebrew/Cellar/openjdk/16/libexec/openjdk.jdk/Contents/Home/lib/JavaNativeFoundation.framework /opt/homebrew/Cellar/openjdk/16/libexec/openjdk.jdk/Contents/Home/lib/JavaNativeFoundation.framework2
rm -rf /opt/homebrew/Cellar/openjdk/16/libexec/openjdk.jdk/Contents/Home/lib/JavaNativeFoundation.framework
mv /opt/homebrew/Cellar/openjdk/16/libexec/openjdk.jdk/Contents/Home/lib/JavaNativeFoundation.framework2 /opt/homebrew/Cellar/openjdk/16/libexec/openjdk.jdk/Contents/Home/lib/JavaNativeFoundation.framework
codesign --remove-signature /opt/homebrew/Cellar/openjdk/16/libexec/openjdk.jdk/Contents/Home/lib/JavaNativeFoundation.framework
codesign --sign - --deep /opt/homebrew/Cellar/openjdk/16/libexec/openjdk.jdk/Contents/Home/lib/JavaNativeFoundation.framework
As I first step I would try JNF.framework form Xcode12.2 which can be found in folder /Applications/Xcode.app/Contents/SharedFrameworks/ContentDeliveryServices.framework/Versions/A/itms/java/Frameworks/
Yeah, I guess that works. I didn't think of that because it's missing the .tbd
file. Do you know if Apple's going to ship it with a future version of XCode? I don't really understand why they leave the aarch64
support out.
I doubt they will change anything regarding JNF.framework
You don't need tbd file in your own version of JNF. it's only used by linker, but if the binary of library is present (in your case it's present), linker can use the library instead of tbd file just fine.
I personally prefer to link with Xcode library from their java and then copy my own version of JNF into $JAVA_HOME/lib. The least painful way IMO.
I personally prefer to link with Xcode library from their java and then copy my own version of JNF into $JAVA_HOME/lib. The least painful way IMO.
I'm fine with that too. I'll try that. Thanks for the info on the .tbd
being optional. Based on the failure logs, I thought it was needed. Using their version saves the mess, I'll take a second swing at that later, thanks.
Ok, Homebrew is trying to update the JavaNativeFoundation
signature with an adhoc one and it's somehow breaking the binaries from the system after copy. Right now, I have it in the install
step. If I delete those Homebrew copied and copy the system ones, the issue goes away. @claui or any others familiar with formula, Is there a postinstall
step or a way to exclude certain files from being signed?
... found post_install
in another formula. Trying that.... 🤞
I think the formula is in good shape, will bring my questions over to Homebrew/brew#7857.
Just an update, there's an openjdk.rb
PR with some active discussion here: Homebrew/homebrew-core#65670. The current conversation is surrounding how to provide JEP-391 conditionally on arm for Homebrew. Until it's accepted, I do have a tap available over at tresf/test
that will build using the sandbox JEP-391 branch and @VladimirKempik's kindly provided instructions.
I'll be continuing all discussions over at Homebrew/homebrew-core#65670.
While I await a stance from openjdk on bundling the
JavaNativeFoundation.framework
, I've created a stop-gap by compiling it myself and zipping it up.https://github.com/tresf/homebrew-tresf/blob/main/Formula/openjdk.rb
This formula points at the last commit in JEP-391 sandbox. (At the time of writing this,
a56ddad
).What I have now is a mostly operational openjdk@16, however something's gravely wrong with it.
jarsigner
completely bombs out, returning 137 each timejava -jar
always shows the following error:zsh: killed
Killed: 9
What's even stranger is, when I run it from debug, e.g.:
It too crashes, but the program starts up just fine. Well, not "fine" -- there are some of my own bugs to sort -- but the app actually starts. How is this possible? Why would a binary start from
lldb
but not from terminal?What's happening? Does
/opt/homebrew/opt/openjdk/bin/java
have some process wrapper under the covers? How do I find out what the underlying errors actually are? Help appreciated.The Java project I'm testing with is on GitHub. I can provide a link if someone's interested, but I feel these issues will exist for any Java project.