在Ubuntu16编译openjdk7遇到的一些问题

大大的微笑 发布于 2017/10/22 12:23
阅读 119
收藏 0

今天看周志明老师的<深入理解JVM原理>,这边在编译openJDK7时出了一些问题,我使用的是jdk1.6.0_45

我的配置:

export LANG=C
export ALT_BOOTDIR="/usr/local/jdk1.6.0_45"
export ALT_JDK_IMPORT_PATH="/usr/local/jdk1.6.0_45"
export BUILD_LANGTOOLS=true
export BUILD_HOTSPOT=true
export BUILD_JDK=true
export SKIP_COMPARE_IMAGES=true
export USE_PRECOMPILED_HEADER=true
BUILD_DEPLOY=false
BUILD_INSTALL=false
export ALT_OUTPUTDIR=/usr/local/openjdk/build
export ALLOW_DOWNLOADS=true
unset JAVA_HOME
unset CLASSPATH

我遇到的问题:

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

请大神们帮忙看看,感激不尽!

加载中
0
大大的微笑
大大的微笑

结贴了,特么hg clone的果然不行,功夫不负有心人最后换了一个openjdk7还是解决了

0
MockMan
MockMan

试试1.8吧,要友好的多

大大的微笑
大大的微笑
恩感谢,我今天在解决不了这个问题我就试试1.8
0
展翅飞
展翅飞

用apt安装吧,依赖关系可以自行解决

返回顶部
顶部