Summary: | sys-apps/systemd-254.5: src/shared/install.c:444:64: error: ‘%s’ directive argument is null [-Werror=format-overflow=] with gcc 14 | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Sam James <sam> |
Component: | Current packages | Assignee: | Gentoo systemd Team <systemd> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | chewi |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
See Also: |
https://bugs.gentoo.org/show_bug.cgi?id=906161 https://github.com/systemd/systemd/issues/30223 https://github.com/systemd/systemd/issues/30448 |
||
Whiteboard: | fixed in 255.4 | ||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 914580 | ||
Attachments: | build.log |
Description
Sam James
![]() ![]() ![]() ![]() Needs -O3. Given bug 906161, I imagine this has been going on a while or something. There's an assert just above the relevant code that ensure a null value is not passed. I get this on m68k with GCC 13.2.1, even with -O3. Affects systemd-utils as well. Ah, I thought you meant it builds with -O3. Tried with -O2 and it worked. Fixed in systemd-255_rc3. The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a25cf19d6f0dd41643c17cdfebbd87fde5e0e336 commit a25cf19d6f0dd41643c17cdfebbd87fde5e0e336 Author: Sam James <sam@gentoo.org> AuthorDate: 2024-03-04 02:50:27 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2024-03-04 02:51:32 +0000 sys-apps/systemd: backport another stringop-truncation fix No revbump as this is a false positive (the stringop-* warnings are known to be noisy/flaky). Closes: https://bugs.gentoo.org/916518 Signed-off-by: Sam James <sam@gentoo.org> .../files/255-install-format-overflow.patch | 43 ++++++++++++++++++++++ sys-apps/systemd/systemd-255.4.ebuild | 1 + 2 files changed, 44 insertions(+) |