Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to compile with meson 1.4.0 #29

Closed
SpidFightFR opened this issue Mar 29, 2024 · 3 comments
Closed

Failed to compile with meson 1.4.0 #29

SpidFightFR opened this issue Mar 29, 2024 · 3 comments

Comments

@SpidFightFR
Copy link

Hello, i encounter a problem while compiling budgie-desktop-view using meson 1.4.0.
It used to work with meson 1.3.2, however after an update of meson, the build process fails with these errors:

I'm pretty sure i'm missing something, a dependency required after the meson 1.4.0 update, or a setting that needs to change using a patch... Anyway - something that i missed here.

Thank you by advance for your help. Don't hesitate to ping me or ask me if you need more info.
Logs attached, it's a giant wall of text tho...

@meator
Copy link

meator commented Apr 1, 2024

It looks like Meson version 1.2.0 and 1.3.2 add the -w flag to the command line for some unknown reason. This negates all warning related flags, in particular:

-Werror -Wconversion -Wformat -Wformat-security -Wstack-protector -Wundef -Wuninitialized

Meson 1.4.0 appears to have fixed this bug (?), so warnings are enabled again. They cause the build to fail because of -Werror.

EDIT: I have since confirmed that this is a bug fixed in Meson 1.4.0: mesonbuild/meson#12597

@meator
Copy link

meator commented Apr 1, 2024

Usage of -Werror in release builds can have unintended consequences (like here). -Werror should only be used when developing the project.

@JoshStrobl
Copy link
Member

Duplicate of #28

@JoshStrobl JoshStrobl marked this as a duplicate of #28 Apr 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants