ubuntu_lxc failed to build on Oracular (ERROR: Dependency "systemd" not found, tried pkgconfig)

Bug #2089812 reported by Po-Hsu Lin
6
This bug affects 1 person
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-pkg-ubuntu/build
  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-protector-strong: YES
  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-signedness: 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 -Wvla: YES
  Compiler for C supports arguments -Wimplicit-fallthrough=5: YES
  Compiler for C supports arguments -Wcast-align: YES
  Compiler for C supports arguments -Wstrict-prototypes: YES
  Compiler for C supports arguments -fno-strict-aliasing: YES
  Compiler for C supports arguments -fstack-clash-protection: YES
  Compiler for C supports arguments --param=ssp-buffer-size=4: YES
  Compiler for C supports arguments --mcet -fcf-protection: NO
  Compiler for C supports arguments -Werror=implicit-function-declaration: YES
  Compiler for C supports arguments -Wlogical-op: YES
  Compiler for C supports arguments -Wmissing-include-dirs: YES
  Compiler for C supports arguments -Wold-style-definition: YES
  Compiler for C supports arguments -Winit-self: YES
  Compiler for C supports arguments -Wunused-but-set-variable: YES
  Compiler for C supports arguments -Wno-unused-parameter: YES (cached)
  Compiler for C supports arguments -Wfloat-equal: YES
  Compiler for C supports arguments -Wsuggest-attribute=noreturn: YES
  Compiler for C supports arguments -Werror=return-type: YES
  Compiler for C supports arguments -Werror=incompatible-pointer-types: YES
  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-show-option: 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 -Wdate-time: YES
  Compiler for C supports arguments -Wnested-externs: YES
  Compiler for C supports arguments -fasynchronous-unwind-tables: YES
  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-local-addr: YES
  Compiler for C supports arguments -fsanitize=cfi: NO
  Compiler for C supports arguments -Wstringop-overflow: YES
  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-signedness: YES
  Compiler for C++ supports arguments -Wno-missing-field-initializers: YES
  Compiler for C++ supports arguments -Wno-unused-parameter: YES
  Found pkg-config: YES (/usr/bin/pkg-config) 1.8.1
  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/docbook2x-man)
  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/pam_modules.h" : NO
  Checking for function "fmemopen" : YES
  Checking for function "openpty" with dependency -lutil: YES
  Checking for function "pthread_setcancelstate" : YES
  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_SET_STRING" : (undefined)
  Fetching value of define "FS_CONFIG_SET_BINARY" : (undefined)
  Fetching value of define "FS_CONFIG_SET_PATH_EMPTY" : (undefined)
  Fetching value of define "FS_CONFIG_SET_PATH_FD" : (undefined)
  Fetching value of define "FS_CONFIG_SET_CMD_CREATE" : (undefined)
  Fetching value of define "FS_CONFIG_SET_CMD_RECONFIGURE" : (undefined)
  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-with-mounting using configuration
  Configuring lxc-default-with-nesting using configuration
  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/init/systemd/meson.build:13:18: ERROR: Dependency "systemd" not found, tried pkgconfig

  A full log can be found at /tmp/lxc-pkg-ubuntu/build/meson-logs/meson-log.txt
  stderr:
  make: *** [Makefile:9: meson] Error 1

  During handling of the above exception, another exception occurred:

  Traceback (most recent call last):
    File "/home/ubuntu/autotest/client/shared/test.py", line 434, in _exec
      raise exc_info[0](exc_info[1]).with_traceback(exc_info[2])
            ^^^^^^^^^^^^^^^^^^^^^^^^
  TypeError: CmdError.__init__() missing 1 required positional argument: 'result_obj'

04:26:25 INFO | END ERROR ubuntu_lxc.setup ubuntu_lxc.setup timestamp=1732508785 localtime=Nov 25 04:26:25

Po-Hsu Lin (cypressyew)
Changed in ubuntu-kernel-tests:
status: New → In Progress
assignee: nobody → Po-Hsu Lin (cypressyew)
Revision history for this message
Po-Hsu Lin (cypressyew) wrote :

It seems this will need systemd-dev, which is installed on Noble but not Oracular.
Therefore I think we can reuse this if statement:
https://git.launchpad.net/~canonical-kernel-team/+git/autotest-client-tests/tree/ubuntu_lxc/ubuntu_lxc.py#n33

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.