Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 952948 - app-emulation/qemu-9.2.2: does not build with binutils-2.41
Summary: app-emulation/qemu-9.2.2: does not build with binutils-2.41
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Virtualization Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-03-31 09:25 UTC by Daniel Rozsnyo
Modified: 2025-03-31 15:37 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel Rozsnyo 2025-03-31 09:25:44 UTC
The QEMU build fails on my system for some time and I have finally found the error being an unsupported option used:


$ /usr/lib/gcc/x86_64-pc-linux-gnu/14/../../../../x86_64-pc-linux-gnu/bin/ld --no-error-rwx-segments
/usr/lib/gcc/x86_64-pc-linux-gnu/14/../../../../x86_64-pc-linux-gnu/bin/ld: unrecognized option '--no-error-rwx-segments'


This was introduced by the custom patch file that enables such option for the optionrom part:

qemu-7.2.16-optionrom-pass-Wl-no-error-rwx-segments.patch


The solution for me was to ESELECT a newer binutils - it was 2.41 previously (which had no rwx option) and switching to 2.42, 2.43 or 2.44 did solve the QEMU build issue. (during updates when I see newer gcc I do switch to it, but was not really aware of switching to newer binutils).


Would it be possible to enforce a dependency or pre-check on a specific binutils version, as it seems like to be a hard dependency now on a variant, which has that rwx option. Since the binutils is dynamically switchable - the check could be only at compile/

NOTE: This affect very likely all qemu versions, as they all seem to pull in the mentioned custom patch file in their ebuilds.
Comment 1 Mike Gilbert gentoo-dev 2025-03-31 15:37:28 UTC
We generally assume people are using a fairly recent stable version binutils/gcc.