microsoft / vcpkg

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

[pugixml] Build error on x64-windows #41939

Open pjinwoo1995 opened 3 weeks ago

pjinwoo1995 commented 3 weeks ago

Package: pugixml:x64-windows@1.14

Host Environment

To Reproduce

vcpkg install assimp

Failure logs

-- Using cached zeux-pugixml-v1.14.tar.gz.
-- Extracting source C:/dev/vcpkg/downloads/zeux-pugixml-v1.14.tar.gz
CMake Error at scripts/cmake/vcpkg_execute_required_process.cmake:127 (message):
    Command failed: "C:/Program Files/CMake/bin/cmake.exe" -E tar xjf C:/dev/vcpkg/downloads/zeux-pugixml-v1.14.tar.gz
    Working Directory: C:/dev/vcpkg/buildtrees/pugixml/src/v1.14-3215fd4dab.clean.tmp
    Error code: 1
    See logs for more information:
      C:\dev\vcpkg\buildtrees\pugixml\extract-err.log

Call Stack (most recent call first):
  scripts/cmake/vcpkg_extract_source_archive.cmake:120 (vcpkg_execute_required_process)
  scripts/cmake/vcpkg_extract_source_archive_ex.cmake:8 (vcpkg_extract_source_archive)
  scripts/cmake/vcpkg_from_github.cmake:113 (vcpkg_extract_source_archive_ex)
  ports/pugixml/portfile.cmake:1 (vcpkg_from_github)
  scripts/ports.cmake:192 (include)
C:\dev\vcpkg\buildtrees\pugixml\extract-err.log ``` CMake Error: Problem with archive_write_header(): Invalid empty pathname CMake Error: Current file: CMake Error: Problem extracting tar: C:/dev/vcpkg/downloads/zeux-pugixml-v1.14.tar.gz ```
MonicaLiu0311 commented 3 weeks ago

Sorry I didn't repro your issue. Please make sure your vcpkg path does not have spaces or other non-ASCII characters.

PS F:\vcpkg> ./vcpkg install pugixml:x64-windows
Computing installation plan...
The following packages will be built and installed:
    pugixml:x64-windows@1.14
Detecting compiler hash for triplet x64-windows...
Compiler found: C:/Program Files/Microsoft Visual Studio/2022/Enterprise/VC/Tools/MSVC/14.41.34120/bin/Hostx64/x64/cl.exe
Restored 0 package(s) from C:\Users\monica\AppData\Local\vcpkg\archives in 530 us. Use --debug to see more details.
Installing 1/1 pugixml:x64-windows@1.14...
Building pugixml:x64-windows@1.14...
-- Downloading https://github.com/zeux/pugixml/archive/v1.14.tar.gz -> zeux-pugixml-v1.14.tar.gz...
-- Extracting source F:/vcpkg/downloads/zeux-pugixml-v1.14.tar.gz
-- Using source at F:/vcpkg/buildtrees/pugixml/src/v1.14-3215fd4dab.clean
-- Found external ninja('1.11.0').
-- Configuring x64-windows
-- Building x64-windows-dbg
-- Building x64-windows-rel
-- Fixing pkgconfig file: F:/vcpkg/packages/pugixml_x64-windows/lib/pkgconfig/pugixml.pc
-- Using cached msys2-mingw-w64-x86_64-pkgconf-1~2.3.0-1-any.pkg.tar.zst.
-- Using cached msys2-msys2-runtime-3.5.4-2-x86_64.pkg.tar.zst.
-- Using msys root at F:/vcpkg/downloads/tools/msys2/21caed2f81ec917b
-- Fixing pkgconfig file: F:/vcpkg/packages/pugixml_x64-windows/debug/lib/pkgconfig/pugixml.pc
-- Installing: F:/vcpkg/packages/pugixml_x64-windows/share/pugixml/copyright
-- Performing post-build validation
Stored binaries in 1 destinations in 276 ms.
Elapsed time to handle pugixml:x64-windows: 11 s
pugixml:x64-windows package ABI: f3ff9a54891d99550430e033bd406713b28058ee2a63682371a6dcc4ecb7e200
Total install time: 11 s
pugixml provides CMake targets:

  # this is heuristically generated, and may not be correct
  find_package(pugixml CONFIG REQUIRED)
  target_link_libraries(main PRIVATE pugixml::shared pugixml::pugixml)

pugixml provides pkg-config modules:

  # Light-weight, simple and fast XML parser for C++ with XPath support.
  pugixml