-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
Build failure with -Werror=format-overflow in cgroup.c with -O3 #30223
Comments
We hit a another one downstream on s390 with just
|
thesamesam
changed the title
Build failure with -Werror=format-overflow in cgroup.c
Build failure with -Werror=format-overflow in cgroup.c with -O3
Nov 28, 2023
yuwata
added a commit
to yuwata/systemd
that referenced
this issue
Nov 28, 2023
With gcc-13, ``` CFLAGS="-O3 -fno-semantic-interposition" meson setup build ``` triggers the following error: ``` ../src/core/cgroup.c: In function ‘cgroup_context_dump’: ../src/core/cgroup.c:633:44: error: ‘%s’ directive argument is null [-Werror=format-overflow=] 633 | "%sDeviceAllow: %s %s\n", | ^~ cc1: some warnings being treated as errors ``` Fixes systemd#30223.
yuwata
added a commit
to yuwata/systemd
that referenced
this issue
Nov 28, 2023
With gcc-13, ``` CFLAGS="-O3 -fno-semantic-interposition" meson setup build ``` triggers the following error: ``` ../src/core/cgroup.c: In function ‘cgroup_context_dump’: ../src/core/cgroup.c:633:44: error: ‘%s’ directive argument is null [-Werror=format-overflow=] 633 | "%sDeviceAllow: %s %s\n", | ^~ cc1: some warnings being treated as errors ``` Fixes systemd#30223.
DaanDeMeyer
pushed a commit
that referenced
this issue
Nov 28, 2023
With gcc-13, ``` CFLAGS="-O3 -fno-semantic-interposition" meson setup build ``` triggers the following error: ``` ../src/core/cgroup.c: In function ‘cgroup_context_dump’: ../src/core/cgroup.c:633:44: error: ‘%s’ directive argument is null [-Werror=format-overflow=] 633 | "%sDeviceAllow: %s %s\n", | ^~ cc1: some warnings being treated as errors ``` Fixes #30223.
Thank you! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
systemd version the issue has been seen with
master (78b95cc)
Used distribution
Gentoo
Linux kernel version used
6.6.2
CPU architectures issue was seen on
x86_64
Component
systemd
Expected behaviour you didn't see
Successful build.
Unexpected behaviour you saw
Build failure because of a
-Werror=format-overflow
warning.I've hit variants of this a few times, not just with
-O3 -fno-semantic-interposition
(sometimes just-O3
or even-O2
is enough on alt. arches).Steps to reproduce the problem
CC=gcc-13 CFLAGS="-O3 -fno-semantic-interposition" meson setup build
Additional program output to the terminal or log subsystem illustrating the issue
No response
The text was updated successfully, but these errors were encountered: