ashvardanian / SimSIMD

Up to 200x Faster Dot Products & Similarity Metrics — for Python, Rust, C, JS, and Swift, supporting f64, f32, f16 real & complex, i8, and bit vectors using SIMD for both AVX2, AVX-512, NEON, SVE, & SVE2 📐
https://ashvardanian.com/posts/simsimd-faster-scipy/
Apache License 2.0
988 stars 59 forks source link

Bug: pip install simsimd error under the gcc14.2 version #229

Closed kukugpt closed 1 week ago

kukugpt commented 2 weeks ago

Describe the bug

Collecting simsimd Downloading https://mirrors.aliyun.com/pypi/packages/0d/3e/f68bdc6659896b2c6f715c4ee2c02dd76a5a0d5d97c062daa81884493fee/simsimd-6.0.1.tar.gz (155 kB) Installing build dependencies ... done Getting requirements to build wheel ... done Preparing metadata (pyproject.toml) ... done Building wheels for collected packages: simsimd Building wheel for simsimd (pyproject.toml) ... error error: subprocess-exited-with-error

× Building wheel for simsimd (pyproject.toml) did not run successfully. │ exit code: 1 ╰─> [40 lines of output] running bdist_wheel running build running build_py running egg_info writing simsimd.egg-info/PKG-INFO writing dependency_links to simsimd.egg-info/dependency_links.txt writing top-level names to simsimd.egg-info/top_level.txt reading manifest file 'simsimd.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' adding license file 'LICENSE' writing manifest file 'simsimd.egg-info/SOURCES.txt' creating build/lib.linux-x86_64-cpython-311/simsimd copying python/annotations/init.pyi -> build/lib.linux-x86_64-cpython-311/simsimd copying python/annotations/py.typed -> build/lib.linux-x86_64-cpython-311/simsimd running build_ext building 'simsimd' extension creating build/temp.linux-x86_64-cpython-311/c creating build/temp.linux-x86_64-cpython-311/python /usr/local/bin/gcc -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /search/ai/harryzhtang/anaconda3/envs/mmsegment/include -fPIC -O2 -isystem /search/ai/harryzhtang/anaconda3/envs/mmsegment/include -fPIC -DSIMSIMD_NATIVE_F16=0 -DSIMSIMD_NATIVE_BF16=0 -DSIMSIMD_DYNAMIC_DISPATCH=1 -DSIMSIMD_TARGET_NEON=1 -DSIMSIMD_TARGET_NEON_F16=1 -DSIMSIMD_TARGET_NEON_BF16=1 -DSIMSIMD_TARGET_SVE=1 -DSIMSIMD_TARGET_SVE_F16=1 -DSIMSIMD_TARGET_SVE_BF16=1 -DSIMSIMD_TARGET_SVE2=1 -DSIMSIMD_TARGET_HASWELL=1 -DSIMSIMD_TARGET_SKYLAKE=1 -DSIMSIMD_TARGET_ICE=1 -DSIMSIMD_TARGET_GENOA=1 -DSIMSIMD_TARGET_SAPPHIRE=1 -DSIMSIMD_TARGET_TURIN=1 -DSIMSIMD_TARGET_SIERRA=0 -Iinclude -I/search/ai/harryzhtang/anaconda3/envs/mmsegment/include/python3.11 -c c/lib.c -o build/temp.linux-x86_64-cpython-311/c/lib.o -std=c11 -O3 -ffast-math -fdiagnostics-color=always -fvisibility=default -fPIC -w -fopenmp In file included from /usr/include/math.h:419, from include/simsimd/types.h:246, from include/simsimd/binary.h:21, from include/simsimd/simsimd.h:105, from c/lib.c:48: /usr/include/bits/math-finite.h: In function ‘lgamma’: /usr/include/bits/math-finite.h:261:10: error: implicit declaration of function ‘lgamma_r’; did you mean ‘lgammal’? [-Wimplicit-function-declaration] 261 | return lgamma_r (d, &local_signgam); | ^~~~ | lgammal /usr/include/bits/math-finite.h: In function ‘lgammaf’: /usr/include/bits/math-finite.h:270:10: error: implicit declaration of function ‘lgammaf_r’; did you mean ‘lgammaf’? [-Wimplicit-function-declaration] 270 | return lgammaf_r (d, &local_signgam); | ^~~~~ | lgammaf /usr/include/bits/math-finite.h: In function ‘lgammal’: /usr/include/bits/math-finite.h:280:10: error: implicit declaration of function ‘lgammal_r’; did you mean ‘lgammal’? [-Wimplicit-function-declaration] 280 | return lgammal_r (d, &local_signgam); | ^~~~~ | lgammal error: command '/usr/local/bin/gcc' 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 simsimd Failed to build simsimd ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (simsimd)

Steps to reproduce

gcc==14.2 python==3.11

Expected behavior

build error

SimSIMD version

6.0.1

Operating System

CenterOS

Hardware architecture

x86

Which interface are you using?

Python bindings

Contact Details

No response

Are you open to being tagged as a contributor?

Is there an existing issue for this?

Code of Conduct

ashvardanian commented 1 week ago

Thanks, @kukugpt! A patch is coming 🤗

Sakura4036 commented 1 week ago

pip install simsimd(v6.0.3) failed, still not work in Ubuntu 18.04 glibc v2.27