microsoft / vcpkg

C++ Library Manager for Windows, Linux, and MacOS
MIT License
23.19k stars 6.39k forks source link

[libsystemd] Build error on x64-linux #38094

Open tekinas opened 7 months ago

tekinas commented 7 months ago

Package: libsystemd:x64-linux -> 255#1

Host Environment

To Reproduce

vcpkg install sdl2[alsa,ibus,samplerate,vulkan,wayland,x11] Failure logs

-- Found Python version '3.10.12 at /usr/bin/python3'
-- Using meson: /home/tekinas/Documents/vcpkg/downloads/tools/meson-1.3.2-d646d3/meson.py
-- Using cached systemd-systemd-v255.tar.gz.
-- Cleaning sources at /home/tekinas/Documents/vcpkg/buildtrees/libsystemd/src/v255-948a7f2e81.clean. Use --editable to skip cleaning for the packages you specify.
-- Extracting source /home/tekinas/Documents/vcpkg/downloads/systemd-systemd-v255.tar.gz
-- Applying patch disable-warning-nonnull.patch
-- Applying patch only-libsystemd.patch
-- Applying patch pkgconfig.patch
-- Using source at /home/tekinas/Documents/vcpkg/buildtrees/libsystemd/src/v255-948a7f2e81.clean
-- Getting CMake variables for x64-linux-rel
-- Configuring x64-linux-rel
CMake Error at scripts/cmake/vcpkg_execute_required_process.cmake:112 (message):
    Command failed: /usr/bin/python3 -I /home/tekinas/Documents/vcpkg/downloads/tools/meson-1.3.2-d646d3/meson.py -Dmode=release -Dstatic-libsystemd=pic -Dtests=false -Ddns-over-tls=false -Dlz4=enabled -Dtranslations=false -Dxz=enabled -Dzstd=enabled --backend ninja --wrap-mode nodownload -Dbuildtype=plain -Doptimization=plain --libdir lib --native /home/tekinas/Documents/vcpkg/buildtrees/libsystemd/meson-x64-linux-rel.log -Ddebug=false --prefix /home/tekinas/Documents/vcpkg/packages/libsystemd_x64-linux -Dcmake_prefix_path=['/home/tekinas/Documents/vcpkg/installed/x64-linux','/home/tekinas/Documents/vcpkg/installed/x64-linux/debug'] /home/tekinas/Documents/vcpkg/buildtrees/libsystemd/src/v255-948a7f2e81.clean
    Working Directory: /home/tekinas/Documents/vcpkg/buildtrees/libsystemd/x64-linux-rel
    Error code: 1
    See logs for more information:
      /home/tekinas/Documents/vcpkg/buildtrees/libsystemd/config-x64-linux-rel-meson-log.txt.log
      /home/tekinas/Documents/vcpkg/buildtrees/libsystemd/config-x64-linux-rel-out.log

Call Stack (most recent call first):
  installed/x64-linux/share/vcpkg-tool-meson/vcpkg_configure_meson.cmake:436 (vcpkg_execute_required_process)
  ports/libsystemd/portfile.cmake:17 (vcpkg_configure_meson)
  scripts/ports.cmake:175 (include)
/home/tekinas/Documents/vcpkg/buildtrees/libsystemd/config-x64-linux-rel-out.log ``` WARNING: Recommend using either -Dbuildtype or -Doptimization + -Ddebug. Using both is redundant since they override each other. See: https://mesonbuild.com/Builtin-options.html#build-type-options The Meson build system Version: 1.3.2 Source dir: /home/tekinas/Documents/vcpkg/buildtrees/libsystemd/src/v255-948a7f2e81.clean Build dir: /home/tekinas/Documents/vcpkg/buildtrees/libsystemd/x64-linux-rel Build type: native build Project name: systemd Project version: 255 C compiler for the host machine: /usr/bin/cc -fPIC -O3 -DNDEBUG (gcc 14.0.1 "cc (GCC) 14.0.1 20240409 (experimental)") C linker for the host machine: /usr/bin/cc -fPIC -O3 -DNDEBUG ld.bfd 2.38 Host machine cpu family: x86_64 Host machine cpu: x86_64 Program tools/add-git-hook.sh found: YES (/home/tekinas/Documents/vcpkg/buildtrees/libsystemd/src/v255-948a7f2e81.clean/tools/add-git-hook.sh) Program tools/meson-build.sh found: YES (/home/tekinas/Documents/vcpkg/buildtrees/libsystemd/src/v255-948a7f2e81.clean/tools/meson-build.sh) C++ compiler for the host machine: /usr/bin/c++ -fPIC -O3 -DNDEBUG (gcc 14.0.1 "c++ (GCC) 14.0.1 20240409 (experimental)") C++ linker for the host machine: /usr/bin/c++ -fPIC -O3 -DNDEBUG 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=missing-declarations: YES Compiler for C supports arguments -Werror=missing-prototypes: 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=strict-flex-arrays: 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 -fdiagnostics-show-option: YES Compiler for C supports arguments -fno-common: 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: YES Compiler for C supports arguments --param=ssp-buffer-size=4: YES Compiler for C supports arguments -Wno-maybe-uninitialized: YES Compiler for C supports arguments -Wno-unused-result: YES Compiler for C supports arguments -ftrivial-auto-var-init=zero: YES Compiler for C supports link arguments -fstack-protector: YES Compiler for C supports arguments -fno-strict-aliasing: YES Compiler for C supports arguments -fstrict-flex-arrays=1: YES Compiler for C supports arguments -fvisibility=hidden: YES Compiler for C supports arguments -ffunction-sections: YES Compiler for C supports arguments -fdata-sections: 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 -Wl,--warn-common: YES Compiler for C supports link arguments -Wl,--gc-sections: 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 "rlim_t" : 8 Checking for size of "time_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" : 32 Checking for size of "struct statx" : 256 Checking for size of "struct dirent64" : 280 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 "fchmodat2" : NO 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 "fsmount" : NO Checking for function "getdents64" : YES Checking for function "getrandom" : YES Program sh found: YES (/usr/bin/sh) Program echo found: YES (/usr/bin/echo) Program sed found: YES (/usr/bin/sed) Program awk found: YES (/usr/bin/awk) Program stat found: YES (/usr/bin/stat) Program ln found: YES (/usr/bin/ln) Program git found: YES (/usr/bin/git) Program env found: YES (/usr/bin/env) Program rsync found: YES (/usr/bin/rsync) Program diff found: YES (/usr/bin/diff) Program find found: YES (/usr/bin/find) Program quotaon /usr/sbin/quotaon /sbin/quotaon found: NO Program quotacheck /usr/sbin/quotacheck /sbin/quotacheck found: NO Program kmod found: YES (/usr/bin/kmod) Program kexec /usr/sbin/kexec /sbin/kexec found: NO Program sulogin found: YES (/usr/sbin/sulogin) Program mount found: YES (/usr/bin/mount) Program umount found: YES (/usr/bin/umount) Program loadkeys found: YES (/usr/bin/loadkeys) Program setfont found: YES (/usr/bin/setfont) Program nologin found: YES (/usr/sbin/nologin) Program gperf found: YES 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 "threads.h" : YES Has header "valgrind/memcheck.h" : NO Has header "valgrind/valgrind.h" : NO Has header "linux/time_types.h" : YES Has header "sys/sdt.h" : NO ../src/v255-948a7f2e81.clean/meson.build:880: WARNING: The local group with the GID 65534 does not match the configured group name "nobody" of the nobody group (its name is nogroup). 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 Found pkg-config: YES (/bin/pkg-config) 0.29.2 Run-time dependency libcrypt found: YES 4.4.36 Run-time dependency libcap found: YES 2.69 Checking if "libatomic" : links: YES Checking for function "crypt_ra" with dependency libcrypt: YES Checking for function "crypt_preferred_method" with dependency libcrypt: YES Checking for function "crypt_gensalt_ra" with dependency libcrypt: YES Found CMake: /snap/cmake/1379/bin/cmake (3.29.1) Run-time dependency libbpf found: NO (tried pkgconfig and cmake) Run-time dependency mount found: YES 2.40.0 Run-time dependency fdisk found: NO (tried pkgconfig and cmake) Run-time dependency pwquality found: NO (tried pkgconfig and cmake) Run-time dependency passwdqc 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) Run-time dependency libacl found: NO (tried pkgconfig and cmake) Run-time dependency audit found: NO (tried pkgconfig and cmake) Run-time dependency blkid found: YES 2.40.0 Checking for function "blkid_probe_set_hint" with dependency blkid: YES Run-time dependency libkmod found: NO (tried pkgconfig and cmake) Run-time dependency xencontrol found: NO (tried pkgconfig and cmake) Run-time dependency pam found: NO (tried pkgconfig and cmake) Library pam found: NO Run-time dependency pam_misc found: NO (tried pkgconfig and cmake) Library pam_misc found: NO 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: NO (tried pkgconfig and cmake) 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: NO (tried pkgconfig and cmake) Run-time dependency libqrencode found: NO (tried pkgconfig and cmake) libgcrypt-config found: NO Run-time dependency libgcrypt found: NO (tried pkgconfig and config-tool) Run-time dependency gpg-error found: NO (tried pkgconfig and cmake) Library gpg-error found: NO Run-time dependency gnutls found: NO (tried pkgconfig and cmake) Run-time dependency openssl found: YES 3.2.1 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 tss2-tcti-device found: NO (tried pkgconfig and cmake) Run-time dependency libdw found: NO (tried pkgconfig and cmake) Run-time dependency zlib found: YES 1.3.1 Run-time dependency bzip2 found: YES 1.0.8 Run-time dependency liblzma found: YES 5.4.3 Run-time dependency liblz4 found: YES 1.9.4 Run-time dependency libzstd found: YES 1.5.5 Run-time dependency xkbcommon found: NO (tried pkgconfig and cmake) Run-time dependency libpcre2-8 found: NO (tried pkgconfig and cmake) 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) Program python3 (jinja2) found: NO ../src/v255-948a7f2e81.clean/meson.build:1661:15: ERROR: python3 is missing modules: jinja2 A full log can be found at /home/tekinas/Documents/vcpkg/buildtrees/libsystemd/x64-linux-rel/meson-logs/meson-log.txt WARNING: Running the setup command as `meson [options]` instead of `meson setup [options]` is ambiguous and deprecated. ```
pplxlee commented 7 months ago

Similar to #37279 Reference this comment

dg0yt commented 6 months ago

This also fails using the arm64 triplet, despite having python3-jinja2 installed - it does not fail on x64 if that package is installed

But it fails for a different reason, so don't put it into this issue.

github-actions[bot] commented 5 months ago

This is an automated message. Per our repo policy, stale issues get closed if there has been no activity in the past 28 days. The issue will be automatically closed in 14 days. If you wish to keep this issue open, please add a new comment.