Mac 下 编译 openJDK 出错

will Xu 2015-09-02 07:58:29
最近在看《深入理解java虚拟机》于是乎想在MAc下编译openjdk,虽然make sanity pass,但是一直 compiled failed。求遇到过类似情况的指点一下
环境:Yosemite 10.10.3
OpenJdk:1.7
Xcode:6.1.1
java:1.8.0


出错信息:

Sanity check passed.
/Applications/Xcode.app/Contents/Developer/usr/bin/make \
SKIP_FASTDEBUG_BUILD=true \
SKIP_DEBUG_BUILD=true \
\
generic_build_repo_series
/bin/mkdir -p /Users/apple/Develop/JVM/jdkBuild/openjdk_7/build/j2sdk-image
/bin/mkdir -p /Users/apple/Develop/JVM/jdkBuild/openjdk_7/build/langtools


########################################################################
########################################################################
##### Entering langtools for target(s) all #####
########################################################################

(cd ./langtools/make && \
/Applications/Xcode.app/Contents/Developer/usr/bin/make JDK_TOPDIR=/Users/apple/Documents/openjdk/jdk JDK_MAKE_SHARED_DIR=/Users/apple/Documents/openjdk/jdk/make/common/shared EXTERNALSANITYCONTROL=true SOURCE_LANGUAGE_VERSION=7 TARGET_CLASS_VERSION=7 MILESTONE=internal BUILD_NUMBER=b00 JDK_BUILD_NUMBER=b00 FULL_VERSION=1.7.0-internal-apple_2015_09_02_19_57-b00 PREVIOUS_JDK_VERSION=1.6.0 JDK_VERSION=1.7.0 JDK_MKTG_VERSION=7 JDK_MAJOR_VERSION=1 JDK_MINOR_VERSION=7 JDK_MICRO_VERSION=0 PREVIOUS_MAJOR_VERSION=1 PREVIOUS_MINOR_VERSION=6 PREVIOUS_MICRO_VERSION=0 ARCH_DATA_MODEL=64 COOKED_BUILD_NUMBER=0 ANT_HOME="/Users/apple/Documents/apache-ant-1.9.4" ALT_OUTPUTDIR=/Users/apple/Develop/JVM/jdkBuild/openjdk_7/build/langtools ALT_BOOTDIR=/Library/Java/JavaVirtualMachines/jdk1.8.0_20.jdk/Contents/Home all)
JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_20.jdk/Contents/Home ANT_OPTS=-Djava.io.tmpdir='/Users/apple/Develop/JVM/jdkBuild/openjdk_7/build/langtools/build/ant-tmp' /Users/apple/Documents/apache-ant-1.9.4/bin/ant -diagnostics > /Users/apple/Develop/JVM/jdkBuild/openjdk_7/build/langtools/build/ant-diagnostics.log ; \
JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_20.jdk/Contents/Home ANT_OPTS=-Djava.io.tmpdir='/Users/apple/Develop/JVM/jdkBuild/openjdk_7/build/langtools/build/ant-tmp' /Users/apple/Documents/apache-ant-1.9.4/bin/ant -version >> /Users/apple/Develop/JVM/jdkBuild/openjdk_7/build/langtools/build/ant-diagnostics.log
JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_20.jdk/Contents/Home ANT_OPTS=-Djava.io.tmpdir='/Users/apple/Develop/JVM/jdkBuild/openjdk_7/build/langtools/build/ant-tmp' /Users/apple/Documents/apache-ant-1.9.4/bin/ant -Djdk.version=1.7.0 -Dfull.version='1.7.0-internal-apple_2015_09_02_19_57-b00' -Dmilestone=internal -Dbuild.number=b00 -Djavac.target=7 -Djavac.source=7 -Dboot.java.home=/Library/Java/JavaVirtualMachines/jdk1.8.0_20.jdk/Contents/Home -Dimport.jdk=/Users/apple/Documents/openjdk/jdk -Dbuild.dir=/Users/apple/Develop/JVM/jdkBuild/openjdk_7/build/langtools/build -Ddist.dir=/Users/apple/Develop/JVM/jdkBuild/openjdk_7/build/langtools/dist build
Buildfile: /Users/apple/Documents/openjdk/langtools/make/build.xml

-def-pcompile:
[mkdir] Created dir: /Users/apple/Develop/JVM/jdkBuild/openjdk_7/build/langtools/build/toolclasses
[javac] Compiling 2 source files to /Users/apple/Develop/JVM/jdkBuild/openjdk_7/build/langtools/build/toolclasses
[javac] ??: [options] ?? -source 1.6 ?????????
[javac] 1 ???

-def-build-classes:

-def-build-bootstrap-classes:

-def-build-jar:

-def-build-bootstrap-jar:

-def-check:

-check-boot.java.home:

-def-build-tool:

-def-build-bootstrap-tool:

build-bootstrap-javac:
[mkdir] Created dir: /Users/apple/Develop/JVM/jdkBuild/openjdk_7/build/langtools/build/bootstrap/gensrc
[mkdir] Created dir: /Users/apple/Develop/JVM/jdkBuild/openjdk_7/build/langtools/build/bootstrap/classes
[pcompile] Generating 7 resource files to /Users/apple/Develop/JVM/jdkBuild/openjdk_7/build/langtools/build/bootstrap/gensrc
[copy] Copying 1 file to /Users/apple/Develop/JVM/jdkBuild/openjdk_7/build/langtools/build/bootstrap/gensrc
[pcompile] Generating 1 resource files to /Users/apple/Develop/JVM/jdkBuild/openjdk_7/build/langtools/build/bootstrap/gensrc
[javac] Compiling 298 source files to /Users/apple/Develop/JVM/jdkBuild/openjdk_7/build/langtools/build/bootstrap/classes
[javac] /Users/apple/Documents/openjdk/langtools/src/share/classes/com/sun/tools/javac/comp/Resolve.java:2182: ??: [overrides] ?Resolve.InapplicableSymbolsError.Candidate?????, ???????????? hashCode ??
[javac] private class Candidate {
[javac] ^
[javac] ??: ????, ???? -Werror
[javac] 1 ???
[javac] 1 ???

BUILD FAILED
/Users/apple/Documents/openjdk/langtools/make/build.xml:452: The following error occurred while executing this line:
/Users/apple/Documents/openjdk/langtools/make/build.xml:795: Compile failed; see the compiler error output for details.

Total time: 7 seconds
make[2]: *** [build] Error 1
make[1]: *** [langtools-build] Error 2
make: *** [build_product_image] Error 2
...全文
95 回复 打赏 收藏 转发到动态 举报
写回复
用AI写文章
回复
切换为时间正序
请发表友善的回复…
发表回复

50,564

社区成员

发帖
与我相关
我的任务
社区描述
Java相关技术讨论
javaspring bootspring cloud 技术论坛(原bbs)
社区管理员
  • Java相关社区
  • 小虚竹
  • 谙忆
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧