xmake-io / xmake

🔥 A cross-platform build utility based on Lua
https://xmake.io
Apache License 2.0
10.14k stars 782 forks source link

Header-only libraries with multiple dependents are repeatedly installed #5558

Closed AidanSun05 closed 2 months ago

AidanSun05 commented 2 months ago

Xmake Version

v2.9.4+dev.2a2ee54fe

Operating System Version and Architecture

Windows 11 Pro 23H2 x64

Describe Bug

If a header-only library is required by both a target and another library that the target depends on, xmake recognizes the two required instances of the header-only library as separate, even if the configs are the same, and tries to install it twice. In the xmake.lua file below, ghc_filesystem is shared between test and glob as shown:

test (target) ==> ghc_filesystem (header-only lib)
test (target) ==> glob (lib) ==> ghc_filesystem (header-only lib)
add_rules("mode.debug", "mode.release")

add_requires("ghc_filesystem")
add_requires("glob", { configs = { ghc_filesystem = true } })

target("test")
    add_packages("ghc_filesystem", "glob")
    add_files("src/*.cpp")

The output of xmake f -p windows -a x64 -m debug -c is:

checking for Microsoft Visual Studio (x64) version ... 2022
checking for Microsoft C/C++ Compiler (x64) version ... 19.41.34120
note: install or modify (m) these packages (pass -y to skip confirm)?
in xmake-repo:
  -> ghc_filesystem v1.5.14
  -> ghc_filesystem#1 v1.5.14 [from:glob]
  -> glob 2024.04.18 [ghc_filesystem:y, runtimes:"MT"]
please input: y (y/n/m)

  => download https://github.com/gulrak/filesystem/archive/refs/tags/v1.5.14.tar.gz .. ok
  => download https://github.com/gulrak/filesystem/archive/refs/tags/v1.5.14.tar.gz .. ok
  => install ghc_filesystem v1.5.14 .. failed

cannot remove directory C:\Users\Aidan\AppData\Local\Temp\.xmake\240902.dir\ghc_filesystem\release Unknown Error (145)
if you want to get more verbose errors, please see:
  -> C:\Users\Aidan\AppData\Local\.xmake\cache\packages\2409\g\ghc_filesystem\v1.5.14\installdir.failed\logs\install.txt
  => install ghc_filesystem#1 v1.5.14 .. failed

cannot remove directory C:\Users\Aidan\AppData\Local\Temp\.xmake\240902.dir\ghc_filesystem\release Unknown Error (145)
if you want to get more verbose errors, please see:
  -> C:\Users\Aidan\AppData\Local\.xmake\cache\packages\2409\g\ghc_filesystem_1\v1.5.14\installdir.failed\logs\install.txt

Non-header-only libraries that are shared between a target and another library do not have this issue (they are installed only once).

Expected Behavior

xmake should only install one instance of ghc_filesystem and use that instance to satisfy both the requirements of test and glob. This is how xmake handles non-header-only libraries in this situation. The confirmation to install packages should resemble:

checking for Microsoft Visual Studio (x64) version ... 2022
checking for Microsoft C/C++ Compiler (x64) version ... 19.41.34120
note: install or modify (m) these packages (pass -y to skip confirm)?
in xmake-repo:
  -> ghc_filesystem v1.5.14 [from:glob]
  -> glob 2024.04.18 [ghc_filesystem:y, runtimes:"MT"]
please input: y (y/n/m)

Project Configuration

xmake.lua: Given above

main.cpp:

#include <ghc/filesystem.hpp>
#include <glob/glob.h>

int main() {}

Additional Information and Error Logs

Because the two instances of ghc_filesystem have the same configs, they have the same installation directory (C:\...\.xmake\packages\g\ghc_filesystem\v1.5.14\5e8b908d5a8d4c7682e36ae84dccf40a). The failure shown above is likely due to a race condition: xmake tries to install both instances in parallel, but since they are the exact same package in reality with the same filesystem location, the parallel tasks will conflict with each other and one (or both) will raise an error.

If the given xmake f command has -vD set, both instances actually successfully install. From the command output below, both => install ghc_filesystem#1 v1.5.14 .. ok and => install ghc_filesystem v1.5.14 .. ok are present. Outputting verbose logs probably slows xmake down and prevents the race condition.

(There is an issue with the glob package where on_test fails because of a missing link, which is why the overall command fails at the end.)

xmake f -p windows -a x64 -m debug -c -vD

```text checking for cl.exe ... C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.41.34120\bin\HostX64\x64\cl.exe checking for Microsoft Visual Studio (x64) version ... 2022 checking for Microsoft C/C++ Compiler (x64) version ... 19.41.34120 checkinfo: cannot runv(zig.exe version), No such file or directory checking for zig ... no checkinfo: cannot runv(zig.exe version), No such file or directory checking for zig ... no checkinfo: cannot runv(nim.exe --version), No such file or directory checking for nim ... no checkinfo: cannot runv(nim.exe --version), No such file or directory checking for nim ... no checkinfo: cannot runv(unzip.exe -v), No such file or directory checking for unzip ... no checking for 7z ... C:\Users\Aidan\Code\xmake2\winenv\bin\7z checking for git ... ok checkinfo: cannot runv(gzip.exe --version), No such file or directory checking for gzip ... no git rev-parse HEAD checking for cmake ... no checking for cmake ... no checking for cmake ... no finding ghc_filesystem from xmake .. checking for xmake::ghc_filesystem ... no finding ghc_filesystem from vcpkg .. finding ghc_filesystem from conan .. finding ghc_filesystem from pkgconfig .. checkinfo: cannot runv(pkg-config.exe --version), No such file or directory checking for pkg-config ... no checkinfo: cannot runv(pkgconf.exe --version), No such file or directory checking for pkgconf ... no finding ghc_filesystem from system .. checking for cl.exe ... C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.41.34120\bin\HostX64\x64\cl.exe checking for the c compiler (cc) ... cl.exe > "C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Tools\\MSVC\\14.41.34120\\bin\\HostX64\\x64\\cl.exe" -c -nologo -FoC:\Users\Aidan\AppData\Local\Temp\.xmake\240902\_83A06AE97FCD4D5083592C5DC5D15C60.o C:\Users\Aidan\AppData\Local\Temp\.xmake\240902\_775FB00633BC4F66BF87D39CCDE5CF30.c checking for cl.exe ... C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.41.34120\bin\HostX64\x64\cl.exe checking for the c++ compiler (cxx) ... cl.exe checking for link.exe ... C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.41.34120\bin\HostX64\x64\link.exe checking for the linker (ld) ... link.exe > "C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Tools\\MSVC\\14.41.34120\\bin\\HostX64\\x64\\link.exe" -nologo -dynamicbase -nxcompat -machine:x64 ghc_filesystem.lib -out:C:\Users\Aidan\AppData\Local\Temp\.xmake\240902\_83A06AE97FCD4D5083592C5DC5D15C60.b C:\Users\Aidan\AppData\Local\Temp\.xmake\240902\_83A06AE97FCD4D5083592C5DC5D15C60.o > checking for c links(ghc_filesystem) > checking for c snippet(find_package/ghc_filesystem) checkinfo: ...gramdir\core\sandbox\modules\import\core\tool\linker.lua:75: @programdir\modules\core\tools\link.lua:175: LINK : fatal error LNK1181: cannot open input file 'ghc_filesystem.lib' stack traceback: [C]: in function 'error' [@programdir\core\base\os.lua:973]: [@programdir\modules\core\tools\link.lua:175]: in function 'catch' [@programdir\core\sandbox\modules\try.lua:123]: in function 'try' [@programdir\modules\core\tools\link.lua:150]: [C]: in function 'xpcall' [@programdir\core\base\utils.lua:241]: [@programdir\core\tool\linker.lua:222]: in function 'link' [...gramdir\core\sandbox\modules\import\core\tool\linker.lua:73]: in function 'link' [@programdir\modules\lib\detect\check_cxsnippets.lua:249]: [C]: in function 'xpcall' [@programdir\core\base\utils.lua:241]: in function 'trycall' [@programdir\core\sandbox\modules\try.lua:117]: in function 'try' [@programdir\modules\lib\detect\check_cxsnippets.lua:236]: [@programdir\modules\package\manager\system\find_package.lua:73]: [@programdir\modules\package\manager\find_package.lua:84]: in function '_find_package_with_builtin_rule' [@programdir\modules\package\manager\find_package.lua:130]: in function '_find_package' [@programdir\modules\package\manager\find_package.lua:194]: [@programdir\modules\lib\detect\find_package.lua:109]: [@programdir\core\package\package.lua:1856]: in function '_fetch_library' [@programdir\core\package\package.lua:2026]: in function 'fetch' [...modules\private\action\require\impl\install_packages.lua:340]: in function 'jobfunc' [@programdir\modules\async\runjobs.lua:241]: [C]: in function 'xpcall' [@programdir\core\base\utils.lua:241]: in function 'trycall' [@programdir\core\sandbox\modules\try.lua:117]: in function 'try' [@programdir\modules\async\runjobs.lua:223]: in function 'cotask' [@programdir\core\base\scheduler.lua:406]: checking for ghc_filesystem ... no finding glob from xmake .. checking for xmake::glob ... no finding glob from vcpkg .. finding glob from conan .. finding glob from pkgconfig .. finding glob from system .. > "C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Tools\\MSVC\\14.41.34120\\bin\\HostX64\\x64\\cl.exe" -c -nologo -FoC:\Users\Aidan\AppData\Local\Temp\.xmake\240902\_BD9DFCDB84B94A70803DDB84A60826B0.o C:\Users\Aidan\AppData\Local\Temp\.xmake\240902\_775FB00633BC4F66BF87D39CCDE5CF30.c > "C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Tools\\MSVC\\14.41.34120\\bin\\HostX64\\x64\\link.exe" -nologo -dynamicbase -nxcompat -machine:x64 glob.lib -out:C:\Users\Aidan\AppData\Local\Temp\.xmake\240902\_BD9DFCDB84B94A70803DDB84A60826B0.b C:\Users\Aidan\AppData\Local\Temp\.xmake\240902\_BD9DFCDB84B94A70803DDB84A60826B0.o > checking for c links(glob) > checking for c snippet(find_package/glob) checkinfo: ...gramdir\core\sandbox\modules\import\core\tool\linker.lua:75: @programdir\modules\core\tools\link.lua:175: LINK : fatal error LNK1181: cannot open input file 'glob.lib' stack traceback: [C]: in function 'error' [@programdir\core\base\os.lua:973]: [@programdir\modules\core\tools\link.lua:175]: in function 'catch' [@programdir\core\sandbox\modules\try.lua:123]: in function 'try' [@programdir\modules\core\tools\link.lua:150]: [C]: in function 'xpcall' [@programdir\core\base\utils.lua:241]: [@programdir\core\tool\linker.lua:222]: in function 'link' [...gramdir\core\sandbox\modules\import\core\tool\linker.lua:73]: in function 'link' [@programdir\modules\lib\detect\check_cxsnippets.lua:249]: [C]: in function 'xpcall' [@programdir\core\base\utils.lua:241]: in function 'trycall' [@programdir\core\sandbox\modules\try.lua:117]: in function 'try' [@programdir\modules\lib\detect\check_cxsnippets.lua:236]: [@programdir\modules\package\manager\system\find_package.lua:73]: [@programdir\modules\package\manager\find_package.lua:84]: in function '_find_package_with_builtin_rule' [@programdir\modules\package\manager\find_package.lua:130]: in function '_find_package' [@programdir\modules\package\manager\find_package.lua:194]: [@programdir\modules\lib\detect\find_package.lua:109]: [@programdir\core\package\package.lua:1856]: in function '_fetch_library' [@programdir\core\package\package.lua:2026]: in function 'fetch' [...modules\private\action\require\impl\install_packages.lua:340]: in function 'jobfunc' [@programdir\modules\async\runjobs.lua:241]: [C]: in function 'xpcall' [@programdir\core\base\utils.lua:241]: in function 'trycall' [@programdir\core\sandbox\modules\try.lua:117]: in function 'try' [@programdir\modules\async\runjobs.lua:223]: in function 'cotask' [@programdir\core\base\scheduler.lua:406]: checking for glob ... no note: install or modify (m) these packages (pass -y to skip confirm)? in xmake-repo: -> ghc_filesystem v1.5.14 -> ghc_filesystem#1 v1.5.14 [from:glob] -> glob 2024.04.18 [runtimes:"MT", ghc_filesystem:y] please input: y (y/n/m) checking for ping ... ok pinging the host(github.com) ... 29 ms C:\Users\Aidan\Code\xmake2\winenv\bin\7z x -y v1.5.14.tar.gz -oC:\Users\Aidan\AppData\Local\Temp\.xmake\240902\_DBD8CEEF37224860835E77BA2AB172B0.tar 7-Zip 19.00 (x64) : Copyright (c) 1999-2018 Igor Pavlov : 2019-02-21 Scanning the drive for archives: 1 file, 211137 bytes (207 KiB) Extracting archive: v1.5.14.tar.gz -- Path = v1.5.14.tar.gz Type = gzip Headers Size = 10 Everything is Ok Size: 1126400 Compressed: 211137 C:\Users\Aidan\Code\xmake2\winenv\bin\7z x -y C:\Users\Aidan\AppData\Local\Temp\.xmake\240902\_DBD8CEEF37224860835E77BA2AB172B0.tar\v1.5.14.tar -osource.tmp 7-Zip 19.00 (x64) : Copyright (c) 1999-2018 Igor Pavlov : 2019-02-21 Scanning the drive for archives: 1 file, 1126400 bytes (1100 KiB) Extracting archive: C:\Users\Aidan\AppData\Local\Temp\.xmake\240902\_DBD8CEEF37224860835E77BA2AB172B0.tar\v1.5.14.tar -- Path = C:\Users\Aidan\AppData\Local\Temp\.xmake\240902\_DBD8CEEF37224860835E77BA2AB172B0.tar\v1.5.14.tar Type = tar Physical Size = 1126400 Headers Size = 27648 Code Page = UTF-8 Everything is Ok Folders: 11 Files: 35 Size: 1089108 Compressed: 1126400 checkinfo: cannot runv(pkgconf.exe --version), No such file or directory checking for pkgconf ... no checkinfo: cannot runv(pkgconf.exe --version), No such file or directory checking for pkgconf ... no checkinfo: cannot runv(pkg-config.exe --version), No such file or directory checking for pkg-config ... no checkinfo: cannot runv(pkg-config.exe --version), No such file or directory checking for pkg-config ... no checking for cmake ... ok checkinfo: cannot runv(pkgconf.exe --version), No such file or directory checking for pkgconf ... no checkinfo: cannot runv(pkgconf.exe --version), No such file or directory checking for pkgconf ... no checkinfo: cannot runv(pkg-config.exe --version), No such file or directory checking for pkg-config ... no checkinfo: cannot runv(pkg-config.exe --version), No such file or directory checking for pkg-config ... no cmake -DGHC_FILESYSTEM_BUILD_TESTING=OFF -DGHC_FILESYSTEM_BUILD_EXAMPLES=OFF -DCMAKE_INSTALL_PREFIX=C:\Users\Aidan\AppData\Local\.xmake\packages\g\ghc_filesystem\v1.5.14\5e8b908d5a8d4c7682e36ae84dccf40a -DCMAKE_INSTALL_LIBDIR:PATH=lib -G "Visual Studio 17 2022" -A x64 -DCMAKE_GENERATOR_TOOLSET=v143 -DCMAKE_COMPILE_PDB_OUTPUT_DIRECTORY=pdb -DCMAKE_POSITION_INDEPENDENT_CODE=ON "-DCMAKE_CXX_FLAGS_RELEASE=/DWIN32 /D_WINDOWS /W3 /GR /EHsc /O2 /Ob2 /DNDEBUG" "-DCMAKE_EXE_LINKER_FLAGS_RELEASE=/machine:x64 /INCREMENTAL:NO" "-DCMAKE_C_FLAGS_RELEASE=/DWIN32 /D_WINDOWS /W3 /O2 /Ob2 /DNDEBUG" "-DCMAKE_SHARED_LINKER_FLAGS_RELEASE=/machine:x64 /INCREMENTAL:NO" -DCMAKE_STATIC_LINKER_FLAGS_RELEASE=/machine:x64 C:\Users\Aidan\AppData\Local\.xmake\cache\packages\2409\g\ghc_filesystem\v1.5.14\source -- Selecting Windows SDK version 10.0.22621.0 to target Windows 10.0.22631. -- The C compiler identification is MSVC 19.41.34120.0 -- The CXX compiler identification is MSVC 19.41.34120.0 -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.41.34120/bin/Hostx64/x64/cl.exe - skipped -- Detecting C compile features -- Detecting C compile features - done -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Check for working CXX compiler: C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.41.34120/bin/Hostx64/x64/cl.exe - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done -- System name: Windows -- Compiler ID: MSVC -- CMAKE_CXX_COMPILE_FEATURES: cxx_std_98;cxx_template_template_parameters;cxx_std_11;cxx_alias_templates;cxx_alignas;cxx_alignof;cxx_attributes;cxx_auto_type;cxx_constexpr;cxx_decltype;cxx_decltype_incomplete_return_types;cxx_default_function_template_args;cxx_defaulted_functions;cxx_defaulted_move_initializers;cxx_delegating_constructors;cxx_deleted_functions;cxx_enum_forward_declarations;cxx_explicit_conversions;cxx_extended_friend_declarations;cxx_extern_templates;cxx_final;cxx_func_identifier;cxx_generalized_initializers;cxx_inheriting_constructors;cxx_inline_namespaces;cxx_lambdas;cxx_local_type_template_args;cxx_long_long_type;cxx_noexcept;cxx_nonstatic_member_init;cxx_nullptr;cxx_override;cxx_range_for;cxx_raw_string_literals;cxx_reference_qualified_functions;cxx_right_angle_brackets;cxx_rvalue_references;cxx_sizeof_member;cxx_static_assert;cxx_strong_enums;cxx_thread_local;cxx_trailing_return_types;cxx_unicode_literals;cxx_uniform_initialization;cxx_unrestricted_unions;cxx_user_literals;cxx_variadic_macros;cxx_variadic_templates;cxx_std_14;cxx_aggregate_default_initializers;cxx_attribute_deprecated;cxx_binary_literals;cxx_contextual_conversions;cxx_decltype_auto;cxx_digit_separators;cxx_generic_lambdas;cxx_lambda_init_captures;cxx_relaxed_constexpr;cxx_return_type_deduction;cxx_variable_templates;cxx_std_17;cxx_std_20;cxx_std_23 -- Configuring done (3.3s) -- Generating done (0.0s) CMake Warning: Manually-specified variables were not used by the project: CMAKE_COMPILE_PDB_OUTPUT_DIRECTORY -- Build files have been written to: C:/Users/Aidan/AppData/Local/.xmake/cache/packages/2409/g/ghc_filesystem/v1.5.14/source/build_5e8b908d checking for msbuild.exe ... C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Current\Bin\amd64\msbuild.exe C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Current\Bin\amd64\msbuild.exe ALL_BUILD.vcxproj -t:Rebuild /nr:false -nologo -m:18 -p:Configuration=Release -p:Platform=x64 /p:PlatformToolset=v143 Build started 9/2/2024 2:52:31 PM. 1>Project "C:\Users\Aidan\AppData\Local\.xmake\cache\packages\2409\g\ghc_filesystem\v1.5.14\source\build_5e8b908d\ALL_BUILD.vcxproj" on node 1 (Rebuild target(s)). 1>CoreClean: Creating directory "x64\Release\ALL_BUILD\". 1>Project "C:\Users\Aidan\AppData\Local\.xmake\cache\packages\2409\g\ghc_filesystem\v1.5.14\source\build_5e8b908d\ALL_BUILD.vcxproj" (1) is building "C:\Users\Aidan\AppData\Local\.xmake\cache\packages\2409\g\ghc_filesystem\v1.5.14\source\build_5e8b90 8d\ZERO_CHECK.vcxproj" (2) on node 1 (Clean target(s)). 2>CoreClean: Creating directory "x64\Release\ZERO_CHECK\". 2>Done Building Project "C:\Users\Aidan\AppData\Local\.xmake\cache\packages\2409\g\ghc_filesystem\v1.5.14\source\build_5e8b908d\ZERO_CHECK.vcxproj" (Clean target(s)). 1>Project "C:\Users\Aidan\AppData\Local\.xmake\cache\packages\2409\g\ghc_filesystem\v1.5.14\source\build_5e8b908d\ALL_BUILD.vcxproj" (1) is building "C:\Users\Aidan\AppData\Local\.xmake\cache\packages\2409\g\ghc_filesystem\v1.5.14\source\build_5e8b90 8d\ZERO_CHECK.vcxproj" (2:2) on node 1 (default targets). 2>PrepareForBuild: Structured output is enabled. The formatting of compiler diagnostics will reflect the error hierarchy. See https://aka.ms/cpp/structured-output for more details. Creating directory "x64\Release\ZERO_CHECK\ZERO_CHECK.tlog\". InitializeBuildStatus: Creating "x64\Release\ZERO_CHECK\ZERO_CHECK.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified. Touching "x64\Release\ZERO_CHECK\ZERO_CHECK.tlog\unsuccessfulbuild". CustomBuild: 1>Checking Build System FinalizeBuildStatus: Deleting file "x64\Release\ZERO_CHECK\ZERO_CHECK.tlog\unsuccessfulbuild". Touching "x64\Release\ZERO_CHECK\ZERO_CHECK.tlog\ZERO_CHECK.lastbuildstate". 2>Done Building Project "C:\Users\Aidan\AppData\Local\.xmake\cache\packages\2409\g\ghc_filesystem\v1.5.14\source\build_5e8b908d\ZERO_CHECK.vcxproj" (default targets). 1>PrepareForBuild: Structured output is enabled. The formatting of compiler diagnostics will reflect the error hierarchy. See https://aka.ms/cpp/structured-output for more details. Creating directory "x64\Release\ALL_BUILD\ALL_BUILD.tlog\". InitializeBuildStatus: Creating "x64\Release\ALL_BUILD\ALL_BUILD.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified. Touching "x64\Release\ALL_BUILD\ALL_BUILD.tlog\unsuccessfulbuild". CustomBuild: Building Custom Rule C:/Users/Aidan/AppData/Local/.xmake/cache/packages/2409/g/ghc_filesystem/v1.5.14/source/CMakeLists.txt FinalizeBuildStatus: Deleting file "x64\Release\ALL_BUILD\ALL_BUILD.tlog\unsuccessfulbuild". Touching "x64\Release\ALL_BUILD\ALL_BUILD.tlog\ALL_BUILD.lastbuildstate". 1>Done Building Project "C:\Users\Aidan\AppData\Local\.xmake\cache\packages\2409\g\ghc_filesystem\v1.5.14\source\build_5e8b908d\ALL_BUILD.vcxproj" (Rebuild target(s)). Build succeeded. 0 Warning(s) 0 Error(s) Time Elapsed 00:00:00.45 C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Current\Bin\amd64\msbuild.exe INSTALL.vcxproj -nologo -m:18 -p:Configuration=Release -p:Platform=x64 /p:PlatformToolset=v143 Build started 9/2/2024 2:52:32 PM. 1>Project "C:\Users\Aidan\AppData\Local\.xmake\cache\packages\2409\g\ghc_filesystem\v1.5.14\source\build_5e8b908d\INSTALL.vcxproj" on node 1 (default targets). 1>Project "C:\Users\Aidan\AppData\Local\.xmake\cache\packages\2409\g\ghc_filesystem\v1.5.14\source\build_5e8b908d\INSTALL.vcxproj" (1) is building "C:\Users\Aidan\AppData\Local\.xmake\cache\packages\2409\g\ghc_filesystem\v1.5.14\source\build_5e8b908d \ZERO_CHECK.vcxproj" (2) on node 1 (default targets). 2>PrepareForBuild: Structured output is enabled. The formatting of compiler diagnostics will reflect the error hierarchy. See https://aka.ms/cpp/structured-output for more details. InitializeBuildStatus: Creating "x64\Release\ZERO_CHECK\ZERO_CHECK.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified. Touching "x64\Release\ZERO_CHECK\ZERO_CHECK.tlog\unsuccessfulbuild". CustomBuild: All outputs are up-to-date. 1>Checking Build System FinalizeBuildStatus: Deleting file "x64\Release\ZERO_CHECK\ZERO_CHECK.tlog\unsuccessfulbuild". Touching "x64\Release\ZERO_CHECK\ZERO_CHECK.tlog\ZERO_CHECK.lastbuildstate". 2>Done Building Project "C:\Users\Aidan\AppData\Local\.xmake\cache\packages\2409\g\ghc_filesystem\v1.5.14\source\build_5e8b908d\ZERO_CHECK.vcxproj" (default targets). 1>Project "C:\Users\Aidan\AppData\Local\.xmake\cache\packages\2409\g\ghc_filesystem\v1.5.14\source\build_5e8b908d\INSTALL.vcxproj" (1) is building "C:\Users\Aidan\AppData\Local\.xmake\cache\packages\2409\g\ghc_filesystem\v1.5.14\source\build_5e8b908d \ALL_BUILD.vcxproj" (3) on node 2 (default targets). 3>PrepareForBuild: Structured output is enabled. The formatting of compiler diagnostics will reflect the error hierarchy. See https://aka.ms/cpp/structured-output for more details. InitializeBuildStatus: Creating "x64\Release\ALL_BUILD\ALL_BUILD.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified. Touching "x64\Release\ALL_BUILD\ALL_BUILD.tlog\unsuccessfulbuild". CustomBuild: All outputs are up-to-date. Building Custom Rule C:/Users/Aidan/AppData/Local/.xmake/cache/packages/2409/g/ghc_filesystem/v1.5.14/source/CMakeLists.txt FinalizeBuildStatus: Deleting file "x64\Release\ALL_BUILD\ALL_BUILD.tlog\unsuccessfulbuild". Touching "x64\Release\ALL_BUILD\ALL_BUILD.tlog\ALL_BUILD.lastbuildstate". 3>Done Building Project "C:\Users\Aidan\AppData\Local\.xmake\cache\packages\2409\g\ghc_filesystem\v1.5.14\source\build_5e8b908d\ALL_BUILD.vcxproj" (default targets). 1>PrepareForBuild: Creating directory "x64\Release\INSTALL\". Structured output is enabled. The formatting of compiler diagnostics will reflect the error hierarchy. See https://aka.ms/cpp/structured-output for more details. Creating directory "x64\Release\INSTALL\INSTALL.tlog\". InitializeBuildStatus: Creating "x64\Release\INSTALL\INSTALL.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified. Touching "x64\Release\INSTALL\INSTALL.tlog\unsuccessfulbuild". CustomBuild: 1> PostBuildEvent: setlocal C:\Users\Aidan\AppData\Local\.xmake\packages\c\cmake\3.30.2\2b80cef30074424181b5e19a46ef30fc\bin\cmake.exe -DBUILD_TYPE=Release -P cmake_install.cmake if %errorlevel% neq 0 goto :cmEnd :cmEnd endlocal & call :cmErrorLevel %errorlevel% & goto :cmDone :cmErrorLevel exit /b %1 :cmDone if %errorlevel% neq 0 goto :VCEnd :VCEnd -- Install configuration: "Release" -- Installing: C:/Users/Aidan/AppData/Local/.xmake/packages/g/ghc_filesystem/v1.5.14/5e8b908d5a8d4c7682e36ae84dccf40a/include -- Installing: C:/Users/Aidan/AppData/Local/.xmake/packages/g/ghc_filesystem/v1.5.14/5e8b908d5a8d4c7682e36ae84dccf40a/include/ghc -- Installing: C:/Users/Aidan/AppData/Local/.xmake/packages/g/ghc_filesystem/v1.5.14/5e8b908d5a8d4c7682e36ae84dccf40a/include/ghc/filesystem.hpp -- Installing: C:/Users/Aidan/AppData/Local/.xmake/packages/g/ghc_filesystem/v1.5.14/5e8b908d5a8d4c7682e36ae84dccf40a/include/ghc/fs_fwd.hpp -- Installing: C:/Users/Aidan/AppData/Local/.xmake/packages/g/ghc_filesystem/v1.5.14/5e8b908d5a8d4c7682e36ae84dccf40a/include/ghc/fs_impl.hpp -- Installing: C:/Users/Aidan/AppData/Local/.xmake/packages/g/ghc_filesystem/v1.5.14/5e8b908d5a8d4c7682e36ae84dccf40a/include/ghc/fs_std.hpp -- Installing: C:/Users/Aidan/AppData/Local/.xmake/packages/g/ghc_filesystem/v1.5.14/5e8b908d5a8d4c7682e36ae84dccf40a/include/ghc/fs_std_fwd.hpp -- Installing: C:/Users/Aidan/AppData/Local/.xmake/packages/g/ghc_filesystem/v1.5.14/5e8b908d5a8d4c7682e36ae84dccf40a/include/ghc/fs_std_impl.hpp -- Installing: C:/Users/Aidan/AppData/Local/.xmake/packages/g/ghc_filesystem/v1.5.14/5e8b908d5a8d4c7682e36ae84dccf40a/lib/cmake/ghc_filesystem/ghc_filesystem-targets.cmake -- Installing: C:/Users/Aidan/AppData/Local/.xmake/packages/g/ghc_filesystem/v1.5.14/5e8b908d5a8d4c7682e36ae84dccf40a/lib/cmake/ghc_filesystem/ghc_filesystem-config.cmake -- Installing: C:/Users/Aidan/AppData/Local/.xmake/packages/g/ghc_filesystem/v1.5.14/5e8b908d5a8d4c7682e36ae84dccf40a/lib/cmake/ghc_filesystem/ghc_filesystem-config-version.cmake FinalizeBuildStatus: Deleting file "x64\Release\INSTALL\INSTALL.tlog\unsuccessfulbuild". Touching "x64\Release\INSTALL\INSTALL.tlog\INSTALL.lastbuildstate". 1>Done Building Project "C:\Users\Aidan\AppData\Local\.xmake\cache\packages\2409\g\ghc_filesystem\v1.5.14\source\build_5e8b908d\INSTALL.vcxproj" (default targets). Build succeeded. 0 Warning(s) 0 Error(s) Time Elapsed 00:00:00.77 finding ghc_filesystem from xmake .. checking for xmake::ghc_filesystem ... ghc_filesystem v1.5.14 { version = "v1.5.14", license = "MIT", sysincludedirs = { "C:\Users\Aidan\AppData\Local\.xmake\packages\g\ghc_filesystem\v1.5.14\5e8b908d5a8d4c7682e36ae84dccf40a\include" } } patching C:\Users\Aidan\AppData\Local\.xmake\packages\g\ghc_filesystem\v1.5.14\5e8b908d5a8d4c7682e36ae84dccf40a\lib\pkgconfig\ghc_filesystem.pc .. checking for C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.41.34120\bin\HostX64\x64\cl.exe ... ok checking for flags (cl_external_includedir) ... ok > cl.exe "-external:W0" "-external:IC:\Users\Aidan\AppData\Local\.xmake\packages\g\ghc_filesystem\v1.5.14\5e8b908d5a8d4c7682e36ae84dccf40a\include" "-nologo" > "C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Tools\\MSVC\\14.41.34120\\bin\\HostX64\\x64\\cl.exe" -c -nologo -std:c++11 /EHsc -external:W0 -external:IC:\Users\Aidan\AppData\Local\.xmake\packages\g\ghc_filesystem\v1.5.14\5e8b908d5a8d4c7682e36ae84dccf40a\include -FoC:\Users\Aidan\AppData\Local\Temp\.xmake\240902\_E89788CA112C477089711992468C33B0.o C:\Users\Aidan\AppData\Local\Temp\.xmake\240902\_0BF9F955F6AC4A249B4BDBE5539AEB5D.cpp cl : Command line warning D9002 : ignoring unknown option '-std:c++11' > checking for c++ snippet(test) => install ghc_filesystem v1.5.14 .. ok C:\Users\Aidan\Code\xmake2\winenv\bin\7z x -y v1.5.14.tar.gz -oC:\Users\Aidan\AppData\Local\Temp\.xmake\240902\_D466BEA7274545608EA5B08F1605CD70.tar 7-Zip 19.00 (x64) : Copyright (c) 1999-2018 Igor Pavlov : 2019-02-21 Scanning the drive for archives: 1 file, 211137 bytes (207 KiB) Extracting archive: v1.5.14.tar.gz -- Path = v1.5.14.tar.gz Type = gzip Headers Size = 10 Everything is Ok Size: 1126400 Compressed: 211137 C:\Users\Aidan\Code\xmake2\winenv\bin\7z x -y C:\Users\Aidan\AppData\Local\Temp\.xmake\240902\_D466BEA7274545608EA5B08F1605CD70.tar\v1.5.14.tar -osource.tmp 7-Zip 19.00 (x64) : Copyright (c) 1999-2018 Igor Pavlov : 2019-02-21 Scanning the drive for archives: 1 file, 1126400 bytes (1100 KiB) Extracting archive: C:\Users\Aidan\AppData\Local\Temp\.xmake\240902\_D466BEA7274545608EA5B08F1605CD70.tar\v1.5.14.tar -- Path = C:\Users\Aidan\AppData\Local\Temp\.xmake\240902\_D466BEA7274545608EA5B08F1605CD70.tar\v1.5.14.tar Type = tar Physical Size = 1126400 Headers Size = 27648 Code Page = UTF-8 Everything is Ok Folders: 11 Files: 35 Size: 1089108 Compressed: 1126400 finding ghc_filesystem from xmake .. checking for xmake::ghc_filesystem ... ghc_filesystem v1.5.14 { version = "v1.5.14", license = "MIT", sysincludedirs = { "C:\Users\Aidan\AppData\Local\.xmake\packages\g\ghc_filesystem\v1.5.14\5e8b908d5a8d4c7682e36ae84dccf40a\include" } } => install ghc_filesystem#1 v1.5.14 .. ok git clone https://github.com/p-ranav/glob.git --filter=tree:0 --no-checkout -c core.fsmonitor=false source.tmp\glob Cloning into 'source.tmp\glob'... remote: Enumerating objects: 110, done. remote: Counting objects: 100% (14/14), done. remote: Compressing objects: 100% (14/14), done. remote: Total 110 (delta 0), reused 6 (delta 0), pack-reused 96 (from 1) Receiving objects: 100% (110/110), 42.74 KiB | 3.29 MiB/s, done. git -c core.fsmonitor=false checkout d025092c0e1eb1a8b226d3a799fd32680d2fd13f remote: Enumerating objects: 11, done. remote: Counting objects: 100% (6/6), done. remote: Total 11 (delta 0), reused 5 (delta 0), pack-reused 5 (from 1) Receiving objects: 100% (11/11), 1005 bytes | 1005.00 KiB/s, done. remote: Enumerating objects: 15, done. remote: Counting objects: 100% (8/8), done. remote: Compressing objects: 100% (8/8), done. remote: Total 15 (delta 1), reused 0 (delta 0), pack-reused 7 (from 1) Receiving objects: 100% (15/15), 153.00 KiB | 3.06 MiB/s, done. Resolving deltas: 100% (1/1), done. Note: switching to 'd025092c0e1eb1a8b226d3a799fd32680d2fd13f'. You are in 'detached HEAD' state. You can look around, make experimental changes and commit them, and you can discard any commits you make in this state without impacting any branches by switching back to a branch. If you want to create a new branch to retain commits you create, you may do so (now or later) by using -c with the switch command. Example: git switch -c Or undo this operation with: git switch - Turn off this advice by setting config variable advice.detachedHead to false HEAD is now at d025092 Merge pull request #29 from vnepogodin/optimizations => clone https://github.com/p-ranav/glob.git 2024.04.18 .. ok C:\Users\Aidan\Code\xmake2\xmake.exe f --diagnosis --verbose -y -c --plat=windows --arch=x64 --mode=release --kind=static --vs=2022 --runtimes=MT --buildir=build_39fd9cf1 checking for cl.exe ... C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.41.34120\bin\HostX64\x64\cl.exe checking for Microsoft Visual Studio (x64) version ... 2022 checking for Microsoft C/C++ Compiler (x64) version ... 19.41.34120 checkinfo: cannot runv(zig.exe version), No such file or directory checking for zig ... no checkinfo: cannot runv(zig.exe version), No such file or directory checking for zig ... no checkinfo: cannot runv(nim.exe --version), No such file or directory checking for nim ... no checkinfo: cannot runv(nim.exe --version), No such file or directory checking for nim ... no checking for cl.exe ... C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.41.34120\bin\HostX64\x64\cl.exe checking for the c++ compiler (cxx) ... cl.exe configure { mode = release host = windows vs = 2022 plat = windows runtimes = MT buildir = build_39fd9cf1 theme = default clean = true kind = static ccache = true proxy_pac = pac.lua arch = x64 ndk_stdcxx = true network = public } C:\Users\Aidan\Code\xmake2\xmake.exe build --diagnosis --verbose checking for C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.41.34120\bin\HostX64\x64\cl.exe ... ok checking for flags (-O2) ... ok > cl.exe "-O2" "-nologo" checking for flags (-DNDEBUG) ... ok > cl.exe "-DNDEBUG" "-nologo" [ 50%]: compiling.release source\glob.cpp "C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Tools\\MSVC\\14.41.34120\\bin\\HostX64\\x64\\cl.exe" -c -nologo -O2 -std:c++17 -MT -Iinclude /EHsc -DNDEBUG -Fobuild_39fd9cf1\.objs\glob\windows\x64\release\source\glob.cpp.obj source\glob.cpp checking for flags (cl_sourceDependencies) ... ok > cl.exe "/sourceDependencies" "C:\Users\Aidan\AppData\Local\Temp\.xmake\240902\_D0E2A46CAE114A3086D1E59731719790.json" "-nologo" checking for link.exe ... C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.41.34120\bin\HostX64\x64\link.exe checking for the static library archiver (ar) ... link.exe [ 75%]: archiving.release glob.lib "C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Tools\\MSVC\\14.41.34120\\bin\\HostX64\\x64\\link.exe" -lib -nologo -machine:x64 /opt:ref /opt:icf -out:build_39fd9cf1\windows\x64\release\glob.lib build_39fd9cf1\.objs\glob\windows\x64\release\source\glob.cpp.obj checking for cl.exe ... C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.41.34120\bin\HostX64\x64\cl.exe checking for the c compiler (cc) ... cl.exe build cache stats: cache directory: build_39fd9cf1\.build_cache cache hit rate: 0% cache hit: 0 cache hit total time: 0.000s cache miss: 0 cache miss total time: 0.000s new cached files: 0 remote cache hit: 0 remote new cached files: 0 preprocess failed: 0 compile fallback count: 0 compile total time: 0.000s [100%]: build ok, spent 2.078s C:\Users\Aidan\Code\xmake2\xmake.exe install -y --nopkgs -o C:\Users\Aidan\AppData\Local\.xmake\packages\g\glob\2024.04.18\39fd9cf1661d4b5b99957318b6bc231e --diagnosis --verbose installing glob .. installing glob to C:\Users\Aidan\AppData\Local\.xmake\packages\g\glob\2024.04.18\39fd9cf1661d4b5b99957318b6bc231e .. > copy build_39fd9cf1\windows\x64\release\glob.lib to C:\Users\Aidan\AppData\Local\.xmake\packages\g\glob\2024.04.18\39fd9cf1661d4b5b99957318b6bc231e\lib > copy include\glob\glob.h to C:\Users\Aidan\AppData\Local\.xmake\packages\g\glob\2024.04.18\39fd9cf1661d4b5b99957318b6bc231e\include\glob\glob.h install ok! finding glob from xmake .. checking for xmake::glob ... glob 2024.04.18 { links = { "glob" }, sysincludedirs = { "C:\Users\Aidan\AppData\Local\.xmake\packages\g\glob\2024.04.18\39fd9cf1661d4b5b99957318b6bc231e\include" }, license = "MIT", static = true, libfiles = { "C:\Users\Aidan\AppData\Local\.xmake\packages\g\glob\2024.04.18\39fd9cf1661d4b5b99957318b6bc231e\lib\glob.lib" }, version = "2024.04.18", defines = "GLOB_USE_GHC_FILESYSTEM", linkdirs = { "C:\Users\Aidan\AppData\Local\.xmake\packages\g\glob\2024.04.18\39fd9cf1661d4b5b99957318b6bc231e\lib" } } patching C:\Users\Aidan\AppData\Local\.xmake\packages\g\glob\2024.04.18\39fd9cf1661d4b5b99957318b6bc231e\lib\pkgconfig\glob.pc .. checking for flags (-MT) ... ok > cl.exe "-MT" "-nologo" > "C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Tools\\MSVC\\14.41.34120\\bin\\HostX64\\x64\\cl.exe" -c -nologo -MT -std:c++17 -DGLOB_USE_GHC_FILESYSTEM /EHsc -external:W0 -external:IC:\Users\Aidan\AppData\Local\.xmake\packages\g\glob\2024.04.18\39fd9cf1661d4b5b99957318b6bc231e\include -external:W0 -external:IC:\Users\Aidan\AppData\Local\.xmake\packages\g\ghc_filesystem\v1.5.14\5e8b908d5a8d4c7682e36ae84dccf40a\include -FoC:\Users\Aidan\AppData\Local\Temp\.xmake\240902\_B68549ED120F474081C7586F8CDC7350.o C:\Users\Aidan\AppData\Local\Temp\.xmake\240902\_B9A0587ED54647BB9DFBD7062522FAB6.cpp > "C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Tools\\MSVC\\14.41.34120\\bin\\HostX64\\x64\\link.exe" -nologo -dynamicbase -nxcompat -machine:x64 -nodefaultlib:msvcrt.lib -libpath:C:\Users\Aidan\AppData\Local\.xmake\packages\g\glob\2024.04.18\39fd9cf1661d4b5b99957318b6bc231e\lib glob.lib -out:C:\Users\Aidan\AppData\Local\Temp\.xmake\240902\_B68549ED120F474081C7586F8CDC7350.b C:\Users\Aidan\AppData\Local\Temp\.xmake\240902\_B68549ED120F474081C7586F8CDC7350.o > checking for c++ includes(glob/glob.h) > checking for c++ links(glob) > checking for c++ snippet(test) checkinfo: ...gramdir\core\sandbox\modules\import\core\tool\linker.lua:75: @programdir\modules\core\tools\link.lua:175: _B68549ED120F474081C7586F8CDC7350.o : error LNK2019: unresolved external symbol "class std::vector > __cdecl glob::glob(class std::basic_string,class std::allocator > const &)" (?glob@0@YA?AV?$vector@Vpath@filesystem@ghc@@V?$allocator@Vpath@filesystem@ghc@@@std@@@std@@AEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@2@@Z) referenced in function "void __cdecl test(void)" (?test@@YAXXZ) C:\Users\Aidan\AppData\Local\Temp\.xmake\240902\_B68549ED120F474081C7586F8CDC7350.b : fatal error LNK1120: 1 unresolved externals stack traceback: [C]: in function 'error' [@programdir\core\base\os.lua:973]: [@programdir\modules\core\tools\link.lua:175]: in function 'catch' [@programdir\core\sandbox\modules\try.lua:123]: in function 'try' [@programdir\modules\core\tools\link.lua:150]: [C]: in function 'xpcall' [@programdir\core\base\utils.lua:241]: [@programdir\core\tool\linker.lua:222]: in function 'link' [...gramdir\core\sandbox\modules\import\core\tool\linker.lua:73]: in function 'link' [@programdir\modules\lib\detect\check_cxsnippets.lua:249]: [C]: in function 'xpcall' [@programdir\core\base\utils.lua:241]: in function 'trycall' [@programdir\core\sandbox\modules\try.lua:117]: in function 'try' [@programdir\modules\lib\detect\check_cxsnippets.lua:236]: [....xmake\repositories\xmake-repo\packages\g\glob\xmake.lua:43]: in function 'script' [...dir\modules\private\action\require\impl\utils\filter.lua:114]: in function 'call' [...dir\modules\private\action\require\impl\actions\test.lua:41]: [...\modules\private\action\require\impl\actions\install.lua:432]: [C]: in function 'xpcall' [@programdir\core\base\utils.lua:241]: in function 'trycall' [@programdir\core\sandbox\modules\try.lua:117]: in function 'try' [...\modules\private\action\require\impl\actions\install.lua:361]: [...modules\private\action\require\impl\install_packages.lua:496]: in function 'jobfunc' [@programdir\modules\async\runjobs.lua:241]: [C]: in function 'xpcall' [@programdir\core\base\utils.lua:241]: in function 'trycall' [@programdir\core\sandbox\modules\try.lua:117]: in function 'try' [@programdir\modules\async\runjobs.lua:223]: in function 'cotask' [@programdir\core\base\scheduler.lua:406]: error: ....xmake\repositories\xmake-repo\packages\g\glob\xmake.lua:43: ...gramdir\core\sandbox\modules\import\core\tool\linker.lua:75: @programdir\modules\core\tools\link.lua:175: _B68549ED120F474081C7586F8CDC7350.o : error LNK2019: unresolved external symbol "class std::vector > __cdecl glob::glob(class std::basic_string,class std::allocator > const &)" (?glob@0@YA?AV?$vector@Vpath@filesystem@ghc@@V?$allocator@Vpath@filesystem@ghc@@@std@@@std@@AEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@2@@Z) referenced in function "void __cdecl test(void)" (?test@@YAXXZ) C:\Users\Aidan\AppData\Local\Temp\.xmake\240902\_B68549ED120F474081C7586F8CDC7350.b : fatal error LNK1120: 1 unresolved externals stack traceback: [C]: in function 'error' [@programdir\core\base\os.lua:973]: [@programdir\modules\core\tools\link.lua:175]: in function 'catch' [@programdir\core\sandbox\modules\try.lua:123]: in function 'try' [@programdir\modules\core\tools\link.lua:150]: [C]: in function 'xpcall' [@programdir\core\base\utils.lua:241]: [@programdir\core\tool\linker.lua:222]: in function 'link' [...gramdir\core\sandbox\modules\import\core\tool\linker.lua:73]: in function 'link' [@programdir\modules\lib\detect\check_cxsnippets.lua:249]: [C]: in function 'xpcall' [@programdir\core\base\utils.lua:241]: in function 'trycall' [@programdir\core\sandbox\modules\try.lua:117]: in function 'try' [@programdir\modules\lib\detect\check_cxsnippets.lua:236]: [....xmake\repositories\xmake-repo\packages\g\glob\xmake.lua:43]: in function 'script' [...dir\modules\private\action\require\impl\utils\filter.lua:114]: in function 'call' [...dir\modules\private\action\require\impl\actions\test.lua:41]: [...\modules\private\action\require\impl\actions\install.lua:432]: [C]: in function 'xpcall' [@programdir\core\base\utils.lua:241]: in function 'trycall' [@programdir\core\sandbox\modules\try.lua:117]: in function 'try' [...\modules\private\action\require\impl\actions\install.lua:361]: [...modules\private\action\require\impl\install_packages.lua:496]: in function 'jobfunc' [@programdir\modules\async\runjobs.lua:241]: [C]: in function 'xpcall' [@programdir\core\base\utils.lua:241]: in function 'trycall' [@programdir\core\sandbox\modules\try.lua:117]: in function 'try' [@programdir\modules\async\runjobs.lua:223]: in function 'cotask' [@programdir\core\base\scheduler.lua:406]: => install glob 2024.04.18 .. failed error: @programdir\core\main.lua:329: @programdir\modules\async\runjobs.lua:325: ...\modules\private\action\require\impl\actions\install.lua:494: install failed! stack traceback: [C]: in function 'error' [@programdir\core\base\os.lua:973]: [...\modules\private\action\require\impl\actions\install.lua:494]: in function 'catch' [@programdir\core\sandbox\modules\try.lua:123]: in function 'try' [...\modules\private\action\require\impl\actions\install.lua:361]: [...modules\private\action\require\impl\install_packages.lua:496]: in function 'jobfunc' [@programdir\modules\async\runjobs.lua:241]: stack traceback: [C]: in function 'error' @programdir\core\base\os.lua:973: in function 'base/os.raiselevel' (...tail calls...) @programdir\core\main.lua:329: in upvalue 'cotask' @programdir\core\base\scheduler.lua:406: in function <@programdir\core\base\scheduler.lua:399> ```

waruqi commented 2 months ago

try this patch. https://github.com/xmake-io/xmake/pull/5567

AidanSun05 commented 2 months ago

Thanks, it works now.