Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1978573

Summary: FAIL glibc-notes-test (exit status: 1)
Product: Red Hat Developer Toolset Reporter: Martin Cermak <mcermak>
Component: annobinAssignee: Nick Clifton <nickc>
Status: CLOSED ERRATA QA Contact: Martin Cermak <mcermak>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: DTS 11.0 RHEL 7CC: fweimer, tschelle
Target Milestone: alphaKeywords: Bugfix, Reopened, Triaged
Target Release: 9.1Flags: pm-rhel: mirror+
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: devtoolset-11-annobin-9.82-1.el7 Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of:
: 1986846 (view as bug list) Environment:
Last Closed: 2021-11-15 11:03:33 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:
Bug Depends On:    
Bug Blocks: 1986846    

Description Martin Cermak 2021-07-02 08:23:27 UTC
With devtoolset-10-annobin-9.23-4.el7 and devtoolset-10-annobin-9.23-2.el6, the glibc-notes-test fails.  The way I've reproduced is that I've installed devtoolset-11 (gcc, binutils, and annobin) and executed make check with devtoolset enabled:


scr0 dts11   7.9 Server x86_64 # cat glibc-notes-test.log 
~/rpmbuild/BUILD/annobin-9.79/tests/tmp_glibc-notes ~/rpmbuild/BUILD/annobin-9.79/tests
glibc-notes-test: FAIL: generating assembler notes did not hide lack of GCC notes
annocheck: Version 9.79.
Hardened: glibc-notes.exe: FAIL: entry test because instruction at entry is not ENDBR64 
Hardened: glibc-notes.exe: FAIL: notes test because Annobin notes were not found 
Hardened: glibc-notes.exe: FAIL: fortify test because no indication that the necessary option was used 
Hardened: Rerun annocheck with --verbose to see more information on the tests.
FAIL glibc-notes-test (exit status: 1)
scr0 dts11   7.9 Server x86_64 # cat glibc-notes-test.trs 
:test-result: FAIL
:global-test-result: FAIL
:recheck: yes
:copy-in-global-log: yes
scr0 dts11   7.9 Server x86_64 #


scr0 dts11   6.10 Server x86_64 # cat glibc-notes-test.log 
~/rpmbuild/BUILD/annobin-9.79/tests/tmp_glibc-notes ~/rpmbuild/BUILD/annobin-9.79/tests
glibc-notes-test: FAIL: generating assembler notes did not hide lack of GCC notes
annocheck: Version 9.79.
Hardened: glibc-notes.exe: FAIL: entry test because instruction at entry is not ENDBR64 
Hardened: glibc-notes.exe: FAIL: notes test because Annobin notes were not found 
Hardened: glibc-notes.exe: FAIL: fortify test because no indication that the necessary option was used 
Hardened: Rerun annocheck with --verbose to see more information on the tests.
FAIL glibc-notes-test (exit status: 1)
scr0 dts11   6.10 Server x86_64 # cat glibc-notes-test.trs 
:test-result: FAIL
:global-test-result: FAIL
:recheck: yes
:copy-in-global-log: yes
scr0 dts11   6.10 Server x86_64 #


scr0 dts11   7.9 Server s390x # cat glibc-notes-test.log 
~/rpmbuild/BUILD/annobin-9.79/tests/tmp_glibc-notes ~/rpmbuild/BUILD/annobin-9.79/tests
glibc-notes-test: FAIL: generating assembler notes did not hide lack of GCC notes
annocheck: Version 9.79.
Hardened: glibc-notes.exe: FAIL: notes test because Annobin notes were not found 
Hardened: glibc-notes.exe: FAIL: fortify test because no indication that the necessary option was used 
Hardened: Rerun annocheck with --verbose to see more information on the tests.
FAIL glibc-notes-test (exit status: 1)
scr0 dts11   7.9 Server s390x # cat glibc-notes-test.trs 
:test-result: FAIL
:global-test-result: FAIL
:recheck: yes
:copy-in-global-log: yes
scr0 dts11   7.9 Server s390x #


scr0 dts11   7.9 Server ppc64le # cat glibc-notes-test.log 
~/rpmbuild/BUILD/annobin-9.79/tests/tmp_glibc-notes ~/rpmbuild/BUILD/annobin-9.79/tests
glibc-notes-test: FAIL: generating assembler notes did not hide lack of GCC notes
annocheck: Version 9.79.
Hardened: glibc-notes.exe: FAIL: notes test because Annobin notes were not found 
Hardened: glibc-notes.exe: FAIL: fortify test because no indication that the necessary option was used 
Hardened: Rerun annocheck with --verbose to see more information on the tests.
FAIL glibc-notes-test (exit status: 1)
scr0 dts11   7.9 Server ppc64le # cat glibc-notes-test.trs 
:test-result: FAIL
:global-test-result: FAIL
:recheck: yes
:copy-in-global-log: yes
scr0 dts11   7.9 Server ppc64le #


scr0 dts11   7.9 Server ppc64 # cat glibc-notes-test.log 
~/rpmbuild/BUILD/annobin-9.79/tests/tmp_glibc-notes ~/rpmbuild/BUILD/annobin-9.79/tests
glibc-notes-test: FAIL: generating assembler notes did not hide lack of GCC notes
annocheck: Version 9.79.
Hardened: glibc-notes.exe: FAIL: notes test because Annobin notes were not found 
Hardened: glibc-notes.exe: FAIL: fortify test because no indication that the necessary option was used 
Hardened: Rerun annocheck with --verbose to see more information on the tests.
FAIL glibc-notes-test (exit status: 1)
scr0 dts11   7.9 Server ppc64 # cat glibc-notes-test.trs 
:test-result: FAIL
:global-test-result: FAIL
:recheck: yes
:copy-in-global-log: yes
scr0 dts11   7.9 Server ppc64 #

Comment 1 Nick Clifton 2021-07-02 11:50:39 UTC
(In reply to Martin Cermak from comment #0)
Hi Martin,

> With devtoolset-10-annobin-9.23-4.el7 and devtoolset-10-annobin-9.23-2.el6,
> the glibc-notes-test fails.  The way I've reproduced is that I've installed
> devtoolset-11 (gcc, binutils, and annobin) and executed make check with
> devtoolset enabled:
 
So you are using the DTS-10 gcc and DTS-10 annobin plugin, but the DTS-11 annocheck.  Is that right ?

Does this issue happen if you only use DTS-11 ?  (ie DTS-11 gcc, annobin plugin and annocheck).

If the problem only happens when DTS-10 gcc and annobin are installed then it probably is not worth investigating and generating a z-stream fix.

I am currently waiting on a beaker box so that I can try to reproduce the problem myself...

Cheers
  Nick

Comment 2 Nick Clifton 2021-07-05 10:04:28 UTC
Ha - I have now found the duplicate BZ.  So closing this one.

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

Comment 3 Nick Clifton 2021-07-05 10:05:15 UTC
Doh!   Reopening.  I closed the wrong BZ....

Comment 4 Nick Clifton 2021-07-05 11:24:21 UTC
Hi Martin,

  I have investigated the failure.  There was an invalid assumption in the glibc-notes test that the assembler supports the --generate-missing-build-notes option.  This is not true of the RHEL-7 assembler, so the test should have been skipped.  I have a local update to the annobin sources that fixes this problem (and another, similar one for the objcopy test).  Once this BZ has an ITM I should be able to build a new release.

Cheers
  Nick

Comment 7 Nick Clifton 2021-07-20 10:10:59 UTC
The tests should be fixed in devtoolset-11-annobin-9.82-1.el7

Comment 8 Florian Weimer 2021-08-02 06:59:36 UTC
annobin-9.83-2.el9 with this change is in gating, via rhel-9.0.0-beta-build-sidetag-86604-stack-gate.

Comment 11 Martin Cermak 2021-08-11 16:40:31 UTC
Verified with devtoolset-11-annobin-9.82-1.el6 and devtoolset-11-annobin-9.82-1.el7.  Thanks for fixing!

Comment 14 errata-xmlrpc 2021-11-15 11:03:33 UTC
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: devtoolset-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/RHEA-2021:4653