Bug 2220866

Summary: Misaligned symbol for s390-ccw image during qemu-kvm build
Product: Red Hat Enterprise Linux 9 Reporter: Nikita Popov <npopov>
Component: qemu-kvmAssignee: Thomas Huth <thuth>
qemu-kvm sub component: General QA Contact: bfu <bfu>
Status: CLOSED ERRATA Docs Contact:
Severity: high    
Priority: high CC: bfu, clegoate, emachado, jchecahi, lijin, smitterl, thuth, tstellar, virt-maint
Version: 9.3Keywords: Triaged
Target Milestone: rc   
Target Release: 9.3   
Hardware: s390x   
OS: Unspecified   
Whiteboard:
Fixed In Version: qemu-kvm-8.0.0-8.el9 Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: 2216662 Environment:
Last Closed: 2023-11-07 08:28:05 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 Nikita Popov 2023-07-06 10:50:52 UTC
This bug was initially created as a copy of Bug #2216662

I am copying this bug because: This also affects RHEL 9.3, which also has Clang 16 using Binutils 2.40 via gcc-toolset-13. The Clang update is currently failing the qemu rebuild validation gating test due to this issue.

I believe a backport of https://gitlab.com/qemu-project/qemu/-/commit/7cd50cbe4ca3e2860b31b06ec92c17c54bd82d48 for RHEL 9 would fix this.

-----

When trying to build qemu-kvm package for ELN, build for s390x is failing with following error:

/usr/bin/ld: warning: start.o: missing .note.GNU-stack section implies executable stack
/usr/bin/ld: NOTE: This behaviour is deprecated and will be removed in a future version of the linker
/usr/bin/ld: start.o(.text+0x8): misaligned symbol `__bss_start' (0xc1e5) for relocation R_390_PC32DBL
clang-16: error: linker command failed with exit code 1 (use -v to see invocation)
make[1]: *** [Makefile:61: s390-ccw.elf] Error 1

This problem is happening with rawhide version (binutils-2.40-9.fc39, clang-16.0.5-3.fc39). When using F38 version (binutils-2.39-9.fc39, clang-16.0.5-1.fc38), build is successful. In addition, build is successful using gcc too (both rawhide and f38).

Reproducible: Always

Steps to Reproduce:
1. Prepare srpm from CentOS 9 stream qemu-kvm (https://gitlab.com/redhat/centos-stream/rpms/qemu-kvm)

2. Try to build this srpm
Actual Results:  
Build is failing on s930-ccw rom image build.

Expected Results:  
Build pass

Comment 9 bfu 2023-07-27 05:57:54 UTC
since already did the verification by using official package for pre-verified, set this bug as verified

Comment 11 errata-xmlrpc 2023-11-07 08:28:05 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 (Moderate: qemu-kvm security, bug fix, and enhancement update), 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/RHSA-2023:6368