Bug 2026398 - [F36] OpenJDK fails to build (in virtualized env like koji builders)
Summary: [F36] OpenJDK fails to build (in virtualized env like koji builders)
Keywords:
Status: CLOSED DUPLICATE of bug 2026399
Alias: None
Product: Fedora
Classification: Fedora
Component: java-1.8.0-openjdk
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Deepak Bhole
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-11-24 14:46 UTC by Severin Gehwolf
Modified: 2021-11-24 14:49 UTC (History)
6 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2021-11-24 14:49:26 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Severin Gehwolf 2021-11-24 14:46:29 UTC
Description of problem:
OpenJDK 8, 11, 17 builds started to fail on rawhide x86_64 when they hit a virtualized builder (RHEL 8.5 with RHEL 8.5 qemu-kvm/libvirt on the host; F34 as the guest VM). See also this fedora-infra issue:
https://pagure.io/fedora-infrastructure/issue/10348

Version-Release number of selected component (if applicable):
# rpm -q libvirt
libvirt-6.0.0-37.module+el8.5.0+12162+40884dd2.x86_64

How reproducible:
100% if run on a virtualized VM builder.

Steps to Reproduce:
1. Set up a RHEL 8.5 host on an Intel Xeon Gold (Cascadelake)
2. Install virt tools for hosting VMs (from RHEL 8.5)
3. Install F34 in a guest VM
4. Try to do a mock build of java-1.8.0-openjdk for rawhide on the F34 guest VM (fedpkg clone -a java-1.8.0-openjdk && cd java-1.8.0-openjdk && fedpkg mockbuild --no-cleanup-after)

Actual results:
Random, cryptic build failures. Some example(s):

ERROR: compileproperties: IO error writing to file /builddir/build/BUILD/java-1.8.0-openjdk-1.8.0.312.b07-2.fc36.x86_64/bootbuild/jdk8.build-slowdebug/jdk/gensrc/sun/util/resources/cs/LocaleNames_cs.java
EXCEPTION: java.io.FileNotFoundException: /builddir/build/BUILD/java-1.8.0-openjdk-1.8.0.312.b07-2.fc36.x86_64/bootbuild/jdk8.build-slowdebug/jdk/gensrc/sun/util/resources/cs/LocaleNames_cs.java (No such file or directory)
java.io.FileNotFoundException: /builddir/build/BUILD/java-1.8.0-openjdk-1.8.0.312.b07-2.fc36.x86_64/bootbuild/jdk8.build-slowdebug/jdk/gensrc/sun/util/resources/cs/LocaleNames_cs.java (No such file or directory)
        at java.io.FileOutputStream.open0(Native Method)
        at java.io.FileOutputStream.open(FileOutputStream.java:270)
        at java.io.FileOutputStream.<init>(FileOutputStream.java:213)
        at java.io.FileOutputStream.<init>(FileOutputStream.java:101)
        at build.tools.compileproperties.CompileProperties.createFile(CompileProperties.java:269)
        at build.tools.compileproperties.CompileProperties.main(CompileProperties.java:195)

and/or:

/builddir/build/BUILD/java-1.8.0-openjdk-1.8.0.312.b07-2.fc36.x86_64/openjdk/hotspot/make/linux/makefiles/rules.make:149: Building os_perf_linux.o  (from /builddir/build/BUILD/java-1.8.0-openjdk-1.8.0.312.b07-2.fc36.x86_64/openjdk/hotspot/src/os/linux/vm/os_perf_linux.cpp) (/builddir/build/BUILD/java-1.8.0-openjdk-1.8.0.312.b07-2.fc36.x86_64/openjdk/hotspot/src/os/linux/vm/os_perf_linux.cpp  newer)
gmake[6]: *** No rule to make target 's.os_posix.cpp', needed by 'os_posix.cpp'.  Stop.
gmake[6]: *** Waiting for unfinished jobs....


Expected results:
Successful build of rawhide in mock.

Additional info:
It doesn't reproduce on a Fedora host (F34) and Fedora 34 guest. It doesn't seem to be qemu related (of the host). It doesn't reproduce when the build happens on a physical machine (not virtualized). Failures have been seen with qemu-kvm 6.0.0 and 4.2.0

It might be xfs or libvirt storage related as the failures seem to change and are about files not being present where they should be there.

Comment 1 Severin Gehwolf 2021-11-24 14:49:26 UTC
Sorry, I meant to create a RHEL 8.5 libvirt bug. Here it is:
https://bugzilla.redhat.com/show_bug.cgi?id=2026399

*** This bug has been marked as a duplicate of bug 2026399 ***


Note You need to log in before you can comment on or make changes to this bug.