compile error on raspberry (ARM): unrecognized command line option ‘-msse4’
philippkeller opened this issue · 4 comments
philippkeller commented
What did you do?
pip3 install -U --force-reinstall pillow-simd
on a raspberry pi zero
What did you expect to happen?
Compile and install pillow-simd
What actually happened?
the compile step failed. I think the relevant section is arm-linux-gnueabihf-gcc: error: unrecognized command line option ‘-msse4’
: in this context:
arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DHAVE_LIBJPEG -DHAVE_LIBZ -DPILLOW_VERSION="7.
0.0.post3" -I/usr/include/freetype2 -I/tmp/pip-install-c7i2f9uv/pillow-simd/src/libImaging -I/tmp/pip-install-c7i2f9uv/pillow-simd -I/usr/include -I/usr/local/include -I/usr/include/python3.7m -c src/_imaging.c
-o build/temp.linux-armv6l-3.7/src/_imaging.o -msse4
arm-linux-gnueabihf-gcc: error: unrecognized command line option ‘-msse4’
Here is the full error.
my first attempt was to use CC="cc -mavx2" pip install -U --force-reinstall pillow-simd
but -maxvx2
seems not to be available on arm so I skipped it
What are your OS, Python and Pillow versions?
- OS:
Linux raspberrypi 4.19.75+ #1270 Tue Sep 24 18:38:54 BST 2019 armv6l GNU/Linux
- Python: Python 3.7.3
- Pillow: latest from pip (Pillow-SIMD 7.0.0.post3)
philippkeller commented
I just realize that there is also this open issue to add arm support, so it might just not be done yet. Although, reading through some stackoverflow posts it seems that people got that running on a raspberry.
homm commented
Pillow-SIMD is not intended for ARM