最近在看《深入学习 Java 虚拟机》第 3 版,在 Mac arm64 上编译 OpenJDK12 时遇到错误!

查看 24|回复 0
作者:summerlv   
最近在看《深入学习 Java 虚拟机》第 3 版,在 Mac arm64 上编译 OpenJDK12 时遇到错误!始终解决不了,所以才来求助各位前辈!错误如下:
checking for stdlib.h... yes
checking for string.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for strings.h... yes
checking for sys/stat.h... yes
checking for sys/types.h... yes
checking for unistd.h... yes
checking for stdio.h... (cached) yes
checking size of int *... 8
configure: The tested number of bits in the target (64) differs from the number of bits expected to be found in the target (32)
configure: error: Cannot continue.
/Users/itisummer/Downloads/OpenJDK12/build/.configure-support/generated-configure.sh: line 84: 5: Bad file descriptor
configure exiting with result code 1
我使用的编译命令如下:
bash configure --disable-warnings-as-errors --with-jvm-variants=server --with-debug-level=slowdebug --with-sysroot="/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk"
如果跟我有遇到相同问题并且已经解决的还望指导指导,不胜感激!!!
您需要登录后才可以回帖 登录 | 立即注册

返回顶部