You are not logged in.

#1 2022-08-16 12:35:03

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 10,411

[Solved] meson broke buildtype=plain

When building latest mesa-minimal-git against latest llvm-minimal-git compiling failed .

from src/_build/meson-logs/meson-log.txt

In file included from /usr/include/bits/libc-header-start.h:33,
                 from /usr/include/stdio.h:27,
                 from /home/panoramix/Documents/Aur/pkgbuilds/mesa-minimal-git/src/_build/meson-private/tmpu3opo976/testfile.cpp:1:
/usr/include/features.h:412:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp]
  412 | #  warning _FORTIFY_SOURCE requires compiling with optimization (-O)
      |    ^~~~~~~

After some searching I found out meson PR #9287 broke building with  buildtype=plain.
meson PR #10593 is an attempt to fix the issue by introducing a new option.

PR #10593 hasn't been accepted to meson master and there's no indication when it will be.

the arch-meson wrapper from repo meson package currently also uses buildtype=plain so this could become a problem for many archlinux packages .

Some possible solutions :
- Use the latest meson that doesn't include #9287
- apply the out-of-tree-patch to latest stable meson

I'm not very fond of either, does anybody see other solutions ?

Last edited by Lone_Wolf (2022-08-17 13:47:06)


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

#2 2022-08-17 13:46:02

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 10,411

Re: [Solved] meson broke buildtype=plain

Arch dev has solved this by applying the mentioned patch in 0.63.1-2: Add patch to fix buildtype plain adding -O0 .

marking as solved .


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

Board footer

Powered by FluxBB