zarr-developers/numcodecs

Compilation fails: c-blosc/blosc/bitshuffle-sse2.c:20:4: error: SSE2 is not supported by the target architecture/platform and/or this compiler.

yurivict opened this issue · 2 comments

Minimal, reproducible code sample, a copy-pastable example if possible

cc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -fPIC -DHAVE_LZ4=1 -DHAVE_ZLIB=1 -DHAVE_ZSTD=1 -Ic-blosc/blosc -Ic-blosc/internal-complibs/zlib-1.2.8 -Ic-blosc/internal-complibs/zstd-1.4.8 -Ic-blosc/internal-complibs/lz4-1.9.3 -Ic-blosc/internal-complibs/zstd-1.4.8/common -Ic-blosc/internal-complibs/zstd-1.4.8/dictBuilder -Ic-blosc/internal-complibs/zstd-1.4.8/legacy -Ic-blosc/internal-complibs/zstd-1.4.8/compress -Ic-blosc/internal-complibs/zstd-1.4.8/decompress -Ic-blosc/internal-complibs/zstd-1.4.8/dll -Ic-blosc/internal-complibs/zstd-1.4.8/deprecated -Ic-blosc/internal-complibs/zstd-1.4.8/dll/example -I/usr/local/include/python3.9 -c c-blosc/blosc/bitshuffle-sse2.c -o build/temp.freebsd-13.1-RELEASE-p8-i386-cpython-39/c-blosc/blosc/bitshuffle-sse2.o -DSHUFFLE_SSE2_ENABLED
c-blosc/blosc/bitshuffle-sse2.c:20:4: 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.
   ^
1 error generated.

Problem description

Compilation failure.

Version and installation information

Please provide the following:

  • numcodecs.__version: 0.11.0
  • Version of Python interpreter: 3.9
  • Operating system: FreeBSD 13.2
  • How NumCodecs was installed: FreeBSD port

These can be disabled. Please see these environment variables

numcodecs/setup.py

Lines 15 to 16 in 4f194b6

disable_sse2 = 'DISABLE_NUMCODECS_SSE2' in os.environ
disable_avx2 = 'DISABLE_NUMCODECS_AVX2' in os.environ

Ok, thanks!