Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 2055510

Summary: [RHEL9][FTBFS] elfutils-0.186-2.el9 FTBFS on Red Hat Enterprise Linux 9 - 9.0
Product: Red Hat Enterprise Linux 9 Reporter: OSCI Bakery Bot <osci-admins+bakery>
Component: elfutilsAssignee: Mark Wielaard <mjw>
elfutils sub component: system-version QA Contact: qe-baseos-tools-bugs
Status: CLOSED CANTFIX Docs Contact:
Severity: unspecified    
Priority: unspecified CC: fche, jkaluza, mcermak, mjw, wcohen
Version: 9.0Keywords: Triaged
Target Milestone: rcFlags: pm-rhel: mirror+
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-02-25 20:37:52 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description OSCI Bakery Bot 2022-02-17 06:37:14 UTC
elfutils failed to build from source in Red Hat Enterprise Linux Red Hat Enterprise Linux 9 - 9.0

https://brewweb.engineering.redhat.com/brew/taskinfo?taskID=43084655

For details on automatic synchronization of builds for Red Hat Enterprise Linux 9 - 9.0, see the RHEL Developer Guide:
https://one.redhat.com/rhel-developer-guide/#proc_opting-out-of-centos-stream-inheritance_assembly_rhel-and-its-upstream-projects

This Bugzilla bug, as well as the Brew build, is generated by the https://docs.engineering.redhat.com/display/EXD/distrobaker.

Comment 2 Mark Wielaard 2022-02-17 09:24:41 UTC
Odd, looks like various of the debuginfod testcases failed:

==========================================
   elfutils 0.186: tests/test-suite.log
==========================================
# TOTAL: 256
# PASS:  245
# SKIP:  6
# XFAIL: 0
# FAIL:  5
# XPASS: 0
# ERROR: 0

PASS: run-debuginfod-query-retry.sh
PASS: run-debuginfod-sizetime.sh
PASS: run-debuginfod-000-permission.sh
PASS: run-debuginfod-dlopen.sh
PASS: run-debuginfod-malformed.sh
PASS: run-debuginfod-no-urls.sh
PASS: run-debuginfod-artifact-running.sh
PASS: run-debuginfod-tmp-home.sh
PASS: run-debuginfod-writable.sh
PASS: run-debuginfod-regex.sh
PASS: run-debuginfod-x-forwarded-for.sh
PASS: run-debuginfod-percent-escape.sh
FAIL: run-debuginfod-response-headers.sh
FAIL: run-debuginfod-extraction-passive.sh
PASS: run-debuginfod-extraction.sh
PASS: run-debuginfod-archive-test.sh
FAIL: run-debuginfod-archive-rename.sh
FAIL: run-debuginfod-federation-link.sh
FAIL: run-debuginfod-federation-sqlite.sh
PASS: run-debuginfod-archive-groom.sh
SKIP: run-debuginfod-federation-metrics.sh

Comment 3 Mark Wielaard 2022-02-17 11:35:29 UTC
Note that we do have elfutils-0.186-brew-testsuite-workaround.patch
Which was added as part of:

commit fc0507ff500abfb24a74346236f8648a3d3e3e28
Author: Mark Wielaard <mjw>
Date:   Tue Nov 23 18:46:20 2021 +0100

    Upgrade to upstream 0.186
    
    Resolves: #2025057
    routine rebase of elfutils for rhel 9.0
    Resolves: #1991648
    Some run-backtrace test failures

And which specifically SKIPs a test if the "Confirm that reused curl connections survive 404 errors." testcase fails.

Comment 4 Mark Wielaard 2022-02-17 15:32:51 UTC
This doesn't replicate. The following brew build passes just fine (except for the aarch64 timeout):
https://brewweb.engineering.redhat.com/brew/taskinfo?taskID=43141711

Comment 5 Frank Ch. Eigler 2022-02-21 19:39:49 UTC
Mark, wdyt about changing the spec file so on centos, it will let the build succeed even with failing testsuite?

i.e., use this on %{?centos} :

%make_build check || (cat tests/test-suite.log; true)

Comment 6 Mark Wielaard 2022-02-21 20:59:32 UTC
(In reply to Frank Ch. Eigler from comment #5)
> Mark, wdyt about changing the spec file so on centos, it will let the build
> succeed even with failing testsuite?
> 
> i.e., use this on %{?centos}

But the failing is on a mock/brew rhel-9.0.0-build not a centos build.
And it isn't clear how to replicate this. So there is no way to test whether that helps or not.
We really need to know why/how this brew build differs from other brew builds that succeed just fine.

Comment 7 Mark Wielaard 2022-02-21 21:26:33 UTC
So, this is the failing build this bug is about:
https://brewweb.engineering.redhat.com/brew/taskinfo?taskID=43084602
Note that only the aarch64 build fails. Running 4.18.0-193.28.1.el8_2.aarch64

This is the last succeeding build:
https://brewweb.engineering.redhat.com/brew/buildinfo?buildID=1805315
The aarch64 kernel again is 4.18.0-193.28.1.el8_2.aarch64.

The scratch build above that almost fully succeeds is:
https://brewweb.engineering.redhat.com/brew/taskinfo?taskID=43141711
Sadly the aarch64 build timed out...

The upstream buildbot for arm64 does also succeed (but is running debian, not rhel).

Comment 8 Frank Ch. Eigler 2022-02-25 17:17:27 UTC
Propose closing as CANTFIX, without ability to reproduce or access the builder.
An alternative is to ditch the %check clause generally, and leave it to ci/cd (waivable, perhaps with better reproducibility?) to reject bad builds.