Bug 2220866 - Misaligned symbol for s390-ccw image during qemu-kvm build
Summary: Misaligned symbol for s390-ccw image during qemu-kvm build
Keywords:
Status: VERIFIED
Alias: None
Product: Red Hat Enterprise Linux 9
Classification: Red Hat
Component: qemu-kvm
Version: 9.3
Hardware: s390x
OS: Unspecified
high
high
Target Milestone: rc
: 9.3
Assignee: Thomas Huth
QA Contact: bfu
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-07-06 10:50 UTC by Nikita Popov
Modified: 2023-07-27 05:57 UTC (History)
9 users (show)

Fixed In Version: qemu-kvm-8.0.0-8.el9
Doc Type: No Doc Update
Doc Text:
Clone Of: 2216662
Environment:
Last Closed:
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Gitlab redhat/centos-stream/src qemu-kvm merge_requests 180 0 None opened Draft: Fix misaligned symbol error in the s390-ccw image during qemu-kvm build with binutils 2.40 2023-07-11 11:17:47 UTC
Red Hat Issue Tracker RHELPLAN-161678 0 None None None 2023-07-06 10:53:20 UTC

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


Note You need to log in before you can comment on or make changes to this bug.