error: Building wheels for collected packages: rii Building wheel for rii (pyproject.toml) ... error error: subprocess-exited-with-error × Building wheel for rii (pyproject.toml) did not run successfully. │ exit code: 1 ╰─> [123 lines of output] running bdist_wheel running build running build_py creating build creating build/lib.macosx-13-arm64-cpython-311 creating build/lib.macosx-13-arm64-cpython-311/tests copying tests/__init__.py -> build/lib.macosx-13-arm64-cpython-311/tests copying tests/test_rii.py -> build/lib.macosx-13-arm64-cpython-311/tests copying tests/context.py -> build/lib.macosx-13-arm64-cpython-311/tests creating build/lib.macosx-13-arm64-cpython-311/rii copying rii/rii.py -> build/lib.macosx-13-arm64-cpython-311/rii copying rii/__init__.py -> build/lib.macosx-13-arm64-cpython-311/rii running build_ext creating var creating var/folders creating var/folders/05 creating var/folders/05/1yyj536j63vc8yhrqds9ml8c0000gn creating var/folders/05/1yyj536j63vc8yhrqds9ml8c0000gn/T clang -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk -I/opt/homebrew/opt/llvm/include -I/Users/foo/src/temp/.venv/include -I/opt/homebrew/opt/python@3.11/Frameworks/Python.framework/Versions/3.11/include/python3.11 -c /var/folders/05/1yyj536j63vc8yhrqds9ml8c0000gn/T/tmp28nlfxli.cpp -o var/folders/05/1yyj536j63vc8yhrqds9ml8c0000gn/T/tmp28nlfxli.o -std=c++17 clang -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk -I/opt/homebrew/opt/llvm/include -I/Users/foo/src/temp/.venv/include -I/opt/homebrew/opt/python@3.11/Frameworks/Python.framework/Versions/3.11/include/python3.11 -c /var/folders/05/1yyj536j63vc8yhrqds9ml8c0000gn/T/tmp7orgzmc0.cpp -o var/folders/05/1yyj536j63vc8yhrqds9ml8c0000gn/T/tmp7orgzmc0.o -fvisibility=hidden building 'main' extension creating build/temp.macosx-13-arm64-cpython-311 creating build/temp.macosx-13-arm64-cpython-311/src clang -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk -I/opt/homebrew/opt/llvm/include -UNDEBUG -I/private/var/folders/05/1yyj536j63vc8yhrqds9ml8c0000gn/T/pip-build-env-mcc7tiu_/overlay/lib/python3.11/site-packages/pybind11/include -I/private/var/folders/05/1yyj536j63vc8yhrqds9ml8c0000gn/T/pip-build-env-mcc7tiu_/overlay/lib/python3.11/site-packages/pybind11/include -I/Users/foo/src/temp/.venv/include -I/opt/homebrew/opt/python@3.11/Frameworks/Python.framework/Versions/3.11/include/python3.11 -c src/main.cpp -o build/temp.macosx-13-arm64-cpython-311/src/main.o -stdlib=libc++ -mmacosx-version-min=10.7 -fno-sized-deallocation -DVERSION_INFO=\"0.2.10\" -std=c++17 -fvisibility=hidden -march=native -mtune=native -Ofast In file included from src/main.cpp:3: In file included from src/rii.h:7: In file included from src/./distance.h:10: In file included from /opt/homebrew/Cellar/llvm/17.0.3/lib/clang/17/include/x86intrin.h:13: /opt/homebrew/Cellar/llvm/17.0.3/lib/clang/17/include/ia32intrin.h:200:10: error: use of undeclared identifier '__builtin_ia32_readeflags_u32' 200 | return __builtin_ia32_readeflags_u32(); | ^ /opt/homebrew/Cellar/llvm/17.0.3/lib/clang/17/include/ia32intrin.h:206:3: error: use of undeclared identifier '__builtin_ia32_writeeflags_u32' 206 | __builtin_ia32_writeeflags_u32(__f); | ^ /opt/homebrew/Cellar/llvm/17.0.3/lib/clang/17/include/ia32intrin.h:288:10: error: use of undeclared identifier '__builtin_ia32_crc32qi' 288 | return __builtin_ia32_crc32qi(__C, __D); | ^ /opt/homebrew/Cellar/llvm/17.0.3/lib/clang/17/include/ia32intrin.h:309:10: error: use of undeclared identifier '__builtin_ia32_crc32hi'; did you mean '__builtin_arm_crc32h'? 309 | return __builtin_ia32_crc32hi(__C, __D); | ^ /opt/homebrew/Cellar/llvm/17.0.3/lib/clang/17/include/ia32intrin.h:309:10: note: '__builtin_arm_crc32h' declared here /opt/homebrew/Cellar/llvm/17.0.3/lib/clang/17/include/ia32intrin.h:330:10: error: use of undeclared identifier '__builtin_ia32_crc32si' 330 | return __builtin_ia32_crc32si(__C, __D); | ^ /opt/homebrew/Cellar/llvm/17.0.3/lib/clang/17/include/ia32intrin.h:358:10: error: use of undeclared identifier '__builtin_ia32_rdpmc'; did you mean '__builtin_arm_dmb'? 358 | return __builtin_ia32_rdpmc(__A); | ^ /opt/homebrew/Cellar/llvm/17.0.3/lib/clang/17/include/ia32intrin.h:358:10: note: '__builtin_arm_dmb' declared here /opt/homebrew/Cellar/llvm/17.0.3/lib/clang/17/include/ia32intrin.h:358:10: error: argument to '__builtin_arm_dmb' must be a constant integer 358 | return __builtin_ia32_rdpmc(__A); | ^ ~~~ /opt/homebrew/Cellar/llvm/17.0.3/lib/clang/17/include/ia32intrin.h:364:10: error: use of undeclared identifier '__builtin_ia32_rdtscp'; did you mean '__builtin_arm_rsrp'? 364 | return __builtin_ia32_rdtscp(__A); | ^ /opt/homebrew/Cellar/llvm/17.0.3/lib/clang/17/include/ia32intrin.h:364:10: note: '__builtin_arm_rsrp' declared here /opt/homebrew/Cellar/llvm/17.0.3/lib/clang/17/include/ia32intrin.h:364:32: error: cannot initialize a parameter of type 'const char *' with an lvalue of type 'unsigned int *' 364 | return __builtin_ia32_rdtscp(__A); | ^~~ /opt/homebrew/Cellar/llvm/17.0.3/lib/clang/17/include/ia32intrin.h:373:3: error: use of undeclared identifier '__builtin_ia32_wbinvd' 373 | __builtin_ia32_wbinvd(); | ^ In file included from src/main.cpp:3: In file included from src/rii.h:7: In file included from src/./distance.h:10: In file included from /opt/homebrew/Cellar/llvm/17.0.3/lib/clang/17/include/x86intrin.h:15: /opt/homebrew/Cellar/llvm/17.0.3/lib/clang/17/include/immintrin.h:14:2: error: "This header is only meant to be used on x86 and x64 architecture" 14 | #error "This header is only meant to be used on x86 and x64 architecture" | ^ In file included from src/main.cpp:3: In file included from src/rii.h:7: In file included from src/./distance.h:10: In file included from /opt/homebrew/Cellar/llvm/17.0.3/lib/clang/17/include/x86intrin.h:15: In file included from /opt/homebrew/Cellar/llvm/17.0.3/lib/clang/17/include/immintrin.h:17: In file included from /opt/homebrew/Cellar/llvm/17.0.3/lib/clang/17/include/x86gprintrin.h:15: /opt/homebrew/Cellar/llvm/17.0.3/lib/clang/17/include/hresetintrin.h:42:27: error: invalid input constraint 'a' in asm 42 | __asm__ ("hreset $0" :: "a"(__eax)); | ^ In file included from src/main.cpp:3: In file included from src/rii.h:7: In file included from src/./distance.h:10: In file included from /opt/homebrew/Cellar/llvm/17.0.3/lib/clang/17/include/x86intrin.h:15: In file included from /opt/homebrew/Cellar/llvm/17.0.3/lib/clang/17/include/immintrin.h:17: In file included from /opt/homebrew/Cellar/llvm/17.0.3/lib/clang/17/include/x86gprintrin.h:25: /opt/homebrew/Cellar/llvm/17.0.3/lib/clang/17/include/crc32intrin.h:33:10: error: use of undeclared identifier '__builtin_ia32_crc32qi' 33 | return __builtin_ia32_crc32qi(__C, __D); | ^ /opt/homebrew/Cellar/llvm/17.0.3/lib/clang/17/include/crc32intrin.h:53:10: error: use of undeclared identifier '__builtin_ia32_crc32hi'; did you mean '__builtin_arm_crc32h'? 53 | return __builtin_ia32_crc32hi(__C, __D); | ^ /opt/homebrew/Cellar/llvm/17.0.3/lib/clang/17/include/ia32intrin.h:309:10: note: '__builtin_arm_crc32h' declared here 309 | return __builtin_ia32_crc32hi(__C, __D); | ^ In file included from src/main.cpp:3: In file included from src/rii.h:7: In file included from src/./distance.h:10: In file included from /opt/homebrew/Cellar/llvm/17.0.3/lib/clang/17/include/x86intrin.h:15: In file included from /opt/homebrew/Cellar/llvm/17.0.3/lib/clang/17/include/immintrin.h:17: In file included from /opt/homebrew/Cellar/llvm/17.0.3/lib/clang/17/include/x86gprintrin.h:25: /opt/homebrew/Cellar/llvm/17.0.3/lib/clang/17/include/crc32intrin.h:73:10: error: use of undeclared identifier '__builtin_ia32_crc32si' 73 | return __builtin_ia32_crc32si(__C, __D); | ^ In file included from src/main.cpp:3: In file included from src/rii.h:7: In file included from src/./distance.h:10: In file included from /opt/homebrew/Cellar/llvm/17.0.3/lib/clang/17/include/x86intrin.h:15: In file included from /opt/homebrew/Cellar/llvm/17.0.3/lib/clang/17/include/immintrin.h:17: In file included from /opt/homebrew/Cellar/llvm/17.0.3/lib/clang/17/include/x86gprintrin.h:35: /opt/homebrew/Cellar/llvm/17.0.3/lib/clang/17/include/raointintrin.h:39:3: error: use of undeclared identifier '__builtin_ia32_aadd32'; did you mean '__builtin_arm_addg'? 39 | __builtin_ia32_aadd32((int *)__A, __B); | ^ /opt/homebrew/Cellar/llvm/17.0.3/lib/clang/17/include/raointintrin.h:39:3: note: '__builtin_arm_addg' declared here /opt/homebrew/Cellar/llvm/17.0.3/lib/clang/17/include/raointintrin.h:39:3: error: argument to '__builtin_arm_addg' must be a constant integer 39 | __builtin_ia32_aadd32((int *)__A, __B); | ^ ~~~ /opt/homebrew/Cellar/llvm/17.0.3/lib/clang/17/include/raointintrin.h:61:3: error: use of undeclared identifier '__builtin_ia32_aand32' 61 | __builtin_ia32_aand32((int *)__A, __B); | ^ /opt/homebrew/Cellar/llvm/17.0.3/lib/clang/17/include/raointintrin.h:83:3: error: use of undeclared identifier '__builtin_ia32_aor32' 83 | __builtin_ia32_aor32((int *)__A, __B); | ^ fatal error: too many errors emitted, stopping now [-ferror-limit=] 20 errors generated. error: command '/opt/homebrew/opt/llvm/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 rii Failed to build rii