在Ubuntu 12.04上构建OpenJDK7

时间:2012-10-05 08:09:33

标签: java build ubuntu-12.04 openjdk

我已经按照所有建议的步骤在我的Ubuntu 12.04实例上构建openJDK7(openJDK build example),但是在给定错误的情况下仍然无法进行Java热点编译:

In file included from /home/ubuntu/openjdk-build-sandbox/openJDK7/hotspot/src/share/vm/prims/methodHandles.hpp:32:0,
             from /home/ubuntu/openjdk-build-sandbox/openJDK7/hotspot/src/share/vm/ci/ciMethod.hpp:33,
             from /home/ubuntu/openjdk-build-sandbox/openJDK7/hotspot/src/share/vm/code/debugInfoRec.hpp:30,
             from /home/ubuntu/openjdk-build-sandbox/openJDK7/hotspot/src/share/vm/ci/ciEnv.hpp:31,
             from /home/ubuntu/openjdk-build-sandbox/openJDK7/hotspot/src/share/vm/ci/ciUtilities.hpp:28,
             from /home/ubuntu/openjdk-build-sandbox/openJDK7/hotspot/src/share/vm/ci/ciNullObject.hpp:30,
             from /home/ubuntu/openjdk-build-sandbox/openJDK7/hotspot/src/share/vm/ci/ciConstant.hpp:29,
             from /home/ubuntu/openjdk-build-sandbox/openJDK7/hotspot/src/share/vm/precompiled.hpp:36:

/home/ubuntu/openjdk-build-sandbox/openJDK7/hotspot/src/share/vm/runtime/interfaceSupport.hpp:430:0: error: "__LEAF" redefined [-Werror]
/usr/include/x86_64-linux-gnu/sys/cdefs.h:44:0: note: this is the location of the previous definition
cc1plus: all warnings being treated as errors

知道怎么解决吗?

1 个答案:

答案 0 :(得分:3)

这是一个已知错误:https://bugs.launchpad.net/ubuntu/+source/openjdk-7/+bug/935346(包括修复)。