On 2021-04-15 14:01 +0100, John Burrell via lfs-dev wrote: > Using the systemd development version of the book 20210326-systemd, > when compiling I get: > > FAILED: systemd-rfkill.p/src_rfkill_rfkill.c.o > > and then: > > ../src/rfkill/rfkill.c:339:23: warning: comparison of integer > expressions of different signedness: ‘ssize_t’ {aka ‘long int’} and > ‘long unsigned int’ [-Wsign-compare] > 339 | if (l < RFKILL_EVENT_SIZE_V1) > | ^ > In file included from ../src/basic/macro.h:657, > from ../src/basic/alloc-util.h:9, > from ../src/rfkill/rfkill.c:13: > ../src/rfkill/rfkill.c:340:70: error: format ‘%d’ expects argument of > type ‘int’, but argument 8 has type ‘long unsigned int’ > [-Werror=format=] > 340 | return > log_error_errno(SYNTHETIC_ERRNO(EIO), "Short read of struct > rfkill_event: (%zd < %d)", > > and finally: > > cc1: some warnings being treated as errors > [791/1466] Compiling C object > src/resolve/libsystemd-resolve-core.a.p/resolved-dns-packet.c.o > ninja: build stopped: subcommand failed. > > Out of interest, I tried version 248 but that produced the same result.
It's caused by changes in Linux 5.11.14 (API headers). I'll raise a PR in systemd. The kernel version in the book (5.11.10) won't trigger this. -- Xi Ruoyao <xry...@mengyan1223.wang> School of Aerospace Science and Technology, Xidian University -- http://lists.linuxfromscratch.org/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page