Blosc / bcolz

A columnar data container that can be compressed.
http://bcolz.blosc.org
959 stars 149 forks source link

error: command 'x86_64-linux-gnu-gcc' failed with exit status 1 #409

Open Ru-Zheng opened 4 years ago

Ru-Zheng commented 4 years ago

python3 setup.py build_ext --inplace SSE2 detected AVX2 detected running build_ext skipping 'bcolz/carray_ext.c' Cython extension (up-to-date) building 'bcolz.carray_ext' extension creating build creating build/temp.linux-x86_64-3.8 creating build/temp.linux-x86_64-3.8/bcolz creating build/temp.linux-x86_64-3.8/c-blosc creating build/temp.linux-x86_64-3.8/c-blosc/blosc creating build/temp.linux-x86_64-3.8/c-blosc/internal-complibs creating build/temp.linux-x86_64-3.8/c-blosc/internal-complibs/lz4-1.8.1.2 creating build/temp.linux-x86_64-3.8/c-blosc/internal-complibs/snappy-1.1.1 creating build/temp.linux-x86_64-3.8/c-blosc/internal-complibs/zlib-1.2.8 creating build/temp.linux-x86_64-3.8/c-blosc/internal-complibs/zstd-1.3.4 creating build/temp.linux-x86_64-3.8/c-blosc/internal-complibs/zstd-1.3.4/decompress creating build/temp.linux-x86_64-3.8/c-blosc/internal-complibs/zstd-1.3.4/deprecated creating build/temp.linux-x86_64-3.8/c-blosc/internal-complibs/zstd-1.3.4/dictBuilder creating build/temp.linux-x86_64-3.8/c-blosc/internal-complibs/zstd-1.3.4/legacy creating build/temp.linux-x86_64-3.8/c-blosc/internal-complibs/zstd-1.3.4/compress creating build/temp.linux-x86_64-3.8/c-blosc/internal-complibs/zstd-1.3.4/common x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DHAVE_LZ4=1 -DHAVE_SNAPPY=1 -DHAVE_ZLIB=1 -DHAVE_ZSTD=1 -Ibcolz -Ic-blosc/blosc -Ic-blosc/internal-complibs/lz4-1.8.1.2 -Ic-blosc/internal-complibs/snappy-1.1.1 -Ic-blosc/internal-complibs/zstd-1.3.4 -Ic-blosc/internal-complibs/zlib-1.2.8 -Ic-blosc/internal-complibs/zstd-1.3.4/dll -Ic-blosc/internal-complibs/zstd-1.3.4/decompress -Ic-blosc/internal-complibs/zstd-1.3.4/deprecated -Ic-blosc/internal-complibs/zstd-1.3.4/dictBuilder -Ic-blosc/internal-complibs/zstd-1.3.4/legacy -Ic-blosc/internal-complibs/zstd-1.3.4/compress -Ic-blosc/internal-complibs/zstd-1.3.4/common -I/usr/local/lib/python3.8/dist-packages/numpy/core/include -I/usr/include/python3.8 -c bcolz/carray_ext.c -o build/temp.linux-x86_64-3.8/bcolz/carray_ext.o -DSHUFFLE_SSE2_ENABLED -msse2 -DSHUFFLE_AVX2_ENABLED -mavx2 In file included from /usr/local/lib/python3.8/dist-packages/numpy/core/include/numpy/ndarraytypes.h:1832, from /usr/local/lib/python3.8/dist-packages/numpy/core/include/numpy/ndarrayobject.h:12, from /usr/local/lib/python3.8/dist-packages/numpy/core/include/numpy/arrayobject.h:4, from bcolz/carray_ext.c:525: /usr/local/lib/python3.8/dist-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:17:2: warning: #warning "Using deprecated NumPy API, disable it with " "#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-Wcpp] 17 | #warning "Using deprecated NumPy API, disable it with " \ | ^~~ bcolz/carray_ext.c: In function ‘PyInit_carray_ext’: bcolz/carray_ext.c:45964:3: warning: ‘tp_print’ is deprecated [-Wdeprecated-declarations] 45964 | pyx_type_5bcolz_10carray_ext_chunk.tp_print = 0; | ^~~~~~~~ In file included from /usr/include/python3.8/object.h:746, from /usr/include/python3.8/pytime.h:6, from /usr/include/python3.8/Python.h:85, from bcolz/carray_ext.c:4: /usr/include/python3.8/cpython/object.h:260:30: note: declared here 260 | Py_DEPRECATED(3.8) int (tp_print)(PyObject , FILE , int); | ^~~~ bcolz/carray_ext.c:46014:3: warning: ‘tp_print’ is deprecated [-Wdeprecated-declarations] 46014 | __pyx_type_5bcolz_10carray_ext_chunks.tp_print = 0; | ^~~~~~~~~ In file included from /usr/include/python3.8/object.h:746, from /usr/include/python3.8/pytime.h:6, from /usr/include/python3.8/Python.h:85, from bcolz/carray_ext.c:4: /usr/include/python3.8/cpython/object.h:260:30: note: declared here 260 | Py_DEPRECATED(3.8) int (tp_print)(PyObject , FILE , int); | ^~~~ bcolz/carray_ext.c:46026:3: warning: ‘tp_print’ is deprecated [-Wdeprecated-declarations] 46026 | pyx_type_5bcolz_10carray_ext_carray.tp_print = 0; | ^~~~~~~~~ In file included from /usr/include/python3.8/object.h:746, from /usr/include/python3.8/pytime.h:6, from /usr/include/python3.8/Python.h:85, from bcolz/carray_ext.c:4: /usr/include/python3.8/cpython/object.h:260:30: note: declared here 260 | Py_DEPRECATED(3.8) int (tp_print)(PyObject , FILE *, int); | ^~~~ x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DHAVE_LZ4=1 -DHAVE_SNAPPY=1 -DHAVE_ZLIB=1 -DHAVE_ZSTD=1 -Ibcolz -Ic-blosc/blosc -Ic-blosc/internal-complibs/lz4-1.8.1.2 -Ic-blosc/internal-complibs/snappy-1.1.1 -Ic-blosc/internal-complibs/zstd-1.3.4 -Ic-blosc/internal-complibs/zlib-1.2.8 -Ic-blosc/internal-complibs/zstd-1.3.4/dll -Ic-blosc/internal-complibs/zstd-1.3.4/decompress -Ic-blosc/internal-complibs/zstd-1.3.4/deprecated -Ic-blosc/internal-complibs/zstd-1.3.4/dictBuilder -Ic-blosc/internal-complibs/zstd-1.3.4/legacy -Ic-blosc/internal-complibs/zstd-1.3.4/compress -Ic-blosc/internal-complibs/zstd-1.3.4/common -I/usr/local/lib/python3.8/dist-packages/numpy/core/include -I/usr/include/python3.8 -c c-blosc/blosc/bitshuffle-generic.c -o build/temp.linux-x86_64-3.8/c-blosc/blosc/bitshuffle-generic.o -DSHUFFLE_SSE2_ENABLED -msse2 -DSHUFFLE_AVX2_ENABLED -mavx2 x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DHAVE_LZ4=1 -DHAVE_SNAPPY=1 -DHAVE_ZLIB=1 -DHAVE_ZSTD=1 -Ibcolz -Ic-blosc/blosc -Ic-blosc/internal-complibs/lz4-1.8.1.2 -Ic-blosc/internal-complibs/snappy-1.1.1 -Ic-blosc/internal-complibs/zstd-1.3.4 -Ic-blosc/internal-complibs/zlib-1.2.8 -Ic-blosc/internal-complibs/zstd-1.3.4/dll -Ic-blosc/internal-complibs/zstd-1.3.4/decompress -Ic-blosc/internal-complibs/zstd-1.3.4/deprecated -Ic-blosc/internal-complibs/zstd-1.3.4/dictBuilder -Ic-blosc/internal-complibs/zstd-1.3.4/legacy -Ic-blosc/internal-complibs/zstd-1.3.4/compress -Ic-blosc/internal-complibs/zstd-1.3.4/common -I/usr/local/lib/python3.8/dist-packages/numpy/core/include -I/usr/include/python3.8 -c c-blosc/blosc/fastcopy.c -o build/temp.linux-x86_64-3.8/c-blosc/blosc/fastcopy.o -DSHUFFLE_SSE2_ENABLED -msse2 -DSHUFFLE_AVX2_ENABLED -mavx2 x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DHAVE_LZ4=1 -DHAVE_SNAPPY=1 -DHAVE_ZLIB=1 -DHAVE_ZSTD=1 -Ibcolz -Ic-blosc/blosc -Ic-blosc/internal-complibs/lz4-1.8.1.2 -Ic-blosc/internal-complibs/snappy-1.1.1 -Ic-blosc/internal-complibs/zstd-1.3.4 -Ic-blosc/internal-complibs/zlib-1.2.8 -Ic-blosc/internal-complibs/zstd-1.3.4/dll -Ic-blosc/internal-complibs/zstd-1.3.4/decompress -Ic-blosc/internal-complibs/zstd-1.3.4/deprecated -Ic-blosc/internal-complibs/zstd-1.3.4/dictBuilder -Ic-blosc/internal-complibs/zstd-1.3.4/legacy -Ic-blosc/internal-complibs/zstd-1.3.4/compress -Ic-blosc/internal-complibs/zstd-1.3.4/common -I/usr/local/lib/python3.8/dist-packages/numpy/core/include -I/usr/include/python3.8 -c c-blosc/blosc/shuffle.c -o build/temp.linux-x86_64-3.8/c-blosc/blosc/shuffle.o -DSHUFFLE_SSE2_ENABLED -msse2 -DSHUFFLE_AVX2_ENABLED -mavx2 c-blosc/blosc/shuffle.c:170:1: error: conflicting types for ‘_xgetbv’ 170 | _xgetbv(uint32_t xcr) { | ^~~ In file included from /usr/lib/gcc/x86_64-linux-gnu/9/include/immintrin.h:43, from c-blosc/blosc/blosc-common.h:77, from c-blosc/blosc/shuffle.h:18, from c-blosc/blosc/shuffle.c:10: /usr/lib/gcc/x86_64-linux-gnu/9/include/xsaveintrin.h:60:1: note: previous definition of ‘_xgetbv’ was here 60 | _xgetbv (unsigned int __A) | ^~~ In file included from c-blosc/blosc/shuffle.c:11: c-blosc/blosc/shuffle-generic.h:61:13: warning: ‘unshuffle_generic_inline’ defined but not used [-Wunused-function] 61 | static void unshuffle_generic_inline(const size_t type_size, | ^~~~~~~~ c-blosc/blosc/shuffle-generic.h:32:13: warning: ‘shuffle_generic_inline’ defined but not used [-Wunused-function] 32 | static void shuffle_generic_inline(const size_t type_size, | ^~~~~~ error: command 'x86_64-linux-gnu-gcc' failed with exit status 1

lossv commented 4 years ago

hello I have meet the same error ,have you fix this error?