8000 [duckdb] decompress error with vcpkg · Issue #45761 · microsoft/vcpkg · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

[duckdb] decompress error with vcpkg #45761

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

Open
huiyifyj opened this issue May 30, 2025 · 5 comments
Open

[duckdb] decompress error with vcpkg #45761

huiyifyj opened this issue May 30, 2025 · 5 comments
Assignees
Labels
requires:more-information This Issue requires more information to solve

Comments

@huiyifyj
Copy link

Describe the bug

Building duckdb@1.2.2 with vcpkg fails, which looks like decompression issues while extracting the archive.

I found the log file at <vcpkg>\buildtrees\duckdb\extract-err.log which contains the following error:

CMake Error: Problem with archive_write_header(): Invalid empty pathname
CMake Error: Current file: 
CMake Error: Problem extracting tar: C:/Users/Administrator/scoop/apps/vcpkg/current/downloads/duckdb-duckdb-v1.2.2.tar.gz

I find the #43438 (comment) that the issue might be related to the archive being corrupted or not properly formatted.

So I try to decompress the archive manually using tar command in downloads directory in PowerShell terminal:

tar -xzf duckdb-duckdb-v1.2.2.tar.gz

But it fails with the error, yet it looks like the file pointed by the symbolic link link_to_upper_dir in the archive does not exist, which is likely the cause of the extraction failure.

tar error

Environment

  • OS: Windows
  • Compiler: C:/Program Files (x86)/Microsoft Visual Studio/2022/BuildTools/VC/Tools/MSVC/14.42.34433/bin/Hostx64/x64/cl.exe
  • Build environment: vcpkg + CMake

To Reproduce

Steps to reproduce the behavior:

  1. ./vcpkg install duckdb
  2. See error

cmake build error

Failure logs

The content of the log file stdout-x64-windows.log is as follows:

Downloading https://github.com/duckdb/duckdb/archive/v1.2.2.tar.gz -> duckdb-duckdb-v1.2.2.tar.gz
Successfully downloaded duckdb-duckdb-v1.2.2.tar.gz
-- Extracting source C:/Users/Administrator/scoop/apps/vcpkg/current/downloads/duckdb-duckdb-v1.2.2.tar.gz
CMake Error at scripts/cmake/vcpkg_execute_required_process.cmake:127 (message):
    Command failed: C:/Users/Administrator/scoop/apps/cmake/current/bin/cmake.exe -E tar xjf C:/Users/Administrator/scoop/apps/vcpkg/current/downloads/duckdb-duckdb-v1.2.2.tar.gz
    Working Directory: C:/Users/Administrator/scoop/apps/vcpkg/current/buildtrees/duckdb/src/v1.2.2-661f11aebd.clean.tmp
    Error code: 1
    See logs for more information:
      C:\Users\Administrator\scoop\apps\vcpkg\current\buildtrees\duckdb\extract-err.log

Call Stack (most recent call first):
  scripts/cmake/vcpkg_extract_source_archive.cmake:120 (vcpkg_execute_required_process)
  scripts/cmake/vcpkg_extract_source_archive_ex.cmake:8 (vcpkg_extract_source_archive)
  scripts/cmake/vcpkg_from_github.cmake:113 (vcpkg_extract_source_archive_ex)
  C:/Users/Administrator/AppData/Local/vcpkg/registries/git-trees/8b6cea8eac3a4cf5e3555de679e598d1fa924ae5/portfile.cmake:1 (vcpkg_from_github)
  scripts/ports.cmake:206 (include)
@Mengna-Li
Copy link
Contributor

@huiyifyj Please provide the failure log C:\Users\Administrator\scoop\apps\vcpkg\current\buildtrees\duckdb\extract-err.log, thanks.

@Mengna-Li Mengna-Li added the requires:more-information This Issue requires more information to solve label May 30, 2025
@dg0yt
Copy link
Contributor
dg0yt commented May 30, 2025

Is this specific to scoop's CMake, C:/Users/Administrator/scoop/apps/cmake/current/bin/cmake.exe?

(There have always been some quirks with scoop.)

@huiyifyj
Copy link
Author
huiyifyj commented May 30, 2025

@huiyifyj Please provide the failure log C:\Users\Administrator\scoop\apps\vcpkg\current\buildtrees\duckdb\extract-err.log, thanks.

The log has been posted in [Describe the bug] section.

CMake Error: Problem with archive_write_header(): Invalid empty pathname
CMake Error: Current file: 
CMake Error: Problem extracting tar: C:/Users/Administrator/scoop/apps/vcpkg/current/downloads/duckdb-duckdb-v1.2.2.tar.gz

@huiyifyj
Copy link
Author

Is this specific to scoop's CMake, C:/Users/Administrator/scoop/apps/cmake/current/bin/cmake.exe?

(There have always been some quirks with scoop.)

Even when using CLion's built-in CMake, the same decompression error persists.

@dg0yt
Copy link
Contributor
dg0yt commented May 30, 2025

But not with pristine CMake? vcpkg CI seems unaffected.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
requires:more-information This Issue requires more information to solve
Projects
None yet
Development

No branches or pull requests

3 participants
0