From jacob.kroon at gmail.com Wed May 18 20:54:25 2022 From: jacob.kroon at gmail.com (Jacob Kroon) Date: Wed, 18 May 2022 22:54:25 +0200 Subject: Trouble building Icedtea 2.1.3 in yocto/meta-java on Fedora 36 host Message-ID: Hi, I'm trying to get Yocto to build Icedtea from meta-java, host is Fedora 36. The same build completes fine on a Fedora 35 system, but the crash when building on Fedora 36 is non-trivial for me to debug, so I thought I'd ask for some pointers here. I'm using the master branches of Openembedded/Bitbake/meta-java. The version of Icedtea I'm building is 2.1.3. This the tail of the build log: > | ######################################################################## > | ######################################################################## > | ##### Entering langtools for target(s) all ##### > | ######################################################################## > | > | (cd ./langtools/make && \ > | /tmp/ramdisk/foobar-linux/foobar-linux-glibc/work/x86_64-linux/icedtea7-native/2.1.3-r1.0/recipe-sysroot-native/usr/bin/make JDK_TOPDIR=/tmp/ramdisk/foobar-linux/foobar-linux-glibc/work/x86_64-linux/icedtea7-native/2.1.3-r1.0/icedtea-2.1.3/build/openjdk/jdk JDK_MAKE_SHARED_DIR=/tmp/ramdisk/foobar-linux/foobar-linux-glibc/work/x86_64-linux/icedtea7-native/2.1.3-r1.0/icedtea-2.1.3/build/openjdk/jdk/make/common/shared EXTERNALSANITYCONTROL=true SOURCE_LANGUAGE_VERSION=7 TARGET_CLASS_VERSION=7 MILESTONE=fcs BUILD_NUMBER=b21 JDK_BUILD_NUMBER=b21 FULL_VERSION=1.7.0_03-icedtea-b21 PREVIOUS_JDK_VERSION=1.6.0 JDK_VERSION=1.7.0_03 JDK_MKTG_VERSION=7u3 JDK_MAJOR_VERSION=1 JDK_MINOR_VERSION=7 JDK_MICRO_VERSION=0 PREVIOUS_MAJOR_VERSION=1 PREVIOUS_MINOR_VERSION=6 PREVIOUS_MICRO_VERSION=0 STATIC_CXX=false ARCH_DATA_MODEL=64 COOKED_JDK_UPDATE_VERSION=30 COOKED_BUILD_NUMBER=21 ALT_OUTPUTDIR=/tmp/ramdisk/foobar-linux/foobar-linux-glibc/work/x86_64-linux/icedtea7-native/2.1.3-r1.0/icedtea-2.1.3/build/openjdk.build/langtools ALT_BOOTDIR=/tmp/ramdisk/foobar-linux/foobar-linux-glibc/work/x86_64-linux/icedtea7-native/2.1.3-r1.0/icedtea-2.1.3/build/bootstrap/jdk1.6.0 all) > | make[3]: Entering directory '/tmp/ramdisk/foobar-linux/foobar-linux-glibc/work/x86_64-linux/icedtea7-native/2.1.3-r1.0/icedtea-2.1.3/build/openjdk/langtools/make' > | JAVA_HOME=/tmp/ramdisk/foobar-linux/foobar-linux-glibc/work/x86_64-linux/icedtea7-native/2.1.3-r1.0/icedtea-2.1.3/build/bootstrap/jdk1.6.0 ANT_OPTS=-Djava.io.tmpdir='/tmp/ramdisk/foobar-linux/foobar-linux-glibc/work/x86_64-linux/icedtea7-native/2.1.3-r1.0/icedtea-2.1.3/build/openjdk.build/langtools/build/ant-tmp' /tmp/ramdisk/foobar-linux/foobar-linux-glibc/work/x86_64-linux/icedtea7-native/2.1.3-r1.0/recipe-sysroot-native/usr/bin/ant -diagnostics > /tmp/ramdisk/foobar-linux/foobar-linux-glibc/work/x86_64-linux/icedtea7-native/2.1.3-r1.0/icedtea-2.1.3/build/openjdk.build/langtools/build/ant-diagnostics.log ; \ > | JAVA_HOME=/tmp/ramdisk/foobar-linux/foobar-linux-glibc/work/x86_64-linux/icedtea7-native/2.1.3-r1.0/icedtea-2.1.3/build/bootstrap/jdk1.6.0 ANT_OPTS=-Djava.io.tmpdir='/tmp/ramdisk/foobar-linux/foobar-linux-glibc/work/x86_64-linux/icedtea7-native/2.1.3-r1.0/icedtea-2.1.3/build/openjdk.build/langtools/build/ant-tmp' /tmp/ramdisk/foobar-linux/foobar-linux-glibc/work/x86_64-linux/icedtea7-native/2.1.3-r1.0/recipe-sysroot-native/usr/bin/ant -version >> /tmp/ramdisk/foobar-linux/foobar-linux-glibc/work/x86_64-linux/icedtea7-native/2.1.3-r1.0/icedtea-2.1.3/build/openjdk.build/langtools/build/ant-diagnostics.log > | Picked up JAVA_TOOL_OPTIONS: > | /tmp/ramdisk/foobar-linux/foobar-linux-glibc/work/x86_64-linux/icedtea7-native/2.1.3-r1.0/recipe-sysroot-native/usr/bin/ant: line 10: 92606 Aborted (core dumped) $JAVA org.apache.tools.ant.launch.Launcher $* > | Picked up JAVA_TOOL_OPTIONS: > | JAVA_HOME=/tmp/ramdisk/foobar-linux/foobar-linux-glibc/work/x86_64-linux/icedtea7-native/2.1.3-r1.0/icedtea-2.1.3/build/bootstrap/jdk1.6.0 ANT_OPTS=-Djava.io.tmpdir='/tmp/ramdisk/foobar-linux/foobar-linux-glibc/work/x86_64-linux/icedtea7-native/2.1.3-r1.0/icedtea-2.1.3/build/openjdk.build/langtools/build/ant-tmp' /tmp/ramdisk/foobar-linux/foobar-linux-glibc/work/x86_64-linux/icedtea7-native/2.1.3-r1.0/recipe-sysroot-native/usr/bin/ant -Djdk.version=1.7.0_03 -Dfull.version='1.7.0_03-icedtea-b21' -Drelease=1.7.0_03 -Dbuild.number=b21 -Djavac.debug=true -Ddebug.classfiles=true -Djavac.target=7 -Djavac.source=7 -Dboot.java.home=/tmp/ramdisk/foobar-linux/foobar-linux-glibc/work/x86_64-linux/icedtea7-native/2.1.3-r1.0/icedtea-2.1.3/build/bootstrap/jdk1.6.0 -Dimport.jdk=/tmp/ramdisk/foobar-linux/foobar-linux-glibc/work/x86_64-linux/icedtea7-native/2.1.3-r1.0/icedtea-2.1.3/build/openjdk/jdk -Dbuild.dir=/tmp/ramdisk/foobar-linux/foobar-linux-glibc/work/x86_64-linux/icedtea7-native/2.1.3-r1.0/icedtea-2.1.3/build/openjdk.build/langtools/build -Ddist.dir=/tmp/ramdisk/foobar-linux/foobar-linux-glibc/work/x86_64-linux/icedtea7-native/2.1.3-r1.0/icedtea-2.1.3/build/openjdk.build/langtools/dist build > | Picked up JAVA_TOOL_OPTIONS: > | Buildfile: /tmp/ramdisk/foobar-linux/foobar-linux-glibc/work/x86_64-linux/icedtea7-native/2.1.3-r1.0/icedtea-2.1.3/build/openjdk/langtools/make/build.xml > | # > | # A fatal error has been detected by the Java Runtime Environment: > | # > | # SIGSEGV (0xb) at pc=0x00007fef810221ec, pid=92657, tid=140666631132736 > | # > | # JRE version: 7.0_03-b21 > | # Java VM: OpenJDK 64-Bit Server VM (22.0-b10 mixed mode linux-amd64 compressed oops) > | # Derivative: IcedTea7 2.1.3 > | # Distribution: Custom build (Wed May 18 20:40:29 UTC 2022) > | # Problematic frame: > | # V [libjvm.so+0x3a61ec] Deoptimization::unpack_frames(JavaThread*, int)+0x12c > | # > | # Core dump written. Default location: /tmp/ramdisk/foobar-linux/foobar-linux-glibc/work/x86_64-linux/icedtea7-native/2.1.3-r1.0/icedtea-2.1.3/build/openjdk/langtools/make/core or core.92657 > | # > | # An error report file with more information is saved as: > | # /tmp/ramdisk/foobar-linux/foobar-linux-glibc/work/x86_64-linux/icedtea7-native/2.1.3-r1.0/icedtea-2.1.3/build/openjdk/langtools/make/hs_err_pid92657.log > | Could not load hsdis-amd64.so; library not loadable; PrintAssembly is disabled > | # > | # If you would like to submit a bug report, please include > | # instructions on how to reproduce the bug and visit: > | # http://icedtea.classpath.org/bugzilla > | # > | /tmp/ramdisk/foobar-linux/foobar-linux-glibc/work/x86_64-linux/icedtea7-native/2.1.3-r1.0/recipe-sysroot-native/usr/bin/ant: line 10: 92657 Aborted (core dumped) $JAVA org.apache.tools.ant.launch.Launcher $* > | make[3]: Leaving directory '/tmp/ramdisk/foobar-linux/foobar-linux-glibc/work/x86_64-linux/icedtea7-native/2.1.3-r1.0/icedtea-2.1.3/build/openjdk/langtools/make' > | make[3]: *** [Makefile:202: build] Error 134 > | make[2]: Leaving directory '/tmp/ramdisk/foobar-linux/foobar-linux-glibc/work/x86_64-linux/icedtea7-native/2.1.3-r1.0/icedtea-2.1.3/build/openjdk' > | make[2]: *** [make/langtools-rules.gmk:39: langtools-build] Error 2 > | make[1]: Leaving directory '/tmp/ramdisk/foobar-linux/foobar-linux-glibc/work/x86_64-linux/icedtea7-native/2.1.3-r1.0/icedtea-2.1.3/build/openjdk' > | make[1]: *** [Makefile:244: build_product_image] Error 2 > | make: *** [Makefile:2127: stamps/icedtea.stamp] Error 2 > | ERROR: oe_runmake failed > | WARNING: /tmp/ramdisk/foobar-linux/foobar-linux-glibc/work/x86_64-linux/icedtea7-native/2.1.3-r1.0/temp/run.do_compile.14774:227 exit 1 from 'exit 1' > | WARNING: Backtrace (BB generated script): > | #1: bbfatal_log, /tmp/ramdisk/foobar-linux/foobar-linux-glibc/work/x86_64-linux/icedtea7-native/2.1.3-r1.0/temp/run.do_compile.14774, line 227 > | #2: die, /tmp/ramdisk/foobar-linux/foobar-linux-glibc/work/x86_64-linux/icedtea7-native/2.1.3-r1.0/temp/run.do_compile.14774, line 211 > | #3: oe_runmake, /tmp/ramdisk/foobar-linux/foobar-linux-glibc/work/x86_64-linux/icedtea7-native/2.1.3-r1.0/temp/run.do_compile.14774, line 206 > | #4: do_compile, /tmp/ramdisk/foobar-linux/foobar-linux-glibc/work/x86_64-linux/icedtea7-native/2.1.3-r1.0/temp/run.do_compile.14774, line 192 > | #5: main, /tmp/ramdisk/foobar-linux/foobar-linux-glibc/work/x86_64-linux/icedtea7-native/2.1.3-r1.0/temp/run.do_compile.14774, line 231 > ERROR: Task (/home/jkroon/Projects/foobar-linux/build/../meta-java/recipes-core/icedtea/icedtea7-native_2.1.3.bb:do_compile) failed with exit code '1' > NOTE: Tasks Summary: Attempted 1269 tasks of which 1151 didn't need to be rerun and 1 failed. > NOTE: Writing buildhistory > NOTE: Writing buildhistory took: 1 seconds > > Summary: 1 task failed: > /home/jkroon/Projects/foobar-linux/build/../meta-java/recipes-core/icedtea/icedtea7-native_2.1.3.bb:do_compile > Summary: There were 2 ERROR messages, returning a non-zero exit code. The file listed above, > /tmp/ramdisk/foobar-linux/foobar-linux-glibc/work/x86_64-linux/icedtea7-native/2.1.3-r1.0/icedtea-2.1.3/build/openjdk/langtools/make/hs_err_pid92657.log does not exist when I look for it, neither does the core file at > /tmp/ramdisk/foobar-linux/foobar-linux-glibc/work/x86_64-linux/icedtea7-native/2.1.3-r1.0/icedtea-2.1.3/build/openjdk/langtools/make/core Does anyone have any hints or pointers on how to start debugging this ? Best regards Jacob From aph-open at littlepinkcloud.com Sun May 22 07:13:35 2022 From: aph-open at littlepinkcloud.com (Andrew Haley) Date: Sun, 22 May 2022 08:13:35 +0100 Subject: Trouble building Icedtea 2.1.3 in yocto/meta-java on Fedora 36 host In-Reply-To: References: Message-ID: On 5/18/22 21:54, Jacob Kroon wrote: > | # An error report file with more information is saved as: > | # /tmp/ramdisk/foobar-linux/foobar-linux-glibc/work/x86_64-linux/icedtea7-native/2.1.3-r1.0/icedtea-2.1.3/build/openjdk/langtools/make/hs_err_pid92657.log That's the file that contains the information. But I warn you that it's going to be near impossible to debug this remotely. -- Andrew Haley (he/him) Java Platform Lead Engineer Red Hat UK Ltd. https://keybase.io/andrewhaley EAC8 43EB D3EF DB98 CC77 2FAD A5CD 6035 332F A671 From jacob.kroon at gmail.com Sun May 22 08:30:32 2022 From: jacob.kroon at gmail.com (Jacob Kroon) Date: Sun, 22 May 2022 10:30:32 +0200 Subject: Trouble building Icedtea 2.1.3 in yocto/meta-java on Fedora 36 host In-Reply-To: References: Message-ID: Hi Andrew, On 5/22/22 09:13, Andrew Haley wrote: > On 5/18/22 21:54, Jacob Kroon wrote: >> | # An error report file with more information is saved as: >> | # >> /tmp/ramdisk/foobar-linux/foobar-linux-glibc/work/x86_64-linux/icedtea7-native/2.1.3-r1.0/icedtea-2.1.3/build/openjdk/langtools/make/hs_err_pid92657.log >> > > That's the file that contains the information. But I warn you that it's > going > to be near impossible to debug this remotely. > Thank you for the reply. I did find that log file, and in case anyone wants to take a peek into it, I have attached it to this mail. I do wonder if it would be a better idea to just try and update cacao/icedtea to newer versions instead of trying to debug this build failure.. Jacob -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err.log Type: text/x-log Size: 55941 bytes Desc: not available URL: From aph-open at littlepinkcloud.com Sun May 22 09:24:29 2022 From: aph-open at littlepinkcloud.com (Andrew Haley) Date: Sun, 22 May 2022 10:24:29 +0100 Subject: Trouble building Icedtea 2.1.3 in yocto/meta-java on Fedora 36 host In-Reply-To: References: Message-ID: <5c42baaa-53d0-7e95-11ec-e134fa9a41ac@littlepinkcloud.com> On 5/22/22 09:30, Jacob Kroon wrote: > I do wonder if it would be a better idea to just try and update > cacao/icedtea to newer versions instead of trying to debug this build > failure.. Heavens, yes, if you can. This is a crash inside deoptimization, one of the hairiest parts of HotSpot. I can think of many possible causes. -- Andrew Haley (he/him) Java Platform Lead Engineer Red Hat UK Ltd. https://keybase.io/andrewhaley EAC8 43EB D3EF DB98 CC77 2FAD A5CD 6035 332F A671