Bug 1978479
| Summary: | [RHEL-9.0] /kernel/RHEL6/buildcheck - in_tree_nowarn fails | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 9 | Reporter: | PaulB <pbunyan> |
| Component: | kernel | Assignee: | Kernel Drivers <hwkernel-mgr> |
| kernel sub component: | Platform Enablement | QA Contact: | Kernel-QE - Hardware <kernel-qe-hw> |
| Status: | CLOSED NOTABUG | Docs Contact: | |
| Severity: | high | ||
| Priority: | high | CC: | efuller, ernunes, jbastian, jfeeney, pbunyan, rvr, zhilli |
| Version: | 9.0 | Flags: | pm-rhel:
mirror+
|
| Target Milestone: | beta | ||
| Target Release: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2021-12-20 08:12:44 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
PaulB
2021-07-01 22:40:57 UTC
All, Issue reported in the opening comment was seen while testing the following aarch64 system: host: ampere-hr350a-07 Here are some reproducers: distro: RHEL-9.0.0-20210626.0 kernel: 5.13.0-0.rc7.51.el9 task: /kernel/RHEL6/buildcheck 1.0-56 ========== aarch64 ========== https://beaker.engineering.redhat.com/tasks/executed?arch_id=10&task=%2Fkernel%2FRHEL6%2Fbuildcheck&result=Fail&job_id=5510873&whiteboard=5.13.0-0.rc7.51.el9++ampere-altra https://beaker-archive.host.prod.eng.bos.redhat.com/beaker-logs/2021/06/55108/5510873/10205920/128050382/602482946/resultoutputfile.log ========== ppc64le ========== https://beaker.engineering.redhat.com/tasks/executed?arch_id=11&task=%2Fkernel%2FRHEL6%2Fbuildcheck&result=Fail&job_id=5510872&whiteboard=5.13.0-0.rc7.51.el9 https://beaker-archive.host.prod.eng.bos.redhat.com/beaker-logs/2021/06/55108/5510872/10205906/128050076/602501371/resultoutputfile.log ========== s390x ========== https://beaker.engineering.redhat.com/tasks/executed?arch_id=7&task=%2Fkernel%2FRHEL6%2Fbuildcheck&result=Fail&job_id=5510872&whiteboard=5.13.0-0.rc7.51.el9 https://beaker-archive.host.prod.eng.bos.redhat.com/beaker-logs/2021/06/55108/5510872/10205917/128050316/602496835/resultoutputfile.log ========== x86_64 ========== https://beaker.engineering.redhat.com/tasks/executed?arch_id=2&task=%2Fkernel%2FRHEL6%2Fbuildcheck&result=Fail&job_id=5510872&whiteboard=5.13.0-0.rc7.51.el9 https://beaker-archive.host.prod.eng.bos.redhat.com/beaker-logs/2021/06/55108/5510872/10205895/128049836/602488297/resultoutputfile.log Best, pbunyan Li Zhili, I see your MR here: https://gitlab.cee.redhat.com/kernel-qe/kernel/-/merge_requests/941 The RHEL6/buildcheck/runtest.sh task was still failing for me. However, keeping the original code and adding your code to the runtest.sh works for me. commit 8a132656f812fbb5f6519e9e638050b2c11ece60 (tag: kernel-RHEL6-buildcheck-1_0-57) Author: Paul Bunyan <pbunyan.csb> Date: Thu Dec 16 15:12:03 2021 -0500 BZ1978479: use zhilli patch to fix buildcheck for RHEL9 diff --git a/RHEL6/buildcheck/runtest.sh b/RHEL6/buildcheck/runtest.sh index 4aeffea6bb..ab2791d13b 100644 --- a/RHEL6/buildcheck/runtest.sh +++ b/RHEL6/buildcheck/runtest.sh @@ -530,10 +530,21 @@ do create_dummy_module "$topdir" "$name" "$warn" if [ "$in_tree" == "in_tree" ]; then + echo "" | tee -a $OUTPUTFILE + # for RHEL-9, old method can not build in tree modules + # so we have to change our way + KMAJOR=$(uname -r | sed 's/\..*$//') + if [ "$KMAJOR" -ge "5" ]; then + echo "" | tee -a $OUTPUTFILE + K_EchoAll "Running: $makecmd -C /lib/modules/$(uname -r)/build M=${PREPDIR}/${topdir}/${name} modules" + $makecmd -C /lib/modules/$(uname -r)/build M=${PREPDIR}/${topdir}/${name} modules >> $OUTPUTFILE 2>&1 + else + # not RHEL-9 (using old method) echo "" | tee -a $OUTPUTFILE K_EchoAll "Running: $makecmd O=$objdir $topdir/$name/${name}.ko" $makecmd O=$objdir $topdir/$name/${name}.ko >> $OUTPUTFILE 2>&1 ret=$? + fi else echo "" | tee -a $OUTPUTFILE K_EchoAll "Running: $makecmd O=$objdir M=$topdir/$name" ---------------------- Testing verified here: ---------------------- buildcheck: [RHEL-6][x86_64] BZ1978479 https://beaker.engineering.redhat.com/jobs/6105871 - PASS buildcheck: [RHEL-7][x86_64] BZ1978479 https://beaker.engineering.redhat.com/jobs/6105869 - PASS buildcheck: [RHEL-8][x86_64] BZ1978479 https://beaker.engineering.redhat.com/jobs/6105872 - PASS buildcheck: [RHEL-9][x86_64] BZ1978479 https://beaker.engineering.redhat.com/jobs/6105873 - PASS Looks like this can be closed with fixed in version kernel-RHEL6-buildcheck-1_0-57. Thank you for the fix! Best, pbunyan Close bug as NOTABUG per comment #4 |