Repository navigation
Build failure on raspberry pi running arch #105
Copy link
Copy link
Closed
Description
Log:
[user@scene_pi python-blosc]$ sudo python setup.py install
running install
running bdist_egg
running egg_info
writing dependency_links to blosc.egg-info/dependency_links.txt
writing top-level names to blosc.egg-info/top_level.txt
writing blosc.egg-info/PKG-INFO
reading manifest file 'blosc.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no files found matching '*.txt'
warning: no files found matching '*.cpp' under directory 'c-blosc'
warning: no files found matching '*.hpp' under directory 'c-blosc'
writing manifest file 'blosc.egg-info/SOURCES.txt'
installing library code to build/bdist.linux-armv7l/egg
running install_lib
running build_py
creating build
creating build/lib.linux-armv7l-3.4
creating build/lib.linux-armv7l-3.4/blosc
copying blosc/test.py -> build/lib.linux-armv7l-3.4/blosc
copying blosc/__init__.py -> build/lib.linux-armv7l-3.4/blosc
copying blosc/version.py -> build/lib.linux-armv7l-3.4/blosc
copying blosc/toplevel.py -> build/lib.linux-armv7l-3.4/blosc
running build_ext
building 'blosc.blosc_extension' extension
creating build/temp.linux-armv7l-3.4
creating build/temp.linux-armv7l-3.4/blosc
creating build/temp.linux-armv7l-3.4/c-blosc
creating build/temp.linux-armv7l-3.4/c-blosc/blosc
creating build/temp.linux-armv7l-3.4/c-blosc/internal-complibs
creating build/temp.linux-armv7l-3.4/c-blosc/internal-complibs/lz4-1.7.0
creating build/temp.linux-armv7l-3.4/c-blosc/internal-complibs/snappy-1.1.1
creating build/temp.linux-armv7l-3.4/c-blosc/internal-complibs/zlib-1.2.8
gcc -pthread -Wno-unused-result -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -march=armv7-a -mfloat-abi=hard -mfpu=vfpv3-d16 -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -fPIC -DHAVE_LZ4=1 -DHAVE_SNAPPY=1 -DHAVE_ZLIB=1 -Ic-blosc/blosc -Ic-blosc/internal-complibs/lz4-1.7.0 -Ic-blosc/internal-complibs/snappy-1.1.1 -Ic-blosc/internal-complibs/zlib-1.2.8 -I/usr/include/python3.4m -c blosc/blosc_extension.c -o build/temp.linux-armv7l-3.4/blosc/blosc_extension.o
gcc -pthread -Wno-unused-result -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -march=armv7-a -mfloat-abi=hard -mfpu=vfpv3-d16 -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -fPIC -DHAVE_LZ4=1 -DHAVE_SNAPPY=1 -DHAVE_ZLIB=1 -Ic-blosc/blosc -Ic-blosc/internal-complibs/lz4-1.7.0 -Ic-blosc/internal-complibs/snappy-1.1.1 -Ic-blosc/internal-complibs/zlib-1.2.8 -I/usr/include/python3.4m -c c-blosc/blosc/blosc.c -o build/temp.linux-armv7l-3.4/c-blosc/blosc/blosc.o
c-blosc/blosc/blosc.c: In function 'blosc_getitem':
c-blosc/blosc/blosc.c:1275:7: warning: unused variable 'tmp_init' [-Wunused-variable]
int tmp_init = 0;
^
gcc -pthread -Wno-unused-result -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -march=armv7-a -mfloat-abi=hard -mfpu=vfpv3-d16 -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -fPIC -DHAVE_LZ4=1 -DHAVE_SNAPPY=1 -DHAVE_ZLIB=1 -Ic-blosc/blosc -Ic-blosc/internal-complibs/lz4-1.7.0 -Ic-blosc/internal-complibs/snappy-1.1.1 -Ic-blosc/internal-complibs/zlib-1.2.8 -I/usr/include/python3.4m -c c-blosc/blosc/shuffle-sse2.c -o build/temp.linux-armv7l-3.4/c-blosc/blosc/shuffle-sse2.o
c-blosc/blosc/shuffle-sse2.c:14:4: error: #error SSE2 is not supported by the target architecture/platform and/or this compiler.
#error SSE2 is not supported by the target architecture/platform and/or this compiler.
^
c-blosc/blosc/shuffle-sse2.c:17:23: fatal error: emmintrin.h: No such file or directory
compilation terminated.
error: command 'gcc' failed with exit status 1
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels
Activity
FrancescAlted commentedon Sep 23, 2015
Hi,
Yes, python-blosc is being developed in Intel and normally only checked with it. To overcome this problem we need to recognize the architecture prior to call the C compiler: this would allow to set compiler options accordingly. PR welcome!
mike-lawrence commentedon Sep 24, 2015
Ah, I thought that because c-blosc is supposedly compatible with arm/RPi (at least, according to the cblosc 1.3.6 to 1.4.0 change notes), that python-blosc would be as well.
esc commentedon Oct 24, 2016
Any news on this? Perhaps a new version has fixed the issue? Or maybe it magically disappeared?
itdaniher commentedon Jan 30, 2017
I had a surprising amount of luck with blosc on a recent ARM core. Eagerly looking forward to c-blosc2's NEON support, but figured I'd chime in and suggest that there no fundamental issues with c-blosc or python-blosc on ARM.
Some stats and comparisons below.
Script is a slightly modified version of compress_ptr.py -
https://gist.github.com/itdaniher/544215e2ebd25495a95d9165633972c6
Tried a few different formats for my sampled analog signal compression - pysoundfile's ogg and flac encodings, python-lz4, and python's integrated zlib. Very happy with Blosc overall - stellar performance even without native SIMD (yet!)
itdaniher commentedon Jan 30, 2017
@FrancescAlted I'd be glad to order your choice of single board computer to better enable you to test on ARM CPUs. Also have plenty of recommendations, the ability to offer native hosted ARM continuous integration, etc. Contact me @gmail.com if you're interested! Thanks for Blosc-and-friends!
FrancescAlted commentedon Mar 10, 2017
@itdaniher Thanks for reporting. As you had no fundamental flaws with C-Blosc in ARM, I am going to close this one. I already contacted you about the ARM board and CI for ARM. Thanks again.