Skip to content

minizip-ng build error on Windows using UV #159

@PrettyPurpleInk

Description

@PrettyPurpleInk

When building Raven on Widows with UV I get following error:

$ uv run --no-editable --no-cache raven
Using CPython 3.12.9
Creating virtual environment at: .venv
  × Failed to build `opentimelineio-raven @ file:///~/Dev/raven`
  ├─▶ The build backend returned an error
  ╰─▶ Call to `scikit_build_core.build.build_wheel` failed (exit code: 1)

      [stdout]
      *** scikit-build-core 0.12.2 using CMake 4.3.3 (wheel)
      *** Configuring CMake...
      loading initial cache file ~\AppData\Local\Temp\tmp_jztkmrf\build\CMakeInit.txt
      -- Building for: Visual Studio 17 2022
      -- Selecting Windows SDK version 10.0.22621.0 to target Windows 10.0.22631.
      -- The C compiler identification is MSVC 19.43.34808.0
      -- The CXX compiler identification is MSVC 19.43.34808.0
      -- Detecting C compiler ABI info
      -- Detecting C compiler ABI info - done
      -- Check for working C compiler: C:/Program Files/Microsoft Visual
      Studio/2022/Community/VC/Tools/MSVC/14.43.34808/bin/Hostx64/x64/cl.exe - skipped
      -- Detecting C compile features
      -- Detecting C compile features - done
      -- Detecting CXX compiler ABI info
      -- Detecting CXX compiler ABI info - done
      -- Check for working CXX compiler: C:/Program Files/Microsoft Visual
      Studio/2022/Community/VC/Tools/MSVC/14.43.34808/bin/Hostx64/x64/cl.exe - skipped
      -- Detecting CXX compile features
      -- Detecting CXX compile features - done
      -- OTIO C++ installing to ~/AppData/Local/Temp/tmp_jztkmrf/wheel/platlib/otio_raven
      -- Building static libs
      -- Installing C++ bindings to: ~/AppData/Local/Temp/tmp_jztkmrf/wheel/platlib/otio_raven
      -- Installing C++ dynamic libraries to:
      ~/AppData/Local/Temp/tmp_jztkmrf/wheel/platlib/otio_raven/lib
      --   Installing header dependencies for C++ (OTIO_DEPENDENCIES_INSTALL=ON)
      -- Install Python bindings: OFF
      -- Building C++ with Coverage: OFF
      -- Checking git repo is available:
      true
      -- root: Updating git submodules to make sure they are up to date
      -- Using src/deps/Imath by default
      -- Using src/deps/rapidjson by default
      -- Imath is configuring as a cmake sub project
      -- Configure Imath 3.2.1, library API version: 30.3.2.1
      -- Imath pkg-config generation enabled
      -- Looking for sin in m
      -- Looking for sin in m - not found
      -- Using CMake version 4.3.3
      -- Looking for stdint.h
      -- Looking for stdint.h - found
      -- Looking for inttypes.h
      -- Looking for inttypes.h - found
      -- Looking for sys/types.h
      -- Looking for sys/types.h - found
      -- Looking for stddef.h
      -- Looking for stddef.h - found
      -- Check size of off64_t
      -- Check size of off64_t - failed
      -- Looking for fseeko
      -- Looking for fseeko - not found
      -- Fetching zlib https://github.com/zlib-ng/zlib-ng stable
      -- Using CMake version 4.3.3
      -- ZLIB_HEADER_VERSION: 1.3.1
      -- ZLIBNG_HEADER_VERSION: 2.3.3
      -- Arch detected: 'arm64'
      -- Basearch of 'arm64' has been detected as: 'arm'
      -- Looking for arm_acle.h
      -- Looking for arm_acle.h - not found
      -- Looking for sys/auxv.h
      -- Looking for sys/auxv.h - not found
      -- Looking for sys/sdt.h
      -- Looking for sys/sdt.h - not found
      -- Looking for unistd.h
      -- Looking for unistd.h - not found
      -- Looking for linux/auxvec.h
      -- Looking for linux/auxvec.h - not found
      -- Check size of _off64_t
      -- Check size of _off64_t - failed
      -- Check size of __off64_t
      -- Check size of __off64_t - failed
      -- Looking for strerror
      -- Looking for strerror - found
      -- Looking for __cpuid_count
      -- Looking for __cpuid_count - not found
      -- Performing Test HAVE_CPUID_MS
      -- Performing Test HAVE_CPUID_MS - Success
      -- Performing Test HAVE_NO_INTERPOSITION
      -- Performing Test HAVE_NO_INTERPOSITION - Failed
      -- Performing Test HAVE_ATTRIBUTE_VISIBILITY_HIDDEN
      -- Performing Test HAVE_ATTRIBUTE_VISIBILITY_HIDDEN - Failed
      -- Performing Test HAVE_ATTRIBUTE_VISIBILITY_INTERNAL
      -- Performing Test HAVE_ATTRIBUTE_VISIBILITY_INTERNAL - Failed
      -- Performing Test HAVE_ATTRIBUTE_ALIGNED
      -- Performing Test HAVE_ATTRIBUTE_ALIGNED - Failed
      -- Performing Test HAVE_BUILTIN_ASSUME_ALIGNED
      -- Performing Test HAVE_BUILTIN_ASSUME_ALIGNED - Success
      -- Performing Test HAVE_BUILTIN_CTZ
      -- Performing Test HAVE_BUILTIN_CTZ - Failed
      -- Performing Test HAVE_BUILTIN_CTZLL
      -- Performing Test HAVE_BUILTIN_CTZLL - Failed
      -- Performing Test HAVE_PTRDIFF_T
      -- Performing Test HAVE_PTRDIFF_T - Success
      -- Performing Test HAVE_ARMV8_INLINE_ASM
      -- Performing Test HAVE_ARMV8_INLINE_ASM - Failed
      -- Performing Test HAVE_ARMV8_INTRIN
      -- Performing Test HAVE_ARMV8_INTRIN - Failed
      -- Performing Test NEON_AVAILABLE
      -- Performing Test NEON_AVAILABLE - Failed
      -- Performing Test HAVE_ARMV6_INLINE_ASM
      -- Performing Test HAVE_ARMV6_INLINE_ASM - Failed
      -- Performing Test HAVE_ARMV6_INTRIN
      -- Performing Test HAVE_ARMV6_INTRIN - Failed
      -- Architecture-specific source files: arch/arm/arm_features.c
      -- The following features have been enabled:

       * WITH_GZFILEOP, Compile with support for gzFile related functions
       * ZLIB_ALIASES, Compile with zlib compatible CMake targets
       * WITH_SANITIZER, Enable sanitizer testing support
       * WITH_OPTIM, Build with optimisation
       * WITH_NEW_STRATEGIES, Use new strategies
       * WITH_CRC32_CHORBA, Use optimized CRC32 algorithm Chorba
       * WITH_RUNTIME_CPU_DETECTION, Build with runtime CPU detection

      -- The following OPTIONAL packages have been found:

       * Git

      -- The following features have been disabled:

       * ZLIB_SYMBOL_PREFIX, Publicly exported symbols DO NOT have a custom prefix
       * ZLIB_COMPAT, Compile with zlib compatible API
       * BUILD_TESTING, Build test binaries
       * WITH_GTEST, Build tests using Gtest framework
       * WITH_FUZZERS, Build test/fuzz
       * WITH_BENCHMARKS, Build benchmarks using Google Benchmark framework
       * WITH_BENCHMARK_APPS, Build application benchmarks (currently libpng)
       * WITH_ALL_FALLBACKS, Build all generic fallback functions
       * WITH_NATIVE_INSTRUCTIONS, Instruct the compiler to use the full instruction set on this host (gcc/clang
      -march=native)
       * WITH_MAINTAINER_WARNINGS, Build with project maintainer warnings
       * WITH_CODE_COVERAGE, Enable code coverage reporting
       * WITH_INFLATE_STRICT, Build with strict inflate distance checking
       * WITH_INFLATE_ALLOW_INVALID_DIST, Build with zero fill for inflate invalid distances
       * WITH_ARMV6, Build with ARMv6 SIMD
       * WITH_ARMV8, Build with ARMv8 CRC32 intrinsics
       * WITH_NEON, Build with NEON intrinsics
       * INSTALL_UTILS, Copy minigzip and minideflate during install

      -- The following OPTIONAL packages have not been found:

       * ZLIB-NG
       * ZLIB

      -- ZLIB repository detected as ZLIB-NG
      -- The following features have been enabled:

       * WITH_GZFILEOP, Compile with support for gzFile related functions
       * ZLIB_ALIASES, Compile with zlib compatible CMake targets
       * WITH_SANITIZER, Enable sanitizer testing support
       * WITH_OPTIM, Build with optimisation
       * WITH_NEW_STRATEGIES, Use new strategies
       * WITH_CRC32_CHORBA, Use optimized CRC32 algorithm Chorba
       * WITH_RUNTIME_CPU_DETECTION, Build with runtime CPU detection
       * MZ_COMPAT, Enables compatibility layer
       * MZ_ZLIB, Enables ZLIB compression
       * MZ_FETCH_LIBS, Enables fetching third-party libraries if not found

      -- The following features have been disabled:

       * ZLIB_SYMBOL_PREFIX, Publicly exported symbols DO NOT have a custom prefix
       * ZLIB_COMPAT, Compile with zlib compatible API
       * BUILD_TESTING, Build test binaries
       * WITH_GTEST, Build tests using Gtest framework
       * WITH_FUZZERS, Build test/fuzz
       * WITH_BENCHMARKS, Build benchmarks using Google Benchmark framework
       * WITH_BENCHMARK_APPS, Build application benchmarks (currently libpng)
       * WITH_ALL_FALLBACKS, Build all generic fallback functions
       * WITH_NATIVE_INSTRUCTIONS, Instruct the compiler to use the full instruction set on this host (gcc/clang
      -march=native)
       * WITH_MAINTAINER_WARNINGS, Build with project maintainer warnings
       * WITH_CODE_COVERAGE, Enable code coverage reporting
       * WITH_INFLATE_STRICT, Build with strict inflate distance checking
       * WITH_INFLATE_ALLOW_INVALID_DIST, Build with zero fill for inflate invalid distances
       * WITH_ARMV6, Build with ARMv6 SIMD
       * WITH_ARMV8, Build with ARMv8 CRC32 intrinsics
       * WITH_NEON, Build with NEON intrinsics
       * INSTALL_UTILS, Copy minigzip and minideflate during install
       * MZ_BZIP2, Enables BZIP2 compression
       * MZ_LZMA, Enables LZMA & XZ compression
       * MZ_ZSTD, Enables ZSTD compression
       * MZ_LIBCOMP, Enables Apple compression
       * MZ_FORCE_FETCH_LIBS, Enables fetching third-party libraries always
       * MZ_PKCRYPT, Enables PKWARE traditional encryption
       * MZ_WZAES, Enables WinZIP AES encryption
       * MZ_OPENSSL, Enables OpenSSL for encryption
       * MZ_LIBBSD, Builds with libbsd crypto random
       * MZ_ICONV, Enables iconv string encoding conversion library
       * MZ_COMPRESS_ONLY, Only support compression
       * MZ_DECOMPRESS_ONLY, Only support decompression
       * MZ_FILE32_API, Builds using posix 32-bit file api
       * MZ_BUILD_TESTS, Builds minizip test executable
       * MZ_BUILD_UNIT_TESTS, Builds minizip unit test project
       * MZ_BUILD_FUZZ_TESTS, Builds minizip fuzzer executables
       * MZ_CODE_COVERAGE, Builds with code coverage flags

      -- Configuring done (23.9s)
      -- Generating done (0.3s)

      [stderr]
      2026-06-12 10:49:39,215 - scikit_build_core - WARNING - Can't find a Python library, got libdir=None,
      ldlibrary=None, multiarch=None, masd=None
      CMake Warning (dev) at ~/scoop/apps/cmake/current/share/cmake-4.3/Modules/FetchContent.cmake:1966
      (message):
        Calling FetchContent_Populate(zlib) is deprecated, call
        FetchContent_MakeAvailable(zlib) instead.  Policy CMP0169 can be set to OLD
        to allow FetchContent_Populate(zlib) to be called directly for now, but the
        ability to call it with declared details will be removed completely in a
        future version.
      Call Stack (most recent call first):
        libs/minizip-ng/cmake/clone-repo.cmake:29 (FetchContent_Populate)
        libs/minizip-ng/CMakeLists.txt:216 (clone_repo)
      This warning is for project developers.  Use -Wno-dev to suppress it.

      CMake Deprecation Warning at libs/minizip-ng/third_party/zlib/CMakeLists.txt:54 (message):
        ZLIB_ENABLE_TESTS is deprecated.  Please use BUILD_TESTING instead.


      CMake Error: INSTALL(EXPORT) given unknown export "zlib-ng-targets"
      CMake Generate step failed.  Build files cannot be regenerated correctly.

      *** CMake configuration failed

Adding set(SKIP_INSTALL_ALL ON) to CMakeLists.txt in line 91, before add_subdirectory("libs/minizip-ng") prevents this issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinggood first issueGood for newcomers

    Type

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions