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

7zip build failure #42987

Open
tksharpless opened this issue Dec 29, 2024 · 6 comments
Open

7zip build failure #42987

tksharpless opened this issue Dec 29, 2024 · 6 comments
Assignees
Labels
category:port-bug The issue is with a library, which is something the port should already support

Comments

@tksharpless
Copy link

Operating system

Win11

Compiler

MSVC

Steps to reproduce the behavior

./vcpkg install 7zip

Failure logs

D:\opensource\vcpkg>vcpkg install 7zip
Computing installation plan...
The following packages will be built and installed:
7zip:[email protected]
Detecting compiler hash for triplet x64-windows...
Compiler found: C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.42.34433/bin/Hostx64/x64/cl.exe
A suitable version of 7zip was not found (required v24.9.0) Downloading portable 7zip 24.9.0...
Extracting 7zip...
CMake Error: Problem with archive_read_next_header():
CMake Error: Problem extracting tar: D:\opensource\vcpkg\downloads\7z2409.7z
'CMake' failed while extracting D:\opensource\vcpkg\downloads\7z2409.7z.

Additional context

Note that this is a recursive failure.
I got the same error when trying to install other packages:
C:\Users\tksha\Projects\packages>D:\opensource\vcpkg\vcpkg install
Detecting compiler hash for triplet x64-windows...
Compiler found: C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.42.34433/bin/Hostx64/x64/cl.exe
The following packages will be built and installed:
clipper2:[email protected] -- C:\Users\tksha\AppData\Local\vcpkg\registries\git-trees\5b7c4d5dff8e0b28ad089e870674d497d4be1adb
eigen3:[email protected]#4 -- C:\Users\tksha\AppData\Local\vcpkg\registries\git-trees\17249b310c689b0722c3ee825780a8e24c7d73a2
happly:x64-windows@2021-03-19 -- C:\Users\tksha\AppData\Local\vcpkg\registries\git-trees\30ccc0778da8b49727c6cffa0c11c6ece4ac7073
nlohmann-json:[email protected]#1 -- C:\Users\tksha\AppData\Local\vcpkg\registries\git-trees\324d32ddba70bc49650d1a067ddcf3d0bfc6c9b6
pugixml:[email protected] -- C:\Users\tksha\AppData\Local\vcpkg\registries\git-trees\6e38344aea6e7529afde3895e0885ed5cb0c0542

  • vcpkg-cmake:x64-windows@2024-04-23 -- C:\Users\tksha\AppData\Local\vcpkg\registries\git-trees\e74aa1e8f93278a8e71372f1fa08c3df420eb840
  • vcpkg-cmake-config:x64-windows@2024-05-23 -- C:\Users\tksha\AppData\Local\vcpkg\registries\git-trees\97a63e4bc1a17422ffe4eff71da53b4b561a7841
    Additional packages (*) will be modified to complete this operation.
    A suitable version of 7zip was not found (required v24.9.0) Downloading portable 7zip 24.9.0...
    Extracting 7zip...
    CMake Error: Problem with archive_read_next_header():
    CMake Error: Problem extracting tar: D:\opensource\vcpkg\downloads\7z2409.7z
    'CMake' failed while extracting D:\opensource\vcpkg\downloads\7z2409.7z.
@tksharpless tksharpless added the category:port-bug The issue is with a library, which is something the port should already support label Dec 29, 2024
@tksharpless
Copy link
Author

The problem seems to be in Cmake rather than vcpkg or 7-zip. I extracted 7z2409.7z to a tools directory with WinRAR, after which these installs ran successfully.

@yukunyi
Copy link

yukunyi commented Dec 31, 2024

The problem seems to be in Cmake rather than vcpkg or 7-zip. I extracted 7z2409.7z to a tools directory with WinRAR, after which these installs ran successfully.

Can you tell me how to proceed, thanks? My 7z2409.7z file seems to be corrupted and cannot be extracted using the 7z tool, as the format is incorrect.

@yukunyi
Copy link

yukunyi commented Dec 31, 2024

I successfully installed 7z.exe to the downloads/tools/7zip-24.09-windows directory. After that, move the files from the subdirectory to this directory.

@mrhappyasthma
Copy link

Can anyone provide more specific steps to fix this? I tried copying files to downloads/tools/ but I must not be doing it right. I cannot get past this error

@mrhappyasthma
Copy link

Okay seems like I may have gotten it. The commands are running now for my build (hopefully successfully).

  1. Open the file vcpkg\downloads\7z2409.7z.exe to run it on Windows and extract the install to somewhere (e.g. Desktop).

  2. Create a new folder: vcpkg\downloads\tools\7zip-24.09-windows

  3. Open the install folder from Step1 (e.g. Desktop/7-Zip) and copy all of the contents into the new folder from Step2 (vcpkg\downloads\tools\7zip-24.09-windows).

Then rerun your commands and it should hopefully go.

@tksharpless
Copy link
Author

tksharpless commented Jan 2, 2025 via email

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

4 participants