Created attachment 649878 [details] build.log sys-apps/systemd-245.5 fails to build with the following errors: core/path.c:616:24: error: ‘%s’ directive argument is null [-Werror=format-overflow=] [...] core/manager.c:1980:24: warning: argument 1 null where non-null expected [-Wnonnull] There could be more, but the build stops. Note that my build flags are "-O3 -march=native -fomit-frame-pointer -pipe". A combination of gcc-10 and one of the flags enabled by -O3 is probably what triggers this. I can maybe bisect, but only if you think that's useful because my laptop isn't very fast.
I bisected and the culprit is -fsplit-paths. Adding -fno-split-paths to -O3 does the trick.
https://github.com/systemd/systemd/pull/15762 https://github.com/systemd/systemd/commit/23450c897d11ccd8dfbe28cf3acca17f016e65be https://github.com/systemd/systemd/commit/94c0c5b7eaa1529ff694318d3755181ba96ecefb
https://github.com/systemd/systemd/pull/15734 https://github.com/systemd/systemd/commit/08f468567d9ebb56e04eb5585eda42add6cb4cb5
Thanks Arfrever. I don't think the first one touches any of the errors I was hitting. Maybe the second one? The earliest I can test this is next weekend.
First commit even mentions exactly the same error in core/path.c:616:24 which you saw.
*** This bug has been marked as a duplicate of bug 720778 ***