Bug 1987346
| Summary: | gcc-toolset-11-annobin-9.79-1.el8 test failures | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 8 | Reporter: | Martin Cermak <mcermak> |
| Component: | annobin | Assignee: | Nick Clifton <nickc> |
| annobin sub component: | gcc-toolset-11 | QA Contact: | Martin Cermak <mcermak> |
| Status: | CLOSED ERRATA | Docs Contact: | |
| Severity: | unspecified | ||
| Priority: | unspecified | CC: | fweimer, mcermak, nickc, tschelle, vkadlcik |
| Version: | 8.5 | Keywords: | Bugfix, Triaged |
| Target Milestone: | beta | Flags: | pm-rhel:
mirror+
|
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | gcc-toolset-11-annobin-9.85-1.el8 | Doc Type: | No Doc Update |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2021-11-09 18:43:11 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
Martin Cermak
2021-07-29 14:24:47 UTC
Hi Martin, This is another example of the problems that happen when gcc and annobin are out of sync. If you look in the verbose output from annocheck, just before the FAIL messages, you will see: Hardened: a.out: The annobin plugin was built by an older version of the compiler. Hardened: debug: Annobin plugin was built by gcc 11.1.1 but run on gcc version 11.2.1. Hardened: debug: If there are WARN or FAIL results that appear to be incorrect, it could be due to this discrepancy. Hardened: a.out: skip: warnings test because LTO compilation discards preprocessor options Plus if you run the final link command with the annobin plugin's verbose flag enabled you will see: gcc `rpm --eval %build_ldflags` -shared f1.o f2.o -fplugin=annobin -fplugin-arg-annobin-verbose [...] annobin: lto: Annobin built by gcc 11.1.1 20210623, running on gcc 11.2.1 20210728 annobin: lto: WARN: gcc variable 'ix86_isa_flags' not found within cl_vars array annobin: lto: Target's pointer size: 64 bits annobin: lto: Error: Could not find option in cl_options, using flag instead annobin: lto: debug: index = 1465 (-fstack-clash-protection) max = 2017 annobin: lto: Error: Could not find option in cl_options, using flag instead annobin: lto: debug: index = 906 (-fcf-protection) max = 2017 [...] (I am running these tests on a Fedora rawhide mock chroot, but I assume that the same thing is happening on your RHEL-8 box) If you build the test files with an annobin that matches the gcc version used (eg rawhide's 9.84-1.fc35) then the test works. So I will set the DTM field and wait for an ITM so that I can rebuild annobin. Cheers Nick Fixed in gcc-toolset-11-annobin-9.85-1.el8 Verified with gcc-toolset-11-annobin-9.85-1.el8. errata attach request https://issues.redhat.com/browse/ERRATA-10004 Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (new packages: gcc-toolset-11-annobin), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2021:4258 |