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

[cmake]Unpacking source using cmake failed #8112

Closed
zewpo opened this issue Sep 9, 2019 · 6 comments
Closed

[cmake]Unpacking source using cmake failed #8112

zewpo opened this issue Sep 9, 2019 · 6 comments
Assignees
Labels
category:vcpkg-bug The issue is with the vcpkg system (including helper scripts in `scripts/cmake/`) depends:upstream-changes Waiting on a change to the upstream project

Comments

@zewpo
Copy link

zewpo commented Sep 9, 2019

I have a run into a problem causing me to be unable to install harfbuzz - which is a prequisite to a number of other packages, like qt-base - that I want to try out. Seems to occur when cmake tries to extract the harfbuzz tar.gz files.... details below...

Host Environment

  • OS: Windows 10 x64
  • Compiler: Microsoft Visual C++ 2019 v16.2.4

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

Failure logs
-Cut and past the appropriate build messages from the console output.

vcpkg install harfbuzz

The following packages will be built and installed:
    harfbuzz[core,ucdn]:x64-windows
Starting package 1/1: harfbuzz:x64-windows
Building package harfbuzz[core,ucdn]:x64-windows...
-- Using cached C:/workspaces/repos/vcpkg/downloads/harfbuzz-harfbuzz-2.5.3.tar.gz
-- Extracting source C:/workspaces/repos/vcpkg/downloads/harfbuzz-harfbuzz-2.5.3.tar.gz                                                                                             
CMake Error at scripts/cmake/vcpkg_execute_required_process.cmake:72 (message):                                                                                                         
Command failed: "C:/Program Files/CMake/bin/cmake.exe" -E tar xjf 
C:/workspaces/repos/vcpkg/downloads/harfbuzz-harfbuzz-2.5.3.tar.gz                                                
Working Directory: C:/workspaces/repos/vcpkg/buildtrees/harfbuzz/src/TEMP                                                                                                           
Error code: 1                                                                                                                                                                       
See logs for more information:                                                                                                                                                        
C:\workspaces\repos\vcpkg\buildtrees\harfbuzz\extract-err.log                                                                                                                                                                                                                                                                                                     
Call Stack (most recent call first):                                                                                                                                                  
scripts/cmake/vcpkg_extract_source_archive.cmake:43 (vcpkg_execute_required_process)                                                                                                
scripts/cmake/vcpkg_extract_source_archive_ex.cmake:98 (vcpkg_extract_source_archive)                                                                                               
scripts/cmake/vcpkg_from_github.cmake:114 (vcpkg_extract_source_archive_ex)                                                                                                         
ports/harfbuzz/portfile.cmake:3 (vcpkg_from_github)                                                                                                                                 
scripts/ports.cmake:85 (include)                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          
Error: Building package harfbuzz:x64-windows failed with: BUILD_FAILED                                                                                                              
Please ensure you're using the latest portfiles with `.\vcpkg update`, then                                                                                                         
submit an issue at https://github.com/Microsoft/vcpkg/issues including:                                                                                                               
Package: harfbuzz:x64-windows                                                                                                                                                       
Vcpkg version: 2019.08.27-nohash                                                                                                                                                                                                                                                                                                                                      
Additionally, attach any relevant sections from the log files above.   

-Please attach any additional failure logs mentioned in the console output.

type C:\workspaces\repos\vcpkg\buildtrees\harfbuzz\extract-err.log

CMake Error: Problem with archive_write_header(): Can't create ''
CMake Error: Current file: harfbuzz-2.5.3/README
CMake Error: Problem extracting tar: C:/workspaces/repos/vcpkg/downloads/harfbuzz-harfbuzz-2.5.3.tar.gz

Additional context
Add any other context about the problem here, such as what you have already tried to resolve the issue.

My default triplet is x64-windows, so I also tried with x86-windows, but got the exact same issue.

@zewpo zewpo added the category:port-bug The issue is with a library, which is something the port should already support label Sep 9, 2019
@JackBoosY JackBoosY self-assigned this Sep 10, 2019
@JackBoosY
Copy link
Contributor

JackBoosY commented Sep 10, 2019

This issue may be caused by insufficient permissions or by a cmake bug.
Please following the step:

  1. Reinstall this port after re-clone vcpkg on a non-system disk.
  2. Roll back your cmake version to 3.13.4.

See #19102 #19132.

@zewpo
Copy link
Author

zewpo commented Sep 10, 2019

@JackBoosY

Thank you very much for the links. I found the following work-around described in thread: #19102

A Windows setting that causes this problem:
intl.cpl > Administrative > Change system locale...
☑ Beta: Use Unicode UTF-8 for worldwide language support

Unticking it fixes the cmake -E tar error for me, and I was able to get harfbuzz to install correctly.

@zewpo zewpo closed this as completed Sep 10, 2019
@zewpo
Copy link
Author

zewpo commented Sep 10, 2019

Happy to close the issue, thanks to the work-around shared by @JackBoosY . I mean, it would be better if it doesn't need the work-around, but at least I am happy for now.

@JackBoosY
Copy link
Contributor

@zewpo Please do not close this issue until we update cmake to the fixed version.

Thanks.

@JackBoosY JackBoosY reopened this Sep 10, 2019
@JackBoosY JackBoosY added depends:upstream-changes Waiting on a change to the upstream project category:vcpkg-bug The issue is with the vcpkg system (including helper scripts in `scripts/cmake/`) and removed category:port-bug The issue is with a library, which is something the port should already support labels Sep 10, 2019
@JackBoosY JackBoosY changed the title harfbuzz:x64-windows build failure Vcpkg version: 2019.08.27-nohash [cmake]Unpacking source using cmake failed Sep 10, 2019
@zewpo
Copy link
Author

zewpo commented Sep 10, 2019

@zewpo Please do not close this issue until we update cmake to the fixed version.

Thanks.

OK, :) makes sense. thanks

@PhoebeHui
Copy link
Contributor

PhoebeHui commented Sep 11, 2019

We have known issue #5951 to track same issue, so it's safe to close it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category:vcpkg-bug The issue is with the vcpkg system (including helper scripts in `scripts/cmake/`) depends:upstream-changes Waiting on a change to the upstream project
Projects
None yet
Development

No branches or pull requests

3 participants