Hi, I'm new to using the pre-built binaries from this project, that I get from uv, and I'm not sure wether this is an issue with said binaries, uv itself, or the package that I'm trying to build, but I currently lean toward the first, apologies if this issue is misplaced.
So, what I'm observing is that I cannot build yt against the Python 3.12.6 binary (specifically cpython-3.12.6-macos-aarch64-none). I haven't tried other Python versions but I know that building this package works against a locally compiled 3.12.6 binary (obtained with pyenv)
Steps to reproduce (tarball from PyPI):
uv venv -p 3.12 --python-preference=only-managed
uv pip install "yt==4.3.1" --no-binary yt
excerpt
Compiling with an SDK that doesn't seem to exist: /Applications/Xcode_15.2.app/Contents/Developer/Platforms/MacOSX.platform/
(indeed, /Applications/Xcode_15.2.app doesn't exist on my system, but I do have Xcode 16.0 installed under /Applications/Xcode.app)
output head and tail
Resolved 39 packages in 7ms
error: Failed to prepare distributions
Caused by: Failed to fetch wheel: yt==4.3.1
Caused by: Build backend failed to build wheel through `build_wheel()` (exit status: 1)
--- stdout:
...
Compiling with an SDK that doesn't seem to exist: /Applications/Xcode_15.2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk
Please check your Xcode installation
clang++: warning: no such sysroot directory: '/Applications/Xcode_15.2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk' [-Wmissing-sysroot]
ld: warning: search path 'Modules/_hacl' not found
ld: warning: search path '/install/lib' not found
ld: library 'm' not found
clang++: error: linker command failed with exit code 1 (use -v to see invocation)
yt/utilities/lib/particle_kdtree_tools.cpp:27964:28: warning: comparison of integers of different signs: 'uint64_t' (aka 'unsigned long long') and 'int' [-Wsign-compare]
27964 | __pyx_t_4 = (__pyx_v_i == __pyx_v_skipidx);
| ~~~~~~~~~ ^ ~~~~~~~~~~~~~~~
yt/utilities/lib/particle_kdtree_tools.cpp:28012:30: warning: comparison of integers of different signs: 'uint64_t' (aka 'unsigned long long') and 'int' [-Wsign-compare]
28012 | __pyx_t_4 = (__pyx_v_k < __pyx_v_axes->stop);
| ~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~
yt/utilities/lib/particle_kdtree_tools.cpp:28571:28: warning: comparison of integers of different signs: 'uint64_t' (aka 'unsigned long long') and 'int' [-Wsign-compare]
28571 | __pyx_t_4 = (__pyx_v_i == __pyx_v_skipidx);
| ~~~~~~~~~ ^ ~~~~~~~~~~~~~~~
yt/utilities/lib/particle_kdtree_tools.cpp:28619:30: warning: comparison of integers of different signs: 'uint64_t' (aka 'unsigned long long') and 'int' [-Wsign-compare]
28619 | __pyx_t_4 = (__pyx_v_k < __pyx_v_axes->stop);
| ~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~
yt/utilities/lib/particle_kdtree_tools.cpp:32764:13: warning: code will never be executed [-Wunreachable-code]
32764 | goto bad;
| ^~~~~~~~
1 warning generated.
Compiling with an SDK that doesn't seem to exist: /Applications/Xcode_15.2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk
Please check your Xcode installation
clang++: warning: no such sysroot directory: '/Applications/Xcode_15.2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk' [-Wmissing-sysroot]
ld: warning: search path 'Modules/_hacl' not found
ld: warning: search path '/install/lib' not found
ld: library 'c++' not found
clang++: error: linker command failed with exit code 1 (use -v to see invocation)
4 warnings generated.
Compiling with an SDK that doesn't seem to exist: /Applications/Xcode_15.2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk
Please check your Xcode installation
clang++: warning: no such sysroot directory: '/Applications/Xcode_15.2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk' [-Wmissing-sysroot]
ld: warning: search path 'Modules/_hacl' not found
ld: warning: search path '/install/lib' not found
ld: library 'm' not found
clang++: error: linker command failed with exit code 1 (use -v to see invocation)
1 warning generated.
Compiling with an SDK that doesn't seem to exist: /Applications/Xcode_15.2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk
Please check your Xcode installation
clang++: warning: no such sysroot directory: '/Applications/Xcode_15.2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk' [-Wmissing-sysroot]
ld: warning: search path 'Modules/_hacl' not found
ld: warning: search path '/install/lib' not found
ld: library 'm' not found
clang++: error: linker command failed with exit code 1 (use -v to see invocation)
yt/utilities/lib/pixelization_routines.cpp:39197:7: warning: code will never be executed [-Wunreachable-code]
39197 | PyErr_Format(PyExc_ValueError, "Assignment to slice of wrong length, expected %" CYTHON_FORMAT_SSIZE_T "d, got %" CYTHON_FORMAT_SSIZE_T "d", (Py_ssize_t)(MAX_NUM_FACES), (Py_ssize_t)(MAX_NUM_FACES));
| ^~~~~~~~~~~~
yt/utilities/lib/pixelization_routines.cpp:39229:7: warning: code will never be executed [-Wunreachable-code]
39229 | PyErr_Format(PyExc_ValueError, "Assignment to slice of wrong length, expected %" CYTHON_FORMAT_SSIZE_T "d, got %" CYTHON_FORMAT_SSIZE_T "d", (Py_ssize_t)(MAX_NUM_FACES), (Py_ssize_t)(MAX_NUM_FACES));
| ^~~~~~~~~~~~
yt/utilities/lib/pixelization_routines.cpp:39261:7: warning: code will never be executed [-Wunreachable-code]
39261 | PyErr_Format(PyExc_ValueError, "Assignment to slice of wrong length, expected %" CYTHON_FORMAT_SSIZE_T "d, got %" CYTHON_FORMAT_SSIZE_T "d", (Py_ssize_t)(MAX_NUM_FACES), (Py_ssize_t)(MAX_NUM_FACES));
| ^~~~~~~~~~~~
yt/utilities/lib/pixelization_routines.cpp:63710:13: warning: code will never be executed [-Wunreachable-code]
63710 | goto bad;
| ^~~~~~~~
yt/utilities/lib/pixelization_routines.cpp:66482:21: warning: fallthrough annotation in unreachable code [-Wunreachable-code-fallthrough]
66482 | CYTHON_FALLTHROUGH;
| ^
yt/utilities/lib/pixelization_routines.cpp:570:36: note: expanded from macro 'CYTHON_FALLTHROUGH'
570 | #define CYTHON_FALLTHROUGH [[clang::fallthrough]]
| ^
yt/utilities/lib/pixelization_routines.cpp:66493:21: warning: fallthrough annotation in unreachable code [-Wunreachable-code-fallthrough]
66493 | CYTHON_FALLTHROUGH;
| ^
yt/utilities/lib/pixelization_routines.cpp:570:36: note: expanded from macro 'CYTHON_FALLTHROUGH'
570 | #define CYTHON_FALLTHROUGH [[clang::fallthrough]]
| ^
yt/utilities/lib/pixelization_routines.cpp:66604:21: warning: fallthrough annotation in unreachable code [-Wunreachable-code-fallthrough]
66604 | CYTHON_FALLTHROUGH;
| ^
yt/utilities/lib/pixelization_routines.cpp:570:36: note: expanded from macro 'CYTHON_FALLTHROUGH'
570 | #define CYTHON_FALLTHROUGH [[clang::fallthrough]]
| ^
yt/utilities/lib/pixelization_routines.cpp:66610:21: warning: fallthrough annotation in unreachable code [-Wunreachable-code-fallthrough]
66610 | CYTHON_FALLTHROUGH;
| ^
yt/utilities/lib/pixelization_routines.cpp:570:36: note: expanded from macro 'CYTHON_FALLTHROUGH'
570 | #define CYTHON_FALLTHROUGH [[clang::fallthrough]]
| ^
yt/utilities/lib/pixelization_routines.cpp:39156:12: warning: unused function '__pyx_f_2yt_9utilities_3lib_21pixelization_routines_check_face_dot' [-Wunused-function]
39156 | static int __pyx_f_2yt_9utilities_3lib_21pixelization_routines_check_face_dot(int __pyx_v_nvertices, __pyx_t_5numpy_float64_t *__pyx_v_point, __pyx_t_5numpy_float64_t **__pyx_v_vertices, __pyx_t_5numpy_int8_t *__pyx_v_signs, int __pyx_v_match) {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 warning generated.
Compiling with an SDK that doesn't seem to exist: /Applications/Xcode_15.2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk
Please check your Xcode installation
clang++: warning: no such sysroot directory: '/Applications/Xcode_15.2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk' [-Wmissing-sysroot]
ld: warning: search path 'Modules/_hacl' not found
ld: warning: search path '/install/lib' not found
ld: library 'm' not found
clang++: error: linker command failed with exit code 1 (use -v to see invocation)
Compiling with an SDK that doesn't seem to exist: /Applications/Xcode_15.2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk
Please check your Xcode installation
clang++: warning: no such sysroot directory: '/Applications/Xcode_15.2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk' [-Wmissing-sysroot]
ld: warning: search path 'Modules/_hacl' not found
ld: warning: search path '/install/lib' not found
ld: library 'm' not found
clang++: error: linker command failed with exit code 1 (use -v to see invocation)
5 warnings generated.
Compiling with an SDK that doesn't seem to exist: /Applications/Xcode_15.2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk
Please check your Xcode installation
clang++: warning: no such sysroot directory: '/Applications/Xcode_15.2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk' [-Wmissing-sysroot]
ld: warning: search path 'Modules/_hacl' not found
ld: warning: search path '/install/lib' not found
ld: library 'c++' not found
clang++: error: linker command failed with exit code 1 (use -v to see invocation)
2 warnings generated.
Compiling with an SDK that doesn't seem to exist: /Applications/Xcode_15.2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk
Please check your Xcode installation
clang++: warning: no such sysroot directory: '/Applications/Xcode_15.2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk' [-Wmissing-sysroot]
ld: warning: search path 'Modules/_hacl' not found
ld: warning: search path '/install/lib' not found
ld: library 'm' not found
clang++: error: linker command failed with exit code 1 (use -v to see invocation)
1 warning generated.
Compiling with an SDK that doesn't seem to exist: /Applications/Xcode_15.2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk
Please check your Xcode installation
clang++: warning: no such sysroot directory: '/Applications/Xcode_15.2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk' [-Wmissing-sysroot]
ld: warning: search path 'Modules/_hacl' not found
ld: warning: search path '/install/lib' not found
ld: library 'm' not found
clang++: error: linker command failed with exit code 1 (use -v to see invocation)
7 warnings generated.
Compiling with an SDK that doesn't seem to exist: /Applications/Xcode_15.2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk
Please check your Xcode installation
clang++: warning: no such sysroot directory: '/Applications/Xcode_15.2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk' [-Wmissing-sysroot]
ld: warning: search path 'Modules/_hacl' not found
ld: warning: search path '/install/lib' not found
ld: library 'm' not found
clang++: error: linker command failed with exit code 1 (use -v to see invocation)
12 warnings generated.
warning: no library file corresponding to '/Users/clm/.cache/uv/builds-v0/.tmpgiGrVC/lib/python3.12/site-packages/ewah_bool_utils' found (skipping)
Compiling with an SDK that doesn't seem to exist: /Applications/Xcode_15.2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk
Please check your Xcode installation
clang++: warning: no such sysroot directory: '/Applications/Xcode_15.2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk' [-Wmissing-sysroot]
ld: warning: search path 'Modules/_hacl' not found
ld: warning: search path '/install/lib' not found
ld: library 'm' not found
clang++: error: linker command failed with exit code 1 (use -v to see invocation)
23 warnings generated.
Compiling with an SDK that doesn't seem to exist: /Applications/Xcode_15.2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk
Please check your Xcode installation
clang++: warning: no such sysroot directory: '/Applications/Xcode_15.2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk' [-Wmissing-sysroot]
ld: warning: search path 'Modules/_hacl' not found
ld: warning: search path '/install/lib' not found
ld: library 'm' not found
clang++: error: linker command failed with exit code 1 (use -v to see invocation)
9 warnings generated.
Compiling with an SDK that doesn't seem to exist: /Applications/Xcode_15.2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk
Please check your Xcode installation
clang++: warning: no such sysroot directory: '/Applications/Xcode_15.2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk' [-Wmissing-sysroot]
ld: warning: search path 'Modules/_hacl' not found
ld: warning: search path '/install/lib' not found
ld: library 'm' not found
clang++: error: linker command failed with exit code 1 (use -v to see invocation)
error: command '/usr/bin/clang++' failed with exit code 1
---
Steps to reproduce (from github)
The error message looks different so I'm also including this case in case it's relevant.
git clone https://github.com/yt-project/yt.git
uv venv -p 3.12 --python-preference=only-managed
uv pip install ./yt
excerpt
error: command '/var/folders/py/lcjn3y352g1106vf1rqk521r0000gn/T/tmp8l_1g36k/tools/llvm/bin/llvm-ar' failed: No such file or directory
Output head and tail
Resolved 20 packages in 11ms
error: Failed to prepare distributions
Caused by: Failed to fetch wheel: yt @ file:///private/tmp/yt
Caused by: Build backend failed to build wheel through `build_wheel()` (exit status: 1)
--- stdout:
...
error: command '/var/folders/py/lcjn3y352g1106vf1rqk521r0000gn/T/tmp8l_1g36k/tools/llvm/bin/llvm-ar' failed: No such file or directory
---
This feels like the kind of problem that could be documented on the Quirks page but I couldn't find anything relevant there, or in the issue tracker. Is this solvable or is it an inherent limitation in portability from using pre-build binaries ?
Hi, I'm new to using the pre-built binaries from this project, that I get from uv, and I'm not sure wether this is an issue with said binaries, uv itself, or the package that I'm trying to build, but I currently lean toward the first, apologies if this issue is misplaced.
So, what I'm observing is that I cannot build
ytagainst the Python 3.12.6 binary (specificallycpython-3.12.6-macos-aarch64-none). I haven't tried other Python versions but I know that building this package works against a locally compiled 3.12.6 binary (obtained with pyenv)Steps to reproduce (tarball from PyPI):
excerpt
(indeed,
/Applications/Xcode_15.2.appdoesn't exist on my system, but I do have Xcode 16.0 installed under/Applications/Xcode.app)output head and tail
Steps to reproduce (from github)
The error message looks different so I'm also including this case in case it's relevant.
excerpt
Output head and tail
This feels like the kind of problem that could be documented on the Quirks page but I couldn't find anything relevant there, or in the issue tracker. Is this solvable or is it an inherent limitation in portability from using pre-build binaries ?