ubuntu_lxc failed to build on Oracular (ERROR: Dependency "systemd" not found, tried pkgconfig)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ubuntu-kernel-tests |
In Progress
|
Undecided
|
Po-Hsu Lin |
Bug Description
After fixing bug 2083805
The ubuntu_lxc build is now failing with:
[ -d build ] || meson setup build/
The Meson build system
Version: 1.5.1
Source dir: /tmp/lxc-pkg-ubuntu
Build dir: /tmp/lxc-
Build type: native build
Project name: lxc
Project version: 6.0.1
C compiler for the host machine: cc (gcc 14.2.0 "cc (Ubuntu 14.2.0-4ubuntu2) 14.2.0")
C linker for the host machine: cc ld.bfd 2.43.1
Host machine cpu family: aarch64
Host machine cpu: aarch64
Compiler for C supports link arguments -Wl,--no-as-needed: YES
Compiler for C supports link arguments -Wl,--gc-sections: YES
Compiler for C supports link arguments -Wl,-z,relro: YES
Compiler for C supports link arguments -Wl,-z,now: YES
Compiler for C supports link arguments -fstack-protector: YES
Compiler for C supports link arguments -fstack-
Compiler for C supports link arguments -Wl,-fuse-ld=gold: YES
Compiler for C supports link arguments -Wl,--warn-common: YES
Compiler for C supports arguments -Wno-format-
Compiler for C supports arguments -Wno-missing-
Compiler for C supports arguments -Wno-unused-
Compiler for C supports arguments -Wvla: YES
Compiler for C supports arguments -Wimplicit-
Compiler for C supports arguments -Wcast-align: YES
Compiler for C supports arguments -Wstrict-
Compiler for C supports arguments -fno-strict-
Compiler for C supports arguments -fstack-
Compiler for C supports arguments --param=
Compiler for C supports arguments --mcet -fcf-protection: NO
Compiler for C supports arguments -Werror=
Compiler for C supports arguments -Wlogical-op: YES
Compiler for C supports arguments -Wmissing-
Compiler for C supports arguments -Wold-style-
Compiler for C supports arguments -Winit-self: YES
Compiler for C supports arguments -Wunused-
Compiler for C supports arguments -Wno-unused-
Compiler for C supports arguments -Wfloat-equal: YES
Compiler for C supports arguments -Wsuggest-
Compiler for C supports arguments -Werror=
Compiler for C supports arguments -Werror=
Compiler for C supports arguments -Wformat=2: YES
Compiler for C supports arguments -Wshadow: YES
Compiler for C supports arguments -Wendif-labels: YES
Compiler for C supports arguments -Werror=overflow: YES
Compiler for C supports arguments -fdiagnostics-
Compiler for C supports arguments -Werror=
Compiler for C supports arguments -Werror=
Compiler for C supports arguments -Wdate-time: YES
Compiler for C supports arguments -Wnested-externs: YES
Compiler for C supports arguments -fasynchronous-
Compiler for C supports arguments -fexceptions: YES
Compiler for C supports arguments -Warray-bounds: YES
Compiler for C supports arguments -Wrestrict: YES
Compiler for C supports arguments -Wreturn-
Compiler for C supports arguments -fsanitize=cfi: NO
Compiler for C supports arguments -Wstringop-
meson.build:262: WARNING: add_languages is missing native:, assuming languages are wanted for both host and build.
C++ compiler for the host machine: c++ (gcc 14.2.0 "c++ (Ubuntu 14.2.0-4ubuntu2) 14.2.0")
C++ linker for the host machine: c++ ld.bfd 2.43.1
Compiler for C++ supports arguments -Wno-format-
Compiler for C++ supports arguments -Wno-missing-
Compiler for C++ supports arguments -Wno-unused-
Found pkg-config: YES (/usr/bin/
Run-time dependency dbus-1 found: YES 1.14.10
Program sh found: YES (/usr/bin/sh)
Program date found: YES (/usr/bin/date)
Program git found: YES (/usr/bin/git)
Program docbook2x-man found: YES 0.8.8 0.8.8 (/usr/bin/
Run-time dependency threads found: YES
Did not find CMake 'cmake'
Found CMake: NO
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: YES 4.1.0~beta1
Run-time dependency openssl found: NO (tried pkgconfig, system and cmake)
Run-time dependency libcap found: YES 2.66
Checking for function "cap_get_file" with dependency libcap: YES
Run-time dependency libcap found: YES 2.66
Library util found: YES
Has header "security/
Checking for function "fmemopen" : YES
Checking for function "openpty" with dependency -lutil: YES
Checking for function "pthread_
Checking for function "rand_r" : YES
Checking for function "strchrnul" : YES
Checking for function "strerror_r" : YES
Checking if "strerror_r() returns char *" compiles: YES
Compiler for C supports function attribute fallthrough: YES
Compiler for C supports function attribute nonnull: YES
Compiler for C supports function attribute returns_nonnull: YES
Checking for size of "__aligned_u64" : 8
Checking for size of "struct clone_args" : -1
Checking for size of "struct open_how" : -1
Checking for size of "struct rtnl_link_stats64" : 200
Checking for size of "struct mount_attr" : 32
Fetching value of define "FSCONFIG_SET_FLAG" : (undefined)
Fetching value of define "FS_CONFIG_
Fetching value of define "FS_CONFIG_
Fetching value of define "FS_CONFIG_
Fetching value of define "FS_CONFIG_
Fetching value of define "FS_CONFIG_
Fetching value of define "FS_CONFIG_
Checking for function "bpf" : NO
Checking for function "close_range" : YES
Checking for function "execveat" : YES
Checking for function "endmntent" : YES
Checking for function "faccessat" : YES
Checking for function "fexecve" : YES
Checking for function "fgetln" : NO
Checking for function "fsconfig" : YES
Checking for function "fsmount" : YES
Checking for function "fsopen" : YES
Checking for function "fspick" : YES
Checking for function "getgrgid_r" : YES
Checking for function "getline" : YES
Checking for function "getsubopt" : YES
Checking for function "gettid" : YES
Checking for function "hasmntopt" : YES
Checking for function "kcmp" : NO
Checking for function "keyctl" : NO
Checking for function "memfd_create" : YES
Checking for function "mount_setattr" : YES
Checking for function "move_mount" : YES
Checking for function "openat2" : NO
Checking for function "open_tree" : YES
Checking for function "personality" : YES
Checking for function "pidfd_open" : NO
Checking for function "pidfd_send_signal" : NO
Checking for function "pivot_root" : NO
Checking for function "prlimit" : YES
Checking for function "prlimit64" : YES
Checking for function "renameat2" : YES
Checking for function "sethostname" : YES
Checking for function "setmntent" : YES
Checking for function "setns" : YES
Checking for function "sigdescr_np" : YES
Checking for function "signalfd" : YES
Checking for function "statvfs" : YES
Checking for function "statx" : YES
Checking for function "strchrnul" : YES (cached)
Checking for function "strlcat" : YES
Checking for function "strlcpy" : YES
Checking for function "unshare" : YES
Has header "sys/resource.h" : YES
Has header "sys/memfd.h" : NO
Has header "sys/personality.h" : YES
Has header "sys/pidfd.h" : YES
Has header "sys/signalfd.h" : YES
Has header "sys/timerfd.h" : YES
Has header "pty.h" : YES
Has header "utmpx.h" : YES
Configuring config.h using configuration
Configuring attach_options.h using configuration
Configuring lxccontainer.h using configuration
Configuring version.h using configuration
Configuring lxc.functions using configuration
Configuring lxc-containers using configuration
Configuring usr.bin.lxc-start using configuration
Configuring usr.bin.lxc-copy using configuration
Configuring container-base using configuration
Configuring start-container using configuration
Configuring lxc-default using configuration
Configuring lxc-default-cgns using configuration
Configuring lxc-default-
Configuring lxc-default-
Configuring _lxc using configuration
Configuring default.conf using configuration
Configuring lxc-containers using configuration
Configuring lxc-net using configuration
Configuring lxc-apparmor-load using configuration
Run-time dependency systemd found: NO (tried pkgconfig)
config/
A full log can be found at /tmp/lxc-
stderr:
make: *** [Makefile:9: meson] Error 1
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/
raise exc_info[
TypeError: CmdError.__init__() missing 1 required positional argument: 'result_obj'
04:26:25 INFO | END ERROR ubuntu_lxc.setup ubuntu_lxc.setup timestamp=
Changed in ubuntu-kernel-tests: | |
status: | New → In Progress |
assignee: | nobody → Po-Hsu Lin (cypressyew) |
It seems this will need systemd-dev, which is installed on Noble but not Oracular. /git.launchpad. net/~canonical- kernel- team/+git/ autotest- client- tests/tree/ ubuntu_ lxc/ubuntu_ lxc.py# n33
Therefore I think we can reuse this if statement:
https:/