Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Register
  • Sign in
  • CMake CMake
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 4.2k
    • Issues 4.2k
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 16
    • Merge requests 16
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Artifacts
    • Schedules
  • Deployments
    • Deployments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • External wiki
    • External wiki
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • CMakeCMake
  • CMakeCMake
  • Issues
  • #21552
Closed
Open
Issue created Dec 04, 2020 by Cristian Adam@cristianadamDeveloper

file(ARCHIVE_CREATE) fails when zstd archive format is not compiled in

Qt6 is doing a system introspection for libzstd and if found it assumes it can use it.

Unfortunately on some Linux distributions (I think gentoo) CMake is not built with libarchive using libzstd, and when Qt6's CMake code tries to use file(ARCHIVE_CREATE) with ztsd format it fails with:

CMake Error: archive_write_header: Format must be set before you can write to an archive.

Here is the bug report on the Qt side: https://bugreports.qt.io/browse/QTBUG-89108

Note that the official Kitware Linux CMake binaries have no problems.

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking