Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#79458 - [qemu] 8.1.0 minor build issues

Attached to Project: Arch Linux
Opened by Toolybird (Toolybird) - Wednesday, 23 August 2023, 20:24 GMT
Last edited by Toolybird (Toolybird) - Tuesday, 29 August 2023, 08:30 GMT
Task Type Bug Report
Category Packages: Testing
Status Closed
Assigned To Anatol Pomozov (anatolik)
David Runge (dvzrv)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

1. As per the release notes [1] latest QEMU build now downloads missing Python build deps from from PyPI if not available on the host. You can see evidence of this inside `build/pyvenv/lib/python3.11/site-packages'. Refer to `qemu-8.1.0/python/scripts/mkvenv.py' for the details. Adding "python-pip" and "python-setuptools" to makedepends solves the problem.

2. There is a new upstream bug [2] whereby keyutils is not detected properly by meson which results in it not being linked into the build. This is picked up by namcap:

$ namcap /var/cache/pacman/pkg/qemu-system-x86-8.1.0-1-x86_64.pkg.tar.zst | grep keyutils
qemu-system-x86 W: Dependency included, but may not be needed ('keyutils')

3. Adding "Use mold for linking to speed up build" is slightly questionable IMHO. It seems to have caused some interesting new warnings from namcap. Still investigating...

[1] https://wiki.qemu.org/ChangeLog/8.1#Build_Dependencies
[2] https://gitlab.com/qemu-project/qemu/-/issues/1842
This task depends upon

Closed by  Toolybird (Toolybird)
Tuesday, 29 August 2023, 08:30 GMT
Reason for closing:  Fixed
Additional comments about closing:  qemu 8.1.0-2
Comment by Toolybird (Toolybird) - Thursday, 24 August 2023, 05:38 GMT
> "Use mold for linking to speed up build"

Hmm, this doesn't work for me. A quick unscientific test with my local customized slimmed down QEMU build:

ld.bfd 2.41.0
real 15m20.052s
user 0m3.201s
sys 0m2.675s

ld.mold 2.1.0
real 15m33.346s
user 0m3.283s
sys 0m2.783s

It was actually slower. I was under the impression mold really shines on large C++ code bases, but QEMU is not in this category which probably explains it. Therefore I'd recommend not using mold for QEMU. On the plus side, the mold-linked QEMU still passed `make check' when I ran it separately to above.

Comment by David Runge (dvzrv) - Thursday, 24 August 2023, 07:36 GMT
Thanks for the heads up. I'll fix it in a pkgrel bump.

Mold indeed seems to lead to some overlinking in some scenarios, which is... odd. But largely appears to be harmless.
Either way I'll remove it again for now. Currently, long periods of time are still spent in stripping and creation of split packages. Makepkg is really incredibly slow with larger amounts of split packages... ;_;
Comment by David Runge (dvzrv) - Thursday, 24 August 2023, 07:41 GMT
Should be fixed in 8.1.0-2
Comment by blueman (blueman) - Friday, 25 August 2023, 19:53 GMT
Proper patch for (2) keyutils is posted here: https://gitlab.com/qemu-project/qemu/-/issues/1842#note_1526409976

besides this minor proper patch the build is working fine for me. :)

Loading...