編譯 openjdk7 在 ubuntu14.04 64bit

通過

configura 配置完成后

然後用make 進行編譯

 

過程中報錯

 

報錯:

*** This OS is not supported: Linux ubuntu 4.4.0-142-generic #168~14.04.1-Ubuntu SMP Sat Jan 19 11:26:28 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
make[5]: *** [/home/nanak/Downloads/openjdk/hotspot/make/linux/Makefile:238: check_os_version] Error 1

看來是不支持操作系統,認爲操作系統太老

 

解決:

打開openjdk/hotspot/make/linux/Makefile,到 238 行

添加 4% 在最後

如這裏所示

# We do not want people accidentally building on old systems (e.g. Linux 2.2.x,
# Solaris 2.5.1, 2.6).
# Disable this check by setting DISABLE_HOTSPOT_OS_VERSION_CHECK=ok.

SUPPORTED_OS_VERSION = 2.4% 2.5% 2.6% 3% 4%

結果是他自己太老,不認識4.x 内核的新系統

 

修改好后 ,繼續用 make

編譯成功

 

posted on 2020-04-16 10:52  jald  阅读(186)  评论(0编辑  收藏  举报

导航