Closed oknoote closed 7 months ago
Try sudo apt install libev-dev
Hi @jackw01 ,
thanks for helping out.
I'm running into a a whole different kind of error this time unfortunately.. I upgraded to a RPI 4B and followed the installation instructions but now getting different errors running the setup.py script again. I'm running python 3.11.2.
Everything is going fine until running the setup.py script again, this time with a whole range of different errors:
$ sudo python setup.py develop
/usr/lib/python3/dist-packages/setuptools/installer.py:27: SetuptoolsDeprecationWarning: setuptools.installer is deprecated. Requirements should be satisfied by a PEP 517 installer.
warnings.warn(
error: subprocess-exited-with-error
× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─> [366 lines of output]
and then hundreds of lines of which I'll post the start here:
running bdist_wheel
aarch64-linux-gnu-gcc -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -std=c++11 -mavx512f -c test-avx512.cpp -o test-avx512.o
aarch64-linux-gnu-gcc: error: unrecognized command-line option ‘-mavx512f’
warning: build: Compiler does not support avx512 flags: -std=c++11 -mavx512f
aarch64-linux-gnu-gcc -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -std=c++11 -mavx2 -c test-avx2.cpp -o test-avx2.o
aarch64-linux-gnu-gcc: error: unrecognized command-line option ‘-mavx2’
warning: build: Compiler does not support avx2 flags: -std=c++11 -mavx2
aarch64-linux-gnu-gcc -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -std=c++11 -msse4.1 -c test-sse41.cpp -o test-sse41.o
aarch64-linux-gnu-gcc: error: unrecognized command-line option ‘-msse4.1’
warning: build: Compiler does not support sse41 flags: -std=c++11 -msse4.1
aarch64-linux-gnu-gcc -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -std=c++11 -msse2 -c test-sse2.cpp -o test-sse2.o
aarch64-linux-gnu-gcc: error: unrecognized command-line option ‘-msse2’
warning: build: Compiler does not support sse2 flags: -std=c++11 -msse2
running build
running build_py
creating build
creating build/lib.linux-aarch64-cpython-311
creating build/lib.linux-aarch64-cpython-311/pyfastnoisesimd
copying pyfastnoisesimd/__init__.py -> build/lib.linux-aarch64-cpython-311/pyfastnoisesimd
copying pyfastnoisesimd/version.py -> build/lib.linux-aarch64-cpython-311/pyfastnoisesimd
copying pyfastnoisesimd/test_fns.py -> build/lib.linux-aarch64-cpython-311/pyfastnoisesimd
copying pyfastnoisesimd/helpers.py -> build/lib.linux-aarch64-cpython-311/pyfastnoisesimd
running build_ext
building 'pyfastnoisesimd.extension' extension
creating build/temp.linux-aarch64-cpython-311
creating build/temp.linux-aarch64-cpython-311/pyfastnoisesimd
creating build/temp.linux-aarch64-cpython-311/pyfastnoisesimd/fastnoisesimd
aarch64-linux-gnu-gcc -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ipyfastnoisesimd -Ipyfastnoisesimd/fastnoisesimd/ -I/usr/include/python3.11 -c pyfastnoisesimd/fastnoisesimd/FastNoiseSIMD.cpp -o build/temp.linux-aarch64-cpython-311/pyfastnoisesimd/fastnoisesimd/FastNoiseSIMD.o -std=c++11
aarch64-linux-gnu-gcc -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ipyfastnoisesimd -Ipyfastnoisesimd/fastnoisesimd/ -I/usr/include/python3.11 -c pyfastnoisesimd/fastnoisesimd/FastNoiseSIMD_internal.cpp -o build/temp.linux-aarch64-cpython-311/pyfastnoisesimd/fastnoisesimd/FastNoiseSIMD_internal.o -std=c++11
aarch64-linux-gnu-gcc -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ipyfastnoisesimd -Ipyfastnoisesimd/fastnoisesimd/ -I/usr/include/python3.11 -c pyfastnoisesimd/fastnoisesimd/FastNoiseSIMD_neon.cpp -o build/temp.linux-aarch64-cpython-311/pyfastnoisesimd/fastnoisesimd/FastNoiseSIMD_neon.o -std=c++11
In file included from pyfastnoisesimd/fastnoisesimd/FastNoiseSIMD_neon.cpp:37:
pyfastnoisesimd/fastnoisesimd/FastNoiseSIMD_internal.cpp: In function ‘SIMDf L5_FUNC_GradCoord(SIMDi, SIMDi, SIMDi, SIMDi, SIMDf, SIMDf, SIMDf)’:
pyfastnoisesimd/fastnoisesimd/FastNoiseSIMD_internal.cpp:204:41: note: use ‘-flax-vector-conversions’ to permit conversions between vectors with differing element types or numbers of subparts
204 | #define SIMDf_BLENDV(a,b,mask) vbslq_f32(mask,b,a)
| ~~~~~~~~~^~~~~~~~~~
pyfastnoisesimd/fastnoisesimd/FastNoiseSIMD_internal.cpp:781:19: note: in expansion of macro ‘SIMDf_BLENDV’
781 | SIMDf u = SIMDf_BLENDV(y, x, l8);
| ^~~~~~~~~~~~
pyfastnoisesimd/fastnoisesimd/FastNoiseSIMD_internal.cpp:781:38: error: cannot convert ‘MASK’ {aka ‘int32x4_t’} to ‘uint32x4_t’
781 | SIMDf u = SIMDf_BLENDV(y, x, l8);
| ^~
| |
| MASK {aka int32x4_t}
pyfastnoisesimd/fastnoisesimd/FastNoiseSIMD_internal.cpp:204:42: note: in definition of macro ‘SIMDf_BLENDV’
204 | #define SIMDf_BLENDV(a,b,mask) vbslq_f32(mask,b,a)
| ^~~~
In file included from pyfastnoisesimd/fastnoisesimd/FastNoiseSIMD_neon.cpp:34:
/usr/lib/gcc/aarch64-linux-gnu/12/include/arm_neon.h:9899:23: note: initializing argument 1 of ‘float32x4_t vbslq_f32(uint32x4_t, float32x4_t, float32x4_t)’
9899 | vbslq_f32 (uint32x4_t __a, float32x4_t __b, float32x4_t __c)
| ~~~~~~~~~~~^~~
pyfastnoisesimd/fastnoisesimd/FastNoiseSIMD_internal.cpp:786:51: error: cannot convert ‘MASK’ {aka ‘int32x4_t’} to ‘uint32x4_t’
786 | SIMDf v = SIMDf_BLENDV(SIMDf_BLENDV(z, x, h12o14), y, l4);
| ^~~~~~
| |
| MASK {aka int32x4_t}
and so on.....
From what I can read out of this is that my gcc-compiler doesn't support mentioned flags, any other help from your end possible?
$ aarch64-linux-gnu-gcc --version
outputs
aarch64-linux-gnu-gcc (Debian 12.2.0-14) 12.2.0
Thanks...
Please try the latest commit in the master branch instead of the 2.1.0 tag.
It's working my man, thanks so much!
Perfect developer companion when working with rgb led strips, loving it !
Sorry a bit of a noob here when it comes to python but when I run
$ sudo python3 setup.py develop
I get the following error followed by a stacktrace:Running headless on an RPI 3B.