FAILED: systemd-coredump.p/src_coredump_coredump.c.o s390-ibm-linux-gnu-gcc -Isystemd-coredump.p -I. -I../systemd-251 -Isrc/basic -I../systemd-251/src/basic -Isrc/fundamental -I../systemd-251/src/fundamental -Isrc/systemd -I../systemd-251/src/systemd -I../systemd-251/src/libsystemd/sd-bus -I../systemd-251/src/libsystemd/sd-device -I../systemd-251/src/libsystemd/sd-event -I../systemd-251/src/libsystemd/sd-hwdb -I../systemd-251/src/libsystemd/sd-id128 -I../systemd-251/src/libsystemd/sd-journal -I../systemd-251/src/libsystemd/sd-netlink -I../systemd-251/src/libsystemd/sd-network -I../systemd-251/src/libsystemd/sd-resolve -Isrc/shared -I../systemd-251/src/shared -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -std=gnu11 -O0 -Wno-format-signedness -Wno-missing-field-initializers -Wno-unused-parameter -Wdate-time -Wendif-labels -Werror=format=2 -Werror=implicit-function-declaration -Werror=incompatible-pointer-types -Werror=int-conversion -Werror=overflow -Werror=override-init -Werror=return-type -Werror=shift-count-overflow -Werror=shift-overflow=2 -Werror=undef -Wfloat-equal -Wimplicit-fallthrough=5 -Winit-self -Wlogical-op -Wmissing-include-dirs -Wmissing-noreturn -Wnested-externs -Wold-style-definition -Wpointer-arith -Wredundant-decls -Wshadow -Wstrict-aliasing=2 -Wstrict-prototypes -Wsuggest-attribute=noreturn -Wunused-function -Wwrite-strings -Wno-unused-result -Werror=missing-declarations -Werror=missing-prototypes -fdiagnostics-show-option -fno-common -fno-strict-aliasing -fstack-protector -fstack-protector-strong -fvisibility=hidden --param=ssp-buffer-size=4 -ffunction-sections -fdata-sections -Werror=shadow -include config.h -O2 -pipe -pthread -MD -MQ systemd-coredump.p/src_coredump_coredump.c.o -MF systemd-coredump.p/src_coredump_coredump.c.o.d -o systemd-coredump.p/src_coredump_coredump.c.o -c ../systemd-251/src/coredump/coredump.c In file included from ../systemd-251/src/basic/macro.h:493, from ../systemd-251/src/shared/acl-util.h:12, from ../systemd-251/src/coredump/coredump.c:15: ../systemd-251/src/coredump/coredump.c: In function ‘save_external_coredump’: ../systemd-251/src/coredump/coredump.c:515:40: error: format ‘%zu’ expects argument of type ‘size_t’, but argument 2 has type ‘uint64_t’ {aka ‘long long unsigned int’} [-Werror=format=] 515 | LOG_MESSAGE("Core file was truncated to %zu bytes.", max_size), | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~ | | | uint64_t {aka long long unsigned int} ../systemd-251/src/basic/log.h:285:77: note: in definition of macro ‘log_struct_errno’ 285 | log_struct_internal(level, error, PROJECT_FILE, __LINE__, __func__, __VA_ARGS__, NULL) | ^~~~~~~~~~~ ../systemd-251/src/coredump/coredump.c:514:17: note: in expansion of macro ‘log_struct’ 514 | log_struct(LOG_INFO, | ^~~~~~~~~~ ../systemd-251/src/coredump/coredump.c:515:28: note: in expansion of macro ‘LOG_MESSAGE’ 515 | LOG_MESSAGE("Core file was truncated to %zu bytes.", max_size), | ^~~~~~~~~~~ ../systemd-251/src/coredump/coredump.c:515:70: note: format string is defined here 515 | LOG_MESSAGE("Core file was truncated to %zu bytes.", max_size), | ~~^ | | | long unsigned int | %llu cc1: some warnings being treated as errors [note to self: lgentoo3, dilfridge-systemd nspawn] more info on request
https://github.com/systemd/systemd/commit/08e86b15fc22a8e9f1ee0a791dfd35b2fc25e4c4
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d988a952564a89892fd14e8e25046825bb93216f commit d988a952564a89892fd14e8e25046825bb93216f Author: Mike Gilbert <floppym@gentoo.org> AuthorDate: 2022-05-23 18:34:48 +0000 Commit: Mike Gilbert <floppym@gentoo.org> CommitDate: 2022-05-23 18:34:48 +0000 sys-apps/systemd: backport format string fix Closes: https://bugs.gentoo.org/847010 Signed-off-by: Mike Gilbert <floppym@gentoo.org> sys-apps/systemd/files/251-format-string.patch | 25 +++++++++++++++++++++++++ sys-apps/systemd/systemd-251.ebuild | 1 + 2 files changed, 26 insertions(+)