Building OpenJdk7 in Ubuntu14.10 ( amd64 )
来源:互联网 发布:淘宝商务模式接单 编辑:程序博客网 时间:2024/06/06 05:53
Finally Result:
-- Build times ----------
Target debug_buildStart 2015-09-29 15:43:41
End 2015-09-29 15:57:11
00:01:23 corba
00:03:46 hotspot
00:00:23 jaxp
00:00:31 jaxws
00:06:59 jdk
00:00:28 langtools
00:13:30 TOTAL
-------------------------
1. Download the openjdk7 source code from http://download.java.net/openjdk/jdk7/
2. For building open jdk , need install the dependence sudo apt-get build-dep openjdk-7
3. Install Oracle JDK 6 .
if you install openjdk6 ,may suffer below issue:
Unable to load native library: ~/java/jopenjdk6/jre/lib/amd64/libjava.so: symbol JVM_SetNativeThreadName, version SUNWprivate_1.1 not defined in file libjvm.so with link time reference
could refer :http://blog.csdn.net/gobitan/article/details/24322561
4. Create a shell script in openjdk main folder :
<pre name="code" class="plain">#!/bin/bashexport LANG=Cexport ARCH_DATA_MODEL=64export DISABLE_HOTSPOT_OS_VERSION_CHECK=okexport ALT_BOOTDIR=/usr/local/java/jdk1.6.0_45 jvmgexport ALLOW_DOWNLOADS=trueexport USE_PRECOMPILED_HEADER=trueexport SKIP_DEBUG_BUILD=falseexport SKIP_FASTDEBUG_BUILD=trueexport DEBUG_NAME=debugunset CLASSPATHunset JAVA_HOMEmake sanity && make
5. Some Bug need to be fixed before your exec above script:
5.1
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
ANS:Develop Team has fixed this bug , you could find the solution in below link from the Official Doc:
5.2
Need Update "openjdk/jdk/make/javax/sound/jsoundalsa/Makefile,
Change=>
LDFLAGS += -lasound
To=>
OTHER_LDLIBS += -lasound
5.3
Need Update hotspot/make/linux/Makefile
note below code:
#ifeq ($(DISABLE_HOTSPOT_OS_VERSION_CHECK)$(EMPTY_IF_NOT_SUPPORTED),)
# $(QUIETLY) >&2 echo "*** This OS is not supported:" `uname -a`; exit 1;
#endif
6.May be you need to change the system environment from Chinese to English .
But when I began to build the open jdk , I still suffer below error warning .
Error:
Error1:
/openjdk/hotspot/src/share/vm/oops/constantPoolOop.cpp:272:39: error: converting 'false' to pointer type 'methodOop' [-Werror=conversion-null]
cc1plus: all warnings being treated as errors
ANS:Change =>
return false
to
return NULL
you may suffer the some issue in other cpp files , just try to replace "return false" to "return NULL", it is very useful for me.
Error2:
gcc: error: unrecognized command line option '-mimpure-text'
ANS:remove the command "-mimpure-text" in the code: /openjdk/jdk/make/common/shared/Compiler-gcc.gmk
Error3:
< ../../../src/share/classes/java/util/CurrencyData.properties Error: time is more than 10 years from present: 1120165200000
ANS:Edit the openjdk/jdk/src/share/classes/java/util/CurrencyData.properties for every date time like
TR=TRL;2004-12-31-22-00-00;TRY
to
TR=TRL;2014-12-31-22-00-00;TRY
other like 2005-06-30 need to update to 2015-06-30 also , after that, this issue is resolved
Thanks for the strong internet helping me resolve above issue , and please forgive my ugly English.
- Building OpenJdk7 in Ubuntu14.10 ( amd64 )
- ubuntu14 编译 openjdk7
- ubuntu14.04编译openjdk7
- 32位ubuntu14下编译openjdk7
- ubuntu14.04(amd64)安装Oracle_linux_x64_11gR2
- ubuntu14.04 amd64编译vlc
- MudOS in AMD64
- MudOS in AMD64
- Install oracle 10g express version in debian amd64
- ubuntu14.04(amd64)安装Oracle_lin…
- Hive : ubuntu14.04 amd64 安装Hive
- Ubuntu14.04(AMD64)平台编译,安装openCV3
- ubuntu14.04(amd64)下安装wine
- Ubuntu14.04+OpenJDK7下载编译安卓源代码
- Ubuntu14.04 安装openjdk7和openjdk8与切换
- Ubuntu11.10下编译 OpenJDK7
- Ubuntu14.04 amd64安装联想笔记本Y485P显卡HD8790M驱动
- Hadoop : Ubuntu14.04 amd64 安装伪分布式集群环境
- CF581C用k去把n个数补成十的整数倍求最大
- 如何在Mac OS X上安装 Ruby运行环境
- Android MQTT协议和服务器的安装
- linux命令行练级攻略
- 如何隐藏RibbonBar的QAT QuickAccessToolBar
- Building OpenJdk7 in Ubuntu14.10 ( amd64 )
- andriod手机测试
- iOS9 更新
- 文本分析系列——基于词库的文本是非判断计算
- 如何为按钮或者图片控件添加超链接?
- Java____验证码的实现
- ENUM 枚举使用总结
- xcode快捷键
- There was a mismatch between the processor architecture of the project