Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Device or resource busy when calling vcpkg install for manifest mode one by one #22129

Closed
waruqi opened this issue Dec 21, 2021 · 2 comments
Closed

Comments

@waruqi
Copy link

waruqi commented Dec 21, 2021

Describe the bug
I am making xmake to support vcpkg manifest mode. but it will report errors when it is calling vcpkg install multiple packages. xmake-io/xmake#1928

I have made sure to call the vcpkg install command serially and install the packages one by one. There should be no parallel vcpkg tasks running at the same time to access the file lock.

Environment

  • OS: Linux
  • Compiler: revision

To Reproduce

Install xmake and vcpkg first

$ bash <(curl -fsSL https://xmake.io/shget.text)

Update to dev version

$ xmake update dev

Write a xmake.lua file in am empty directory

add_requires("vcpkg::fmt >=8.0.1", {configs = {baseline = "50fd3d9957195575849a49fa591e645f1d8e7156"}})
add_requires("vcpkg::libpng", {configs = {features = {"apng"}}})

target("test")
    set_kind("binary")
    add_files("src/*.cpp")
    add_packages("vcpkg::fmt", "vcpkg::libpng")
$ xmake f -cvD --vcpkg=/mnt/vcpkg/
checking for platform ... linux
checking for architecture ... x86_64
checking for gcc ... /usr/bin/gcc
checkinfo: cannot runv(dmd --version), No such file or directory
checking for dmd ... no
checkinfo: cannot runv(ldc2 --version), No such file or directory
checking for ldc2 ... no
checkinfo: cannot runv(gdc --version), No such file or directory
checking for gdc ... no
checkinfo: cannot runv(zig version), No such file or directory
checking for zig ... no
checkinfo: cannot runv(zig version), No such file or directory
checking for zig ... no
checking for unzip ... /usr/bin/unzip
checking for git ... /usr/bin/git
checking for gzip ... /usr/bin/gzip
checking for tar ... /usr/bin/tar
finding fmt from vcpkg ..
checking for vcpkg::fmt ... no
finding libpng from vcpkg ..
checking for vcpkg::libpng ... no
note: install or modify (m) these packages (pass -y to skip confirm)?
in vcpkg:
  -> vcpkg::fmt >=8.0.1 [baseline:"50fd3d9957195575849a49fa591e645f1d8e7156"]
  -> vcpkg::libpng latest [features:{"apng"}]
please input: y (y/n/m)

installing fmt from vcpkg ..
checking for vcpkg ... /mnt/vcpkg/vcpkg
/mnt/xmake/tests/projects/package/vcpkg_manifest/build/.packages/v/vcpkg_fmt/8.0.1/4e75455816144079b5b3bad971e3c27e/vcpkg.json
{ 
  name = "stub",
  version = "1.0",
  dependencies = { 
    { 
      name = "fmt",
      platform = "linux & x64",
      "version>=" = "8.0.1",
      "default-features" = true 
    } 
  },
  "builtin-baseline" = "50fd3d9957195575849a49fa591e645f1d8e7156" 
}

/mnt/vcpkg/vcpkg --feature-flags=\"versions\" install --triplet x64-linux --debug
[DEBUG] Feature flag 'binarycaching' unset
[DEBUG] Feature flag 'manifests' unset
[DEBUG] Feature flag 'compilertracking' unset
[DEBUG] Feature flag 'registries' unset
[DEBUG] Feature flag 'versions' unset
[DEBUG] Using vcpkg-root: /mnt/vcpkg
[DEBUG] Failed to open: /mnt/vcpkg/vcpkg-bundle.json
[DEBUG] Bundle config: readonly=0, usegitregistry=0, embeddedsha=nullopt
[DEBUG] Using manifest-root: /mnt/xmake/tests/projects/package/vcpkg_manifest/build/.packages/v/vcpkg_fmt/8.0.1/4e75455816144079b5b3bad971e3c27e
[DEBUG] Using scripts-root: /mnt/vcpkg/scripts
[DEBUG] Using downloads-root: /mnt/vcpkg/downloads
[DEBUG] Using scripts-root: /mnt/vcpkg/scripts
[DEBUG] Using builtin-ports: /mnt/vcpkg/ports
[DEBUG] Using builtin-registry: /mnt/vcpkg/versions
[DEBUG] Using installed-root: /mnt/xmake/tests/projects/package/vcpkg_manifest/build/.packages/v/vcpkg_fmt/8.0.1/4e75455816144079b5b3bad971e3c27e/vcpkg_installed
[DEBUG] Using packages-root: /mnt/vcpkg/packages
[DEBUG] Using buildtrees-root: /mnt/vcpkg/buildtrees
[DEBUG] Default binary cache path is: /home/ruki/.cache/vcpkg/archives
[DEBUG] Using overlay: /mnt/xmake/tests/projects/package/vcpkg_manifest/build/.packages/v/vcpkg_fmt/8.0.1/4e75455816144079b5b3bad971e3c27e
[DEBUG] Found path: /usr/bin/cmake
[DEBUG] Found path: /bin/cmake
[DEBUG] popen(/mnt/vcpkg/downloads/tools/cmake-3.21.1-linux/cmake-3.21.1-linux-x86_64/bin/cmake --version 2>&1)
[DEBUG] cmd_execute_and_stream_data() returned 0 after   124286 us
[DEBUG] popen(/mnt/vcpkg/downloads/tools/cmake-3.21.1-linux/cmake-3.21.1-linux-x86_64/bin/cmake -DVCPKG_ROOT_DIR=/mnt/vcpkg -DPACKAGES_DIR=/mnt/vcpkg/packages -DBUILDTREES_DIR=/mnt/vcpkg/buildtrees -D_VCPKG_INSTALLED_DIR=/mnt/xmake/tests/projects/package/vcpkg_manifest/build/.packages/v/vcpkg_fmt/8.0.1/4e75455816144079b5b3bad971e3c27e/vcpkg_installed -DDOWNLOADS=/mnt/vcpkg/downloads -DVCPKG_MANIFEST_INSTALL=OFF -P /mnt/vcpkg/buildtrees/0.vcpkg_dep_info.cmake 2>&1)
[DEBUG] cmd_execute_and_stream_data() returned 0 after    10803 us
[DEBUG] Using overlay: /mnt/xmake/tests/projects/package/vcpkg_manifest/build/.packages/v/vcpkg_fmt/8.0.1/4e75455816144079b5b3bad971e3c27e
[DEBUG] popen(/mnt/vcpkg/downloads/tools/cmake-3.21.1-linux/cmake-3.21.1-linux-x86_64/bin/cmake -DVCPKG_ROOT_DIR=/mnt/vcpkg -DPACKAGES_DIR=/mnt/vcpkg/packages -DBUILDTREES_DIR=/mnt/vcpkg/buildtrees -D_VCPKG_INSTALLED_DIR=/mnt/xmake/tests/projects/package/vcpkg_manifest/build/.packages/v/vcpkg_fmt/8.0.1/4e75455816144079b5b3bad971e3c27e/vcpkg_installed -DDOWNLOADS=/mnt/vcpkg/downloads -DVCPKG_MANIFEST_INSTALL=OFF -P /mnt/vcpkg/buildtrees/0.vcpkg_tags.cmake 2>&1)
[DEBUG] cmd_execute_and_stream_data() returned 0 after    12990 us
Detecting compiler hash for triplet x64-linux...
[DEBUG] popen(/mnt/vcpkg/downloads/tools/ninja-1.10.2-linux/ninja --version 2>&1)
[DEBUG] cmd_execute_and_stream_data() returned 0 after    10948 us
[DEBUG] Found path: /usr/bin/git
[DEBUG] Found path: /bin/git
[DEBUG] popen(/usr/bin/git --version 2>&1)
[DEBUG] cmd_execute_and_stream_data() returned 0 after     3797 us
[DEBUG] popen(/mnt/vcpkg/downloads/tools/cmake-3.21.1-linux/cmake-3.21.1-linux-x86_64/bin/cmake -DCURRENT_PORT_DIR=/mnt/vcpkg/scripts/detect_compiler -DCURRENT_BUILDTREES_DIR=/mnt/vcpkg/buildtrees/detect_compiler -DCURRENT_PACKAGES_DIR=/mnt/vcpkg/packages/detect_compiler_x64-linux -D_HOST_TRIPLET=x64-linux -DCMD=BUILD -DDOWNLOADS=/mnt/vcpkg/downloads -DTARGET_TRIPLET=x64-linux -DTARGET_TRIPLET_FILE=/mnt/vcpkg/triplets/x64-linux.cmake -DVCPKG_BASE_VERSION=2021-12-09 -DVCPKG_CONCURRENCY=5 -DVCPKG_PLATFORM_TOOLSET=external -DGIT=/usr/bin/git -DVCPKG_ROOT_DIR=/mnt/vcpkg -DPACKAGES_DIR=/mnt/vcpkg/packages -DBUILDTREES_DIR=/mnt/vcpkg/buildtrees -D_VCPKG_INSTALLED_DIR=/mnt/xmake/tests/projects/package/vcpkg_manifest/build/.packages/v/vcpkg_fmt/8.0.1/4e75455816144079b5b3bad971e3c27e/vcpkg_installed -DDOWNLOADS=/mnt/vcpkg/downloads -DVCPKG_MANIFEST_INSTALL=OFF -P /mnt/vcpkg/scripts/ports.cmake 2>&1)
[DEBUG] -- Configuring x64-linux-rel
[DEBUG] -- The C compiler identification is GNU 10.3.0
[DEBUG] -- Detecting C compiler ABI info
[DEBUG] -- Detecting C compiler ABI info - done
[DEBUG] -- Check for working C compiler: /usr/bin/cc - skipped
[DEBUG] -- Detecting C compile features
[DEBUG] -- Detecting C compile features - done
[DEBUG] -- The CXX compiler identification is GNU 10.3.0
[DEBUG] -- Detecting CXX compiler ABI info
[DEBUG] -- Detecting CXX compiler ABI info - done
[DEBUG] -- Check for working CXX compiler: /usr/bin/c++ - skipped
[DEBUG] -- Detecting CXX compile features
[DEBUG] -- Detecting CXX compile features - done
[DEBUG] -- Configuring done
[DEBUG] -- Generating done
[DEBUG] -- Build files have been written to: /mnt/vcpkg/buildtrees/detect_compiler/x64-linux-rel
[DEBUG] 
[DEBUG] #COMPILER_HASH#27f5e0517eb59f2b0873770df1ad461b3ae28bc1
[DEBUG] #COMPILER_C_HASH#3cdd1a32fea66c42d924af65c4adc1fb103d2e73
[DEBUG] #COMPILER_C_VERSION#10.3.0
[DEBUG] #COMPILER_C_ID#GNU
[DEBUG] #COMPILER_CXX_HASH#f3f4ceb75661d9605c7f648b9d36cde53342ac42
[DEBUG] #COMPILER_CXX_VERSION#10.3.0
[DEBUG] #COMPILER_CXX_ID#GNU
[DEBUG] CMake Warning:
[DEBUG]   Manually-specified variables were not used by the project:
[DEBUG] 
[DEBUG]     BUILD_SHARED_LIBS
[DEBUG]     CMAKE_INSTALL_BINDIR
[DEBUG]     CMAKE_INSTALL_LIBDIR
[DEBUG]     VCPKG_PLATFORM_TOOLSET
[DEBUG]     VCPKG_SET_CHARSET_FLAG
[DEBUG]     _VCPKG_ROOT_DIR
[DEBUG] 
[DEBUG] 
[DEBUG] 
[DEBUG] cmd_execute_and_stream_data() returned 0 after  3408526 us
[DEBUG] 
[DEBUG] Detected compiler hash for triplet x64-linux: 27f5e0517eb59f2b0873770df1ad461b3ae28bc1
[DEBUG] <abientries for vcpkg-cmake-config:x64-linux>
[DEBUG]   README.md|642293416a81ce3b147c41199cc609108715cfb0ee4d93a67e9c2c83c83d4d92
[DEBUG]   cmake|3.21.1
[DEBUG]   copyright|04b60f99a43bfd7fefdc8364b24aac704a2160cef969b75ba6a38b62dc4c4b70
[DEBUG]   features|core
[DEBUG]   portfile.cmake|832b34e63f5af41ad1b2e4aa79c5bfa507a005b120b51548e674accc706837d7
[DEBUG]   ports.cmake|30a2833518026e7bb744dfae1f9648a87a6564083ed1c5f57d50440edf5847d0
[DEBUG]   post_build_checks|2
[DEBUG]   triplet|x64-linux
[DEBUG]   triplet_abi|3600011444071beb27b81ff82b3c866e3d4054636e3011609deb313d2baf57fd-dbf0dd3cf61bd48347b4c28cd439488aeb7a6f756ba96cca5889a45c1972b236-27f5e0517eb59f2b0873770df1ad461b3ae28bc1
[DEBUG]   vcpkg-port-config.cmake|72bc3093337e633bdd19fe5d4dd1f38ca1918def49608d676a9c98c686d38b1e
[DEBUG]   vcpkg.json|dcf996326514283a596c1048e742443cd9655a23eb53945a6c853dc0973b8d6a
[DEBUG]   vcpkg_cmake_config_fixup.cmake|56129e8403bab4727f65165fe49aad8fa3449c578d70c1f24f3e56b2e496cad8
[DEBUG] </abientries>
[DEBUG] <abientries for vcpkg-cmake:x64-linux>
[DEBUG]   CMakeLists.txt|49bd71c75e8c1d39cc2bc9fc8b3a8ff944dd3e07a0fa5367ab3401cb47e08b00
[DEBUG]   README.md|e90597d1405be0b5f07fb39999c25d9c9ea142048fe4c619288b7e8d6109913c
[DEBUG]   cmake|3.21.1
[DEBUG]   copyright|04b60f99a43bfd7fefdc8364b24aac704a2160cef969b75ba6a38b62dc4c4b70
[DEBUG]   features|core
[DEBUG]   portfile.cmake|7f0148ad0234acde8f1868bca9f8675c666cf68a092c737b021b64cf8ac05fed
[DEBUG]   ports.cmake|30a2833518026e7bb744dfae1f9648a87a6564083ed1c5f57d50440edf5847d0
[DEBUG]   post_build_checks|2
[DEBUG]   triplet|x64-linux
[DEBUG]   triplet_abi|3600011444071beb27b81ff82b3c866e3d4054636e3011609deb313d2baf57fd-dbf0dd3cf61bd48347b4c28cd439488aeb7a6f756ba96cca5889a45c1972b236-27f5e0517eb59f2b0873770df1ad461b3ae28bc1
[DEBUG]   vcpkg-port-config.cmake|5807082909eeae42aaf5cd2e8b416abdbe644b7aa40e74f4cadf7bec175b33fd
[DEBUG]   vcpkg.json|c40b24321c2a8f246d8026eb246f08d33beb86d0ad834cf4598ee393df010524
[DEBUG]   vcpkg_cmake_build.cmake|b5621680830cc9c461d5a5907400cd0312f59802e9fb1aa2f58f7712196696c8
[DEBUG]   vcpkg_cmake_configure.cmake|4b59f4723626ba6d66ad0496521823a6a47b83b97f216413f9259bb4a6b5cc44
[DEBUG]   vcpkg_cmake_get_vars.cmake|995b1d98b989552e7f4cdff2018a71e8e0cbf839aa5c64a809b993d637d6f4de
[DEBUG]   vcpkg_cmake_install.cmake|ddedef5134cc712537c76441cfa2932223a33ffbc2cff60cb8cc101dfd718518
[DEBUG] </abientries>
[DEBUG] <abientries for fmt:x64-linux>
[DEBUG]   cmake|3.21.1
[DEBUG]   features|core
[DEBUG]   fix-write-batch.patch|d71ed7679da338ca7cc25fb1f7e8af51f15c43dfde26dde2a5904927fe9e7994
[DEBUG]   portfile.cmake|d050ec74901c1a13292f413be0062475d6149fc1ea5c8028966e6febde814d71
[DEBUG]   ports.cmake|30a2833518026e7bb744dfae1f9648a87a6564083ed1c5f57d50440edf5847d0
[DEBUG]   post_build_checks|2
[DEBUG]   triplet|x64-linux
[DEBUG]   triplet_abi|3600011444071beb27b81ff82b3c866e3d4054636e3011609deb313d2baf57fd-dbf0dd3cf61bd48347b4c28cd439488aeb7a6f756ba96cca5889a45c1972b236-27f5e0517eb59f2b0873770df1ad461b3ae28bc1
[DEBUG]   usage|ece096518c58df58cfc60f5ad8120d248a86383482455f539d91b8ca6eac14a7
[DEBUG]   vcpkg-cmake|10b6c33a06318fb84cdadbcf5a3f84412032dc301e3a587818227e3d315ff269
[DEBUG]   vcpkg-cmake-config|6095b143f2d130b87f78b35945ddeb63b8d953be481d56982f64d8759fbc885d
[DEBUG]   vcpkg.json|6df76d8e791c19189d81230f50d681fa645fd2dc332adc644b06b694b6a6f459
[DEBUG]   vcpkg_copy_pdbs|59e4c0d2321697848a899ba9537394cdee81725b11965c6d1341df53a6850380
[DEBUG]   vcpkg_fixup_pkgconfig|ff54f8b06c83b54a1af5e35286a6c36ea9e69376bed1d11b5521c254987c123f
[DEBUG]   vcpkg_from_git|05d446731ca8f6cefe0e4dc04c17776e54b39d4f2bfeeec7952ced1cfe8bf89f
[DEBUG]   vcpkg_from_github|1929b9ee1417dbf59f8a25ac321ef9ca792b6d67aee38bda69ee3700ea256b73
[DEBUG]   vcpkg_replace_string|8b6e11739e0572c70057e7c655f6304f83d13843a8ce89ad8e1847444be01fea
[DEBUG] </abientries>
The following packages will be built and installed:
    fmt[core]:x64-linux -> 8.0.1 -- /mnt/vcpkg/buildtrees/versioning_/versions/fmt/105214e3085a1404bca0fa89e7d80aa016e8cacb
  * vcpkg-cmake[core]:x64-linux -> 2021-12-05 -- /mnt/vcpkg/buildtrees/versioning_/versions/vcpkg-cmake/462dd9ada82163b8c104cef8c2ad5b5c0bfa5eb8
  * vcpkg-cmake-config[core]:x64-linux -> 2021-12-01 -- /mnt/vcpkg/buildtrees/versioning_/versions/vcpkg-cmake-config/51df1bbddb22782b9e7f23f9b3588674184e991a
Additional packages (*) will be modified to complete this operation.
[DEBUG] popen(unzip -qq /home/ruki/.cache/vcpkg/archives/10/10b6c33a06318fb84cdadbcf5a3f84412032dc301e3a587818227e3d315ff269.zip -d/mnt/vcpkg/packages/vcpkg-cmake_x64-linux 2>&1)
[DEBUG] popen(unzip -qq /home/ruki/.cache/vcpkg/archives/60/6095b143f2d130b87f78b35945ddeb63b8d953be481d56982f64d8759fbc885d.zip -d/mnt/vcpkg/packages/vcpkg-cmake-config_x64-linux 2>&1)
[DEBUG] popen(unzip -qq /home/ruki/.cache/vcpkg/archives/73/733963d65fe0af2b1285a26a13eeaa695b29edd8e35e9387bd3e7d233340eb3f.zip -d/mnt/vcpkg/packages/fmt_x64-linux 2>&1)
[DEBUG] cmd_execute_and_stream_data() returned 0 after   125800 us
[DEBUG] cmd_execute_and_stream_data() returned 0 after   188666 us
[DEBUG] cmd_execute_and_stream_data() returned 0 after   396696 us
[DEBUG] Restored /home/ruki/.cache/vcpkg/archives/60/6095b143f2d130b87f78b35945ddeb63b8d953be481d56982f64d8759fbc885d.zip
[DEBUG] Restored /home/ruki/.cache/vcpkg/archives/10/10b6c33a06318fb84cdadbcf5a3f84412032dc301e3a587818227e3d315ff269.zip
[DEBUG] Restored /home/ruki/.cache/vcpkg/archives/73/733963d65fe0af2b1285a26a13eeaa695b29edd8e35e9387bd3e7d233340eb3f.zip
Restored 3 packages from /home/ruki/.cache/vcpkg/archives in 445.9 ms. Use --debug to see more details.
Starting package 1/3: vcpkg-cmake-config:x64-linux
Installing package vcpkg-cmake-config[core]:x64-linux...
Elapsed time for package vcpkg-cmake-config:x64-linux: 59.55 ms
Starting package 2/3: vcpkg-cmake:x64-linux
Installing package vcpkg-cmake[core]:x64-linux...
Elapsed time for package vcpkg-cmake:x64-linux: 85.42 ms
Starting package 3/3: fmt:x64-linux
Installing package fmt[core]:x64-linux...
Elapsed time for package fmt:x64-linux: 249.4 ms

Total elapsed time: 4.739 s

The package fmt provides CMake targets:

    find_package(fmt CONFIG REQUIRED)
    target_link_libraries(main PRIVATE fmt::fmt)

    # Or use the header-only version
    find_package(fmt CONFIG REQUIRED)
    target_link_libraries(main PRIVATE fmt::fmt-header-only)

[DEBUG] /mnt/vss/_work/1/s/src/vcpkg/commands.setinstalled.cpp(140)
[DEBUG] Time in subprocesses: 4283839 us
[DEBUG] Time in parsing JSON: 19311 us
[DEBUG] Time in JSON reader: 1503 us
[DEBUG] Time in filesystem: 107045 us
[DEBUG] Time in loading ports: 30204 us
[DEBUG] Exiting after 4.742 s (4740058 us)
finding fmt from vcpkg ..
checking for vcpkg::fmt ... fmt 8.0.1
{ 
  linkdirs = { 
    "/mnt/xmake/tests/projects/package/vcpkg_manifest/build/.packages/v/vcpkg_fmt/8.0.1/4e75455816144079b5b3bad971e3c27e/vcpkg_installed/x64-linux/lib" 
  },
  libfiles = { 
    "/mnt/xmake/tests/projects/package/vcpkg_manifest/build/.packages/v/vcpkg_fmt/8.0.1/4e75455816144079b5b3bad971e3c27e/vcpkg_installed/x64-linux/lib/libfmt.a" 
  },
  version = "8.0.1",
  sysincludedirs = { 
    "/mnt/xmake/tests/projects/package/vcpkg_manifest/build/.packages/v/vcpkg_fmt/8.0.1/4e75455816144079b5b3bad971e3c27e/vcpkg_installed/x64-linux/include" 
  },
  links = { 
    "fmt" 
  } 
}

  => install vcpkg::fmt >=8.0.1 .. ok
installing libpng from vcpkg ..
/mnt/xmake/tests/projects/package/vcpkg_manifest/build/.packages/v/vcpkg_libpng/latest/833346475ce2407998a695480900ecf1/vcpkg.json
{ 
  name = "stub",
  version = "1.0",
  dependencies = { 
    { 
      name = "libpng",
      platform = "linux & x64",
      features = { 
        "apng" 
      },
      "default-features" = true 
    } 
  },
  "builtin-baseline" = "44d94c2edbd44f0c01d66c2ad95eb6982a9a61bc" 
}

/mnt/vcpkg/vcpkg --feature-flags=\"versions\" install --triplet x64-linux --debug
[DEBUG] Feature flag 'binarycaching' unset
[DEBUG] Feature flag 'manifests' unset
[DEBUG] Feature flag 'compilertracking' unset
[DEBUG] Feature flag 'registries' unset
[DEBUG] Feature flag 'versions' unset
[DEBUG] Using vcpkg-root: /mnt/vcpkg
[DEBUG] Failed to open: /mnt/vcpkg/vcpkg-bundle.json
[DEBUG] Bundle config: readonly=0, usegitregistry=0, embeddedsha=nullopt
[DEBUG] Using manifest-root: /mnt/xmake/tests/projects/package/vcpkg_manifest/build/.packages/v/vcpkg_libpng/latest/833346475ce2407998a695480900ecf1
[DEBUG] Waiting to take filesystem lock on /mnt/vcpkg/.vcpkg-root...
Failed to take the filesystem lock on /mnt/vcpkg/.vcpkg-root:
    Device or resource busy
[DEBUG] /mnt/vss/_work/1/s/src/vcpkg/vcpkgpaths.cpp(522)
[DEBUG] Time in subprocesses: 3852 us
[DEBUG] Time in parsing JSON: 0 us
[DEBUG] Time in JSON reader: 0 us
[DEBUG] Time in filesystem: 950 us
[DEBUG] Time in loading ports: 0 us
[DEBUG] Exiting after 1.52 s (1514965 us)
error: @programdir/core/sandbox/modules/os.lua:393: execv(/mnt/vcpkg/vcpkg --feature-flags=\"versions\" install --triplet x64-linux --debug) failed(1)

Expected behavior

Install all packages normally

Failure logs
-(please attached failure logs)

Additional context
Add any other context about the problem here.

@autoantwort
Copy link
Contributor

You should call vcpkg with --x-wait-for-lock

@waruqi
Copy link
Author

waruqi commented Dec 21, 2021

--x-wait-for-lock

oh, it works, thanks!

@waruqi waruqi closed this as completed Dec 21, 2021
sir-gon pushed a commit to sir-gon/algorithm-exercises-cpp that referenced this issue Sep 11, 2024
…: error: Failed to take the filesystem lock

    Device or resource busy

microsoft/vcpkg#22129 (comment)
sir-gon pushed a commit to sir-gon/algorithm-exercises-cpp that referenced this issue Sep 11, 2024
…: error: Failed to take the filesystem lock

    Device or resource busy

microsoft/vcpkg#22129 (comment)
sir-gon pushed a commit to sir-gon/algorithm-exercises-cpp that referenced this issue Sep 11, 2024
…: error: Failed to take the filesystem lock

    Device or resource busy

microsoft/vcpkg#22129 (comment)
sir-gon pushed a commit to sir-gon/algorithm-exercises-cpp that referenced this issue Sep 11, 2024
…: error: Failed to take the filesystem lock

    Device or resource busy

microsoft/vcpkg#22129 (comment)
sir-gon pushed a commit to sir-gon/algorithm-exercises-cpp that referenced this issue Sep 11, 2024
sir-gon pushed a commit to sir-gon/algorithm-exercises-cpp that referenced this issue Sep 16, 2024
…: error: Failed to take the filesystem lock

    Device or resource busy

microsoft/vcpkg#22129 (comment)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants