Bug 2367827 - meson update to 1.8.0 causes other packages to FTBFS in Fedora Rawhide on x86_64
Summary: meson update to 1.8.0 causes other packages to FTBFS in Fedora Rawhide on x86_64
Keywords:
Status: CLOSED DEFERRED
Alias: None
Product: Fedora
Classification: Fedora
Component: meson
Version: rawhide
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Zbigniew Jędrzejewski-Szmek
QA Contact: Fedora Extras Quality Assurance
URL: https://koschei.fedoraproject.org/pac...
Whiteboard:
Depends On:
Blocks: MultimediaSIG
TreeView+ depends on / blocked
 
Reported: 2025-05-21 16:37 UTC by Dominik 'Rathann' Mierzejewski
Modified: 2025-05-27 04:10 UTC (History)
9 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2025-05-22 09:34:52 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github mesonbuild meson issues 14533 0 None closed `CFLAGS` env is ignored when `LDFLAGS` is set since Meson 1.8.0 2025-05-22 10:31:24 UTC
Github mesonbuild meson issues 14631 0 None open 1.8.0 causing x86_64 gir linking errors in Fedora Rawhide 2025-05-23 15:14:37 UTC
Github mesonbuild meson pull 14637 0 None open gnome: initialize CFLAGS environment variable to linker arguments 2025-05-23 15:14:56 UTC

Description Dominik 'Rathann' Mierzejewski 2025-05-21 16:37:30 UTC
Description of problem:
meson update to 1.8.0 is causing other packages to FTBFS in Fedora Rawhide on x86_64 only.

The builds fail when linking with errors similar to:

/usr/bin/ld: /builddir/build/BUILD/gstreamer1-rtsp-server-1.26.1-build/gst-rtsp-server-1.26.1/redhat-linux-build/tmp-introspectmyx8gp0h/GstRtspServer-1.0.o: relocation R_X86_64_32 against `.rodata' can not be used when making a PIE object; recompile with -fPIE
/usr/bin/ld: failed to set dynamic section sizes: bad value
collect2: error: ld returned 1 exit status
linking of temporary binary failed: Command '['gcc', '-o', '/builddir/build/BUILD/gstreamer1-rtsp-server-1.26.1-build/gst-rtsp-server-1.26.1/redhat-linux-build/tmp-introspectmyx8gp0h/GstRtspServer-1.0', '/builddir/build/BUILD/gstreamer1-rtsp-server-1.26.1-build/gst-rtsp-server-1.26.1/redhat-linux-build/tmp-introspectmyx8gp0h/GstRtspServer-1.0.o', '-L.', '-Wl,-rpath,.', '-Wl,--no-as-needed', '-L/builddir/build/BUILD/gstreamer1-rtsp-server-1.26.1-build/gst-rtsp-server-1.26.1/redhat-linux-build/gst/rtsp-server', '-Wl,-rpath,/builddir/build/BUILD/gstreamer1-rtsp-server-1.26.1-build/gst-rtsp-server-1.26.1/redhat-linux-build/gst/rtsp-server', '-lgstrtspserver-1.0', '-lgstrtsp-1.0', '-lgstsdp-1.0', '-lgstreamer-1.0', '-lgio-2.0', '-lgobject-2.0', '-lglib-2.0', '-lgstrtp-1.0', '-lgstbase-1.0', '-lgstnet-1.0', '-lgstapp-1.0', '-lgstvideo-1.0', '-lgirepository-1.0', '-lgio-2.0', '-lgobject-2.0', '-Wl,--export-dynamic', '-lgmodule-2.0', '-pthread', '-lglib-2.0', '-Wl,-z,relro', '-Wl,-z,pack-relative-relocs', '-Wl,-z,now', '-specs=/usr/lib/rpm/redhat/redhat-hardened-ld', '-specs=/usr/lib/rpm/redhat/redhat-hardened-ld-errors', '-specs=/usr/lib/rpm/redhat/redhat-annobin-cc1', '-Wl,--build-id=sha1', '-specs=/usr/lib/rpm/redhat/redhat-package-notes']' returned non-zero exit status 1.
ninja: build stopped: subcommand failed.

Version-Release number of selected component (if applicable):
1.8.0-1.fc43

Additional info:
So far I identified the following failures:
glycin https://koschei.fedoraproject.org/build/20565312
gstreamer1 https://koschei.fedoraproject.org/build/20566746
gstreamer1-plugins-bad-free https://koschei.fedoraproject.org/build/20566024
gstreamer1-plugins-base https://koschei.fedoraproject.org/build/20566750
gstreamer1-rtsp-server https://koschei.fedoraproject.org/build/20566750

Comment 1 Dominik 'Rathann' Mierzejewski 2025-05-21 16:40:16 UTC
gnome-shell https://koschei.fedoraproject.org/build/20565606

Comment 3 Fabio Valentini 2025-05-21 17:20:40 UTC
I have filed a releng ticket to untag meson 1.8.0 from rawhide:
https://pagure.io/releng/issue/12749

Comment 4 Jens Petersen 2025-05-22 06:31:06 UTC
I reported https://github.com/mesonbuild/meson/issues/14631

Also I managed to find one actual failure in a real koji build of fwupd:
https://koji.fedoraproject.org/koji/taskinfo?taskID=133060694

Comment 5 Paolo Bonzini 2025-05-22 07:12:13 UTC
Fixed in Meson's master (1.8.1 or 1.9.0) branch.

Guys, would it be possible to try building a bunch of packages with Meson's master branch (even something as untidy as sticking the whole diff from the 1.8.0 tag into a single patch)? 1.8.0 was quite messy and it would be great to have Fedora check that nothing was left behind.

Comment 6 Jens Petersen 2025-05-22 07:27:53 UTC
Looks like https://github.com/mesonbuild/meson/pull/14566 is needed

Comment 7 Jens Petersen 2025-05-22 07:48:53 UTC
I did a scratch build with 14566.patch: https://koji.fedoraproject.org/koji/taskinfo?taskID=133087003

But unless i missed something - it wasn't enough to fix the build of libspelling.
So yeah maybe a full git snapshot needs to be tested...

Comment 8 Zbigniew Jędrzejewski-Szmek 2025-05-22 09:34:52 UTC
Apologies for the bad update. I read the changelog and it all seemed reasonable.
The update was untagged in the releng ticket.
I tried to build libspelling with the current 1.8 branch, and it still fails.
I'll wait for 1.8.1 to make another attempt.

Comment 9 Paolo Bonzini 2025-05-23 15:14:24 UTC
No worries, actually you found something way more obscure than I thought, which is specific to Fedora and GNOME. So no need to apologize, in fact thank you. :)

Comment 10 Jens Petersen 2025-05-27 04:10:35 UTC
1.8.1 is already out :-)


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