sergey-dryabzhinsky / python-zstd

Simple python bindings to Yann Collet ZSTD compression library
BSD 2-Clause "Simplified" License
165 stars 27 forks source link

pip install v1.4.5.0 fails #52

Closed tzoiker closed 4 years ago

tzoiker commented 4 years ago

pip install zstd==1.4.5.0 fails with

Building wheels for collected packages: zstd
  Building wheel for zstd (setup.py) ... error
  ERROR: Command errored out with exit status 1:
   command: /opt/miniconda3/envs/env/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/4y/sdthw9v91jsfn5xj4w42scswlv5q_3/T/pip-install-w70ftg41/zstd/setup.py'"'"'; __file__='"'"'/private/var/folders/4y/sdthw9v91jsfn5xj4w42scswlv5q_3/T/pip-install-w70ftg41/zstd/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /private/var/folders/4y/sdthw9v91jsfn5xj4w42scswlv5q_3/T/pip-wheel-g5iz_w9s
       cwd: /private/var/folders/4y/sdthw9v91jsfn5xj4w42scswlv5q_3/T/pip-install-w70ftg41/zstd/
  Complete output (45 lines):
  running bdist_wheel
  running build
  running build_ext
  building 'zstd' extension
  creating build
  creating build/temp.macosx-10.9-x86_64-3.8
  creating build/temp.macosx-10.9-x86_64-3.8/zstd
  creating build/temp.macosx-10.9-x86_64-3.8/zstd/lib
  creating build/temp.macosx-10.9-x86_64-3.8/zstd/lib/compress
  creating build/temp.macosx-10.9-x86_64-3.8/zstd/lib/common
  creating build/temp.macosx-10.9-x86_64-3.8/zstd/lib/decompress
  creating build/temp.macosx-10.9-x86_64-3.8/src
  gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/opt/miniconda3/envs/env/include -arch x86_64 -I/opt/miniconda3/envs/env/include -arch x86_64 -I/opt/miniconda3/envs/env/include/python3.8 -c zstd/lib/compress/zstd_compress.c -o build/temp.macosx-10.9-x86_64-3.8/zstd/lib/compress/zstd_compress.o -O2 -DVERSION="1.4.5.0" -DZSTD_MULTITHREAD=1 -Izstd/lib -Izstd/lib/common -Izstd/lib/compress -Izstd/lib/decompress
  gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/opt/miniconda3/envs/env/include -arch x86_64 -I/opt/miniconda3/envs/env/include -arch x86_64 -I/opt/miniconda3/envs/env/include/python3.8 -c zstd/lib/compress/zstd_compress_literals.c -o build/temp.macosx-10.9-x86_64-3.8/zstd/lib/compress/zstd_compress_literals.o -O2 -DVERSION="1.4.5.0" -DZSTD_MULTITHREAD=1 -Izstd/lib -Izstd/lib/common -Izstd/lib/compress -Izstd/lib/decompress
  gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/opt/miniconda3/envs/env/include -arch x86_64 -I/opt/miniconda3/envs/env/include -arch x86_64 -I/opt/miniconda3/envs/env/include/python3.8 -c zstd/lib/compress/zstd_compress_sequences.c -o build/temp.macosx-10.9-x86_64-3.8/zstd/lib/compress/zstd_compress_sequences.o -O2 -DVERSION="1.4.5.0" -DZSTD_MULTITHREAD=1 -Izstd/lib -Izstd/lib/common -Izstd/lib/compress -Izstd/lib/decompress
  gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/opt/miniconda3/envs/env/include -arch x86_64 -I/opt/miniconda3/envs/env/include -arch x86_64 -I/opt/miniconda3/envs/env/include/python3.8 -c zstd/lib/compress/zstd_compress_superblock.c -o build/temp.macosx-10.9-x86_64-3.8/zstd/lib/compress/zstd_compress_superblock.o -O2 -DVERSION="1.4.5.0" -DZSTD_MULTITHREAD=1 -Izstd/lib -Izstd/lib/common -Izstd/lib/compress -Izstd/lib/decompress
  gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/opt/miniconda3/envs/env/include -arch x86_64 -I/opt/miniconda3/envs/env/include -arch x86_64 -I/opt/miniconda3/envs/env/include/python3.8 -c zstd/lib/compress/zstdmt_compress.c -o build/temp.macosx-10.9-x86_64-3.8/zstd/lib/compress/zstdmt_compress.o -O2 -DVERSION="1.4.5.0" -DZSTD_MULTITHREAD=1 -Izstd/lib -Izstd/lib/common -Izstd/lib/compress -Izstd/lib/decompress
  gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/opt/miniconda3/envs/env/include -arch x86_64 -I/opt/miniconda3/envs/env/include -arch x86_64 -I/opt/miniconda3/envs/env/include/python3.8 -c zstd/lib/compress/zstd_fast.c -o build/temp.macosx-10.9-x86_64-3.8/zstd/lib/compress/zstd_fast.o -O2 -DVERSION="1.4.5.0" -DZSTD_MULTITHREAD=1 -Izstd/lib -Izstd/lib/common -Izstd/lib/compress -Izstd/lib/decompress
  gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/opt/miniconda3/envs/env/include -arch x86_64 -I/opt/miniconda3/envs/env/include -arch x86_64 -I/opt/miniconda3/envs/env/include/python3.8 -c zstd/lib/compress/zstd_double_fast.c -o build/temp.macosx-10.9-x86_64-3.8/zstd/lib/compress/zstd_double_fast.o -O2 -DVERSION="1.4.5.0" -DZSTD_MULTITHREAD=1 -Izstd/lib -Izstd/lib/common -Izstd/lib/compress -Izstd/lib/decompress
  gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/opt/miniconda3/envs/env/include -arch x86_64 -I/opt/miniconda3/envs/env/include -arch x86_64 -I/opt/miniconda3/envs/env/include/python3.8 -c zstd/lib/compress/zstd_lazy.c -o build/temp.macosx-10.9-x86_64-3.8/zstd/lib/compress/zstd_lazy.o -O2 -DVERSION="1.4.5.0" -DZSTD_MULTITHREAD=1 -Izstd/lib -Izstd/lib/common -Izstd/lib/compress -Izstd/lib/decompress
  gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/opt/miniconda3/envs/env/include -arch x86_64 -I/opt/miniconda3/envs/env/include -arch x86_64 -I/opt/miniconda3/envs/env/include/python3.8 -c zstd/lib/compress/zstd_opt.c -o build/temp.macosx-10.9-x86_64-3.8/zstd/lib/compress/zstd_opt.o -O2 -DVERSION="1.4.5.0" -DZSTD_MULTITHREAD=1 -Izstd/lib -Izstd/lib/common -Izstd/lib/compress -Izstd/lib/decompress
  gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/opt/miniconda3/envs/env/include -arch x86_64 -I/opt/miniconda3/envs/env/include -arch x86_64 -I/opt/miniconda3/envs/env/include/python3.8 -c zstd/lib/compress/zstd_ldm.c -o build/temp.macosx-10.9-x86_64-3.8/zstd/lib/compress/zstd_ldm.o -O2 -DVERSION="1.4.5.0" -DZSTD_MULTITHREAD=1 -Izstd/lib -Izstd/lib/common -Izstd/lib/compress -Izstd/lib/decompress
  gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/opt/miniconda3/envs/env/include -arch x86_64 -I/opt/miniconda3/envs/env/include -arch x86_64 -I/opt/miniconda3/envs/env/include/python3.8 -c zstd/lib/compress/fse_compress.c -o build/temp.macosx-10.9-x86_64-3.8/zstd/lib/compress/fse_compress.o -O2 -DVERSION="1.4.5.0" -DZSTD_MULTITHREAD=1 -Izstd/lib -Izstd/lib/common -Izstd/lib/compress -Izstd/lib/decompress
  gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/opt/miniconda3/envs/env/include -arch x86_64 -I/opt/miniconda3/envs/env/include -arch x86_64 -I/opt/miniconda3/envs/env/include/python3.8 -c zstd/lib/compress/huf_compress.c -o build/temp.macosx-10.9-x86_64-3.8/zstd/lib/compress/huf_compress.o -O2 -DVERSION="1.4.5.0" -DZSTD_MULTITHREAD=1 -Izstd/lib -Izstd/lib/common -Izstd/lib/compress -Izstd/lib/decompress
  gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/opt/miniconda3/envs/env/include -arch x86_64 -I/opt/miniconda3/envs/env/include -arch x86_64 -I/opt/miniconda3/envs/env/include/python3.8 -c zstd/lib/compress/hist.c -o build/temp.macosx-10.9-x86_64-3.8/zstd/lib/compress/hist.o -O2 -DVERSION="1.4.5.0" -DZSTD_MULTITHREAD=1 -Izstd/lib -Izstd/lib/common -Izstd/lib/compress -Izstd/lib/decompress
  gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/opt/miniconda3/envs/env/include -arch x86_64 -I/opt/miniconda3/envs/env/include -arch x86_64 -I/opt/miniconda3/envs/env/include/python3.8 -c zstd/lib/common/fse_decompress.c -o build/temp.macosx-10.9-x86_64-3.8/zstd/lib/common/fse_decompress.o -O2 -DVERSION="1.4.5.0" -DZSTD_MULTITHREAD=1 -Izstd/lib -Izstd/lib/common -Izstd/lib/compress -Izstd/lib/decompress
  gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/opt/miniconda3/envs/env/include -arch x86_64 -I/opt/miniconda3/envs/env/include -arch x86_64 -I/opt/miniconda3/envs/env/include/python3.8 -c zstd/lib/decompress/zstd_decompress.c -o build/temp.macosx-10.9-x86_64-3.8/zstd/lib/decompress/zstd_decompress.o -O2 -DVERSION="1.4.5.0" -DZSTD_MULTITHREAD=1 -Izstd/lib -Izstd/lib/common -Izstd/lib/compress -Izstd/lib/decompress
  gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/opt/miniconda3/envs/env/include -arch x86_64 -I/opt/miniconda3/envs/env/include -arch x86_64 -I/opt/miniconda3/envs/env/include/python3.8 -c zstd/lib/decompress/zstd_decompress_block.c -o build/temp.macosx-10.9-x86_64-3.8/zstd/lib/decompress/zstd_decompress_block.o -O2 -DVERSION="1.4.5.0" -DZSTD_MULTITHREAD=1 -Izstd/lib -Izstd/lib/common -Izstd/lib/compress -Izstd/lib/decompress
  gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/opt/miniconda3/envs/env/include -arch x86_64 -I/opt/miniconda3/envs/env/include -arch x86_64 -I/opt/miniconda3/envs/env/include/python3.8 -c zstd/lib/decompress/zstd_ddict.c -o build/temp.macosx-10.9-x86_64-3.8/zstd/lib/decompress/zstd_ddict.o -O2 -DVERSION="1.4.5.0" -DZSTD_MULTITHREAD=1 -Izstd/lib -Izstd/lib/common -Izstd/lib/compress -Izstd/lib/decompress
  gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/opt/miniconda3/envs/env/include -arch x86_64 -I/opt/miniconda3/envs/env/include -arch x86_64 -I/opt/miniconda3/envs/env/include/python3.8 -c zstd/lib/decompress/huf_decompress.c -o build/temp.macosx-10.9-x86_64-3.8/zstd/lib/decompress/huf_decompress.o -O2 -DVERSION="1.4.5.0" -DZSTD_MULTITHREAD=1 -Izstd/lib -Izstd/lib/common -Izstd/lib/compress -Izstd/lib/decompress
  gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/opt/miniconda3/envs/env/include -arch x86_64 -I/opt/miniconda3/envs/env/include -arch x86_64 -I/opt/miniconda3/envs/env/include/python3.8 -c zstd/lib/common/entropy_common.c -o build/temp.macosx-10.9-x86_64-3.8/zstd/lib/common/entropy_common.o -O2 -DVERSION="1.4.5.0" -DZSTD_MULTITHREAD=1 -Izstd/lib -Izstd/lib/common -Izstd/lib/compress -Izstd/lib/decompress
  gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/opt/miniconda3/envs/env/include -arch x86_64 -I/opt/miniconda3/envs/env/include -arch x86_64 -I/opt/miniconda3/envs/env/include/python3.8 -c zstd/lib/common/zstd_common.c -o build/temp.macosx-10.9-x86_64-3.8/zstd/lib/common/zstd_common.o -O2 -DVERSION="1.4.5.0" -DZSTD_MULTITHREAD=1 -Izstd/lib -Izstd/lib/common -Izstd/lib/compress -Izstd/lib/decompress
  gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/opt/miniconda3/envs/env/include -arch x86_64 -I/opt/miniconda3/envs/env/include -arch x86_64 -I/opt/miniconda3/envs/env/include/python3.8 -c zstd/lib/common/xxhash.c -o build/temp.macosx-10.9-x86_64-3.8/zstd/lib/common/xxhash.o -O2 -DVERSION="1.4.5.0" -DZSTD_MULTITHREAD=1 -Izstd/lib -Izstd/lib/common -Izstd/lib/compress -Izstd/lib/decompress
  gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/opt/miniconda3/envs/env/include -arch x86_64 -I/opt/miniconda3/envs/env/include -arch x86_64 -I/opt/miniconda3/envs/env/include/python3.8 -c zstd/lib/common/error_private.c -o build/temp.macosx-10.9-x86_64-3.8/zstd/lib/common/error_private.o -O2 -DVERSION="1.4.5.0" -DZSTD_MULTITHREAD=1 -Izstd/lib -Izstd/lib/common -Izstd/lib/compress -Izstd/lib/decompress
  gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/opt/miniconda3/envs/env/include -arch x86_64 -I/opt/miniconda3/envs/env/include -arch x86_64 -I/opt/miniconda3/envs/env/include/python3.8 -c zstd/lib/common/pool.c -o build/temp.macosx-10.9-x86_64-3.8/zstd/lib/common/pool.o -O2 -DVERSION="1.4.5.0" -DZSTD_MULTITHREAD=1 -Izstd/lib -Izstd/lib/common -Izstd/lib/compress -Izstd/lib/decompress
  gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/opt/miniconda3/envs/env/include -arch x86_64 -I/opt/miniconda3/envs/env/include -arch x86_64 -I/opt/miniconda3/envs/env/include/python3.8 -c zstd/lib/common/threading.c -o build/temp.macosx-10.9-x86_64-3.8/zstd/lib/common/threading.o -O2 -DVERSION="1.4.5.0" -DZSTD_MULTITHREAD=1 -Izstd/lib -Izstd/lib/common -Izstd/lib/compress -Izstd/lib/decompress
  gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/opt/miniconda3/envs/env/include -arch x86_64 -I/opt/miniconda3/envs/env/include -arch x86_64 -I/opt/miniconda3/envs/env/include/python3.8 -c src/util.c -o build/temp.macosx-10.9-x86_64-3.8/src/util.o -O2 -DVERSION="1.4.5.0" -DZSTD_MULTITHREAD=1 -Izstd/lib -Izstd/lib/common -Izstd/lib/compress -Izstd/lib/decompress
  src/util.c:117:12: error: unknown type name 'S32'
      static S32 numPhysicalCores = 0; /* apple specifies int32_t */
             ^
  src/util.c:120:30: error: use of undeclared identifier 'S32'
      {   size_t size = sizeof(S32);
                               ^
  2 errors generated.
  error: command 'gcc' failed with exit status 1
  ----------------------------------------
  ERROR: Failed building wheel for zstd
  Running setup.py clean for zstd
Failed to build zstd
Installing collected packages: zstd
  Attempting uninstall: zstd
    Found existing installation: zstd 1.4.4.0
    Uninstalling zstd-1.4.4.0:
      Successfully uninstalled zstd-1.4.4.0
    Running setup.py install for zstd ... error
    ERROR: Command errored out with exit status 1:
     command: /opt/miniconda3/envs/env/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/4y/sdthw9v91jsfn5xj4w42scswlv5q_3/T/pip-install-w70ftg41/zstd/setup.py'"'"'; __file__='"'"'/private/var/folders/4y/sdthw9v91jsfn5xj4w42scswlv5q_3/T/pip-install-w70ftg41/zstd/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /private/var/folders/4y/sdthw9v91jsfn5xj4w42scswlv5q_3/T/pip-record-rtvx1vap/install-record.txt --single-version-externally-managed --compile --install-headers /opt/miniconda3/envs/env/include/python3.8/zstd
         cwd: /private/var/folders/4y/sdthw9v91jsfn5xj4w42scswlv5q_3/T/pip-install-w70ftg41/zstd/
    Complete output (45 lines):
    running install
    running build
    running build_ext
    building 'zstd' extension
    creating build
    creating build/temp.macosx-10.9-x86_64-3.8
    creating build/temp.macosx-10.9-x86_64-3.8/zstd
    creating build/temp.macosx-10.9-x86_64-3.8/zstd/lib
    creating build/temp.macosx-10.9-x86_64-3.8/zstd/lib/compress
    creating build/temp.macosx-10.9-x86_64-3.8/zstd/lib/common
    creating build/temp.macosx-10.9-x86_64-3.8/zstd/lib/decompress
    creating build/temp.macosx-10.9-x86_64-3.8/src
    gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/opt/miniconda3/envs/env/include -arch x86_64 -I/opt/miniconda3/envs/env/include -arch x86_64 -I/opt/miniconda3/envs/env/include/python3.8 -c zstd/lib/compress/zstd_compress.c -o build/temp.macosx-10.9-x86_64-3.8/zstd/lib/compress/zstd_compress.o -O2 -DVERSION="1.4.5.0" -DZSTD_MULTITHREAD=1 -Izstd/lib -Izstd/lib/common -Izstd/lib/compress -Izstd/lib/decompress
    gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/opt/miniconda3/envs/env/include -arch x86_64 -I/opt/miniconda3/envs/env/include -arch x86_64 -I/opt/miniconda3/envs/env/include/python3.8 -c zstd/lib/compress/zstd_compress_literals.c -o build/temp.macosx-10.9-x86_64-3.8/zstd/lib/compress/zstd_compress_literals.o -O2 -DVERSION="1.4.5.0" -DZSTD_MULTITHREAD=1 -Izstd/lib -Izstd/lib/common -Izstd/lib/compress -Izstd/lib/decompress
    gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/opt/miniconda3/envs/env/include -arch x86_64 -I/opt/miniconda3/envs/env/include -arch x86_64 -I/opt/miniconda3/envs/env/include/python3.8 -c zstd/lib/compress/zstd_compress_sequences.c -o build/temp.macosx-10.9-x86_64-3.8/zstd/lib/compress/zstd_compress_sequences.o -O2 -DVERSION="1.4.5.0" -DZSTD_MULTITHREAD=1 -Izstd/lib -Izstd/lib/common -Izstd/lib/compress -Izstd/lib/decompress
    gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/opt/miniconda3/envs/env/include -arch x86_64 -I/opt/miniconda3/envs/env/include -arch x86_64 -I/opt/miniconda3/envs/env/include/python3.8 -c zstd/lib/compress/zstd_compress_superblock.c -o build/temp.macosx-10.9-x86_64-3.8/zstd/lib/compress/zstd_compress_superblock.o -O2 -DVERSION="1.4.5.0" -DZSTD_MULTITHREAD=1 -Izstd/lib -Izstd/lib/common -Izstd/lib/compress -Izstd/lib/decompress
    gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/opt/miniconda3/envs/env/include -arch x86_64 -I/opt/miniconda3/envs/env/include -arch x86_64 -I/opt/miniconda3/envs/env/include/python3.8 -c zstd/lib/compress/zstdmt_compress.c -o build/temp.macosx-10.9-x86_64-3.8/zstd/lib/compress/zstdmt_compress.o -O2 -DVERSION="1.4.5.0" -DZSTD_MULTITHREAD=1 -Izstd/lib -Izstd/lib/common -Izstd/lib/compress -Izstd/lib/decompress
    gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/opt/miniconda3/envs/env/include -arch x86_64 -I/opt/miniconda3/envs/env/include -arch x86_64 -I/opt/miniconda3/envs/env/include/python3.8 -c zstd/lib/compress/zstd_fast.c -o build/temp.macosx-10.9-x86_64-3.8/zstd/lib/compress/zstd_fast.o -O2 -DVERSION="1.4.5.0" -DZSTD_MULTITHREAD=1 -Izstd/lib -Izstd/lib/common -Izstd/lib/compress -Izstd/lib/decompress
    gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/opt/miniconda3/envs/env/include -arch x86_64 -I/opt/miniconda3/envs/env/include -arch x86_64 -I/opt/miniconda3/envs/env/include/python3.8 -c zstd/lib/compress/zstd_double_fast.c -o build/temp.macosx-10.9-x86_64-3.8/zstd/lib/compress/zstd_double_fast.o -O2 -DVERSION="1.4.5.0" -DZSTD_MULTITHREAD=1 -Izstd/lib -Izstd/lib/common -Izstd/lib/compress -Izstd/lib/decompress
    gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/opt/miniconda3/envs/env/include -arch x86_64 -I/opt/miniconda3/envs/env/include -arch x86_64 -I/opt/miniconda3/envs/env/include/python3.8 -c zstd/lib/compress/zstd_lazy.c -o build/temp.macosx-10.9-x86_64-3.8/zstd/lib/compress/zstd_lazy.o -O2 -DVERSION="1.4.5.0" -DZSTD_MULTITHREAD=1 -Izstd/lib -Izstd/lib/common -Izstd/lib/compress -Izstd/lib/decompress
    gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/opt/miniconda3/envs/env/include -arch x86_64 -I/opt/miniconda3/envs/env/include -arch x86_64 -I/opt/miniconda3/envs/env/include/python3.8 -c zstd/lib/compress/zstd_opt.c -o build/temp.macosx-10.9-x86_64-3.8/zstd/lib/compress/zstd_opt.o -O2 -DVERSION="1.4.5.0" -DZSTD_MULTITHREAD=1 -Izstd/lib -Izstd/lib/common -Izstd/lib/compress -Izstd/lib/decompress
    gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/opt/miniconda3/envs/env/include -arch x86_64 -I/opt/miniconda3/envs/env/include -arch x86_64 -I/opt/miniconda3/envs/env/include/python3.8 -c zstd/lib/compress/zstd_ldm.c -o build/temp.macosx-10.9-x86_64-3.8/zstd/lib/compress/zstd_ldm.o -O2 -DVERSION="1.4.5.0" -DZSTD_MULTITHREAD=1 -Izstd/lib -Izstd/lib/common -Izstd/lib/compress -Izstd/lib/decompress
    gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/opt/miniconda3/envs/env/include -arch x86_64 -I/opt/miniconda3/envs/env/include -arch x86_64 -I/opt/miniconda3/envs/env/include/python3.8 -c zstd/lib/compress/fse_compress.c -o build/temp.macosx-10.9-x86_64-3.8/zstd/lib/compress/fse_compress.o -O2 -DVERSION="1.4.5.0" -DZSTD_MULTITHREAD=1 -Izstd/lib -Izstd/lib/common -Izstd/lib/compress -Izstd/lib/decompress
    gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/opt/miniconda3/envs/env/include -arch x86_64 -I/opt/miniconda3/envs/env/include -arch x86_64 -I/opt/miniconda3/envs/env/include/python3.8 -c zstd/lib/compress/huf_compress.c -o build/temp.macosx-10.9-x86_64-3.8/zstd/lib/compress/huf_compress.o -O2 -DVERSION="1.4.5.0" -DZSTD_MULTITHREAD=1 -Izstd/lib -Izstd/lib/common -Izstd/lib/compress -Izstd/lib/decompress
    gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/opt/miniconda3/envs/env/include -arch x86_64 -I/opt/miniconda3/envs/env/include -arch x86_64 -I/opt/miniconda3/envs/env/include/python3.8 -c zstd/lib/compress/hist.c -o build/temp.macosx-10.9-x86_64-3.8/zstd/lib/compress/hist.o -O2 -DVERSION="1.4.5.0" -DZSTD_MULTITHREAD=1 -Izstd/lib -Izstd/lib/common -Izstd/lib/compress -Izstd/lib/decompress
    gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/opt/miniconda3/envs/env/include -arch x86_64 -I/opt/miniconda3/envs/env/include -arch x86_64 -I/opt/miniconda3/envs/env/include/python3.8 -c zstd/lib/common/fse_decompress.c -o build/temp.macosx-10.9-x86_64-3.8/zstd/lib/common/fse_decompress.o -O2 -DVERSION="1.4.5.0" -DZSTD_MULTITHREAD=1 -Izstd/lib -Izstd/lib/common -Izstd/lib/compress -Izstd/lib/decompress
    gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/opt/miniconda3/envs/env/include -arch x86_64 -I/opt/miniconda3/envs/env/include -arch x86_64 -I/opt/miniconda3/envs/env/include/python3.8 -c zstd/lib/decompress/zstd_decompress.c -o build/temp.macosx-10.9-x86_64-3.8/zstd/lib/decompress/zstd_decompress.o -O2 -DVERSION="1.4.5.0" -DZSTD_MULTITHREAD=1 -Izstd/lib -Izstd/lib/common -Izstd/lib/compress -Izstd/lib/decompress
    gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/opt/miniconda3/envs/env/include -arch x86_64 -I/opt/miniconda3/envs/env/include -arch x86_64 -I/opt/miniconda3/envs/env/include/python3.8 -c zstd/lib/decompress/zstd_decompress_block.c -o build/temp.macosx-10.9-x86_64-3.8/zstd/lib/decompress/zstd_decompress_block.o -O2 -DVERSION="1.4.5.0" -DZSTD_MULTITHREAD=1 -Izstd/lib -Izstd/lib/common -Izstd/lib/compress -Izstd/lib/decompress
    gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/opt/miniconda3/envs/env/include -arch x86_64 -I/opt/miniconda3/envs/env/include -arch x86_64 -I/opt/miniconda3/envs/env/include/python3.8 -c zstd/lib/decompress/zstd_ddict.c -o build/temp.macosx-10.9-x86_64-3.8/zstd/lib/decompress/zstd_ddict.o -O2 -DVERSION="1.4.5.0" -DZSTD_MULTITHREAD=1 -Izstd/lib -Izstd/lib/common -Izstd/lib/compress -Izstd/lib/decompress
    gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/opt/miniconda3/envs/env/include -arch x86_64 -I/opt/miniconda3/envs/env/include -arch x86_64 -I/opt/miniconda3/envs/env/include/python3.8 -c zstd/lib/decompress/huf_decompress.c -o build/temp.macosx-10.9-x86_64-3.8/zstd/lib/decompress/huf_decompress.o -O2 -DVERSION="1.4.5.0" -DZSTD_MULTITHREAD=1 -Izstd/lib -Izstd/lib/common -Izstd/lib/compress -Izstd/lib/decompress
    gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/opt/miniconda3/envs/env/include -arch x86_64 -I/opt/miniconda3/envs/env/include -arch x86_64 -I/opt/miniconda3/envs/env/include/python3.8 -c zstd/lib/common/entropy_common.c -o build/temp.macosx-10.9-x86_64-3.8/zstd/lib/common/entropy_common.o -O2 -DVERSION="1.4.5.0" -DZSTD_MULTITHREAD=1 -Izstd/lib -Izstd/lib/common -Izstd/lib/compress -Izstd/lib/decompress
    gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/opt/miniconda3/envs/env/include -arch x86_64 -I/opt/miniconda3/envs/env/include -arch x86_64 -I/opt/miniconda3/envs/env/include/python3.8 -c zstd/lib/common/zstd_common.c -o build/temp.macosx-10.9-x86_64-3.8/zstd/lib/common/zstd_common.o -O2 -DVERSION="1.4.5.0" -DZSTD_MULTITHREAD=1 -Izstd/lib -Izstd/lib/common -Izstd/lib/compress -Izstd/lib/decompress
    gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/opt/miniconda3/envs/env/include -arch x86_64 -I/opt/miniconda3/envs/env/include -arch x86_64 -I/opt/miniconda3/envs/env/include/python3.8 -c zstd/lib/common/xxhash.c -o build/temp.macosx-10.9-x86_64-3.8/zstd/lib/common/xxhash.o -O2 -DVERSION="1.4.5.0" -DZSTD_MULTITHREAD=1 -Izstd/lib -Izstd/lib/common -Izstd/lib/compress -Izstd/lib/decompress
    gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/opt/miniconda3/envs/env/include -arch x86_64 -I/opt/miniconda3/envs/env/include -arch x86_64 -I/opt/miniconda3/envs/env/include/python3.8 -c zstd/lib/common/error_private.c -o build/temp.macosx-10.9-x86_64-3.8/zstd/lib/common/error_private.o -O2 -DVERSION="1.4.5.0" -DZSTD_MULTITHREAD=1 -Izstd/lib -Izstd/lib/common -Izstd/lib/compress -Izstd/lib/decompress
    gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/opt/miniconda3/envs/env/include -arch x86_64 -I/opt/miniconda3/envs/env/include -arch x86_64 -I/opt/miniconda3/envs/env/include/python3.8 -c zstd/lib/common/pool.c -o build/temp.macosx-10.9-x86_64-3.8/zstd/lib/common/pool.o -O2 -DVERSION="1.4.5.0" -DZSTD_MULTITHREAD=1 -Izstd/lib -Izstd/lib/common -Izstd/lib/compress -Izstd/lib/decompress
    gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/opt/miniconda3/envs/env/include -arch x86_64 -I/opt/miniconda3/envs/env/include -arch x86_64 -I/opt/miniconda3/envs/env/include/python3.8 -c zstd/lib/common/threading.c -o build/temp.macosx-10.9-x86_64-3.8/zstd/lib/common/threading.o -O2 -DVERSION="1.4.5.0" -DZSTD_MULTITHREAD=1 -Izstd/lib -Izstd/lib/common -Izstd/lib/compress -Izstd/lib/decompress
    gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/opt/miniconda3/envs/env/include -arch x86_64 -I/opt/miniconda3/envs/env/include -arch x86_64 -I/opt/miniconda3/envs/env/include/python3.8 -c src/util.c -o build/temp.macosx-10.9-x86_64-3.8/src/util.o -O2 -DVERSION="1.4.5.0" -DZSTD_MULTITHREAD=1 -Izstd/lib -Izstd/lib/common -Izstd/lib/compress -Izstd/lib/decompress
    src/util.c:117:12: error: unknown type name 'S32'
        static S32 numPhysicalCores = 0; /* apple specifies int32_t */
               ^
    src/util.c:120:30: error: use of undeclared identifier 'S32'
        {   size_t size = sizeof(S32);
                                 ^
    2 errors generated.
    error: command 'gcc' failed with exit status 1
    ----------------------------------------
  Rolling back uninstall of zstd
  Moving to /opt/miniconda3/envs/env/lib/python3.8/site-packages/zstd-1.4.4.0.dist-info/
   from /opt/miniconda3/envs/env/lib/python3.8/site-packages/~std-1.4.4.0.dist-info
  Moving to /opt/miniconda3/envs/env/lib/python3.8/site-packages/zstd.cpython-38-darwin.so
   from /private/var/folders/4y/sdthw9v91jsfn5xj4w42scswlv5q_3/T/pip-uninstall-vltby78p/zstd.cpython-38-darwin.so
ERROR: Command errored out with exit status 1: /opt/miniconda3/envs/env/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/4y/sdthw9v91jsfn5xj4w42scswlv5q_3/T/pip-install-w70ftg41/zstd/setup.py'"'"'; __file__='"'"'/private/var/folders/4y/sdthw9v91jsfn5xj4w42scswlv5q_3/T/pip-install-w70ftg41/zstd/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /private/var/folders/4y/sdthw9v91jsfn5xj4w42scswlv5q_3/T/pip-record-rtvx1vap/install-record.txt --single-version-externally-managed --compile --install-headers /opt/miniconda3/envs/env/include/python3.8/zstd Check the logs for full command output.

Python: 3.8.3 OS: mac OS Catalina 10.15.5 (19F96)

Pavkazzz commented 4 years ago

Same issue with python-3.7.6 OS: mac OS Catalina 10.15.4

gcc --version

Configured with: --prefix=/Library/Developer/CommandLineTools/usr --with-gxx-include-dir=/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/4.2.1
Apple clang version 11.0.3 (clang-1103.0.32.62)
Target: x86_64-apple-darwin19.4.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin
dizballanze commented 4 years ago

+1

sergey-dryabzhinsky commented 4 years ago

Can you try latest code from master branch?

Pavkazzz commented 4 years ago

@sergey-dryabzhinsky Work for me. Thx

pip3 install git+https://github.com/sergey-dryabzhinsky/python-zstd.git@master

Collecting git+https://github.com/sergey-dryabzhinsky/python-zstd.git@master
Cloning https://github.com/sergey-dryabzhinsky/python-zstd.git (to revision master) to /private/var/folders/rm/h69rtgh55qd3_yxhwlfsjnxn2k0s73/T/pip-req-build-i0kul5jn
Running command git clone -q https://github.com/sergey-dryabzhinsky/python-zstd.git /private/var/folders/rm/h69rtgh55qd3_yxhwlfsjnxn2k0s73/T/pip-req-build-i0kul5jn
Running command git submodule update --init --recursive -q
Building wheels for collected packages: zstd
Building wheel for zstd (setup.py) ... done
Created wheel for zstd: filename=zstd-1.4.5.0-cp37-cp37m-macosx_10_9_x86_64.whl size=315247 sha256=7f8078320baf31e44f091b253cf35e631b4f021acd922210cbea7a1242caaaee
Stored in directory: /private/var/folders/rm/h69rtgh55qd3_yxhwlfsjnxn2k0s73/T/pip-ephem-wheel-cache-zbntfi0t/wheels/cd/1e/33/f4a923a6994f6e42ba526382801acffaef5e0d36a29cec2515
Successfully built zstd
Installing collected packages: zstd
Found existing installation: zstd 1.4.4.0
Uninstalling zstd-1.4.4.0:
Successfully uninstalled zstd-1.4.4.0
Successfully installed zstd-1.4.5.0
sergey-dryabzhinsky commented 4 years ago

Ok. New version will be tagged ASAP.

sergey-dryabzhinsky commented 4 years ago

Fixed in 1.4.5.1