FS#79821 - [mesa] meson 1.2.2 causes FTBFS

Attached to Project: Arch Linux
Opened by Lone_Wolf (Lone_Wolf) - Saturday, 30 September 2023, 10:42 GMT
Last edited by Jan Alexander Steffens (heftig) - Wednesday, 04 October 2023, 20:33 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Jan Alexander Steffens (heftig)
Laurent Carlier (lordheavy)
Felix Yan (felixonmars)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

building mesa trunk succeeds with mdeson 1.2.1 but fails hard with 1.2.2 .

Not arch specfic, Fedora user reported it (before I encountered it) , see https://gitlab.freedesktop.org/mesa/mesa/-/issues/9908 .
This task depends upon

Closed by  Jan Alexander Steffens (heftig)
Wednesday, 04 October 2023, 20:33 GMT
Reason for closing:  Fixed
Additional comments about closing:  meson 1.2.2-2
Comment by loqs (loqs) - Saturday, 30 September 2023, 12:48 GMT
What if you revert [1] in meson?
Edit:
The current mesa PKGBUILD also fails to build due to the same issue. Reverting [1] allows the build to succeed.

[1] https://github.com/mesonbuild/meson/commit/36210f64f22dc10d324db76bb1a7988c9cd5b14e
Comment by Lone_Wolf (Lone_Wolf) - Saturday, 30 September 2023, 16:26 GMT
Great find, loqs .

Reverting that commit does allow build of mesa-minimal-git to succeed with meson 1.2.2 .
Comment by Toolybird (Toolybird) - Saturday, 30 September 2023, 21:41 GMT
Does this FTBFS our supported current mesa version in the Arch stable repo?
Comment by loqs (loqs) - Saturday, 30 September 2023, 21:50 GMT
> Does this FTBFS our supported current mesa version in the Arch stable repo?
Yes although it appears the meson change only uncovered an underlying issue in mesa's meson.build where by it is checking for supported options using the default compiler which for Arch would be gcc then passes those options to bindgen which passes them to clang which errors out on -mtls-dialect=gnu2.
Edit:
Work around the issue by disabling the test for mtls-dialect:

sed -i 's/not have_mtls_dialect/false/' meson.build

Loading...