Repository: chroma-core/chroma

Issue #221: Chromadb fails to install on MacOS 13.2.1 (i9) with latest XCode 
Created: 2023-03-20T05:25:54Z
pip3 install chromadb on MacOS 13 (i9 hardware) fails:
Building wheels for collected packages: hnswlib
  Building wheel for hnswlib (pyproject.toml) ... error
  error: subprocess-exited-with-error
  
  × Building wheel for hnswlib (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [17 lines of output]
      running bdist_wheel
      running build
      running build_ext
      creating var
      creating var/folders
      creating var/folders/q_
      creating var/folders/q_/f5sh90n16hb55w1tz2_s2vqw0000gn
      creating var/folders/q_/f5sh90n16hb55w1tz2_s2vqw0000gn/T
      clang -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch arm64 -arch x86_64 -g -I/Library/Frameworks/Python.framework/Versions/3.11/include/python3.11 -c /var/folders/q_/f5sh90n16hb55w1tz2_s2vqw0000gn/T/tmpq86o7pij.cpp -o var/folders/q_/f5sh90n16hb55w1tz2_s2vqw0000gn/T/tmpq86o7pij.o -std=c++14
      clang -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch arm64 -arch x86_64 -g -I/Library/Frameworks/Python.framework/Versions/3.11/include/python3.11 -c /var/folders/q_/f5sh90n16hb55w1tz2_s2vqw0000gn/T/tmpkpsz3vsz.cpp -o var/folders/q_/f5sh90n16hb55w1tz2_s2vqw0000gn/T/tmpkpsz3vsz.o -fvisibility=hidden
      building 'hnswlib' extension
      creating build
      creating build/temp.macosx-10.9-universal2-cpython-311
      creating build/temp.macosx-10.9-universal2-cpython-311/python_bindings
      clang -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch arm64 -arch x86_64 -g -I/private/var/folders/q_/f5sh90n16hb55w1tz2_s2vqw0000gn/T/pip-build-env-i22faqo5/overlay/lib/python3.11/site-packages/pybind11/include -I/private/var/folders/q_/f5sh90n16hb55w1tz2_s2vqw0000gn/T/pip-build-env-i22faqo5/overlay/lib/python3.11/site-packages/numpy/core/include -I./hnswlib/ -I/Library/Frameworks/Python.framework/Versions/3.11/include/python3.11 -c ./python_bindings/bindings.cpp -o build/temp.macosx-10.9-universal2-cpython-311/./python_bindings/bindings.o -O3 -march=native -stdlib=libc++ -mmacosx-version-min=10.7 -DVERSION_INFO=\"0.7.0\" -std=c++14 -fvisibility=hidden
      clang: error: the clang compiler does not support '-march=native'
      error: command '/usr/bin/clang' failed with exit code 1
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for hnswlib
Failed to build hnswlib
ERROR: Could not build wheels for hnswlib, which is required to install pyproject.toml-based projects

Unfortunately, clang cannot be updated beyond 14.0.0 on non-M1 hardware (related) because it is managed by XCode

Duplicate issue #98: Unit tests fail in Github Actions on for MacOS platform
Created: 2022-12-04T03:19:35Z
Github Actions uses older versions of OSX (11 and 12), and runs only on Intel-based macs.
The tests run fine when running locally on an M1.
Given that the dev team is mostly on newer M1 Macs, without immediate access to an Intel-based mac to reproduce the problem, we are going to "solve" the test failure by removing MacOS as a test platform target. Given the error message, I also strongly suspect the problem is in the Github Actions environment rather than actually being a Mac-related issue.
Creating this issue so we can circle back if we ever do decide it's important to get unit tests running on Intel macs, again.

Closing comment (2023-03-20T05:36:43Z): Possibly related to #221