On 2020-08-08 11:42 +0100, spiky via lfs-dev wrote: > Hi > > Building the new version of Lfs, I get a ninja fail in Systemd-245. > > I have tried complete rebuild 3 or 4 times. This was a copy/paste from > the book. Host is lfs > > > LANG=en_GB.UTF-8 ninja > [325/1741] Compiling C object > src/shared/libsystemd-shared-245.a.p/install.c.o > In function ‘install_info_add’, > inlined from ‘unit_file_disable’ at ../src/shared/install.c:2626:21: > ../src/shared/install.c:1024:24: warning: argument 1 null where non-null > expected [-Wnonnull] > 1024 | name = basename(path); > | ^~~~~~~~~~~~~~ > In file included from ../src/basic/alloc-util.h:7, > from ../src/shared/install.c:12: > ../src/shared/install.c: In function ‘unit_file_disable’: > /usr/include/string.h:511:14: note: in a call to function ‘basename’ > declared here > 511 | extern char *basename (const char *__filename) __THROW > __nonnull ((1)); > | ^~~~~~~~ > [428/1741] Compiling C object src/core/libcore.a.p/manager.c.o > In function ‘manager_load_unit_prepare’, > inlined from ‘manager_load_unit’ at ../src/core/manager.c:2036:13, > inlined from ‘manager_add_job_by_name’ at > ../src/core/manager.c:1819:13: > ../src/core/manager.c:1980:24: warning: argument 1 null where non-null > expected [-Wnonnull] > 1980 | name = basename(path); > | ^~~~~~~~~~~~~~ > In file included from ../src/systemd/sd-id128.h:21, > from ../src/systemd/sd-messages.h:20, > from ../src/core/manager.c:19: > ../src/core/manager.c: In function ‘manager_add_job_by_name’: > /usr/include/string.h:511:14: note: in a call to function ‘basename’ > declared here > 511 | extern char *basename (const char *__filename) __THROW > __nonnull ((1)); > | ^~~~~~~~ > [525/1741] Compiling C object > src/network/libnetworkd-core.a.p/netdev_fou-tunnel.c.o > FAILED: src/network/libnetworkd-core.a.p/netdev_fou-tunnel.c.o > cc -Isrc/network/libnetworkd-core.a.p -Isrc/network -I../src/network > -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/core -I../src/core -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../src/network/netdev -I../src/network/tc -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 -MD -MQ src/network/libnetworkd-core.a.p/netdev_fou-tunnel.c.o -MF > src/network/libnetworkd-core.a.p/netdev_fou-tunnel.c.o.d -o > src/network/libnetworkd-core.a.p/netdev_fou-tunnel.c.o -c > ../src/network/netdev/fou-tunnel.c > In file included from ../src/basic/macro.h:4, > from ../src/basic/alloc-util.h:9, > from ../src/shared/conf-parser.h:10, > from ../src/network/netdev/fou-tunnel.c:8: > ../src/network/netdev/fou-tunnel.c: In function ‘config_parse_ip_protocol’: > ../src/basic/macro.h:380:9: error: static assertion failed: > "IPPROTO_MAX-1 <= UINT8_MAX" > 380 | static_assert(expr, #expr) > | ^~~~~~~~~~~~~ > ../src/network/netdev/fou-tunnel.c:161:9: note: in expansion of macro > ‘assert_cc’ > 161 | assert_cc(IPPROTO_MAX-1 <= UINT8_MAX); > | ^~~~~~~~~ > [530/1741] Compiling C object > src/network/libnetworkd-core.a.p/netdev_macsec.c.o > ninja: build stopped: subcommand failed.
Perhaps the recent change just broke systemd-245. I used systemd-246 in my build and there was no problem. -- 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