On Tue, 2018-05-08 at 22:42 +0900, Yasumasa Suenaga wrote: > Hi all, > > I tried to build OpenJDK (jdk/jdk) on Fedora 28 x64, but it failed as > following: > > ``` > [ysuenaga@fc28 jdk]$ make images > Building target 'images' in configuration > 'linux-x86_64-normal-server-fastdebug' > gmake[3]: *** [GenerateLinkOptData.gmk:64: > /home/ysuenaga/OpenJDK/jdk/build/linux-x86_64-normal-server-fastdebug/support/link_opt/classlist] > Error 1 > gmake[2]: *** [make/Main.gmk:448: generate-link-opt-data] Error 2 > > ERROR: Build failed for target 'images' in configuration > 'linux-x86_64-normal-server-fastdebug' (exit code 2) > > No indication of failed target found. > Hint: Try searching the build log for '] Error'. > Hint: See doc/building.html#troubleshooting for assistance. > > make[1]: *** [/home/ysuenaga/OpenJDK/jdk/make/Init.gmk:305: main] Error 2 > make: *** [/home/ysuenaga/OpenJDK/jdk/make/Init.gmk:186: images] Error 2 > ``` > > It seems "interim-image" is not valid: > > ``` > [ysuenaga@fc28 jdk]$ > ./build/linux-x86_64-normal-server-fastdebug/support/interim-image/bin/java > --version > Error occurred during initialization of VM > java/lang/NoClassDefFoundError: java/lang/Object > ``` > > It can succeed on Fedora 27. So I think it causes by OS. > I've disabled SELinux, and warnings / errors are nothing in `journalctl -a`. > > Do you have any idea to resolve this issue?
Not exactly sure what's going on, but I've reproduced. I'll have a poke at this too. Note that F28 has GCC 8. F27 has GCC 7. Thanks, Severin