Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 733236 - sys-apps/systemd-245.5 error: ‘%s’ directive argument is null [-Werror=format-overflow=]
Summary: sys-apps/systemd-245.5 error: ‘%s’ directive argument is null [-Werror=format...
Status: RESOLVED DUPLICATE of bug 720778
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo systemd Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-07-19 19:29 UTC by Denis Dupeyron (RETIRED)
Modified: 2020-07-26 17:06 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (systemd-245.5.log.gz,28.69 KB, application/gzip)
2020-07-19 19:29 UTC, Denis Dupeyron (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Denis Dupeyron (RETIRED) gentoo-dev 2020-07-19 19:29:42 UTC
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.
Comment 1 Denis Dupeyron (RETIRED) gentoo-dev 2020-07-19 21:22:01 UTC
I bisected and the culprit is -fsplit-paths. Adding -fno-split-paths to -O3 does the trick.
Comment 4 Denis Dupeyron (RETIRED) gentoo-dev 2020-07-20 18:14:07 UTC
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.
Comment 5 Arfrever Frehtes Taifersar Arahesis 2020-07-20 20:28:23 UTC
First commit even mentions exactly the same error in core/path.c:616:24 which you saw.
Comment 6 Mike Gilbert gentoo-dev 2020-07-26 17:06:37 UTC

*** This bug has been marked as a duplicate of bug 720778 ***