openjdk7编译出错

发布于 2021-12-06 01:21:37 字数 1828 浏览 910 评论 0

大家好,这边在看<深入理解JVM原理>这本书的时候,在进行编译openjdk7时,报了如下错误,请大神们指点一二,感激不尽:

Linking vm...
/usr/bin/ld: cannot open output file libjvm.so: Too many levels of symbolic links
collect2: error: ld returned 1 exit status
ln: failed to create symbolic link 'libjvm.so': File exists
ln: failed to create symbolic link 'libjvm.so.1': File exists
/usr/bin/objcopy --only-keep-debug libjvm.so libjvm.debuginfo
/usr/bin/objcopy: Warning: could not locate 'libjvm.so'.  reason: Too many levels of symbolic links
/usr/local/openjdk/hotspot/make/linux/makefiles/vm.make:324: recipe for target 'libjvm.so' failed
make[6]: *** [libjvm.so] Error 1
make[6]: Leaving directory '/usr/local/openjdk/build/hotspot/outputdir/linux_amd64_compiler2/product'
/usr/local/openjdk/hotspot/make/linux/makefiles/top.make:119: recipe for target 'the_vm' failed
make[5]: *** [the_vm] Error 2
make[5]: Leaving directory '/usr/local/openjdk/build/hotspot/outputdir/linux_amd64_compiler2/product'
/usr/local/openjdk/hotspot/make/linux/Makefile:290: recipe for target 'product' failed
make[4]: *** [product] Error 2
make[4]: Leaving directory '/usr/local/openjdk/build/hotspot/outputdir'
Makefile:191: recipe for target 'generic_build2' failed
make[3]: *** [generic_build2] Error 2
make[3]: Leaving directory '/usr/local/openjdk/hotspot/make'
Makefile:151: recipe for target 'product' failed
make[2]: *** [product] Error 2
make[2]: Leaving directory '/usr/local/openjdk/hotspot/make'
make/hotspot-rules.gmk:111: recipe for target 'hotspot-build' failed
make[1]: *** [hotspot-build] Error 2
make[1]: Leaving directory '/usr/local/openjdk'
Makefile:251: recipe for target 'build_product_image' failed
make: *** [build_product_image] Error 2
 

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文