Can you please take a look.
env:
Cesium for unity:1.13.1
unity 2021.3.43
cmake:3.31.0
dotnet:9.0.100
cmd
the cmd is:cmake -B build -S . -G “Visual Studio 17 2022” -DCMAKE_BUILD_TYPE=Debug
error
*** Content of log file: D:.ezvcpkg\2024.07.12\buildtrees\ktx\extract-err.log:
cmake -E tar: warning: skipping symbolic link “KTX-Software-4.3.0-beta1/NOTICE.md” → “LICENSE.md”.
CMake Error: Problem with archive_write_header(): Invalid empty pathname
CMake Error: Current file:
CMake Error: Problem extracting tar: D:/.ezvcpkg/2024.07.12/downloads/KhronosGroup-KTX-Software-v4.3.0-beta1.tar.gz
CMake Error at extern/cesium-native/cmake/ezvcpkg/ezvcpkg.cmake:102 (message):
Call Stack (most recent call first):
extern/cesium-native/cmake/ezvcpkg/ezvcpkg.cmake:184 (EZVCPKG_CHECK_RESULTS)
extern/cesium-native/cmake/ezvcpkg/ezvcpkg.cmake:276 (EZVCPKG_BUILD)
extern/cesium-native/cmake/ezvcpkg/ezvcpkg.cmake:290 (EZVCPKG_FETCH_IMPL)
extern/cesium-native/CMakeLists.txt:66 (ezvcpkg_fetch)
– Configuring incomplete, errors occurred!
Hi @18838959381 , welcome to the community!
I haven’t seen that error before, and am not sure what to make of it. But I tried googling it, and found this post:
opened 06:27AM - 19 Aug 23 UTC
closed 08:51AM - 22 Aug 23 UTC
requires:repro
Package: icu[core,tools]:x64-windows -> 73.1
**Host Environment**
- Host: … x64-windows
- Compiler: MSVC 19.36.32535.0
- vcpkg-tool version: 2023-04-07-bedcba5172f5e4b91caac660ab7afe92c27a9895
vcpkg-scripts version: c7fc29984 2023-08-17 (33 hours ago)
**To Reproduce**
`vcpkg install icu`
**Failure logs**
```
-- Using cached icu4c-73_1-src.tgz.
-- Cleaning sources at Z:/Development/src/vcpkg/buildtrees/icu/src/c-73_1-src-3575e21c7c.clean. Use --editable to skip cleaning for the packages you specify.
-- Extracting source Z:/Development/src/vcpkg/downloads/icu4c-73_1-src.tgz
-- Applying patch disable-escapestr-tool.patch
-- Applying patch remove-MD-from-configure.patch
-- Applying patch fix_parallel_build_on_windows.patch
-- Applying patch fix-extra.patch
-- Applying patch mingw-dll-install.patch
-- Applying patch disable-static-prefix.patch
-- Applying patch fix-win-build.patch
-- Using source at Z:/Development/src/vcpkg/buildtrees/icu/src/c-73_1-src-3575e21c7c.clean
-- Found external ninja('1.11.0').
-- Getting CMake variables for x64-windows
-- Using cached msys2-autoconf-wrapper-20221207-1-any.pkg.tar.zst.
-- Using cached msys2-automake-wrapper-20221207-1-any.pkg.tar.zst.
-- Using cached msys2-binutils-2.40-1-x86_64.pkg.tar.zst.
-- Using cached msys2-libtool-2.4.7-3-x86_64.pkg.tar.zst.
-- Using cached msys2-make-4.4.1-1-x86_64.pkg.tar.zst.
-- Using cached msys2-pkgconf-1.9.4-1-x86_64.pkg.tar.zst.
-- Using cached msys2-which-2.21-4-x86_64.pkg.tar.zst.
-- Using cached msys2-autoconf-archive-2022.09.03-1-any.pkg.tar.zst.
-- Using cached msys2-bash-5.2.015-1-x86_64.pkg.tar.zst.
-- Using cached msys2-coreutils-8.32-5-x86_64.pkg.tar.zst.
-- Using cached msys2-file-5.44-5-x86_64.pkg.tar.zst.
-- Using cached msys2-gawk-5.2.1-2-x86_64.pkg.tar.zst.
-- Using cached msys2-grep-1~3.0-6-x86_64.pkg.tar.zst.
-- Using cached msys2-gzip-1.12-2-x86_64.pkg.tar.zst.
-- Using cached msys2-diffutils-3.9-1-x86_64.pkg.tar.zst.
-- Using cached msys2-sed-4.9-1-x86_64.pkg.tar.zst.
-- Using cached msys2-msys2-runtime-3.4.6-1-x86_64.pkg.tar.zst.
-- Using cached msys2-autoconf2.71-2.71-1-any.pkg.tar.zst.
-- Using cached msys2-automake1.16-1.16.5-1-any.pkg.tar.zst.
-- Using cached msys2-libiconv-1.17-1-x86_64.pkg.tar.zst.
-- Using cached msys2-libintl-0.21-2-x86_64.pkg.tar.zst.
-- Using cached msys2-zlib-1.2.13-1-x86_64.pkg.tar.zst.
-- Using cached msys2-tar-1.34-3-x86_64.pkg.tar.zst.
-- Using cached msys2-findutils-4.9.0-3-x86_64.pkg.tar.zst.
-- Using cached msys2-gmp-6.2.1-2-x86_64.pkg.tar.zst.
-- Using cached msys2-gcc-libs-11.3.0-3-x86_64.pkg.tar.zst.
-- Using cached msys2-libbz2-1.0.8-4-x86_64.pkg.tar.zst.
-- Using cached msys2-liblzma-5.4.1-1-x86_64.pkg.tar.zst.
-- Using cached msys2-libzstd-1.5.4-1-x86_64.pkg.tar.zst.
-- Using cached msys2-libreadline-8.2.001-3-x86_64.pkg.tar.zst.
-- Using cached msys2-mpfr-4.2.0-2-x86_64.pkg.tar.zst.
-- Using cached msys2-libpcre-8.45-3-x86_64.pkg.tar.zst.
-- Using cached msys2-m4-1.4.19-2-x86_64.pkg.tar.zst.
-- Using cached msys2-perl-5.36.0-1-x86_64.pkg.tar.zst.
-- Using cached msys2-ncurses-6.4-1-x86_64.pkg.tar.zst.
-- Using cached msys2-libcrypt-2.1-4-x86_64.pkg.tar.zst.
CMake Error: Problem with archive_write_header(): Can't create '\\?\Z:\Development\src\vcpkg\downloads\tools\msys2\87962f0d86055c95.tmp\usr\bin\ld.exe'
CMake Error: Current file: usr/bin/ld.exe
CMake Error at scripts/cmake/vcpkg_acquire_msys.cmake:229 (file):
file failed to extract:
Z:/Development/src/vcpkg/downloads/msys2-binutils-2.40-1-x86_64.pkg.tar.zst
Call Stack (most recent call first):
scripts/cmake/vcpkg_configure_make.cmake:228 (vcpkg_acquire_msys)
ports/icu/portfile.cmake:54 (vcpkg_configure_make)
scripts/ports.cmake:147 (include)
```
**Additional context**
1) Windows 10 with Development mode switched on (Windows->Settings->Updates->For developers->Development mode on) and rebooted.
2) download folder deleted before icu install.
3) vcpkg installed cmake 3.27 after deleting of download folder (Downloading https://github.com/Kitware/CMake/releases/download/v3.27.1/cmake-3.27.1-windows-i386.zip)
During installation of icu dependencies cmake tries to unarchive msys2-binutils-2.40-1-x86_64.pkg.tar.zst and fails on ld.exe . If this archive unpacked by tar.exe under Windows, tar does not create ld.exe (only ld.bfd.exe). If this archive unpacked under Unix, tar creates ld.exe, it is the link of ld.bfd.exe and has the same inode, it is not symbolic link). Probably it is the reason of the error: archive msys2-binutils-2.40-1-x86_64.pkg.tar.zst has link, but cmake 3.27.1 cannot work with this type of files in tar archive.
As result icu cannot be build and installed.
Can you help?
It’s not exactly the same, but it was resolved by using a local NTFS drive (rather than a network drive) for vcpkg. Are you trying to build on a network drive by any chance?
Unfortunately, I’m using a local NTFS disk drive,Currently, my progress has stopped
Haha, The problem is caused by locale settings (UTF-8) and is solved!, and thank you for your reply
Me too, how did you solve this problem?
Check this option and try recompiling