OpenJDK1.8 HotSpot编译报错

在尝试编译OpenJDK 1.8的HotSpot时遇到错误,问题根源在于make工具的版本。报错表明,make 4.0之后的版本中,'I'和'j'选项出现了混淆。为了解决这个问题,需要参考相关资料调整make版本或使用正确选项进行编译。

报错信息:

/usr/bin/make: invalid option -- '8'
/usr/bin/make: invalid option -- '/'
/usr/bin/make: invalid option -- 'a'
/usr/bin/make: invalid option -- '/'
/usr/bin/make: invalid option -- 'c'
Usage: make [options] [target] ...
...省略部分信息...
This program built for x86_64-pc-linux-gnu
Report bugs to <bug-make@gnu.org>
/home/john/openjdk-8-build/jdk8/hotspot/make/linux/makefiles/top.make:91: recipe for target 'ad_stuff' failed
make[5]: *** [ad_stuff] Error 2
/home/john/openjdk-8-build/jdk8/hotspot/make/linux/Makefile:289: recipe for target 'debug' failed
make[4]: *** [debug] Error 2
Makefile:216: recipe for target 'generic_build2' failed
make[3]: *** [generic_build2] Error 2
Makefile:167: recipe for target 'debug' failed
make[2]: *** [debug] Error 2
HotspotWrapper.gmk:44: recipe for target '/home/john/openjdk-8-build/jdk8/build/linux-x86_64-normal-server-slowdebug/hotspot/_hotspot.timestamp' failed
make[1]: *** [/home/john/openjdk-8-build/jdk8
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值