Skip to content

Installation fails on macOS ARM64 due to x86-specific assembly code #330

@matsen

Description

@matsen

Problem

Installation via pip fails on macOS ARM64 (Apple Silicon) during compilation due to x86-specific assembly code.

Steps to Reproduce

pip install git+https://github.com/psathyrella/partis.git

Error

Compilation fails with errors like:

/Library/Developer/CommandLineTools/usr/lib/clang/17/include/emmintrin.h:14:2: error: "This header is only meant to be used on x86 and x64 architecture"

The build process includes x86-specific headers (emmintrin.h, xmmintrin.h, mmintrin.h) that are incompatible with ARM64 architecture.

Environment

  • macOS with Apple Silicon (ARM64)
  • Python 3.11
  • Clang 17

Expected Behavior

Installation should succeed on ARM64 platforms or provide clear documentation about platform limitations.

Possible Solutions

  1. Add conditional compilation for ARM64 vs x86 architectures
  2. Use platform-agnostic SIMD intrinsics
  3. Provide pre-compiled binaries for ARM64
  4. Document x86-only limitation if ARM64 support is not planned

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions