I get: ------ [418/1741] Compiling C object 'src/core/2ac6ece@@core@sta/path.c.o' FAILED: src/core/2ac6ece@@core@sta/path.c.o cc -Isrc/core/2ac6ece@@core@sta -Isrc/core -I../src/core -Isrc/basic -I../src/basic -Isrc/boot -I../src/boot -Isrc/shared -I../src/shared -Isrc/systemd -I../src/systemd -Isrc/journal -I../src/journal -Isrc/journal-remote -I../src/journal-remote -Isrc/nspawn -I../src/nspawn -Isrc/resolve -I../src/resolve -Isrc/timesync -I../src/timesync -I../src/time-wait-sync -Isrc/login -I../src/login -Isrc/udev -I../src/udev -Isrc/libudev -I../src/libudev -Isrc/shutdown -I../src/shutdown -I../src/libsystemd/sd-bus -I../src/libsystemd/sd- device -I../src/libsystemd/sd-event -I../src/libsystemd/sd-hwdb -I../src/libsystemd/sd-id128 -I../src/libsystemd/sd-netlink -I../src/libsystemd/sd-network -I../src/libsystemd/sd-resolve -Isrc/libsystemd-network -I../src/libsystemd-network -I. -I.. -I/usr/include/libmount -I/usr/include/blkid -fdiagnostics-color=always -pipe -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -std=gnu99 -O3 -Wno-unused-parameter -Wno-missing-field-initializers -Wno-unused- result -Wno-format-signedness -Werror=undef -Wlogical-op -Wmissing- include-dirs -Wold-style-definition -Wpointer-arith -Winit-self -Wfloat-equal -Wsuggest-attribute=noreturn -Werror=missing-prototypes -Werror=implicit-function-declaration -Werror=missing-declarations -Werror=return-type -Werror=incompatible-pointer-types -Werror=format=2 -Wstrict-prototypes -Wredundant-decls -Wmissing-noreturn -Wimplicit- fallthrough=5 -Wshadow -Wendif-labels -Wstrict-aliasing=2 -Wwrite- strings -Werror=overflow -Werror=shift-count-overflow -Werror=shift- overflow=2 -Wdate-time -Wnested-externs -Wno-error=nonnull -Wno-maybe- uninitialized -ffast-math -fno-common -fdiagnostics-show-option -fno- strict-aliasing -fvisibility=hidden -fstack-protector -fstack- protector-strong --param=ssp-buffer-size=4 -ffunction-sections -fdata- sections -Werror=shadow -include config.h -fPIC -pthread -MD -MQ 'src/core/2ac6ece@@core@sta/path.c.o' -MF 'src/core/2ac6ece@@core@sta/p ath.c.o.d' -o 'src/core/2ac6ece@@core@sta/path.c.o' -c ../src/core/path.c ../src/core/path.c: In function ‘path_serialize’: ../src/core/path.c:616:24: error: ‘%s’ directive argument is null [- Werror=format-overflow=] 616 | (void) serialize_item_format(f, "path-spec", "%s %i %s", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~ 617 | path_type_to_string(s- >type), | ~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~ 618 | s- >previous_exists, | ~~~~~~~~~~~~~~~~~~ ~ 619 | s->path); | ~~~~~~~~ In function ‘path_spec_dump’, inlined from ‘path_dump’ at ../src/core/path.c:392:17: ../src/core/path.c:226:9: error: ‘%s’ directive argument is null [- Werror=format-overflow=] 226 | fprintf(f, | ^~~~~~~~~~ 227 | "%s%s: %s\n", | ~~~~~~~~~~~~~ 228 | prefix, | ~~~~~~~ 229 | path_type_to_string(s->type), | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 230 | s->path); | ~~~~~~~~ cc1: some warnings being treated as errors ------ This has been reported upstream: https://github.com/systemd/systemd/issues/14691
But this particular part does not seem to have been fixed. As a workaround, I've added: CFLAGS=-Wno-format-overflow to the meson command. It may not be the best thing to do to pass CFLAGS, but I do not know enough of meson to do better... Pierre -- http://lists.linuxfromscratch.org/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page