有谁在Mac OS X上build过OpenJDK吗?我的build报错袅
guoguo007
2013-09-07
最近在看周志明大大的《深入理解Java虚拟机》第二版,尝试着在Mac OS X (10.8.4)中build了一遍OpenJDK,make sanity通过了,但是编译JDK中的Mac本地代码却报错了,烦请各位帮忙给看看,多谢了!
[exec] [exec] [exec] ** BUILD FAILED ** [exec] [exec] [exec] The following build commands failed: [exec] CompileC /Users/SkyWaiting/Develop/JVM/jdkbuild/openjdk_7u6-debug/JObjC.dst/Objects-normal/i386/SEL.o src/core/native/SEL.m normal i386 objective-c com.apple.compilers.llvm.clang.1_0.compiler [exec] (1 failure) BUILD FAILED /Users/SkyWaiting/Downloads/openjdk/jdk/src/macosx/native/jobjc/build.xml:158: exec returned: 65 at org.apache.tools.ant.taskdefs.ExecTask.runExecute(ExecTask.java:646) at org.apache.tools.ant.taskdefs.ExecTask.runExec(ExecTask.java:672) at org.apache.tools.ant.taskdefs.ExecTask.execute(ExecTask.java:498) at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291) at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106) at org.apache.tools.ant.Task.perform(Task.java:348) at org.apache.tools.ant.Target.execute(Target.java:390) at org.apache.tools.ant.Target.performTasks(Target.java:411) at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399) at org.apache.tools.ant.Project.executeTarget(Project.java:1368) at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41) at org.apache.tools.ant.Project.executeTargets(Project.java:1251) at org.apache.tools.ant.Main.runBuild(Main.java:809) at org.apache.tools.ant.Main.startAnt(Main.java:217) at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280) at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109) Total time: 17 seconds make[5]: *** [/Users/SkyWaiting/Develop/JVM/jdkbuild/openjdk_7u6/../openjdk_7u6-debug/JObjC.build/JObjC.jar] Error 1 make[4]: *** [all] Error 1 make[3]: *** [all] Error 1 make[2]: *** [jdk-build] Error 2 make[1]: *** [generic_debug_build] Error 2 make: *** [build_debug_image] Error 2 |
|
RednaxelaFX
2013-09-08
楼主用的源码包是OpenJDK 7u6的zip包么?从这里下载的这个:http://www.java.net/download/openjdk/jdk7u6/promoted/b24/openjdk-7u6-fcs-src-b24-28_aug_2012.zip?
如果是的话,楼主能不能先试试改用Mercurial从http://hg.openjdk.java.net/jdk7u/jdk7u下载新的源码下来build试试?有很多Mac OS X上的build问题都在新版解决了的。您遇到的问题看起来很眼熟…例如可能是这个:http://mail.openjdk.java.net/pipermail/macosx-port-dev/2013-February/005359.html |
|
guoguo007
2013-09-10
多谢R大,这几天有点小忙,没顾上看这帖子,我照你说的试试看。
|
相关讨论
相关资源推荐
- android build却报错,Android build的时候报错 问题以及答案收集
- mac下编译openjdk8?so easy!
- Mac10.15.7上编译OpenJDK8u
- 编译源码时遇到的You are attempting to build with an unsupported JDK问题
- 在Mac上搭建OpenJDK10源码调试环境
- 第一章 Mac os下编译openJDK 7
- Mac11.1 编译openjdk 11+
- mac big sur openjdk8 源码编译
- 如何优雅的编译OpenJDK(Mac 版)
- Mac10.14下使用Xcode10编译调试OpenJDK8最新教程(附源码)