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

"Error: Failed to convert to UTF-8: invalid code unit" when building vcpkg-cmake #38477

Open
yong57 opened this issue Apr 30, 2024 · 1 comment
Assignees
Labels
category:port-bug The issue is with a library, which is something the port should already support

Comments

@yong57
Copy link

yong57 commented Apr 30, 2024

Operating system

Windows 11

Compiler

No response

Steps to reproduce the behavior

PS C:\src\vcpkg> .\vcpkg install colmap[cuda,tests]:x64-windows
Computing installation plan...
The following packages will be built and installed:
  * blas:x64-windows@2023-04-14
  * boost-accumulators:[email protected]#1
  * boost-algorithm:[email protected]#1
  * boost-align:[email protected]#1
  * boost-any:[email protected]#1
  * boost-array:[email protected]#1
  * boost-assert:[email protected]#1
  * boost-atomic:[email protected]#1
  * boost-bimap:[email protected]#1
  * boost-bind:[email protected]#1
  * boost-callable-traits:[email protected]#1
  * boost-chrono:[email protected]#1
  * boost-circular-buffer:[email protected]#1
  * boost-cmake:[email protected]
  * boost-compute:[email protected]#1
  * boost-concept-check:[email protected]#1
  * boost-config:[email protected]#1
  * boost-container:[email protected]#1
  * boost-container-hash:[email protected]#1
  * boost-conversion:[email protected]#1
  * boost-core:[email protected]#1
  * boost-date-time:[email protected]#1
  * boost-describe:[email protected]#1
  * boost-detail:[email protected]#1
  * boost-dynamic-bitset:[email protected]#1
  * boost-endian:[email protected]#1
  * boost-exception:[email protected]#1
  * boost-filesystem:[email protected]#1
  * boost-foreach:[email protected]#1
  * boost-function:[email protected]#1
  * boost-function-types:[email protected]#1
  * boost-functional:[email protected]#1
  * boost-fusion:[email protected]#1
  * boost-geometry:[email protected]#1
  * boost-graph:[email protected]#1
  * boost-headers:[email protected]
  * boost-heap:[email protected]#1
  * boost-integer:[email protected]#1
  * boost-interval:[email protected]#1
  * boost-intrusive:[email protected]#1
  * boost-io:[email protected]#1
  * boost-iostreams[bzip2,core,lzma,zlib,zstd]:[email protected]#1
  * boost-iterator:[email protected]#1
  * boost-lambda:[email protected]#1
  * boost-lexical-cast:[email protected]#1
  * boost-logic:[email protected]#1
  * boost-math:[email protected]#1
  * boost-move:[email protected]#1
  * boost-mp11:[email protected]#1
  * boost-mpl:[email protected]#1
  * boost-multi-array:[email protected]#1
  * boost-multi-index:[email protected]#1
  * boost-multiprecision:[email protected]#1
  * boost-numeric-conversion:[email protected]#1
  * boost-optional:[email protected]#1
  * boost-parameter:[email protected]#1
  * boost-phoenix:[email protected]#1
  * boost-polygon:[email protected]#1
  * boost-pool:[email protected]#1
  * boost-predef:[email protected]#1
  * boost-preprocessor:[email protected]#1
  * boost-program-options:[email protected]#1
  * boost-property-map:[email protected]#1
  * boost-property-tree:[email protected]#1
  * boost-proto:[email protected]#1
  * boost-ptr-container:[email protected]#1
  * boost-qvm:[email protected]#1
  * boost-random:[email protected]#1
  * boost-range:[email protected]#1
  * boost-ratio:[email protected]#1
  * boost-rational:[email protected]#1
  * boost-regex:[email protected]#1
  * boost-serialization:[email protected]#1
  * boost-smart-ptr:[email protected]#1
  * boost-spirit:[email protected]#1
  * boost-static-assert:[email protected]#1
  * boost-system:[email protected]#1
  * boost-test:[email protected]#1
  * boost-thread:[email protected]#1
  * boost-throw-exception:[email protected]#1
  * boost-tokenizer:[email protected]#1
  * boost-tti:[email protected]#1
  * boost-tuple:[email protected]#1
  * boost-type-index:[email protected]#1
  * boost-type-traits:[email protected]#1
  * boost-typeof:[email protected]#1
  * boost-ublas:[email protected]#1
  * boost-uninstall:[email protected]#1
  * boost-units:[email protected]#1
  * boost-unordered:[email protected]#1
  * boost-utility:[email protected]#1
  * boost-uuid:[email protected]#1
  * boost-variant:[email protected]#1
  * boost-variant2:[email protected]#1
  * boost-winapi:[email protected]#1
  * boost-xpressive:[email protected]#1
  * brotli:[email protected]#1
  * bzip2[core,tool]:[email protected]#5
  * ceres[core,lapack,suitesparse]:[email protected]#5
  * cgal:[email protected]
    colmap[core,cuda,tests]:x64-windows@2023-10-01
  * cuda:[email protected]#13
  * double-conversion:[email protected]
  * egl-registry:x64-windows@2024-01-25
  * eigen3:[email protected]#4
  * flann:x64-windows@2019-04-07#7
  * freeglut:[email protected]#1
  * freeimage:[email protected]#26
  * freetype[brotli,bzip2,core,png,zlib]:[email protected]#1
  * gflags:[email protected]#9
  * gklib:x64-windows@2023-03-27
  * glew:[email protected]#3
  * glog:[email protected]#1
  * gmp:[email protected]
  * gtest:[email protected]#1
  * harfbuzz[core,freetype]:[email protected]#1
  * imath:[email protected]
  * jasper[core,default-features,opengl]:[email protected]
  * jxrlib:[email protected]#6
  * lapack:x64-windows@2023-06-10
  * lapack-reference[blas-select,core,noblas]:[email protected]#6
  * lcms:[email protected]
  * libdeflate[compression,core,decompression,gzip,zlib]:[email protected]
  * libjpeg-turbo:[email protected]
  * liblzma:[email protected]
  * libpng:[email protected]#1
  * libraw:[email protected]
  * libwebp[core,libwebpmux,nearlossless,simd,unicode]:[email protected]
  * lz4:[email protected]#1
  * metis:x64-windows@2022-07-27
  * mpfr:[email protected]
  * openblas:[email protected]
  * openexr:[email protected]#1
  * opengl:x64-windows@2022-12-04#3
  * opengl-registry:x64-windows@2024-02-10#1
  * openjpeg:[email protected]
  * openssl:[email protected]
  * pcre2[core,jit,platform-default-features]:[email protected]
  * pkgconf:[email protected]
  * qt5-base:[email protected]#1
  * sqlite3[core,json1]:[email protected]
  * suitesparse:[email protected]#2
  * tiff[core,jpeg,lzma,zip]:[email protected]#4
  * vcpkg-boost:x64-windows@2024-04-25
  * vcpkg-cmake:x64-windows@2023-05-04
  * vcpkg-cmake-config:x64-windows@2022-02-06#1
  * vcpkg-cmake-get-vars:x64-windows@2023-12-31
  * vcpkg-gfortran:x64-windows@3#3
  * vcpkg-pkgconfig-get-modules:x64-windows@2023-09-06
  * vcpkg-tool-meson:[email protected]#2
  * zlib:[email protected]
  * zstd:[email protected]
Additional packages (*) will be modified to complete this operation.
Detecting compiler hash for triplet x64-windows...
-- Automatically setting %HTTP(S)_PROXY% environment variables to "127.0.0.1:7890".
Compiler found: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.29.30133/bin/Hostx64/x64/cl.exe
Restored 0 package(s) from C:\Users\feima\AppData\Local\vcpkg\archives in 1.23 ms. Use --debug to see more details.
Installing 1/152 vcpkg-cmake:x64-windows@2023-05-04...
Building vcpkg-cmake:x64-windows@2023-05-04...
-- Installing: C:/src/vcpkg/packages/vcpkg-cmake_x64-windows/share/vcpkg-cmake/vcpkg_cmake_configure.cmake
-- Installing: C:/src/vcpkg/packages/vcpkg-cmake_x64-windows/share/vcpkg-cmake/vcpkg_cmake_build.cmake
-- Installing: C:/src/vcpkg/packages/vcpkg-cmake_x64-windows/share/vcpkg-cmake/vcpkg_cmake_install.cmake
-- Installing: C:/src/vcpkg/packages/vcpkg-cmake_x64-windows/share/vcpkg-cmake/vcpkg-port-config.cmake
-- Installing: C:/src/vcpkg/packages/vcpkg-cmake_x64-windows/share/vcpkg-cmake/copyright
error: Failed to convert to UTF-8: invalid code unit
PS C:\src\vcpkg> chcp
Active code page: 65001
PS C:\src\vcpkg>

Failure logs

In the vcpkg/buildtrees/vcpkg-cmake/stdout-x64-windows.log,only have:
-- Installing: C:/src/vcpkg/packages/vcpkg-cmake_x64-windows/share/vcpkg-cmake/vcpkg_cmake_configure.cmake
-- Installing: C:/src/vcpkg/packages/vcpkg-cmake_x64-windows/share/vcpkg-cmake/vcpkg_cmake_build.cmake
-- Installing: C:/src/vcpkg/packages/vcpkg-cmake_x64-windows/share/vcpkg-cmake/vcpkg_cmake_install.cmake
-- Installing: C:/src/vcpkg/packages/vcpkg-cmake_x64-windows/share/vcpkg-cmake/vcpkg-port-config.cmake
-- Installing: C:/src/vcpkg/packages/vcpkg-cmake_x64-windows/share/vcpkg-cmake/copyright

Additional context

vcpkg is the newest
PowerShell Version:7.2.16
System Region:China(Simple),I checked "Beta: Use Unicode UTF-8 for global language support"

@yong57 yong57 added the category:port-bug The issue is with a library, which is something the port should already support label Apr 30, 2024
@MonicaLiu0311
Copy link
Contributor

Try checking: #37420 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category:port-bug The issue is with a library, which is something the port should already support
Projects
None yet
Development

No branches or pull requests

2 participants