systemd / systemd

The systemd System and Service Manager
https://systemd.io
GNU General Public License v2.0
13.08k stars 3.74k forks source link

Compilation error: error while loading shared libraries: libsystemd-core-253.so #28482

Closed cacheguard closed 1 year ago

cacheguard commented 1 year ago

systemd version the issue has been seen with

253

Used distribution

LFS

Linux kernel version used

4.19.288

CPU architectures issue was seen on

x86_64

Component

other

Expected behaviour you didn't see

make success

Unexpected behaviour you saw

Hi,

We are trying to compile and install systemd from scratch on a an LFS based Linux system. The command "make" can't finish the compilation job and produces the following errors (almost at the latest stage)

make
ninja -C build
ninja: Entering directory `build'
[2010/2014] Generating export-dbus-interfaces with a custom command
FAILED: interfaces 
/usr/src/systemd-253/tools/dbus_exporter.py interfaces /usr/src/systemd-253/build/systemd /usr/src/systemd-253/build/systemd-resolved /usr/src/systemd-253/build/systemd-logind /usr/src/systemd-253/build/systemd-portabled /usr/src/systemd-253/build/systemd-hostnamed /usr/src/systemd-253/build/systemd-localed /usr/src/systemd-253/build/systemd-timedated /usr/src/systemd-253/build/systemd-machined /usr/src/systemd-253/build/systemd-importd /usr/src/systemd-253/build/systemd-oomd /usr/src/systemd-253/build/systemd-networkd
/usr/src/systemd-253/build/systemd: error while loading shared libraries: libsystemd-core-253.so: cannot open shared object file: No such file or directory
Traceback (most recent call last):
  File "/usr/src/systemd-253/tools/dbus_exporter.py", line 42, in <module>
    main()
  File "/usr/src/systemd-253/tools/dbus_exporter.py", line 39, in main
    extract_interfaces_xml(args.output, exe)
  File "/usr/src/systemd-253/tools/dbus_exporter.py", line 8, in extract_interfaces_xml
    proc = run(
  File "/usr/lib/python3.10/subprocess.py", line 524, in run
    raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '[PosixPath('/usr/src/systemd-253/build/systemd'), '--bus-introspect', 'list']' returned non-zero exit status 127.
[2014/2014] Generating factory/templates/locale.conf with a custom command
ninja: build stopped: subcommand failed.
make: *** [Makefile:4: all] Error 1

We executed the "./configure" command before and the result was as follows;

./configure 
+ exec meson build
The Meson build system
Version: 0.61.1
Source dir: /usr/src/systemd-253
Build dir: /usr/src/systemd-253/build
Build type: native build
Project name: systemd
Project version: 253
C compiler for the host machine: cc (gcc 11.2.0 "cc (GCC) 11.2.0")
C linker for the host machine: cc ld.bfd 2.38
Host machine cpu family: x86_64
Host machine cpu: x86_64
Program tools/add-git-hook.sh found: YES (/usr/src/systemd-253/tools/add-git-hook.sh)
Program tools/meson-build.sh found: YES (/usr/src/systemd-253/tools/meson-build.sh)
C++ compiler for the host machine: c++ (gcc 11.2.0 "c++ (GCC) 11.2.0")
C++ linker for the host machine: c++ ld.bfd 2.38
Compiler for C supports arguments -Wno-missing-field-initializers: YES 
Compiler for C supports arguments -Wno-unused-parameter: YES 
Compiler for C supports arguments -Warray-bounds: YES 
Compiler for C supports arguments -Warray-bounds=2: YES 
Compiler for C supports arguments -Wdate-time: YES 
Compiler for C supports arguments -Wendif-labels: YES 
Compiler for C supports arguments -Werror=format=2: YES 
Compiler for C supports arguments -Werror=format-signedness: YES 
Compiler for C supports arguments -Werror=implicit-function-declaration: YES 
Compiler for C supports arguments -Werror=implicit-int: YES 
Compiler for C supports arguments -Werror=incompatible-pointer-types: YES 
Compiler for C supports arguments -Werror=int-conversion: YES 
Compiler for C supports arguments -Werror=overflow: YES 
Compiler for C supports arguments -Werror=override-init: YES 
Compiler for C supports arguments -Werror=return-type: YES 
Compiler for C supports arguments -Werror=shift-count-overflow: YES 
Compiler for C supports arguments -Werror=shift-overflow=2: YES 
Compiler for C supports arguments -Werror=undef: YES 
Compiler for C supports arguments -Wfloat-equal: YES 
Compiler for C supports arguments -Wimplicit-fallthrough=5: YES 
Compiler for C supports arguments -Winit-self: YES 
Compiler for C supports arguments -Wlogical-op: YES 
Compiler for C supports arguments -Wmissing-include-dirs: YES 
Compiler for C supports arguments -Wmissing-noreturn: YES 
Compiler for C supports arguments -Wnested-externs: YES 
Compiler for C supports arguments -Wold-style-definition: YES 
Compiler for C supports arguments -Wpointer-arith: YES 
Compiler for C supports arguments -Wredundant-decls: YES 
Compiler for C supports arguments -Wshadow: YES 
Compiler for C supports arguments -Wstrict-aliasing=2: YES 
Compiler for C supports arguments -Wstrict-prototypes: YES 
Compiler for C supports arguments -Wsuggest-attribute=noreturn: YES 
Compiler for C supports arguments -Wunused-function: YES 
Compiler for C supports arguments -Wwrite-strings: YES 
Compiler for C supports arguments -Wzero-length-bounds: YES 
Compiler for C supports arguments -Wno-error=#warnings: NO 
Compiler for C supports arguments -Wno-string-plus-int: NO 
Compiler for C supports arguments -fstrict-flex-arrays: NO 
Compiler for C supports arguments -Wno-unused-result: YES 
Compiler for C supports arguments -Werror=missing-declarations: YES 
Compiler for C supports arguments -Werror=missing-prototypes: YES 
Compiler for C supports arguments -fdiagnostics-show-option: YES 
Compiler for C supports arguments -fno-common: YES 
Compiler for C supports arguments -fno-strict-aliasing: YES 
Compiler for C supports arguments -fstack-protector: YES 
Compiler for C supports arguments -fstack-protector-strong: YES 
Compiler for C supports arguments -fstrict-flex-arrays=1: NO 
Compiler for C supports arguments -fvisibility=hidden: YES 
Compiler for C supports arguments --param=ssp-buffer-size=4: YES 
Compiler for C supports arguments -fno-omit-frame-pointer: YES 
Compiler for C supports link arguments -Wl,--fatal-warnings: YES 
Compiler for C supports link arguments -Wl,-z,now: YES 
Compiler for C supports link arguments -Wl,-z,relro: YES 
Compiler for C supports link arguments -fstack-protector: YES 
Compiler for C supports link arguments -Wl,--warn-common: YES 
Compiler for C supports arguments -Wzero-length-bounds: YES (cached)
Checking if "-Werror=shadow with local shadowing" : compiles: YES 
Compiler for C++ supports arguments -Wno-missing-field-initializers: YES 
Compiler for C++ supports arguments -Wno-unused-parameter: YES 
Compiler for C supports arguments -Wstringop-truncation: YES 
Checking for size of "dev_t" : 8
Checking for size of "ino_t" : 8
Checking for size of "time_t" : 8
Checking for size of "rlim_t" : 8
Checking for size of "typeof(((struct timex *)0)->freq)" : 8
Computing int of "LONG_MAX" : 9223372036854775807
Checking for size of "char16_t" : 2
Checking for size of "char32_t" : 4
Checking for size of "struct mount_attr" : -1
Checking for size of "struct mount_attr" : -1
Checking for size of "struct statx" : 256
Checking for function "secure_getenv" : YES 
Checking for function "__secure_getenv" : NO 
Checking for function "memfd_create" : YES 
Checking for function "gettid" : YES 
Checking for function "pivot_root" : NO 
Checking for function "ioprio_get" : NO 
Checking for function "ioprio_set" : NO 
Checking for function "name_to_handle_at" : YES 
Checking for function "setns" : YES 
Checking for function "renameat2" : YES 
Checking for function "kcmp" : NO 
Checking for function "keyctl" : NO 
Checking for function "copy_file_range" : YES 
Checking for function "bpf" : NO 
Checking for function "statx" : YES 
Checking for function "explicit_bzero" : YES 
Checking for function "reallocarray" : YES 
Checking for function "set_mempolicy" : NO 
Checking for function "get_mempolicy" : NO 
Checking for function "pidfd_send_signal" : NO 
Checking for function "pidfd_open" : NO 
Checking for function "rt_sigqueueinfo" : NO 
Checking for function "rt_tgsigqueueinfo" : NO 
Checking for function "mallinfo" : YES 
Checking for function "mallinfo2" : YES 
Checking for function "execveat" : YES 
Checking for function "close_range" : YES 
Checking for function "epoll_pwait2" : YES 
Checking for function "mount_setattr" : NO 
Checking for function "move_mount" : NO 
Checking for function "open_tree" : NO 
Checking for function "fsopen" : NO 
Checking for function "fsconfig" : NO 
Checking for function "getdents64" : YES 
Checking for function "getrandom" : YES 
Program sh found: YES (/bin/sh)
Program echo found: YES (/bin/echo)
Program sed found: YES (/bin/sed)
Program awk found: YES (/bin/awk)
Program stat found: YES (/bin/stat)
Program ln found: YES (/bin/ln)
Program git found: NO
Program env found: YES (/bin/env)
Program perl found: YES (/bin/perl)
Program rsync found: YES (/bin/rsync)
Program quotaon /usr/sbin/quotaon /sbin/quotaon found: NO
Program quotacheck /usr/sbin/quotacheck /sbin/quotacheck found: NO
Program kmod found: YES (/bin/kmod)
Program kexec /usr/sbin/kexec /sbin/kexec found: NO
Program sulogin found: YES (/sbin/sulogin)
Program mount found: YES (/bin/mount)
Program umount found: YES (/bin/umount)
Program loadkeys found: YES (/bin/loadkeys)
Program setfont found: YES (/bin/setfont)
Program nologin found: YES (/sbin/nologin)
Program gperf found: YES (/bin/gperf)
Message: gperf len type is size_t
Has header "sys/capability.h" : YES 
Has header "crypt.h" : YES 
Has header "linux/memfd.h" : YES 
Has header "linux/vm_sockets.h" : YES 
Has header "sys/auxv.h" : YES 
Has header "valgrind/memcheck.h" : NO 
Has header "valgrind/valgrind.h" : NO 
Has header "linux/time_types.h" : NO 
Has header "sys/sdt.h" : NO 
meson.build:897: WARNING: 
The local user with the configured user name "nobody" of the nobody user does not have UID 65534 (it has 99).
Your build will result in an user table setup that is incompatible with the local system.
meson.build:916: WARNING: 
The local group with the configured group name "nobody" of the nobody group does not have GID 65534 (it has 99).
Your build will result in an group table setup that is incompatible with the local system.
Run-time dependency threads found: YES
Library rt found: YES
Library m found: YES
Library dl found: YES
Library crypt found: YES
Checking if "libatomic" : links: YES 
Checking for function "crypt_ra" with dependency -lcrypt: NO 
Checking for function "crypt_preferred_method" with dependency -lcrypt: NO 
Checking for function "crypt_gensalt_ra" with dependency -lcrypt: NO 
Found pkg-config: /bin/pkg-config (0.29.2)
Run-time dependency libcap found: YES 2.63
Found CMake: /bin/cmake (3.22.0)
Run-time dependency libbpf found: NO (tried pkgconfig and cmake)
Run-time dependency mount found: YES 2.37.4
Run-time dependency fdisk found: YES 2.37.4
Run-time dependency pwquality found: NO (tried pkgconfig and cmake)
Run-time dependency libseccomp found: NO (tried pkgconfig and cmake)
Run-time dependency libselinux found: NO (tried pkgconfig and cmake)
Run-time dependency libapparmor found: NO (tried pkgconfig and cmake)
Run-time dependency polkit-gobject-1 found: NO (tried pkgconfig and cmake)
Library acl found: YES
Run-time dependency audit found: NO (tried pkgconfig and cmake)
Run-time dependency blkid found: YES 2.37.4
Checking for function "blkid_probe_set_hint" with dependency blkid: YES 
Run-time dependency libkmod found: YES 29
Run-time dependency xencontrol found: NO (tried pkgconfig and cmake)
Library pam found: YES
Library pam_misc found: YES
Run-time dependency libmicrohttpd found: NO (tried pkgconfig and cmake)
Run-time dependency libcryptsetup found: NO (tried pkgconfig and cmake)
Checking for function "crypt_activate_by_token_pin" with dependency libcryptsetup: NO 
Run-time dependency libcurl found: YES 7.83.0
Run-time dependency libidn2 found: NO (tried pkgconfig and cmake)
Run-time dependency libidn found: NO (tried pkgconfig and cmake)
Run-time dependency libiptc found: YES 1.8.9
Run-time dependency libqrencode found: NO (tried pkgconfig and cmake)
Library gcrypt found: YES
Library gpg-error found: YES
Run-time dependency gnutls found: NO (tried pkgconfig and cmake)
Run-time dependency openssl found: YES 1.1.1s
Run-time dependency p11-kit-1 found: NO (tried pkgconfig and cmake)
Run-time dependency libfido2 found: NO (tried pkgconfig and cmake)
Run-time dependency tss2-esys tss2-rc tss2-mu found: YES 3.2.0
3.2.0
3.2.0
Run-time dependency libdw found: NO (tried pkgconfig and cmake)
Run-time dependency zlib found: YES 1.2.11
Library bz2 found: YES
Run-time dependency liblzma found: YES 5.2.5
Run-time dependency liblz4 found: NO (tried pkgconfig and cmake)
Run-time dependency libzstd found: YES 1.5.2
Run-time dependency xkbcommon found: NO (tried pkgconfig and cmake)
Run-time dependency libpcre2-8 found: YES 10.39
Run-time dependency glib-2.0 found: NO (tried pkgconfig and cmake)
Run-time dependency gobject-2.0 found: NO (tried pkgconfig and cmake)
Run-time dependency gio-2.0 found: NO (tried pkgconfig and cmake)
Run-time dependency dbus-1 found: NO (tried pkgconfig and cmake)
Has header "/usr/include/efi/x86_64/efibind.h" : NO 
src/boot/efi/meson.build:42: WARNING: gnu-efi headers not found or efi arch is unknown, disabling gnu-efi support
Program python3 (jinja2) found: YES (/bin/python3) modules: jinja2
Program tools/generate-gperfs.py found: YES (/usr/src/systemd-253/tools/generate-gperfs.py)
Program tools/make-autosuspend-rules.py found: YES (/usr/src/systemd-253/tools/make-autosuspend-rules.py)
Program tools/make-directive-index.py found: YES (/usr/src/systemd-253/tools/make-directive-index.py)
Program tools/make-man-index.py found: YES (/usr/src/systemd-253/tools/make-man-index.py)
Program tools/meson-render-jinja2.py found: YES (/usr/src/systemd-253/tools/meson-render-jinja2.py)
Program tools/update-dbus-docs.py found: YES (/usr/src/systemd-253/tools/update-dbus-docs.py)
Program tools/update-man-rules.py found: YES (/usr/src/systemd-253/tools/update-man-rules.py)
Program tools/update-hwdb.sh found: YES (/usr/src/systemd-253/tools/update-hwdb.sh)
Program tools/update-hwdb-autosuspend.sh found: YES (/usr/src/systemd-253/tools/update-hwdb-autosuspend.sh)
Program tools/update-syscall-tables.sh found: YES (/usr/src/systemd-253/tools/update-syscall-tables.sh)
Program tools/xml_helper.py found: YES (/usr/src/systemd-253/tools/xml_helper.py)
Program tools/dbus_exporter.py found: YES (/usr/src/systemd-253/tools/dbus_exporter.py)
Configuring config.h using configuration
Program generate-af-list.sh found: YES (/usr/src/systemd-253/src/basic/generate-af-list.sh)
Program generate-arphrd-list.sh found: YES (/usr/src/systemd-253/src/basic/generate-arphrd-list.sh)
Program generate-cap-list.sh found: YES (/usr/src/systemd-253/src/basic/generate-cap-list.sh)
Program generate-errno-list.sh found: YES (/usr/src/systemd-253/src/basic/generate-errno-list.sh)
Program missing_syscalls.py found: YES (/bin/python3 /usr/src/systemd-253/src/basic/missing_syscalls.py)
Program check-filesystems.sh found: YES (/usr/src/systemd-253/src/basic/check-filesystems.sh)
Program generate-filesystem-list.py found: YES (/usr/src/systemd-253/src/basic/generate-filesystem-list.py)
Program generate-filesystem-switch-case.py found: YES (/usr/src/systemd-253/src/basic/generate-filesystem-switch-case.py)
Program sd-journal/generate-audit_type-list.sh found: YES (/usr/src/systemd-253/src/libsystemd/sd-journal/generate-audit_type-list.sh)
src/libsystemd/meson.build:141: WARNING: Project targeting '>= 0.53.2' but tried to use feature introduced in '0.60.0': install_tag arg in custom_target.
Program generate-syscall-list.py found: YES (/usr/src/systemd-253/src/shared/generate-syscall-list.py)
Program generate-ip-protocol-list.sh found: YES (/usr/src/systemd-253/src/shared/generate-ip-protocol-list.sh)
Program generate-keyboard-keys-list.sh found: YES (/usr/src/systemd-253/src/udev/generate-keyboard-keys-list.sh)
Program generate-keyboard-keys-gperf.sh found: YES (/usr/src/systemd-253/src/udev/generate-keyboard-keys-gperf.sh)
src/libudev/meson.build:41: WARNING: Project targeting '>= 0.53.2' but tried to use feature introduced in '0.60.0': install_tag arg in custom_target.
Program test-kernel-install.sh found: YES (/usr/src/systemd-253/src/kernel-install/test-kernel-install.sh)
Program generate-dns_type-gperf.py found: YES (/usr/src/systemd-253/src/resolve/generate-dns_type-gperf.py)
Compiler for C supports arguments -std=iso9899:2017: YES 
Compiler for C++ supports arguments -std=c++14: YES 
Compiler for C++ supports arguments -std=c++17: YES 
Compiler for C++ supports arguments -std=c++20: YES 
Program generate-sym-test.py found: YES (/usr/src/systemd-253/src/test/generate-sym-test.py)
Program test-bootctl-json.sh found: YES (/usr/src/systemd-253/test/test-bootctl-json.sh)
Program test-fstab-generator.sh found: YES (/usr/src/systemd-253/test/test-fstab-generator.sh)
Program test-network-generator-conversion.sh found: YES (/usr/src/systemd-253/test/test-network-generator-conversion.sh)
Program test-systemctl-enable.sh found: YES (/usr/bin/env bash /usr/src/systemd-253/test/test-systemctl-enable.sh)
Program test-systemd-tmpfiles.py found: YES (/usr/src/systemd-253/test/test-systemd-tmpfiles.py)
Program hwdb-test.sh found: YES (/usr/src/systemd-253/test/hwdb-test.sh)
Configuring test-sysusers.sh using configuration
Program rule-syntax-check.py found: YES (/usr/src/systemd-253/test/rule-syntax-check.py)
Program sys-script.py found: YES (/usr/src/systemd-253/test/sys-script.py)
Program udev-test.pl found: YES (/usr/src/systemd-253/test/udev-test.pl)
Program rpm found: NO
Program rpmspec found: NO
Program test-rpm-macros.sh found: YES (/usr/src/systemd-253/test/test-rpm-macros.sh)
Message: Skipping test-rpm-macros since rpm and/or rpmspec are not available
Program udev-dmi-memory-id-test.sh found: YES (/usr/src/systemd-253/test/udev-dmi-memory-id-test.sh)
Program generate-directives.py found: YES (/bin/python3 /usr/src/systemd-253/test/fuzz/generate-directives.py)
meson.build:2270: WARNING: Project targeting '>= 0.53.2' but tried to use feature introduced in '0.60.0': install_tag arg in meson.add_install_script.
Program test/sysv-generator-test.py found: YES (/usr/src/systemd-253/test/sysv-generator-test.py)
Message: test-bus-benchmark is a manual test
Message: test-ipv4ll-manual is a manual test
Message: test-acd is a manual test
Message: test-coredump-vacuum is a manual test
Message: test-qcow2 is a manual test
Message: test-inhibit is a manual test
Message: test-session-properties is a manual test
Message: test-patch-uid is a manual test
Message: test-dnssec-complex is a manual test
Message: test-ns is a manual test
Message: Not compiling test-seccomp because HAVE_SECCOMP is not true
Message: test-ask-password-api is a manual test
Message: test-ipcrm is an unsafe test
Message: test-btrfs is a manual test
Message: test-netlink-manual is a manual test
Message: Not compiling test-sbat because HAVE_GNU_EFI is not true
Message: test-chase-symlinks is a manual test
Message: test-install is a manual test
Message: test-watchdog is an unsafe test
Message: test-udev is a manual test
Message: test-nscd-flush is a manual test
Message: Not compiling test-socket-bind because BPF_FRAMEWORK is not true
Program parse_hwdb.py found: YES (/usr/src/systemd-253/hwdb.d/parse_hwdb.py)
Program xsltproc found: NO
Message: Skipping bootctl.1 because HAVE_GNU_EFI is false
Message: Skipping crypttab.5 because HAVE_LIBCRYPTSETUP is false
Message: Skipping homectl.1 because ENABLE_HOMED is false
Message: Skipping homed.conf.5 because ENABLE_HOMED is false
Message: Skipping integritytab.5 because HAVE_LIBCRYPTSETUP is false
Message: Skipping journal-remote.conf.5 because HAVE_MICROHTTPD is false
Message: Skipping journal-upload.conf.5 because HAVE_MICROHTTPD is false
Message: Skipping loader.conf.5 because HAVE_GNU_EFI is false
Message: Skipping org.freedesktop.home1.5 because ENABLE_HOMED is false
Message: Skipping pam_systemd_home.8 because ENABLE_PAM_HOME is false
Message: Skipping systemd-bless-boot-generator.8 because HAVE_GNU_EFI is false
Message: Skipping systemd-bless-boot.service.8 because HAVE_GNU_EFI is false
Message: Skipping systemd-boot-random-seed.service.8 because HAVE_GNU_EFI is false
Message: Skipping systemd-boot.7 because HAVE_GNU_EFI is false
Message: Skipping systemd-cryptenroll.1 because HAVE_LIBCRYPTSETUP is false
Message: Skipping systemd-cryptsetup-generator.8 because HAVE_LIBCRYPTSETUP is false
Message: Skipping systemd-cryptsetup@.service.8 because HAVE_LIBCRYPTSETUP is false
Message: Skipping systemd-homed.service.8 because ENABLE_HOMED is false
Message: Skipping systemd-integritysetup-generator.8 because HAVE_LIBCRYPTSETUP is false
Message: Skipping systemd-integritysetup@.service.8 because HAVE_LIBCRYPTSETUP is false
Message: Skipping systemd-journal-gatewayd.service.8 because HAVE_MICROHTTPD is false
Message: Skipping systemd-journal-remote.service.8 because HAVE_MICROHTTPD is false
Message: Skipping systemd-journal-upload.service.8 because HAVE_MICROHTTPD is false
Message: Skipping systemd-measure.1 because HAVE_GNU_EFI is false
Message: Skipping systemd-pcrphase.service.8 because HAVE_GNU_EFI is false
Message: Skipping systemd-stub.7 because HAVE_GNU_EFI is false
Message: Skipping systemd-veritysetup-generator.8 because HAVE_LIBCRYPTSETUP is false
Message: Skipping systemd-veritysetup@.service.8 because HAVE_LIBCRYPTSETUP is false
Message: Skipping ukify.1 because ENABLE_UKIFY is false
Message: Skipping veritytab.5 because HAVE_LIBCRYPTSETUP is false
Message: python-lxml not available, not making man page indices
Configuring man using configuration
Configuring html using configuration
Run-time dependency bash-completion found: NO (tried pkgconfig and cmake)
Checking for size of "long" : 8
Program jekyll found: NO
Program tools/check-help.sh found: YES (/usr/src/systemd-253/tools/check-help.sh)
Program tools/check-version.sh found: YES (/usr/src/systemd-253/tools/check-version.sh)
Compiler for C supports link arguments -fsanitize=address,undefined: YES 
Message: Not compiling fuzz-link-parser:address,undefined because fuzz-tests is set to false
Message: Not compiling fuzz-netdev-parser:address,undefined because fuzz-tests is set to false
Message: Not compiling fuzz-network-parser:address,undefined because fuzz-tests is set to false
Message: Not compiling fuzz-unit-file:address,undefined because fuzz-tests is set to false
Message: Not compiling fuzz-bootspec:address,undefined because fuzz-tests is set to false
Message: Not compiling fuzz-bus-match:address,undefined because fuzz-tests is set to false
Message: Not compiling fuzz-bus-message:address,undefined because fuzz-tests is set to false
Message: Not compiling fuzz-calendarspec:address,undefined because fuzz-tests is set to false
Message: Not compiling fuzz-catalog:address,undefined because fuzz-tests is set to false
Message: Not compiling fuzz-dhcp-client:address,undefined because fuzz-tests is set to false
Message: Not compiling fuzz-dhcp-server-relay:address,undefined because fuzz-tests is set to false
Message: Not compiling fuzz-dhcp-server:address,undefined because fuzz-tests is set to false
Message: Not compiling fuzz-dhcp6-client:address,undefined because fuzz-tests is set to false
Message: Not compiling fuzz-dns-packet:address,undefined because fuzz-tests is set to false
Message: Not compiling fuzz-env-file:address,undefined because fuzz-tests is set to false
Message: Not compiling fuzz-etc-hosts:address,undefined because fuzz-tests is set to false
Message: Not compiling fuzz-fido-id-desc:address,undefined because fuzz-tests is set to false
Message: Not compiling fuzz-journal-remote:address,undefined because fuzz-tests is set to false
Message: Not compiling fuzz-journald-audit:address,undefined because fuzz-tests is set to false
Message: Not compiling fuzz-journald-kmsg:address,undefined because fuzz-tests is set to false
Message: Not compiling fuzz-journald-native-fd:address,undefined because fuzz-tests is set to false
Message: Not compiling fuzz-journald-stream:address,undefined because fuzz-tests is set to false
Message: Not compiling fuzz-journald-syslog:address,undefined because fuzz-tests is set to false
Message: Not compiling fuzz-json:address,undefined because fuzz-tests is set to false
Message: Not compiling fuzz-lldp-rx:address,undefined because fuzz-tests is set to false
Message: Not compiling fuzz-ndisc-rs:address,undefined because fuzz-tests is set to false
Message: Not compiling fuzz-nspawn-oci:address,undefined because fuzz-tests is set to false
Message: Not compiling fuzz-nspawn-settings:address,undefined because fuzz-tests is set to false
Message: Not compiling fuzz-resource-record:address,undefined because fuzz-tests is set to false
Message: Not compiling fuzz-systemctl-parse-argv:address,undefined because fuzz-tests is set to false
Message: Not compiling fuzz-udev-database:address,undefined because fuzz-tests is set to false
Message: Not compiling fuzz-udev-rules:address,undefined because fuzz-tests is set to false
Message: Not compiling fuzz-varlink:address,undefined because fuzz-tests is set to false
Message: Not compiling fuzz-xdg-desktop:address,undefined because fuzz-tests is set to false
Program tools/check-api-docs.sh found: YES (/usr/src/systemd-253/tools/check-api-docs.sh)
Build targets in project: 730
WARNING: Project specifies a minimum meson_version '>= 0.53.2' but uses features which were added in newer versions:
 * 0.60.0: {'install_tag arg in custom_target', 'install_tag arg in meson.add_install_script'}
NOTICE: Future-deprecated features used:
 * 0.55.0: {'ExternalProgram.path'}

systemd 253

    build mode                     : developer
    split /usr                     : False
    split bin-sbin                 : True
    prefix directory               : /usr
    rootprefix directory           : /usr
    sysconf directory              : /etc
    include directory              : /usr/include
    lib directory                  : /usr/lib64
    rootlib directory              : /usr/lib64
    SysV init scripts              : /etc/init.d
    SysV rc?.d directories         : /etc/rc.d
    PAM modules directory          : /usr/lib64/security
    PAM configuration directory    : /usr/lib/pam.d
    libcryptsetup plugins directory: /usr/lib64/cryptsetup
    RPM macros directory           : /usr/lib/rpm/macros.d
    modprobe.d directory           : /usr/lib/modprobe.d
    D-Bus policy directory         : /usr/share/dbus-1/system.d
    D-Bus session directory        : /usr/share/dbus-1/services
    D-Bus system directory         : /usr/share/dbus-1/system-services
    D-Bus interfaces directory     : /usr/share/dbus-1/interfaces
    bash completions directory     : /usr/share/bash-completion/completions
    zsh completions directory      : /usr/share/zsh/site-functions
    private shared lib version tag : 253
    extra start script             : /etc/rc.local
    debug shell                    : /bin/sh @ /dev/tty9
    system UIDs                    : <=999 (alloc >=101)
    system GIDs                    : <=999 (alloc >=101)
    dynamic UIDs                   : 61184…65519
    container UID bases            : 524288…1878982656
    static UID/GID allocations     : tty-gid:5
    /dev/kvm access mode           : 0666
    render group access mode       : 0666
    certificate root directory     : /etc/ssl
    support URL                    : https://lists.freedesktop.org/mailman/listinfo/systemd-devel
    nobody user name               : nobody
    nobody group name              : nobody
    fallback hostname              : localhost
    default compression method     : zstd
    default DNSSEC mode            : allow-downgrade
    default DNS-over-TLS mode      : no
    default mDNS mode              : yes
    default LLMNR mode             : yes
    default DNS servers            : 1.1.1.1#cloudflare-dns.com
                                     8.8.8.8#dns.google
                                     1.0.0.1#cloudflare-dns.com
                                     8.8.4.4#dns.google
                                     2606:4700:4700::1111#cloudflare-dns.com
                                     2001:4860:4860::8888#dns.google
                                     2606:4700:4700::1001#cloudflare-dns.com
                                     2001:4860:4860::8844#dns.google
    default NTP servers            : time1.google.com
                                     time2.google.com
                                     time3.google.com
                                     time4.google.com
    default cgroup hierarchy       : unified
    default net.naming-scheme value: latest
    default KillUserProcesses value: True
    default locale                 : C.UTF-8
    default nspawn locale          : C.UTF-8
    default status unit format     : name
    default user $PATH             : (same as system services)
    systemd service watchdog       : 3min
    time epoch                     : 1676488312 (2023-02-15T19:11:52+00:00)

  Features
    enabled                        : ACL, IMA, PAM, SMACK, blkid, gcrypt, libcurl, libfdisk, libiptc, openssl, pcre2, tpm2, zstd, xz, zlib, bzip2, backlight, binfmt, coredump, environment.d, efi, firstboot, hibernate, hostnamed, hwdb, importd, initrd, kernel-install, localed, logind, machined, networkd, nss-myhostname, nss-mymachines, nss-resolve, nss-systemd, oomd, portabled, pstore, quotacheck, randomseed, repart, resolve, rfkill, sysext, systemd-analyze, sysupdate, sysusers, timedated, timesyncd, tmpfiles, userdb, vconsole, xdg-autostart, idn, polkit, nscd, kmod, tpm, SysV compat, utmp, ldconfig, adm group, wheel group, gshadow, link-udev-shared, link-systemctl-shared, link-networkd-shared, link-timesyncd-shared, link-journalctl-shared, link-boot-shared, cryptolib(gcrypt), DNS-over-TLS(openssl)
    disabled                       : AUDIT, AppArmor, SECCOMP, SELinux, elfutils, gnutls, libbpf, libcryptsetup, libcryptsetup-plugins, libfido2, libidn, libidn2, microhttpd, p11kit, pwquality, qrencode, xkbcommon, lz4, bpf-framework, gnu-efi, homed, legacy-pkla, xenctrl, dbus, glib, man pages, html pages, man page indices, compat-mutable-uid-boundaries, debug hashmap, debug mmap cache, debug siphash, valgrind, trace logging, install tests, first-boot-full-preset, fexecve, standalone-binaries, coverage, static-libsystemd, static-libudev

Found ninja-1.10.2 at /bin/ninja

Any idea?

Thanks in advance, CG

Steps to reproduce the problem

./configure make

Additional program output to the terminal or log subsystem illustrating the issue

No response

yuwata commented 1 year ago

Is it possible to reproduce the same issue with meson and ninja? Nowadays./configure and make are simple wrapper of them.

cacheguard commented 1 year ago

Hi Yuwata,

Thank you for your post and sorry for our delayed response. We don't know meson and ninja (very funny names). But according to the output of the ./configure and make commands given above, it seems that ./configure launch "ninja -C build" and make execute ""meson build. If you think that we should use other options with those funny commands, please advise us.

All the Best, CG

mrc0mmand commented 1 year ago

Hi Yuwata,

Thank you for your post and sorry for our delayed response. We don't know meson and ninja (very funny names). But according to the output of the ./configure and make commands given above, it seems that ./configure launch "ninja -C build" and make execute ""meson build. If you think that we should use other options with those funny commands, please advise us.

All the Best, CG

Do you have any image/container of the distro in question by any chance? It would make tracking down the issue much easier.

keszybz commented 1 year ago

The configure script and the Makefile are just thing wrappers around meson setup build and ninja -C build. So the fact that they were used is not really important, and as the pasted output shows, both meson and ninja were invoked as expected.

The relevant error is:

/usr/src/systemd-253/build/systemd: error while loading shared libraries: libsystemd-core-253.so: cannot open shared object file: No such file or directory

That is strange. Try to invoke /usr/src/systemd-253/build/systemd --version and figure out why this doesn't work. I'm pretty sure that it's something special in your environment.

keszybz commented 1 year ago

I'll close the bug. I'm fairly certain that this is an operator error or something specific to your system. Feel free to post additional info here, people should reply.

ldv-alt commented 1 year ago

/usr/src/systemd-253/build/systemd: error while loading shared libraries: libsystemd-core-253.so: cannot open shared object file: No such file or directory

As build/systemd uses $ORIGIN in its RPATH, the most likely reason for this error is that /proc is not mounted in the build environment.

keszybz commented 1 year ago

Ah, that could be it. I was thinking that rpath must be broken somehow, and this would explain how.

cacheguard commented 1 year ago

Thanks a lot for all responses.

The root cause was actually /proc. We normally compile all sources in a chroot jail without mounting /proc. Mounting /proc has unblocked the build process.

Without mounting /proc :

/usr/src/systemd-253/build/systemd --version
/usr/src/systemd-253/build/systemd: error while loading shared libraries: libsystemd-core-253.so: cannot open shared object file: No such file or directory

After having /proc mounted:

/usr/src/systemd-253/build/systemd --version
systemd 253 (253)
+PAM -AUDIT -SELINUX -APPARMOR +IMA +SMACK -SECCOMP +GCRYPT -GNUTLS +OPENSSL +ACL +BLKID +CURL -ELFUTILS -FIDO2 -IDN2 -IDN +IPTC +KMOD -LIBCRYPTSETUP +LIBFDISK +PCRE2 -PWQUALITY -P11KIT -QRENCODE +TPM2 +BZIP2 -LZ4 +XZ +ZLIB +ZSTD -BPF_FRAMEWORK -XKBCOMMON +UTMP +SYSVINIT default-hierarchy=unified

All the Best CG

appzer0 commented 1 year ago

I'm puzzled on this. I have a server that I just upgraded from Debian 11 to Debian 12. It has libvirtd. The only particular thing is that it uses the ZFS module.

I saw the same error during the upgrade process (and got a bit nervous), each time the module is compiled/removed when /etc/kernel/postrm.d/zz-update-grub is running (it appears 2 times in the lines below):

(Reading database ... 229515 files and directories currently installed.)
Removing linux-image-5.10.0-22-amd64 (5.10.178-3) ...
/etc/kernel/prerm.d/dkms:
dkms: removing: zfs 2.0.3 (5.10.0-22-amd64) (x86_64)

-------- Uninstall Beginning --------
Module:  zfs
Version: 2.0.3
Kernel:  5.10.0-22-amd64 (x86_64)
-------------------------------------

Status: Before uninstall, this module version was ACTIVE on this kernel.

zavl.ko:
 - Uninstallation
   - Deleting from: /lib/modules/5.10.0-22-amd64/updates/dkms/
 - Original module
   - No original module was found for this module on this kernel.
   - Use the dkms install command to reinstall any previous module version.

znvpair.ko:
 - Uninstallation
   - Deleting from: /lib/modules/5.10.0-22-amd64/updates/dkms/
 - Original module
   - No original module was found for this module on this kernel.
   - Use the dkms install command to reinstall any previous module version.

zunicode.ko:
 - Uninstallation
   - Deleting from: /lib/modules/5.10.0-22-amd64/updates/dkms/
 - Original module
   - No original module was found for this module on this kernel.
   - Use the dkms install command to reinstall any previous module version.

zcommon.ko:
 - Uninstallation
   - Deleting from: /lib/modules/5.10.0-22-amd64/updates/dkms/
 - Original module
   - No original module was found for this module on this kernel.
   - Use the dkms install command to reinstall any previous module version.

zfs.ko:
 - Uninstallation
   - Deleting from: /lib/modules/5.10.0-22-amd64/updates/dkms/
 - Original module
   - No original module was found for this module on this kernel.
   - Use the dkms install command to reinstall any previous module version.

icp.ko:
 - Uninstallation
   - Deleting from: /lib/modules/5.10.0-22-amd64/updates/dkms/
 - Original module
   - No original module was found for this module on this kernel.
   - Use the dkms install command to reinstall any previous module version.

zlua.ko:
 - Uninstallation
   - Deleting from: /lib/modules/5.10.0-22-amd64/updates/dkms/
 - Original module
   - No original module was found for this module on this kernel.
   - Use the dkms install command to reinstall any previous module version.

spl.ko:
 - Uninstallation
   - Deleting from: /lib/modules/5.10.0-22-amd64/updates/dkms/
 - Original module
   - No original module was found for this module on this kernel.
   - Use the dkms install command to reinstall any previous module version.

zzstd.ko:
 - Uninstallation
   - Deleting from: /lib/modules/5.10.0-22-amd64/updates/dkms/
 - Original module
   - No original module was found for this module on this kernel.
   - Use the dkms install command to reinstall any previous module version.

depmod....

DKMS: uninstall completed.
/etc/kernel/postrm.d/initramfs-tools:
update-initramfs: Deleting /boot/initrd.img-5.10.0-22-amd64
/etc/kernel/postrm.d/zz-update-grub:
systemd-detect-virt: error while loading shared libraries: libsystemd-shared-252.so: cannot open shared object file: No such file or directory
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-5.10.0-25-amd64
Found initrd image: /boot/initrd.img-5.10.0-25-amd64
Found linux image: /boot/vmlinuz-5.10.0-23-amd64
Found initrd image: /boot/initrd.img-5.10.0-23-amd64
Found linux image: /boot/vmlinuz-5.10.0-21-amd64
Found initrd image: /boot/initrd.img-5.10.0-21-amd64
done
Removing linux-image-5.10.0-21-amd64 (5.10.162-1) ...
/etc/kernel/prerm.d/dkms:
dkms: removing: zfs 2.0.3 (5.10.0-21-amd64) (x86_64)

-------- Uninstall Beginning --------
Module:  zfs
Version: 2.0.3
Kernel:  5.10.0-21-amd64 (x86_64)
-------------------------------------

Status: Before uninstall, this module version was ACTIVE on this kernel.

zavl.ko:
 - Uninstallation
   - Deleting from: /lib/modules/5.10.0-21-amd64/updates/dkms/
 - Original module
   - No original module was found for this module on this kernel.
   - Use the dkms install command to reinstall any previous module version.

znvpair.ko:
 - Uninstallation
   - Deleting from: /lib/modules/5.10.0-21-amd64/updates/dkms/
 - Original module
   - No original module was found for this module on this kernel.
   - Use the dkms install command to reinstall any previous module version.

zunicode.ko:
 - Uninstallation
   - Deleting from: /lib/modules/5.10.0-21-amd64/updates/dkms/
 - Original module
   - No original module was found for this module on this kernel.
   - Use the dkms install command to reinstall any previous module version.

zcommon.ko:
 - Uninstallation
   - Deleting from: /lib/modules/5.10.0-21-amd64/updates/dkms/
 - Original module
   - No original module was found for this module on this kernel.
   - Use the dkms install command to reinstall any previous module version.

zfs.ko:
 - Uninstallation
   - Deleting from: /lib/modules/5.10.0-21-amd64/updates/dkms/
 - Original module
   - No original module was found for this module on this kernel.
   - Use the dkms install command to reinstall any previous module version.

icp.ko:
 - Uninstallation
   - Deleting from: /lib/modules/5.10.0-21-amd64/updates/dkms/
 - Original module
   - No original module was found for this module on this kernel.
   - Use the dkms install command to reinstall any previous module version.

zlua.ko:
 - Uninstallation
   - Deleting from: /lib/modules/5.10.0-21-amd64/updates/dkms/
 - Original module
   - No original module was found for this module on this kernel.
   - Use the dkms install command to reinstall any previous module version.

spl.ko:
 - Uninstallation
   - Deleting from: /lib/modules/5.10.0-21-amd64/updates/dkms/
 - Original module
   - No original module was found for this module on this kernel.
   - Use the dkms install command to reinstall any previous module version.

zzstd.ko:
 - Uninstallation
   - Deleting from: /lib/modules/5.10.0-21-amd64/updates/dkms/
 - Original module
   - No original module was found for this module on this kernel.
   - Use the dkms install command to reinstall any previous module version.

depmod....

DKMS: uninstall completed.
/etc/kernel/postrm.d/initramfs-tools:
update-initramfs: Deleting /boot/initrd.img-5.10.0-21-amd64
/etc/kernel/postrm.d/zz-update-grub:
systemd-detect-virt: error while loading shared libraries: libsystemd-shared-252.so: cannot open shared object file: No such file or directory
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-5.10.0-25-amd64
Found initrd image: /boot/initrd.img-5.10.0-25-amd64
Found linux image: /boot/vmlinuz-5.10.0-23-amd64
Found initrd image: /boot/initrd.img-5.10.0-23-amd64
done
poettering commented 1 year ago

@appzer0 please do not hijack unrelated bug reports. Also, plesae contact your distro for help, primarily.

calestyo commented 10 months ago

Hey.

When testing the fixes in #30074, I just stumbled over the same issue (I've built systemd in a chroot, and had’t bind mounted /proc ... and seems the tests may even need further special filesystems).

Maybe it would help non-familiar people if systemd’s build system could just error out if it detects any necessary filesystems not being mounted?

Cheers, Chris.