Skip to content

Can't build on Apple M1/ MacOS Sonoma #35

Closed
@ddppddpp

Description

@ddppddpp

Context:
New, empty virtual environment. Python 3.11.5.

python -m pip install zlib-ng
Collecting zlib-ng
  Downloading zlib-ng-0.4.1.tar.gz (2.5 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 2.5/2.5 MB 13.8 MB/s eta 0:00:00
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Building wheels for collected packages: zlib-ng
  Building wheel for zlib-ng (pyproject.toml) ... error
  error: subprocess-exited-with-error
  
  × Building wheel for zlib-ng (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [50 lines of output]
      running bdist_wheel
      running build
      running build_py
      creating build
      creating build/lib.macosx-13.5-arm64-cpython-311
      creating build/lib.macosx-13.5-arm64-cpython-311/zlib_ng
      copying src/zlib_ng/__init__.py -> build/lib.macosx-13.5-arm64-cpython-311/zlib_ng
      copying src/zlib_ng/gzip_ng_threaded.py -> build/lib.macosx-13.5-arm64-cpython-311/zlib_ng
      copying src/zlib_ng/gzip_ng.py -> build/lib.macosx-13.5-arm64-cpython-311/zlib_ng
      copying src/zlib_ng/zlib_ng.pyi -> build/lib.macosx-13.5-arm64-cpython-311/zlib_ng
      copying src/zlib_ng/py.typed -> build/lib.macosx-13.5-arm64-cpython-311/zlib_ng
      creating build/lib.macosx-13.5-arm64-cpython-311/zlib_ng/zlib-ng
      copying src/zlib_ng/zlib-ng/LICENSE.md -> build/lib.macosx-13.5-arm64-cpython-311/zlib_ng/zlib-ng
      copying src/zlib_ng/zlib-ng/README.md -> build/lib.macosx-13.5-arm64-cpython-311/zlib_ng/zlib-ng
      running build_ext
      Checking for compiler... /Library/Developer/CommandLineTools/usr/bin/clang -arch arm64 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include
      Checking for Symbol versioning... No.
      Checking for shared library support... Building shared library libz-ng.2.1.5.dylib with /Library/Developer/CommandLineTools/usr/bin/clang -arch arm64 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include.
      Checking for off64_t... No.
      Checking for _off64_t... No.
      Checking for fseeko... Yes.
      Checking for posix_memalign... Yes.
      Checking for aligned_alloc... Yes.
      Checking for strerror... Yes.
      Checking for getauxval() in sys/auxv.h... No.
      Checking for unistd.h... Yes.
      Checking for ptrdiff_t... Yes.
      Checking for ANSI C compliant compiler...  Yes.
      Checking for -fno-semantic-interposition... Yes.
      Checking for -fno-lto... Yes.
      Checking for attribute(visibility(hidden)) support... Yes.
      Checking for attribute(visibility(internal)) support... Yes.
      Checking for attribute(aligned) ... Yes.
      Checking for _Thread_local ... Yes.
      Checking for __builtin_ctz ... Yes.
      Checking for __builtin_ctzll ... Yes.
      ARM floating point arch: -mfloat-abi=softfp
      Checking for arm_acle.h... Yes.
      Check whether -march=armv8-a+crc works ... Yes.
      Check whether -march=armv8-a+simd is available ... Yes.
      check whether compiler supports 4 wide register loads ... Yes.
      Check whether -march=armv6 works ... No.
      Checking for ARMv6 inline assembly ... No.
      Checking for ARMv6 intrinsics ... No.
      Uname: Darwin
      ARCH: aarch64
      Using arch directory: arch/arm
      Architecture-specific static object files: arm_features.o crc32_acle.o insert_string_acle.o adler32_neon.o chunkset_neon.o compare256_neon.o slide_hash_neon.o
      Architecture-specific shared object files: arm_features.lo crc32_acle.lo insert_string_acle.lo adler32_neon.lo chunkset_neon.lo compare256_neon.lo slide_hash_neon.lo
      error: [Errno 2] No such file or directory: 'gmake'
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for zlib-ng
Failed to build zlib-ng
ERROR: Could not build wheels for zlib-ng, which is required to install pyproject.toml-based projects

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions