godwit@Firebase ~ clang --version Apple clang version 13.1.6 (clang-1316.0.21.2.3) Target: arm64-apple-darwin21.4.0 Thread model: posix InstalledDir: /Library/Developer/CommandLineTools/usr/bin
godwit@Firebase ~ clang++ --version Apple clang version 13.1.6 (clang-1316.0.21.2.3) Target: arm64-apple-darwin21.4.0 Thread model: posix InstalledDir: /Library/Developer/CommandLineTools/usr/bin
godwit@Firebase ~ autoconf --version autoconf (GNU Autoconf) 2.71 Copyright (C) 2021 Free Software Foundation, Inc. License GPLv3+/Autoconf: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>, <https://gnu.org/licenses/exceptions.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law.
Written by David J. MacKenzie and Akim Demaille.
godwit@Firebase ~ make --version GNU Make 3.81 Copyright (C) 2006 Free Software Foundation, Inc. This is free software; see the sourcefor copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
3.1.1 错误1 - No xcodebuild tool and no system framework headers found
1 2 3 4 5 6 7 8 9 10 11 12
... 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 sdk name... configure: error: No xcodebuild tool and no system framework headers found, use --with-sysroot or --with-sdk-name to provide a path to a valid SDK /Users/godwit/Source/openjdk-18+36/build/.configure-support/generated-configure.sh: line 84: 5: Bad file descriptor configure exiting with result code 1 ✘ godwit@Firebase ~/Source/openjdk-18+36 #### 解决方案如下: ✘ godwit@Firebase ~/Source/openjdk-18+36 sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer Password: godwit@Firebase ~/Source/openjdk-18+36
3.1.2 错误2 - error: parameter ‘SizeOfTag’ set but not used
1 2 3 4 5 6 7 8 9 10 11 12 13 14
=== Output from failing command(s) repeated here === * For target support_native_java.desktop_liblcms_cmstypes.o: /Users/godwit/Source/openjdk-18+36/src/java.desktop/share/native/liblcms/cmstypes.c:3441:132: error: parameter 'SizeOfTag' set but not used [-Werror,-Wunused-but-set-parameter] void *Type_ProfileSequenceId_Read(struct _cms_typehandler_struct* self, cmsIOHANDLER* io, cmsUInt32Number* nItems, cmsUInt32Number SizeOfTag) ^ /Users/godwit/Source/openjdk-18+36/src/java.desktop/share/native/liblcms/cmstypes.c:5137:125: error: parameter 'SizeOfTag' set but not used [-Werror,-Wunused-but-set-parameter] void *Type_Dictionary_Read(struct _cms_typehandler_struct* self, cmsIOHANDLER* io, cmsUInt32Number* nItems, cmsUInt32Number SizeOfTag) ^ 2 errors generated.
* All command lines available in /Users/godwit/Source/openjdk-18+36/build/macosx-aarch64-server-release/make-support/failure-logs. === End of repeated output ===
...... ==================================================== A new configuration has been successfully created in /Users/godwit/Source/openjdk-18+36/build/macosx-aarch64-server-release using default settings.
=== Output from failing command(s) repeated here === * For target jdk__optimize_image_exec: # # A fatal error has been detected by the Java Runtime Environment: # # Internal Error (assembler_aarch64.hpp:250), pid=72987, tid=9731 # guarantee(val < (1ULL << nbits)) failed: Field too big for insn # # JRE version: (18.0) (build ) # Java VM: OpenJDK 64-Bit Server VM (18-internal+0-adhoc.godwit.openjdk-1836, mixed mode, sharing, tiered, compressed oops, compressed class ptrs, g1 gc, bsd-aarch64) # No core dump will be written. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again # # An error report file with more information is saved as: # /Users/godwit/Source/openjdk-18+36/make/hs_err_pid72987.log # #
* All command lines available in /Users/godwit/Source/openjdk-18+36/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.
// Special case nbits == 64 since the shift below with that nbits value // would result in undefined behavior. if (nbits == 64) { return bits; } //-----------------------