Skip to content

vcpkg_find_acquire_program does not respect VCPKG_FORCE_SYSTEM_BINARIES for shared dependencies like Ninja #21482

@chao-sun01io

Description

@chao-sun01io

Host Environment

  • OS: Ubuntu on Jetson Nx (arm-linux)
  • Compiler: g++7

To Reproduce
I tried to install qt5-base with manifest file vcpkg.json on arm-linux platform (Nvidia Jetson Nx),but failed to install harfbuzz (I think it is a dep of qt5?)

Steps to reproduce the behavior:
./vcpkg install harfbuzz

Failure logs

[cmake] Building package harfbuzz[core]:arm64-linux...
[cmake] -- Using community triplet arm64-linux. This triplet configuration is not guaranteed to succeed.
[cmake] -- [COMMUNITY] Loading triplet configuration from: /home/user1/vcpkg/triplets/community/arm64-linux.cmake
[cmake] -- Using cached harfbuzz-harfbuzz-3.0.0.tar.gz.
[cmake] -- Cleaning sources at /home/user1/vcpkg/buildtrees/harfbuzz/src/3.0.0-685ae48a4e.clean. Use --editable to skip cleaning for the packages you specify.
[cmake] -- Extracting source /home/user1/vcpkg/downloads/harfbuzz-harfbuzz-3.0.0.tar.gz
[cmake] -- Applying patch 0001-circumvent-samefile-error.patch
[cmake] -- Applying patch 0002-fix-uwp-build.patch
[cmake] -- Using source at /home/user1/vcpkg/buildtrees/harfbuzz/src/3.0.0-685ae48a4e.clean
[cmake] -- Getting CMake variables for arm64-linux-dbg
[cmake] -- Getting CMake variables for arm64-linux-rel
[cmake] -- Configuring arm64-linux-dbg
[cmake] CMake Error at scripts/cmake/vcpkg_execute_required_process.cmake:127 (message):
[cmake]     Command failed: /usr/bin/python3 /home/user1/vcpkg/downloads/tools/meson/meson-aeda7f249c4a5dbbecc52e44f382246a2377b5b0/meson.py -Dicu=disabled -Dgraphite=disabled -Dcoretext=disabled -Dglib=disabled -Dgobject=disabled -Dfreetype=enabled -Dcairo=disabled -Dintrospection=disabled -Ddocs=disabled -Dtests=disabled -Dbenchmark=disabled --buildtype plain --backend ninja --wrap-mode nodownload --native /home/user1/vcpkg/buildtrees/harfbuzz/meson-native-arm64-linux.log --default-library static --libdir lib --native /home/user1/vcpkg/buildtrees/harfbuzz/meson-native-arm64-linux-debug.log -Ddebug=true --prefix /home/user1/vcpkg/packages/harfbuzz_arm64-linux/debug --includedir ../include -Dcmake_prefix_path=['/home/user1/aidi_vision_v2/out/build/Nx-arm-gcc-Debug/vcpkg_installed/arm64-linux/debug','/home/user1/aidi_vision_v2/out/build/Nx-arm-gcc-Debug/vcpkg_installed/arm64-linux'] /home/user1/vcpkg/buildtrees/harfbuzz/src/3.0.0-685ae48a4e.clean
[cmake]     Working Directory: /home/user1/vcpkg/buildtrees/harfbuzz/arm64-linux-dbg
[cmake]     Error code: 2
[cmake]     See logs for more information:
[cmake]       /home/user1/vcpkg/buildtrees/harfbuzz/config-arm64-linux-dbg-out.log
[cmake]       /home/user1/vcpkg/buildtrees/harfbuzz/config-arm64-linux-dbg-err.log
[cmake] 
[cmake] Call Stack (most recent call first):
[cmake]   scripts/cmake/vcpkg_configure_meson.cmake:512 (vcpkg_execute_required_process)
[cmake]   ports/harfbuzz/portfile.cmake:48 (vcpkg_configure_meson)
[cmake]   scripts/ports.cmake:142 (include)

[cmake] Error: Building package harfbuzz:arm64-linux failed with: BUILD_FAILED
[cmake] Please ensure you're using the latest portfiles with `git pull` and `./vcpkg update`, then
[cmake] submit an issue at https://github.com/Microsoft/vcpkg/issues including:
[cmake]   package: harfbuzz[core]:arm64-linux -> 3.0.0
[cmake]   vcpkg version: 2021-11-02-unknownhash
[cmake]   vcpkg-tool version: a4b5cde7f 2021-11-16 (42 minutes ago)

/home/user1/vcpkg/buildtrees/harfbuzz/config-arm64-linux-dbg-err.log

Traceback (most recent call last):
  File "/home/user1/vcpkg/downloads/tools/meson/meson-aeda7f249c4a5dbbecc52e44f382246a2377b5b0/mesonbuild/mesonmain.py", line 134, in run
    return options.run_func(options)
  File "/home/user1/vcpkg/downloads/tools/meson/meson-aeda7f249c4a5dbbecc52e44f382246a2377b5b0/mesonbuild/msetup.py", line 281, in run
    app.generate()
  File "/home/user1/vcpkg/downloads/tools/meson/meson-aeda7f249c4a5dbbecc52e44f382246a2377b5b0/mesonbuild/msetup.py", line 184, in generate
    self._generate(env)
  File "/home/user1/vcpkg/downloads/tools/meson/meson-aeda7f249c4a5dbbecc52e44f382246a2377b5b0/mesonbuild/msetup.py", line 246, in _generate
    intr.backend.generate()
  File "/home/user1/vcpkg/downloads/tools/meson/meson-aeda7f249c4a5dbbecc52e44f382246a2377b5b0/mesonbuild/backend/ninjabackend.py", line 509, in generate
    ninja = environment.detect_ninja_command_and_version(log=True)
  File "/home/user1/vcpkg/downloads/tools/meson/meson-aeda7f249c4a5dbbecc52e44f382246a2377b5b0/mesonbuild/environment.py", line 220, in detect_ninja_command_and_version
    p, found = Popen_safe(prog.command + ['--version'])[0:2]
  File "/home/user1/vcpkg/downloads/tools/meson/meson-aeda7f249c4a5dbbecc52e44f382246a2377b5b0/mesonbuild/mesonlib/universal.py", line 1330, in Popen_safe
    stdout=stdout, stderr=stderr, **kwargs)
  File "/usr/lib/python3.6/subprocess.py", line 729, in __init__
    restore_signals, start_new_session)
  File "/usr/lib/python3.6/subprocess.py", line 1364, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
OSError: [Errno 8] Exec format error: '/home/user1/vcpkg/downloads/tools/ninja/1.10.2-linux/ninja'

Metadata

Metadata

Assignees

Labels

Stalecategory:community-tripletA PR or issue related to community triplets not officially validated by the vcpkg team.category:vcpkg-featureThe issue is a new capability of the tool that doesn’t already exist and we haven’t committed

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions