Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 832474 - x11-wm/muffin-5.2.0 fails to compile: clutter-main.c:3719:46: error: format string is not a string literal [-Werror,-Wformat-nonliteral]
Summary: x11-wm/muffin-5.2.0 fails to compile: clutter-main.c:3719:46: error: format s...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Matthew Turnbull
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2022-02-01 07:29 UTC by Agostino Sarubbo
Modified: 2024-09-27 04:30 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,905.41 KB, text/plain)
2022-02-01 07:29 UTC, Agostino Sarubbo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2022-02-01 07:29:37 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: x11-wm/muffin-5.2.0 fails to compile.
Discovered on: amd64 (internal ref: tinderbox)

NOTE:
This machine uses CLANG as a compiler and LLD as a linker
Comment 1 Agostino Sarubbo gentoo-dev 2022-02-01 07:29:40 UTC
Created attachment 764067 [details]
build.log

build log and emerge --info
Comment 2 Agostino Sarubbo gentoo-dev 2022-02-01 07:29:41 UTC
Error(s) that match a know pattern in addition to what has been reported in the summary:


./configure: line 16552: gl_VISIBILITY: command not found
clutter-main.c:3719:46: error: format string is not a string literal [-Werror,-Wformat-nonliteral]
Comment 3 Matthew Turnbull 2022-02-27 20:45:51 UTC
I don't use clang, and I'm not a C developer, so I'm not going to be any help. If you want this fixed, then you should probably file a bug upstream. I don't see much value in filing a bug myself if I'm only going to be copying messages back and forth.

gl_VISIBILITY is already reported under Bug 741630, and will likely be "fixed" when muffin is rebased on a newer version of mutter and concerted to meson.
Comment 4 Eli Schwartz gentoo-dev 2024-09-27 03:39:02 UTC
This was "fixed" in muffin 5.4.0, which migrated to meson. In the process, it changed from:

clutter/configure.ac contains -Werror=format-nonliteral

to 

clutter/meson.build contains -Wformat-nonliteral

It also started only setting it if the buildtype is a developer buildtype or otherwise non-plain.

The underlying issue is https://clang.llvm.org/docs/AttributeReference.html#format


clang implements this slightly different from GCC, we have the va_list case here but no declared __attribute__.

Anyways, it won't fail to build with clang anymore unless you bring your own CFLAGS to trigger it.

Back in muffin 5.2.0, we could also have passed --disable-Werror to prevent this from halting the build!
Comment 5 Matthew Turnbull 2024-09-27 03:47:46 UTC
Oops, didn't see the recent comment, sorry
Comment 6 Matthew Turnbull 2024-09-27 03:49:01 UTC
Upstream report for reference
https://github.com/linuxmint/muffin/issues/703

Unless you think I should close that WRT the comments about build config changes in meson.
Comment 7 Eli Schwartz gentoo-dev 2024-09-27 04:30:36 UTC
It's still an upstream issue, we just cannot hit it in gentoo packaging unless someone both overrides EMESON_BUILDTYPE and uses package.env to set MYMESONARGS="-Dwerror=true".

So I don't think we need to track it anymore.