microsoft / vcpkg

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

[libiconv] Build error #32990

Open coco875 opened 1 year ago

coco875 commented 1 year ago

Package: libiconv:x64-windows -> 1.17#1

Host Environment

To Reproduce

vcpkg install libiconv:x64-windows

Failure logs

-- Using cached libiconv-1.17.tar.gz.
-- Cleaning sources at D:/GitHub/vcpkg/buildtrees/libiconv/src/v1.17-84a471678e.clean. Use --editable to skip cleaning for the packages you specify.
-- Extracting source D:/GitHub/vcpkg/downloads/libiconv-1.17.tar.gz
-- Applying patch 0002-Config-for-MSVC.patch
-- Applying patch 0003-Add-export.patch
-- Applying patch 0004-ModuleFileName.patch
-- Applying patch clang-fortify.patch
-- Using source at D:/GitHub/vcpkg/buildtrees/libiconv/src/v1.17-84a471678e.clean
-- Found external ninja('1.10.2').
-- 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-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 '\\?\D:\GitHub\vcpkg\downloads\tools\msys2\d7266db249278763.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:
  D:/GitHub/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/libiconv/portfile.cmake:29 (vcpkg_configure_make)
  scripts/ports.cmake:147 (include)

Additional context

JackBoosY commented 1 year ago

Can this issue always be reproduced?

coco875 commented 1 year ago

On my computer he make always this same error

JackBoosY commented 1 year ago

What is the partition format of D:/ ?

coco875 commented 1 year ago

For now i am not at home but I know the type of stockage who are SSD, when I am at home I can give more details.

coco875 commented 1 year ago

the format of D:/ is exFAT

ADEM0S commented 1 year ago

I get the same error but for gmp with the command vcpkg install gmp --triplet=x64-windows-static

JackBoosY commented 1 year ago

cmake has an exFAT extract bug.

coco875 commented 1 year ago

So to solve this the only way is to wait until the problem with cmake is fix or format the disk in ntfs, that's right ?

ADEM0S commented 1 year ago

Moving the vcpkg folder into a NTFS disk solved it for me. Thanks <3

JackBoosY commented 1 year ago

https://gitlab.kitware.com/cmake/cmake/-/issues/19132

JackBoosY commented 1 year ago

duplicated to https://github.com/microsoft/vcpkg/issues/17489

Ran-gok commented 1 year ago

libiconv.zip I didn't know what the error was, so I compressed all of the libiconv files. Could you tell me the cause of the error? The libiconv:x64-windows-static patch does not work.

github-actions[bot] commented 1 year ago

This is an automated message. Per our repo policy, stale issues get closed if there has been no activity in the past 28 days. The issue will be automatically closed in 14 days. If you wish to keep this issue open, please add a new comment.

github-actions[bot] commented 11 months ago

This is an automated message. Per our repo policy, stale issues get closed if there has been no activity in the past 28 days. The issue will be automatically closed in 14 days. If you wish to keep this issue open, please add a new comment.

mhsitu commented 9 months ago

cmake has an exFAT extract bug.

I have the same error while using docker windows(mcr.microsoft.com/windows/servercore:ltsc2022), using the latest master branch ( > 2023.12.12 ).

CMake Error: Problem with archive_write_header(): Can't create '\\?\C:\opt\ros\noetic\x64\tools\vcpkg\downloads\tools\msys2\5f36c2d65b270362.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:
  C:/opt/ros/noetic/x64/tools/vcpkg/downloads/msys2-binutils-2.41-3-x86_64.pkg.tar.zst

I mount the vcpkg_root to the host and the dist format is NTFS. Is it still a cmake bug?