CentOs编译openjdk7报错 Java综合虚拟机openjdk源代码
程序员文章站
2022-07-13 08:13:57
...
源码已经上传到附件里了
Linking vm...
ERROR: Cannot chcon libjvm.so
/usr/bin/objcopy --only-keep-debug libjvm.so libjvm.debuginfo
make[7]: Leaving directory `/home/application/tools/openjdk/build/linux-amd64-debug/hotspot/outputdir/linux_amd64_compiler2/jvmg'
make[6]: Leaving directory `/home/application/tools/openjdk/build/linux-amd64-debug/hotspot/outputdir/linux_amd64_compiler2/jvmg'
make[5]: Leaving directory `/home/application/tools/openjdk/build/linux-amd64-debug/hotspot/outputdir'
make[4]: Leaving directory `/home/application/tools/openjdk/hotspot/make'
make[3]: Leaving directory `/home/application/tools/openjdk/hotspot/make'
make[2]: Leaving directory `/home/application/tools/openjdk'
make[1]: Leaving directory `/home/application/tools/openjdk'
这是错误代码部分,已经试过很多次了,按照教程和书里都试过,但是始终报这个错误
Linking vm...
ERROR: Cannot chcon libjvm.so
/usr/bin/objcopy --only-keep-debug libjvm.so libjvm.debuginfo
make[7]: Leaving directory `/home/application/tools/openjdk/build/linux-amd64-debug/hotspot/outputdir/linux_amd64_compiler2/jvmg'
make[6]: Leaving directory `/home/application/tools/openjdk/build/linux-amd64-debug/hotspot/outputdir/linux_amd64_compiler2/jvmg'
make[5]: Leaving directory `/home/application/tools/openjdk/build/linux-amd64-debug/hotspot/outputdir'
make[4]: Leaving directory `/home/application/tools/openjdk/hotspot/make'
make[3]: Leaving directory `/home/application/tools/openjdk/hotspot/make'
make[2]: Leaving directory `/home/application/tools/openjdk'
make[1]: Leaving directory `/home/application/tools/openjdk'
这是错误代码部分,已经试过很多次了,按照教程和书里都试过,但是始终报这个错误