pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: spaCy



I am stuck exactly with the same problem…

> On 8. Mar 2024, at 12:51, Chavdar Ivanov <ci4ic4%gmail.com@localhost> wrote:
> 
> On Fri, 8 Mar 2024 at 11:01, Benjamin Lorenz
> <benjamin.lorenz%mongodb.com@localhost> wrote:
>> 
>> Anybody had success installing / building a package of https://spacy.io/ for NetBSD/amd64? I see artifacts in wip, but older versions.
> 
> I am getting:
> ....
>                        [363/494] Compiling C++ object
> numpy/core/_multiarray_umath.so.p/src_npysort_selection.cpp.o
>                        FAILED:
> numpy/core/_multiarray_umath.so.p/src_npysort_selection.cpp.o
>                        sccache c++
> -Inumpy/core/_multiarray_umath.so.p -Inumpy/core -I../numpy/core
> -Inumpy/core/include \
> -I../numpy/core/include -I../numpy/core/src/common
> -I../numpy/core/src/multiarray -I../numpy/core/src/npymath \
> -I../numpy/core/src/umath -I/usr/pkg/include/netlib
> -I/usr/pkg/include/python3.10 \
> -I/tmp/pipinstallh0avhkli/numpy_255ef4e1aaca4d3ea9bc44f134d135ec/.mesonpy-bm_5ml9e/meson_cpu
> \
> -fvisibility=hidden \
> -fvisibility-inlines-hidden -fdiagnostics-color=always -DNDEBUG -Wall \
> -Winvalid-pch -std=c++17 -O3 -msse -msse2 -msse3 -DNPY_HAVE_SSE2
> -DNPY_HAVE_SSE -DNPY_HAVE_SSE3 \
> -fPIC -DHAVE_CBLAS -DNPY_INTERNAL_BUILD -DHAVE_NPY_CONFIG_H
> -D_FILE_OFFSET_BITS=64 \
> -D_LARGEFILE_SOURCE=1 -D_LARGEFILE64_SOURCE=1 -D__STDC_VERSION__=0
> -fno-exceptions -fno-rtti \
> -MD -MQ numpy/core/_multiarray_umath.so.p/src_npysort_selection.cpp.o \
> -MF numpy/core/_multiarray_umath.so.p/src_npysort_selection.cpp.o.d -o
> numpy/core/_multiarray_umath.so.p/src_npysort_selection.cpp.o \
> -c ../numpy/core/src/npysort/selection.cpp
>                        In file included from
> ../numpy/core/src/npymath/npy_math_private.h:177,
>                                         from
> ../numpy/core/src/npymath/npy_math_internal.h.src:56,
>                                         from
> ../numpy/core/include/numpy/npy_math.h:560,
>                                         from
> ../numpy/core/src/npysort/selection.cpp:18:
> 
> ../numpy/core/src/npymath/npy_math_private.h:519:14: error: expected
> unqualified-id before ‘_Complex’
>                          519 |         std::complex<double> c99_z;
>                              |              ^~~~~~~
> 
> ../numpy/core/src/npymath/npy_math_private.h:528:14: error: expected
> unqualified-id before ‘_Complex’
>                          528 |         std::complex<float> c99_z;
>                              |              ^~~~~~~
> 
> ../numpy/core/src/npymath/npy_math_private.h:537:14: error: expected
> unqualified-id before ‘_Complex’
>                          537 |         std::complex<long double> c99_z;
>                              |              ^~~~~~~
>                        [364/494] Compiling C object
> numpy/core/_multiarray_umath.so.p/src_multiarray_textreading_growth.c.o
>                        [365/494] Compiling C++ object
> numpy/core/_multiarray_umath.so.p/src_npysort_heapsort.cpp.o
>                        [366/494] Compiling C object
> numpy/core/_multiarray_umath.so.p/src_multiarray_textreading_readtext.c.o
>                        [367/494] Compiling C object
> numpy/core/_multiarray_umath.so.p/src_multiarray_textreading_stream_pyobject.c.o
>                        [368/494] Compiling C object
> numpy/core/_multiarray_umath.so.p/src_multiarray_textreading_rows.c.o
>                        [369/494] Compiling C++ object
> numpy/core/_multiarray_umath.so.p/src_npysort_binsearch.cpp.o
>                        [370/494] Compiling C++ object
> numpy/core/_multiarray_umath.so.p/src_npysort_quicksort.cpp.o
>                        [371/494] Compiling C++ object
> numpy/core/_multiarray_umath.so.p/src_npysort_timsort.cpp.o
>                        [372/494] Compiling C object
> numpy/core/libloops_autovec.dispatch.h_AVX2.a.p/meson-generated_loops_autovec.dispatch.c.o
>                        ninja: build stopped: subcommand failed.u
>                        [end of output]
> 
>                    note: This error originates from a subprocess, and
> is likely not a problem with pip.
>                  error: metadata-generation-failed
> ...
> 
> This is on absolutely -current pkgsrc, python 3.10, running 'pip -u
> install spacy'.
> I don't know why it is rebuilding numpy, as I have py310-numpy-1.26.4
> installed, but maybe that's how pip works...
>> 
>> Thanks,
>> Benjamin
>> 
> 
> 
> --
> ----

Attachment: smime.p7s
Description: S/MIME cryptographic signature



Home | Main Index | Thread Index | Old Index