microsoft / vcpkg

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

[libsystemd] Build error on arm64-linux #39701

Open Kiryuumaru opened 6 days ago

Kiryuumaru commented 6 days ago

Package: libsystemd:arm64-linux@255#2

Host Environment

To Reproduce

vcpkg install

Failure logs

-- Found Python version '3.10.12 at /usr/bin/python3'
-- Using meson: /home/k8s-master/vianactl/out/build/linux-arm64-release/vcpkg_downloads/tools/meson-1.3.2-6f83ac/meson.py
-- Using cached systemd-systemd-v255.tar.gz.
-- Cleaning sources at /home/k8s-master/vianactl/out/build/linux-arm64-release/vcpkg_buildtrees/libsystemd/src/v255-948a7f2e81.clean. Use --editable to skip cleaning for the packages you specify.
-- Extracting source /home/k8s-master/vianactl/out/build/linux-arm64-release/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/k8s-master/vianactl/out/build/linux-arm64-release/vcpkg_buildtrees/libsystemd/src/v255-948a7f2e81.clean
-- Configuring arm64-linux-dbg
-- Getting CMake variables for arm64-linux-dbg
-- Getting CMake variables for arm64-linux-rel
CMake Error at scripts/cmake/vcpkg_execute_required_process.cmake:112 (message):
    Command failed: /usr/bin/python3 -I /home/k8s-master/vianactl/out/build/linux-arm64-release/vcpkg_downloads/tools/meson-1.3.2-6f83ac/meson.py setup -Dmode=release -Dstatic-libsystemd=pic -Dtests=false -Ddns-over-tls=false -Dtranslations=false -Dacl=disabled -Dapparmor=disabled -Daudit=disabled -Dblkid=disabled -Dbpf-framework=disabled -Dbzip2=disabled -Ddbus=disabled -Delfutils=disabled -Dfdisk=disabled -Dgcrypt=disabled -Dglib=disabled -Dgnutls=disabled -Dkmod=disabled -Dlibcurl=disabled -Dlibcryptsetup=disabled -Dlibfido2=disabled -Dlibidn=disabled -Dlibidn2=disabled -Dlibiptc=disabled -Dmicrohttpd=disabled -Dopenssl=disabled -Dp11kit=disabled -Dpam=disabled -Dpcre2=disabled -Dpolkit=disabled -Dpwquality=disabled -Dpasswdqc=disabled -Dseccomp=disabled -Dselinux=disabled -Dtpm2=disabled -Dxenctrl=disabled -Dxkbcommon=disabled -Dzlib=disabled -Dlz4=enabled -Dxz=enabled -Dzstd=enabled --backend ninja --wrap-mode nodownload -Doptimization=plain --native /home/k8s-master/vianactl/vcpkg/scripts/buildsystems/meson/none.txt --cross /home/k8s-master/vianactl/out/build/linux-arm64-release/vcpkg_buildtrees/libsystemd/meson-arm64-linux-dbg.log --libdir lib --pkgconfig.relocatable -Ddebug=true --prefix /home/k8s-master/vianactl/out/build/linux-arm64-release/vcpkg_packages/libsystemd_arm64-linux/debug --includedir ../include --pkg-config-path ['/home/k8s-master/vianactl/out/build/linux-arm64-release/vcpkg_installed/arm64-linux/debug/lib/pkgconfig','/home/k8s-master/vianactl/out/build/linux-arm64-release/vcpkg_installed/arm64-linux/share/pkgconfig'] -Dcmake_prefix_path=['/home/k8s-master/vianactl/out/build/linux-arm64-release/vcpkg_installed/arm64-linux/debug','/home/k8s-master/vianactl/out/build/linux-arm64-release/vcpkg_installed/arm64-linux'] /home/k8s-master/vianactl/out/build/linux-arm64-release/vcpkg_buildtrees/libsystemd/src/v255-948a7f2e81.clean
    Working Directory: /home/k8s-master/vianactl/out/build/linux-arm64-release/vcpkg_buildtrees/libsystemd/arm64-linux-dbg
    Error code: 1
    See logs for more information:
      /home/k8s-master/vianactl/out/build/linux-arm64-release/vcpkg_buildtrees/libsystemd/config-arm64-linux-dbg-meson-log.txt.log
      /home/k8s-master/vianactl/out/build/linux-arm64-release/vcpkg_buildtrees/libsystemd/config-arm64-linux-dbg-out.log

Call Stack (most recent call first):
  /home/k8s-master/vianactl/out/build/linux-arm64-release/vcpkg_installed/x64-linux/share/vcpkg-tool-meson/vcpkg_configure_meson.cmake:463 (vcpkg_execute_required_process)
  /home/k8s-master/vianactl/out/build/linux-arm64-release/vcpkg_buildtrees/versioning_/versions/libsystemd/4c173e2a6eaa6e20dae0122c0aee9ab9cfab82df/portfile.cmake:17 (vcpkg_configure_meson)
  scripts/ports.cmake:191 (include)

config-arm64-linux-dbg-out.log

config-arm64-linux-dbg-meson-log.txt.log

Additional context

vcpkg.json ``` { "name": "viana", "dependencies": [ "args", "spdlog", "fmt", "cpp-httplib", "openssl", "nlohmann-json", "yaml-cpp", "azure-iot-sdk-c", "boost-uuid", { "name": "websocketpp", "features": [ "recommended" ] }, { "name": "paho-mqttpp3", "features": [ "ssl" ] }, { "name": "opencv4", "features": [ "default-features", "ffmpeg" ] } ], "overrides": [ { "name": "args", "version": "6.4.6" }, { "name": "spdlog", "version": "1.12.0" }, { "name": "fmt", "version": "10.0.0" }, { "name": "cpp-httplib", "version": "0.13.3" }, { "name": "openssl", "version": "3.1.2", "port-version": 1 }, { "name": "nlohmann-json", "version": "3.11.2" }, { "name": "yaml-cpp", "version": "0.7.0", "port-version": 1 }, { "name": "azure-iot-sdk-c", "version": "2023-08-07" }, { "name": "boost-uuid", "version": "1.82.0", "port-version": 2 }, { "name": "websocketpp", "version": "0.8.2", "port-version": 2 }, { "name": "paho-mqttpp3", "version": "1.2.0", "port-version": 1 }, { "name": "opencv4", "version": "4.8.0", "port-version": 19 } ], "builtin-baseline": "f7423ee180c4b7f40d43402c2feb3859161ef625" } ```
dg0yt commented 6 days ago

ERROR: python3 is missing modules: jinja2

Please install the system package.

Kiryuumaru commented 6 days ago

Thank you for fast reply

I added jinja2 in my arm64 pipeline with sudo pip install jinja2, confirmed it builds successfully. The weird thing is that I build x64 without this pip package

dg0yt commented 6 days ago

I have no answer. Some python deps are ugly ATM, until someone writes a good script port which considers both asset caching and cross-platform builds. Or a script port to better document system dependencies.