-
-
Notifications
You must be signed in to change notification settings - Fork 11.3k
Open
Labels
Description
Describe the issue:
Build using vendored-meson and ninja fails (as of e099d05) due to a missing
I see recent commits to numpy/_core/src/multiarray/unique.cpp adding includes (df835f4), so this is probably just a continuation of that issue.
Reproduce the code example:
python vendored-meson/meson/meson.py compile -C build
Error message:
FAILED: [code=1] numpy/_core/libunique_hash.a.p/src_multiarray_unique.cpp.o c++ -Inumpy/_core/libunique_hash.a.p -Inumpy/_core -I../numpy/_core -Inumpy/_core/include -I../numpy/_core/include -I../numpy/_core/src/common -I/Users/wrp/x86_64/Darwin/include/python3.15 -I/Users/wrp/github/numpy/numpy/build/meson_cpu -fdiagnostics-color=always -Wall -Winvalid-pch -std=c++17 -O2 -g -ftrapping-math -DNPY_HAVE_CLANG_FPSTRICT -msse -msse2 -msse3 -DNPY_HAVE_SSE2 -DNPY_HAVE_SSE -DNPY_HAVE_SSE3 -DNPY_INTERNAL_BUILD -DHAVE_NPY_CONFIG_H -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE=1 -D_LARGEFILE64_SOURCE=1 -fexceptions -fno-rtti -MD -MQ numpy/_core/libunique_hash.a.p/src_multiarray_unique.cpp.o -MF numpy/_core/libunique_hash.a.p/src_multiarray_unique.cpp.o.d -o numpy/_core/libunique_hash.a.p/src_multiarray_unique.cpp.o -c ../numpy/_core/src/multiarray/unique.cpp ../numpy/_core/src/multiarray/unique.cpp:243:36: error: implicit instantiation of undefined template 'std::vector<npy_unpacked_static_string>' std::vector<npy_static_string> unpacked_strings(isize, {0, NULL}); ^ /Library/Developer/CommandLineTools/SDKs/MacOSX12.1.sdk/usr/include/c++/v1/iosfwd:248:28: note: template is declared here class _LIBCPP_TEMPLATE_VIS vector; ^ 1 error generated. [273/523] Compiling C object numpy/_core/libloops_autovec.dispatch.h_AVX2.a.p/meson-generated_loops_autovec.dispatch.c.o ninja: build stopped: subcommand failed.
Python and NumPy Versions:
$ python -c "import sys; print(sys.version)"; git rev-parse HEAD
3.15.0a0 (heads/main:58d305cf387, Jul 21 2025, 09:53:56) [Clang 13.1.6 (clang-1316.0.21.2.5)]
2e212b7
Runtime Environment:
N/A
Context for the issue:
Numpy cannot build.