microsoft / vcpkg

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

[cmake] Failed to decompress using cmake on exFat partition #17489

Open Endleon201 opened 3 years ago

Endleon201 commented 3 years ago

Host Environment

To Reproduce Steps to reproduce the behavior: ./vcpkg install xnlt

Failure logs CMake Error at scripts/cmake/vcpkg_execute_required_process.cmake:105 (message): Command failed: /media/endleon/MNPRT/C_CPlusPlus/vcpkg/downloads/tools/cmake-3.19.2-linux/cmake-3.19.2-Linux-x86_64/bin/cmake -E tar xjf /media/endleon/MNPRT/C_CPlusPlus/vcpkg/downloads/tfussell-xlnt-568ac85346bc37757b0cd16464e7e1ea7656df91.tar.gz Working Directory: /media/endleon/MNPRT/C_CPlusPlus/vcpkg/buildtrees/xlnt/src/ea7656df91-d410bfb5cd.tmp Error code: 1 See logs for more information: /media/endleon/MNPRT/C_CPlusPlus/vcpkg/buildtrees/xlnt/extract-err.log

Call Stack (most recent call first): scripts/cmake/vcpkg_extract_source_archive.cmake:46 (vcpkg_execute_required_process) scripts/cmake/vcpkg_extract_source_archive_ex.cmake:118 (vcpkg_extract_source_archive) scripts/cmake/vcpkg_from_github.cmake:154 (vcpkg_extract_source_archive_ex) ports/xlnt/portfile.cmake:7 (vcpkg_from_github) scripts/ports.cmake:142 (include)

Error: Building package xlnt:x64-linux failed with: BUILD_FAILED

Additional context I'm using VCPKG on an external drive, a usb flash drive if this is of importance.

autoantwort commented 3 years ago

See logs for more information: /media/endleon/MNPRT/C_CPlusPlus/vcpkg/buildtrees/xlnt/extract-err.log

Please provide the file :)

Endleon201 commented 3 years ago

extract-err.log

JonLiu1993 commented 3 years ago

@Endleon201 ,Thanks for your issue,

CMake Error: Problem with archive_write_header(): Can't create 'xlnt-568ac85346bc37757b0cd16464e7e1ea7656df91/SUMMARY.md'
CMake Error: Current file: xlnt-568ac85346bc37757b0cd16464e7e1ea7656df91/SUMMARY.md
CMake Error: Problem extracting tar: /media/endleon/MNPRT/C_CPlusPlus/vcpkg/downloads/tfussell-xlnt-568ac85346bc37757b0cd16464e7e1ea7656df91.tar.gz

Could you please try to install vcpkg to another driver?

Please see the details here #14300 (comment)

Endleon201 commented 3 years ago

I'll reformat the drive, NTFS should work. It's currently ExFAT

JonLiu1993 commented 3 years ago

@Endleon201 ,Are there any questions now? Please send the log

Endleon201 commented 3 years ago

It just said the exact same thing. char for char.

JackBoosY commented 3 years ago

It seems that cmake has some problems when extracting file on ExFAT partition.

JackBoosY commented 3 years ago

Same with https://github.com/microsoft/vcpkg/issues/5951, related cmake issue: https://statics.teams.cdn.office.net/evergreen-assets/safelinks/1/atp-safelinks.html https://gitlab.kitware.com/cmake/cmake/-/issues/19132

We should wait cmake fix this issue and update our cmake version.

BillyONeal commented 1 year ago

I got poked on Discord about this again today.

dg0yt commented 1 year ago

Wasn't this related to https://github.com/microsoft/STL/issues/233?

BillyONeal commented 1 year ago

Wasn't this related to microsoft/STL#233?

There was a thing where vcpkg would choke due to that, but this is blowing up inside cmake -E tar xf which is something else.