sergey-dryabzhinsky / python-zstd

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

Zstd fails to install #33

Closed emilmirzayev closed 5 years ago

emilmirzayev commented 6 years ago

Hi. I try to install via pip and get the following error: Visual C++ also installed. Setuptools version: 40.5.0 How should I resolve this issue?

C:\Users\Emil>pip3 install zstd
Collecting zstd
  Using cached https://files.pythonhosted.org/packages/08/ea/693d977411af8f9a43aee43a092e8b30542cdb9c5a326739ff844549cf93/zstd-1.3.5.1.tar.gz
Installing collected packages: zstd
  Running setup.py install for zstd ... error
    Complete output from command c:\users\emil\appdata\local\programs\python\python36\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\Emil\\AppData\\Local\\Temp\\pip-install-drb0myv4\\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 C:\Users\Emil\AppData\Local\Temp\pip-record-vef6jxhh\install-record.txt --single-version-externally-managed --compile:
    running install
    running build
    running build_ext
    building 'zstd' extension
    creating build
    creating build\temp.win-amd64-3.6
    creating build\temp.win-amd64-3.6\Release
    creating build\temp.win-amd64-3.6\Release\zstd
    creating build\temp.win-amd64-3.6\Release\zstd\lib
    creating build\temp.win-amd64-3.6\Release\zstd\lib\compress
    creating build\temp.win-amd64-3.6\Release\zstd\lib\decompress
    creating build\temp.win-amd64-3.6\Release\zstd\lib\common
    creating build\temp.win-amd64-3.6\Release\src
    C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.15.26726\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -Ic:\users\emil\appdata\local\programs\python\python36\include -Ic:\users\emil\appdata\local\programs\python\python36\include "-IC:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.15.26726\include" /Tczstd/lib/compress/zstd_compress.c /Fobuild\temp.win-amd64-3.6\Release\zstd/lib/compress/zstd_compress.obj /Ox /DVERSION="\"1.3.5.1\"" /Izstd\lib /Izstd\lib\common /Izstd\lib\compress /Izstd\lib\decompress
    zstd_compress.c
    zstd/lib/compress/zstd_compress.c(14): fatal error C1083: Datei (Include) kann nicht ge”ffnet werden: "string.h": No such file or directory
    error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\BuildTools\\VC\\Tools\\MSVC\\14.15.26726\\bin\\HostX86\\x64\\cl.exe' failed with exit status 2

    ----------------------------------------
Command "c:\users\emil\appdata\local\programs\python\python36\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\Emil\\AppData\\Local\\Temp\\pip-install-drb0myv4\\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 C:\Users\Emil\AppData\Local\Temp\pip-record-vef6jxhh\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in C:\Users\Emil\AppData\Local\Temp\pip-install-drb0myv4\zstd\
sergey-dryabzhinsky commented 6 years ago

Can you try to build original Zstd 1.3.5 sources via build/VS_scripts command tools?

sergey-dryabzhinsky commented 6 years ago

Or maybe you need to reinstall VS2017: https://social.msdn.microsoft.com/Forums/vstudio/en-US/0f580a73-6f11-4aa6-abbe-6bf1438734c2/standard-files-quotstddefhquot-quotstringhquot-missing-in-visual-studio-2015-rc?forum=vclanguage

Modify/Change installation with adding Universal CRT SDK did the trick for me.

emilmirzayev commented 6 years ago

Reinstalling VS2017 seems to fix the issue. Added the following ticks: Optional Windows 10 SDK (10.0.17134.0) Visual C++-Tools für CMake Kernfunktionen von Testtools – Buildtools

srhinos commented 5 years ago

Not trying to necro this, but having similar issues and despite the reinstall of both vs 9 for py2 and 17, I got no where beyond an incredibly verbose error message. Figured I'd pop by here and see how I could go about fixing this?

C:\WINDOWS\system32>c:\Python27\python.exe -m pip install zstd
Collecting zstd
  Using cached https://files.pythonhosted.org/packages/08/ea/693d977411af8f9a43aee43a092e8b30542cdb9c5a326739ff844549cf93/zstd-1.3.5.1.tar.gz
Installing collected packages: zstd
  Running setup.py install for zstd ... error
    Complete output from command c:\Python27\python.exe -u -c "import setuptools, tokenize;__file__='c:\\users\\mac\\appdata\\local\\temp\\pip-install-khylzr\\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 c:\users\mac\appdata\local\temp\pip-record-kijliv\install-record.txt --single-version-externally-managed --compile:
    running install
    running build
    running build_ext
    building 'zstd' extension
    creating build
    creating build\temp.win-amd64-2.7
    creating build\temp.win-amd64-2.7\Release
    creating build\temp.win-amd64-2.7\Release\zstd
    creating build\temp.win-amd64-2.7\Release\zstd\lib
    creating build\temp.win-amd64-2.7\Release\zstd\lib\compress
    creating build\temp.win-amd64-2.7\Release\zstd\lib\decompress
    creating build\temp.win-amd64-2.7\Release\zstd\lib\common
    creating build\temp.win-amd64-2.7\Release\src
    C:\Users\Mac\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Ic:\Python27\include -Ic:\Python27\PC /Tczstd/lib/compress/zstd_compress.c /Fobuild\temp.win-amd64-2.7\Release\zstd/lib/compress/zstd_compress.obj /Ox /DVERSION="\"1.3.5.1\"" /Izstd\lib /Izstd\lib\common /Izstd\lib\compress /Izstd\lib\decompress
    zstd_compress.c
    C:\Users\Mac\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Ic:\Python27\include -Ic:\Python27\PC /Tczstd/lib/compress/zstdmt_compress.c /Fobuild\temp.win-amd64-2.7\Release\zstd/lib/compress/zstdmt_compress.obj /Ox /DVERSION="\"1.3.5.1\"" /Izstd\lib /Izstd\lib\common /Izstd\lib\compress /Izstd\lib\decompress
    zstdmt_compress.c
    C:\Users\Mac\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Ic:\Python27\include -Ic:\Python27\PC /Tczstd/lib/compress/zstd_fast.c /Fobuild\temp.win-amd64-2.7\Release\zstd/lib/compress/zstd_fast.obj /Ox /DVERSION="\"1.3.5.1\"" /Izstd\lib /Izstd\lib\common /Izstd\lib\compress /Izstd\lib\decompress
    zstd_fast.c
    C:\Users\Mac\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Ic:\Python27\include -Ic:\Python27\PC /Tczstd/lib/compress/zstd_double_fast.c /Fobuild\temp.win-amd64-2.7\Release\zstd/lib/compress/zstd_double_fast.obj /Ox /DVERSION="\"1.3.5.1\"" /Izstd\lib /Izstd\lib\common /Izstd\lib\compress /Izstd\lib\decompress
    zstd_double_fast.c
    C:\Users\Mac\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Ic:\Python27\include -Ic:\Python27\PC /Tczstd/lib/compress/zstd_lazy.c /Fobuild\temp.win-amd64-2.7\Release\zstd/lib/compress/zstd_lazy.obj /Ox /DVERSION="\"1.3.5.1\"" /Izstd\lib /Izstd\lib\common /Izstd\lib\compress /Izstd\lib\decompress
    zstd_lazy.c
    C:\Users\Mac\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Ic:\Python27\include -Ic:\Python27\PC /Tczstd/lib/compress/zstd_opt.c /Fobuild\temp.win-amd64-2.7\Release\zstd/lib/compress/zstd_opt.obj /Ox /DVERSION="\"1.3.5.1\"" /Izstd\lib /Izstd\lib\common /Izstd\lib\compress /Izstd\lib\decompress
    zstd_opt.c
    C:\Users\Mac\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Ic:\Python27\include -Ic:\Python27\PC /Tczstd/lib/compress/zstd_ldm.c /Fobuild\temp.win-amd64-2.7\Release\zstd/lib/compress/zstd_ldm.obj /Ox /DVERSION="\"1.3.5.1\"" /Izstd\lib /Izstd\lib\common /Izstd\lib\compress /Izstd\lib\decompress
    zstd_ldm.c
    C:\Users\Mac\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Ic:\Python27\include -Ic:\Python27\PC /Tczstd/lib/compress/fse_compress.c /Fobuild\temp.win-amd64-2.7\Release\zstd/lib/compress/fse_compress.obj /Ox /DVERSION="\"1.3.5.1\"" /Izstd\lib /Izstd\lib\common /Izstd\lib\compress /Izstd\lib\decompress
    fse_compress.c
    C:\Users\Mac\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Ic:\Python27\include -Ic:\Python27\PC /Tczstd/lib/compress/huf_compress.c /Fobuild\temp.win-amd64-2.7\Release\zstd/lib/compress/huf_compress.obj /Ox /DVERSION="\"1.3.5.1\"" /Izstd\lib /Izstd\lib\common /Izstd\lib\compress /Izstd\lib\decompress
    huf_compress.c
    C:\Users\Mac\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Ic:\Python27\include -Ic:\Python27\PC /Tczstd/lib/compress/hist.c /Fobuild\temp.win-amd64-2.7\Release\zstd/lib/compress/hist.obj /Ox /DVERSION="\"1.3.5.1\"" /Izstd\lib /Izstd\lib\common /Izstd\lib\compress /Izstd\lib\decompress
    hist.c
    C:\Users\Mac\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Ic:\Python27\include -Ic:\Python27\PC /Tczstd/lib/decompress/zstd_decompress.c /Fobuild\temp.win-amd64-2.7\Release\zstd/lib/decompress/zstd_decompress.obj /Ox /DVERSION="\"1.3.5.1\"" /Izstd\lib /Izstd\lib\common /Izstd\lib\compress /Izstd\lib\decompress
    zstd_decompress.c
    C:\Users\Mac\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Ic:\Python27\include -Ic:\Python27\PC /Tczstd/lib/common/fse_decompress.c /Fobuild\temp.win-amd64-2.7\Release\zstd/lib/common/fse_decompress.obj /Ox /DVERSION="\"1.3.5.1\"" /Izstd\lib /Izstd\lib\common /Izstd\lib\compress /Izstd\lib\decompress
    fse_decompress.c
    C:\Users\Mac\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Ic:\Python27\include -Ic:\Python27\PC /Tczstd/lib/decompress/huf_decompress.c /Fobuild\temp.win-amd64-2.7\Release\zstd/lib/decompress/huf_decompress.obj /Ox /DVERSION="\"1.3.5.1\"" /Izstd\lib /Izstd\lib\common /Izstd\lib\compress /Izstd\lib\decompress
    huf_decompress.c
    C:\Users\Mac\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Ic:\Python27\include -Ic:\Python27\PC /Tczstd/lib/common/entropy_common.c /Fobuild\temp.win-amd64-2.7\Release\zstd/lib/common/entropy_common.obj /Ox /DVERSION="\"1.3.5.1\"" /Izstd\lib /Izstd\lib\common /Izstd\lib\compress /Izstd\lib\decompress
    entropy_common.c
    C:\Users\Mac\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Ic:\Python27\include -Ic:\Python27\PC /Tczstd/lib/common/zstd_common.c /Fobuild\temp.win-amd64-2.7\Release\zstd/lib/common/zstd_common.obj /Ox /DVERSION="\"1.3.5.1\"" /Izstd\lib /Izstd\lib\common /Izstd\lib\compress /Izstd\lib\decompress
    zstd_common.c
    C:\Users\Mac\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Ic:\Python27\include -Ic:\Python27\PC /Tczstd/lib/common/xxhash.c /Fobuild\temp.win-amd64-2.7\Release\zstd/lib/common/xxhash.obj /Ox /DVERSION="\"1.3.5.1\"" /Izstd\lib /Izstd\lib\common /Izstd\lib\compress /Izstd\lib\decompress
    xxhash.c
    C:\Users\Mac\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Ic:\Python27\include -Ic:\Python27\PC /Tczstd/lib/common/error_private.c /Fobuild\temp.win-amd64-2.7\Release\zstd/lib/common/error_private.obj /Ox /DVERSION="\"1.3.5.1\"" /Izstd\lib /Izstd\lib\common /Izstd\lib\compress /Izstd\lib\decompress
    error_private.c
    C:\Users\Mac\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Ic:\Python27\include -Ic:\Python27\PC /Tczstd/lib/common/pool.c /Fobuild\temp.win-amd64-2.7\Release\zstd/lib/common/pool.obj /Ox /DVERSION="\"1.3.5.1\"" /Izstd\lib /Izstd\lib\common /Izstd\lib\compress /Izstd\lib\decompress
    pool.c
    C:\Users\Mac\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Ic:\Python27\include -Ic:\Python27\PC /Tcsrc/python-zstd.c /Fobuild\temp.win-amd64-2.7\Release\src/python-zstd.obj /Ox /DVERSION="\"1.3.5.1\"" /Izstd\lib /Izstd\lib\common /Izstd\lib\compress /Izstd\lib\decompress
    python-zstd.c
    src/python-zstd.c(75) : warning C4267: '=' : conversion from 'size_t' to 'uint32_t', possible loss of data
    src/python-zstd.c(109) : error C2065: 'uint64_t' : undeclared identifier
    src/python-zstd.c(109) : error C2146: syntax error : missing ';' before identifier 'dest_size'
    src/python-zstd.c(109) : error C2065: 'dest_size' : undeclared identifier
    src/python-zstd.c(110) : error C2143: syntax error : missing ';' before 'type'
    src/python-zstd.c(111) : error C2275: 'size_t' : illegal use of this type as an expression
            src/python-zstd.c : see declaration of 'size_t'
    src/python-zstd.c(111) : error C2146: syntax error : missing ';' before identifier 'cSize'
    src/python-zstd.c(111) : error C2065: 'cSize' : undeclared identifier
    src/python-zstd.c(121) : error C2065: 'dest_size' : undeclared identifier
    src/python-zstd.c(121) : error C2065: 'uint64_t' : undeclared identifier
    src/python-zstd.c(121) : error C2146: syntax error : missing ';' before identifier 'ZSTD_getDecompressedSize'
    src/python-zstd.c(122) : error C2065: 'dest_size' : undeclared identifier
    src/python-zstd.c(126) : error C2065: 'dest_size' : undeclared identifier
    src/python-zstd.c(132) : error C2065: 'cSize' : undeclared identifier
    src/python-zstd.c(132) : error C2065: 'dest_size' : undeclared identifier
    src/python-zstd.c(132) : warning C4267: '=' : conversion from 'size_t' to 'int', possible loss of data
    src/python-zstd.c(135) : error C2065: 'cSize' : undeclared identifier
    src/python-zstd.c(136) : error C2065: 'cSize' : undeclared identifier
    src/python-zstd.c(137) : error C2065: 'error' : undeclared identifier
    src/python-zstd.c(138) : error C2065: 'cSize' : undeclared identifier
    src/python-zstd.c(138) : error C2065: 'dest_size' : undeclared identifier
    src/python-zstd.c(139) : error C2065: 'uint64_t' : undeclared identifier
    src/python-zstd.c(139) : error C2146: syntax error : missing ')' before identifier 'cSize'
    src/python-zstd.c(139) : error C2059: syntax error : ')'
    src/python-zstd.c(140) : error C2065: 'error' : undeclared identifier
    src/python-zstd.c(144) : error C2065: 'error' : undeclared identifier
    src/python-zstd.c(324) : warning C4113: 'PyObject *(__cdecl *)(PyObject *)' differs in parameter lists from 'PyCFunction'
    src/python-zstd.c(325) : warning C4113: 'PyObject *(__cdecl *)(PyObject *)' differs in parameter lists from 'PyCFunction'
    src/python-zstd.c(326) : warning C4113: 'PyObject *(__cdecl *)(PyObject *)' differs in parameter lists from 'PyCFunction'
    error: command 'C:\\Users\\Mac\\AppData\\Local\\Programs\\Common\\Microsoft\\Visual C++ for Python\\9.0\\VC\\Bin\\amd64\\cl.exe' failed with exit status 2

    ----------------------------------------
Command "c:\Python27\python.exe -u -c "import setuptools, tokenize;__file__='c:\\users\\mac\\appdata\\local\\temp\\pip-install-khylzr\\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 c:\users\mac\appdata\local\temp\pip-record-kijliv\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in c:\users\mac\appdata\local\temp\pip-install-khylzr\zstd\
sergey-dryabzhinsky commented 5 years ago

Hm, some definitions missing. Can you try to manualy build module with code from fix-windows-build branch?

srhinos commented 5 years ago

looks like theres still some missing defs. Not sure why...

C:\Users\Mac\Downloads\python-zstd-fix-windows-build\python-zstd-fix-windows-build\python-zstd>c:\Python27\python.exe setup.py build_ext clean
running build_ext
building 'zstd' extension
creating build
creating build\temp.win-amd64-2.7
creating build\temp.win-amd64-2.7\Release
creating build\temp.win-amd64-2.7\Release\zstd
creating build\temp.win-amd64-2.7\Release\zstd\lib
creating build\temp.win-amd64-2.7\Release\zstd\lib\compress
creating build\temp.win-amd64-2.7\Release\zstd\lib\common
creating build\temp.win-amd64-2.7\Release\zstd\lib\decompress
creating build\temp.win-amd64-2.7\Release\src
C:\Users\Mac\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Ic:\Python27\include -Ic:\Python27\PC /Tczstd/lib/compress/zstd_compress.c /Fobuild\temp.win-amd64-2.7\Release\zstd/lib/compress/zstd_compress.obj /Ox /DVERSION="\"1.3.8.0\"" /DZSTD_MULTITHREAD=1 /Izstd\lib /Izstd\lib\common /Izstd\lib\compress /Izstd\lib\decompress
zstd_compress.c
C:\Users\Mac\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Ic:\Python27\include -Ic:\Python27\PC /Tczstd/lib/compress/zstdmt_compress.c /Fobuild\temp.win-amd64-2.7\Release\zstd/lib/compress/zstdmt_compress.obj /Ox /DVERSION="\"1.3.8.0\"" /DZSTD_MULTITHREAD=1 /Izstd\lib /Izstd\lib\common /Izstd\lib\compress /Izstd\lib\decompress
zstdmt_compress.c
C:\Users\Mac\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Ic:\Python27\include -Ic:\Python27\PC /Tczstd/lib/compress/zstd_fast.c /Fobuild\temp.win-amd64-2.7\Release\zstd/lib/compress/zstd_fast.obj /Ox /DVERSION="\"1.3.8.0\"" /DZSTD_MULTITHREAD=1 /Izstd\lib /Izstd\lib\common /Izstd\lib\compress /Izstd\lib\decompress
zstd_fast.c
C:\Users\Mac\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Ic:\Python27\include -Ic:\Python27\PC /Tczstd/lib/compress/zstd_double_fast.c /Fobuild\temp.win-amd64-2.7\Release\zstd/lib/compress/zstd_double_fast.obj /Ox /DVERSION="\"1.3.8.0\"" /DZSTD_MULTITHREAD=1 /Izstd\lib /Izstd\lib\common /Izstd\lib\compress /Izstd\lib\decompress
zstd_double_fast.c
C:\Users\Mac\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Ic:\Python27\include -Ic:\Python27\PC /Tczstd/lib/compress/zstd_lazy.c /Fobuild\temp.win-amd64-2.7\Release\zstd/lib/compress/zstd_lazy.obj /Ox /DVERSION="\"1.3.8.0\"" /DZSTD_MULTITHREAD=1 /Izstd\lib /Izstd\lib\common /Izstd\lib\compress /Izstd\lib\decompress
zstd_lazy.c
C:\Users\Mac\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Ic:\Python27\include -Ic:\Python27\PC /Tczstd/lib/compress/zstd_opt.c /Fobuild\temp.win-amd64-2.7\Release\zstd/lib/compress/zstd_opt.obj /Ox /DVERSION="\"1.3.8.0\"" /DZSTD_MULTITHREAD=1 /Izstd\lib /Izstd\lib\common /Izstd\lib\compress /Izstd\lib\decompress
zstd_opt.c
C:\Users\Mac\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Ic:\Python27\include -Ic:\Python27\PC /Tczstd/lib/compress/zstd_ldm.c /Fobuild\temp.win-amd64-2.7\Release\zstd/lib/compress/zstd_ldm.obj /Ox /DVERSION="\"1.3.8.0\"" /DZSTD_MULTITHREAD=1 /Izstd\lib /Izstd\lib\common /Izstd\lib\compress /Izstd\lib\decompress
zstd_ldm.c
C:\Users\Mac\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Ic:\Python27\include -Ic:\Python27\PC /Tczstd/lib/compress/fse_compress.c /Fobuild\temp.win-amd64-2.7\Release\zstd/lib/compress/fse_compress.obj /Ox /DVERSION="\"1.3.8.0\"" /DZSTD_MULTITHREAD=1 /Izstd\lib /Izstd\lib\common /Izstd\lib\compress /Izstd\lib\decompress
fse_compress.c
C:\Users\Mac\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Ic:\Python27\include -Ic:\Python27\PC /Tczstd/lib/compress/huf_compress.c /Fobuild\temp.win-amd64-2.7\Release\zstd/lib/compress/huf_compress.obj /Ox /DVERSION="\"1.3.8.0\"" /DZSTD_MULTITHREAD=1 /Izstd\lib /Izstd\lib\common /Izstd\lib\compress /Izstd\lib\decompress
huf_compress.c
C:\Users\Mac\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Ic:\Python27\include -Ic:\Python27\PC /Tczstd/lib/compress/hist.c /Fobuild\temp.win-amd64-2.7\Release\zstd/lib/compress/hist.obj /Ox /DVERSION="\"1.3.8.0\"" /DZSTD_MULTITHREAD=1 /Izstd\lib /Izstd\lib\common /Izstd\lib\compress /Izstd\lib\decompress
hist.c
C:\Users\Mac\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Ic:\Python27\include -Ic:\Python27\PC /Tczstd/lib/common/fse_decompress.c /Fobuild\temp.win-amd64-2.7\Release\zstd/lib/common/fse_decompress.obj /Ox /DVERSION="\"1.3.8.0\"" /DZSTD_MULTITHREAD=1 /Izstd\lib /Izstd\lib\common /Izstd\lib\compress /Izstd\lib\decompress
fse_decompress.c
C:\Users\Mac\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Ic:\Python27\include -Ic:\Python27\PC /Tczstd/lib/decompress/zstd_decompress.c /Fobuild\temp.win-amd64-2.7\Release\zstd/lib/decompress/zstd_decompress.obj /Ox /DVERSION="\"1.3.8.0\"" /DZSTD_MULTITHREAD=1 /Izstd\lib /Izstd\lib\common /Izstd\lib\compress /Izstd\lib\decompress
zstd_decompress.c
C:\Users\Mac\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Ic:\Python27\include -Ic:\Python27\PC /Tczstd/lib/decompress/zstd_decompress_block.c /Fobuild\temp.win-amd64-2.7\Release\zstd/lib/decompress/zstd_decompress_block.obj /Ox /DVERSION="\"1.3.8.0\"" /DZSTD_MULTITHREAD=1 /Izstd\lib /Izstd\lib\common /Izstd\lib\compress /Izstd\lib\decompress
zstd_decompress_block.c
C:\Users\Mac\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Ic:\Python27\include -Ic:\Python27\PC /Tczstd/lib/decompress/zstd_ddict.c /Fobuild\temp.win-amd64-2.7\Release\zstd/lib/decompress/zstd_ddict.obj /Ox /DVERSION="\"1.3.8.0\"" /DZSTD_MULTITHREAD=1 /Izstd\lib /Izstd\lib\common /Izstd\lib\compress /Izstd\lib\decompress
zstd_ddict.c
C:\Users\Mac\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Ic:\Python27\include -Ic:\Python27\PC /Tczstd/lib/decompress/huf_decompress.c /Fobuild\temp.win-amd64-2.7\Release\zstd/lib/decompress/huf_decompress.obj /Ox /DVERSION="\"1.3.8.0\"" /DZSTD_MULTITHREAD=1 /Izstd\lib /Izstd\lib\common /Izstd\lib\compress /Izstd\lib\decompress
huf_decompress.c
C:\Users\Mac\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Ic:\Python27\include -Ic:\Python27\PC /Tczstd/lib/common/entropy_common.c /Fobuild\temp.win-amd64-2.7\Release\zstd/lib/common/entropy_common.obj /Ox /DVERSION="\"1.3.8.0\"" /DZSTD_MULTITHREAD=1 /Izstd\lib /Izstd\lib\common /Izstd\lib\compress /Izstd\lib\decompress
entropy_common.c
C:\Users\Mac\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Ic:\Python27\include -Ic:\Python27\PC /Tczstd/lib/common/zstd_common.c /Fobuild\temp.win-amd64-2.7\Release\zstd/lib/common/zstd_common.obj /Ox /DVERSION="\"1.3.8.0\"" /DZSTD_MULTITHREAD=1 /Izstd\lib /Izstd\lib\common /Izstd\lib\compress /Izstd\lib\decompress
zstd_common.c
C:\Users\Mac\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Ic:\Python27\include -Ic:\Python27\PC /Tczstd/lib/common/xxhash.c /Fobuild\temp.win-amd64-2.7\Release\zstd/lib/common/xxhash.obj /Ox /DVERSION="\"1.3.8.0\"" /DZSTD_MULTITHREAD=1 /Izstd\lib /Izstd\lib\common /Izstd\lib\compress /Izstd\lib\decompress
xxhash.c
C:\Users\Mac\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Ic:\Python27\include -Ic:\Python27\PC /Tczstd/lib/common/error_private.c /Fobuild\temp.win-amd64-2.7\Release\zstd/lib/common/error_private.obj /Ox /DVERSION="\"1.3.8.0\"" /DZSTD_MULTITHREAD=1 /Izstd\lib /Izstd\lib\common /Izstd\lib\compress /Izstd\lib\decompress
error_private.c
C:\Users\Mac\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Ic:\Python27\include -Ic:\Python27\PC /Tczstd/lib/common/pool.c /Fobuild\temp.win-amd64-2.7\Release\zstd/lib/common/pool.obj /Ox /DVERSION="\"1.3.8.0\"" /DZSTD_MULTITHREAD=1 /Izstd\lib /Izstd\lib\common /Izstd\lib\compress /Izstd\lib\decompress
pool.c
C:\Users\Mac\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Ic:\Python27\include -Ic:\Python27\PC /Tczstd/lib/common/threading.c /Fobuild\temp.win-amd64-2.7\Release\zstd/lib/common/threading.obj /Ox /DVERSION="\"1.3.8.0\"" /DZSTD_MULTITHREAD=1 /Izstd\lib /Izstd\lib\common /Izstd\lib\compress /Izstd\lib\decompress
threading.c
C:\Users\Mac\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Ic:\Python27\include -Ic:\Python27\PC /Tcsrc/python-zstd.c /Fobuild\temp.win-amd64-2.7\Release\src/python-zstd.obj /Ox /DVERSION="\"1.3.8.0\"" /DZSTD_MULTITHREAD=1 /Izstd\lib /Izstd\lib\common /Izstd\lib\compress /Izstd\lib\decompress
python-zstd.c
src/python-zstd.c(76) : warning C4267: '=' : conversion from 'size_t' to 'uint32_t', possible loss of data
src/python-zstd.c(110) : error C2065: 'uint64_t' : undeclared identifier
src/python-zstd.c(110) : error C2146: syntax error : missing ';' before identifier 'dest_size'
src/python-zstd.c(110) : error C2065: 'dest_size' : undeclared identifier
src/python-zstd.c(111) : error C2143: syntax error : missing ';' before 'type'
src/python-zstd.c(112) : error C2275: 'size_t' : illegal use of this type as an expression
        src/python-zstd.c : see declaration of 'size_t'
src/python-zstd.c(112) : error C2146: syntax error : missing ';' before identifier 'cSize'
src/python-zstd.c(112) : error C2065: 'cSize' : undeclared identifier
src/python-zstd.c(122) : error C2065: 'dest_size' : undeclared identifier
src/python-zstd.c(122) : error C2065: 'uint64_t' : undeclared identifier
src/python-zstd.c(122) : error C2146: syntax error : missing ';' before identifier 'ZSTD_getDecompressedSize'
src/python-zstd.c(123) : error C2065: 'dest_size' : undeclared identifier
src/python-zstd.c(127) : error C2065: 'dest_size' : undeclared identifier
src/python-zstd.c(133) : error C2065: 'cSize' : undeclared identifier
src/python-zstd.c(133) : error C2065: 'dest_size' : undeclared identifier
src/python-zstd.c(133) : warning C4267: '=' : conversion from 'size_t' to 'int', possible loss of data
src/python-zstd.c(136) : error C2065: 'cSize' : undeclared identifier
src/python-zstd.c(137) : error C2065: 'cSize' : undeclared identifier
src/python-zstd.c(138) : error C2065: 'error' : undeclared identifier
src/python-zstd.c(139) : error C2065: 'cSize' : undeclared identifier
src/python-zstd.c(139) : error C2065: 'dest_size' : undeclared identifier
src/python-zstd.c(140) : error C2065: 'uint64_t' : undeclared identifier
src/python-zstd.c(140) : error C2146: syntax error : missing ')' before identifier 'cSize'
src/python-zstd.c(140) : error C2059: syntax error : ')'
src/python-zstd.c(141) : error C2065: 'error' : undeclared identifier
src/python-zstd.c(145) : error C2065: 'error' : undeclared identifier
error: command 'C:\\Users\\Mac\\AppData\\Local\\Programs\\Common\\Microsoft\\Visual C++ for Python\\9.0\\VC\\Bin\\amd64\\cl.exe' failed with exit status 2
sergey-dryabzhinsky commented 5 years ago

Please update code from fix-windows-build branch and try again.

srhinos commented 5 years ago

That fixed it! Apologies for using outdated py2.7 with this, trying to adapt some massive project that uses strictly py2 and dont have 4 days to go over everything and ensure its converted to 3 properly!

sergey-dryabzhinsky commented 5 years ago

Fix now in latest version 1.3.8.1

EllenZhangYarong commented 5 years ago

This bug raised again. zstd-1.4.0.0.tar.gz

sergey-dryabzhinsky commented 5 years ago

@EllenZhangYarong Please provide build output.

EllenZhangYarong commented 5 years ago

When I installed zstd in Windows 10, it reminded me to install C++ builder tools to solve this. Yes, it works. But in Mac, I don't know how to solve this. I updated setuptools, not working.


ERROR: Failed building wheel for zstd Running setup.py clean for zstd Failed to build zstd Installing collected packages: zstd Running setup.py install for zstd ... error ERROR: Complete output from command /miniconda3/envs/pysyft/bin/python -u -c 'import setuptools, tokenize;file='"'"'/private/var/folders/96/wgbhc93mdch2sx9dhpymwc0000gn/T/pip-install-sxrxw7q3/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/96/wgbhc93mdch2sx9dhpymwc0000gn/T/pip-record-gcpoofj0/install-record.txt --single-version-externally-managed --compile: ERROR: running install running build running build_ext building 'zstd' extension creating build creating build/temp.macosx-10.7-x86_64-3.7 creating build/temp.macosx-10.7-x86_64-3.7/zstd creating build/temp.macosx-10.7-x86_64-3.7/zstd/lib creating build/temp.macosx-10.7-x86_64-3.7/zstd/lib/compress creating build/temp.macosx-10.7-x86_64-3.7/zstd/lib/common creating build/temp.macosx-10.7-x86_64-3.7/zstd/lib/decompress creating build/temp.macosx-10.7-x86_64-3.7/src gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/miniconda3/envs/pysyft/include -arch x86_64 -I/miniconda3/envs/pysyft/include -arch x86_64 -I/miniconda3/envs/pysyft/include/python3.7m -c zstd/lib/compress/zstd_compress.c -o build/temp.macosx-10.7-x86_64-3.7/zstd/lib/compress/zstd_compress.o -O2 -DVERSION="1.4.0.0" -DZSTD_MULTITHREAD=1 -Izstd/lib -Izstd/lib/common -Izstd/lib/compress -Izstd/lib/decompress In file included from zstd/lib/compress/zstd_compress.c:23: zstd/lib/compress/zstd_compress_internal.h:118:5: error: unknown type name 'ZSTD_literalCompressionMode_e' ZSTD_literalCompressionMode_e literalCompressionMode; ^ zstd/lib/compress/zstd_compress_internal.h:199:5: error: unknown type name 'ZSTD_dictAttachPref_e' ZSTD_dictAttachPref_e attachDictPref; ^ zstd/lib/compress/zstd_compress_internal.h:200:5: error: unknown type name 'ZSTD_literalCompressionMode_e' ZSTD_literalCompressionMode_e literalCompressionMode; ^ zstd/lib/compress/zstd_compress.c:65:50: error: use of undeclared identifier 'ZSTD_reset_parameters' { size_t const err = ZSTD_CCtx_reset(cctx, ZSTD_reset_parameters); ^ zstd/lib/compress/zstd_compress.c:250:1: error: unknown type name 'ZSTD_bounds' ZSTD_bounds ZSTD_cParam_getBounds(ZSTD_cParameter param) ^ zstd/lib/compress/zstd_compress.c:252:5: error: use of undeclared identifier 'ZSTD_bounds'; did you mean 'ZSTD_count'? ZSTD_bounds bounds = { 0, 0, 0 }; ^~~ ZSTD_count zstd/lib/compress/zstd_compress_internal.h:425:19: note: 'ZSTD_count' declared here MEM_STATIC size_t ZSTD_count(const BYTE pIn, const BYTE pMatch, const BYTE const pInLimit) ^ zstd/lib/compress/zstd_compress.c:252:16: error: expected ';' after expression ZSTD_bounds bounds = { 0, 0, 0 }; ^ ; zstd/lib/compress/zstd_compress.c:252:17: error: use of undeclared identifier 'bounds' ZSTD_bounds bounds = { 0, 0, 0 }; ^ zstd/lib/compress/zstd_compress.c:252:26: error: expected expression ZSTD_bounds bounds = { 0, 0, 0 }; ^ zstd/lib/compress/zstd_compress.c:256:10: error: use of undeclared identifier 'ZSTD_c_compressionLevel'; did you mean 'ZSTD_p_compressionLevel'? case ZSTD_c_compressionLevel: ^~~~~~~ ZSTD_p_compressionLevel /miniconda3/envs/pysyft/include/zstd.h:1005:5: note: 'ZSTD_p_compressionLevel' declared here ZSTD_p_compressionLevel=100, / Update all compression parameters according to pre-defined cLevel table ^ zstd/lib/compress/zstd_compress.c:257:9: error: use of undeclared identifier 'bounds' bounds.lowerBound = ZSTD_minCLevel(); ^ zstd/lib/compress/zstd_compress.c:258:9: error: use of undeclared identifier 'bounds' bounds.upperBound = ZSTD_maxCLevel(); ^ zstd/lib/compress/zstd_compress.c:259:16: error: use of undeclared identifier 'bounds' return bounds; ^ zstd/lib/compress/zstd_compress.c:261:10: error: use of undeclared identifier 'ZSTD_c_windowLog'; did you mean 'ZSTD_p_windowLog'? case ZSTD_c_windowLog: ^~~~ ZSTD_p_windowLog /miniconda3/envs/pysyft/include/zstd.h:1011:5: note: 'ZSTD_p_windowLog' declared here ZSTD_p_windowLog, / Maximum allowed back-reference distance, expressed as power of 2. ^ zstd/lib/compress/zstd_compress.c:262:9: error: use of undeclared identifier 'bounds' bounds.lowerBound = ZSTD_WINDOWLOG_MIN; ^ zstd/lib/compress/zstd_compress.c:263:9: error: use of undeclared identifier 'bounds' bounds.upperBound = ZSTD_WINDOWLOG_MAX; ^ zstd/lib/compress/zstd_compress.c:264:16: error: use of undeclared identifier 'bounds' return bounds; ^ zstd/lib/compress/zstd_compress.c:266:10: error: use of undeclared identifier 'ZSTD_c_hashLog'; did you mean 'ZSTD_p_hashLog'? case ZSTD_c_hashLog: ^~~~~~ ZSTD_p_hashLog /miniconda3/envs/pysyft/include/zstd.h:1016:5: note: 'ZSTD_p_hashLog' declared here ZSTD_p_hashLog, / Size of the initial probe table, as a power of 2. ^ zstd/lib/compress/zstd_compress.c:267:9: error: use of undeclared identifier 'bounds' bounds.lowerBound = ZSTD_HASHLOG_MIN; ^ fatal error: too many errors emitted, stopping now [-ferror-limit=] 20 errors generated. error: command 'gcc' failed with exit status 1

ERROR: Command "/miniconda3/envs/pysyft/bin/python -u -c 'import setuptools, tokenize;file='"'"'/private/var/folders/96/wgbhc93mdch2sx9dhpymwc0000gn/T/pip-install-sxrxw7q3/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/96/wgbhc93mdch2sx9dhpymwc0000gn/T/pip-record-gcpoofj0/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /private/var/folders/96/w__gbhc93mdch2sx9dhpymwc0000gn/T/pip-install-sxrxw7q3/zstd/

sergey-dryabzhinsky commented 5 years ago

Odd. Which version of GCC do you have on Mac? gcc -v

EllenZhangYarong commented 5 years ago

gcc -v Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/c++/4.2.1 Apple LLVM version 10.0.1 (clang-1001.0.46.3) Target: x86_64-apple-darwin18.6.0 Thread model: posix InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin

sergey-dryabzhinsky commented 5 years ago

Seems like gcc-4.2 fails to build zstd. Try to use clang with command like: env CC=clang CXX=clang++ python setup.py build_ext clean Or install newer gcc via brew or ports.

EllenZhangYarong commented 5 years ago

gcc -v Using built-in specs. COLLECT_GCC=gcc COLLECT_LTO_WRAPPER=/usr/local/Cellar/gcc/9.1.0/libexec/gcc/x86_64-apple-darwin18/9.1.0/lto-wrapper Target: x86_64-apple-darwin18 Configured with: ../configure --build=x86_64-apple-darwin18 --prefix=/usr/local/Cellar/gcc/9.1.0 --libdir=/usr/local/Cellar/gcc/9.1.0/lib/gcc/9 --disable-nls --enable-checking=release --enable-languages=c,c++,objc,obj-c++,fortran --program-suffix=-9 --with-gmp=/usr/local/opt/gmp --with-mpfr=/usr/local/opt/mpfr --with-mpc=/usr/local/opt/libmpc --with-isl=/usr/local/opt/isl --with-system-zlib --with-pkgversion='Homebrew GCC 9.1.0' --with-bugurl=https://github.com/Homebrew/homebrew-core/issues --disable-multilib --with-native-system-header-dir=/usr/include --with-sysroot=/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk Thread model: posix gcc version 9.1.0 (Homebrew GCC 9.1.0)

EllenZhangYarong commented 5 years ago

Failed to build zstd Installing collected packages: zstd Running setup.py install for zstd ... error ERROR: Complete output from command /miniconda3/envs/pysyft/bin/python -u -c 'import setuptools, tokenize;file='"'"'/private/var/folders/96/wgbhc93mdch2sx9dhpymwc0000gn/T/pip-install-a6o9r18r/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/96/wgbhc93mdch2sx9dhpymwc0000gn/T/pip-record-golslkh9/install-record.txt --single-version-externally-managed --compile: ERROR: running install running build running build_ext building 'zstd' extension creating build creating build/temp.macosx-10.7-x86_64-3.7 creating build/temp.macosx-10.7-x86_64-3.7/zstd creating build/temp.macosx-10.7-x86_64-3.7/zstd/lib creating build/temp.macosx-10.7-x86_64-3.7/zstd/lib/compress creating build/temp.macosx-10.7-x86_64-3.7/zstd/lib/common creating build/temp.macosx-10.7-x86_64-3.7/zstd/lib/decompress creating build/temp.macosx-10.7-x86_64-3.7/src gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/miniconda3/envs/pysyft/include -arch x86_64 -I/miniconda3/envs/pysyft/include -arch x86_64 -I/miniconda3/envs/pysyft/include/python3.7m -c zstd/lib/compress/zstd_compress.c -o build/temp.macosx-10.7-x86_64-3.7/zstd/lib/compress/zstd_compress.o -O2 -DVERSION="1.4.0.0" -DZSTD_MULTITHREAD=1 -Izstd/lib -Izstd/lib/common -Izstd/lib/compress -Izstd/lib/decompress In file included from zstd/lib/compress/zstd_compress.c:23: zstd/lib/compress/zstd_compress_internal.h:118:5: error: unknown type name 'ZSTD_literalCompressionMode_e' 118 | ZSTD_literalCompressionMode_e literalCompressionMode; | ^~~~~~~~~ zstd/lib/compress/zstd_compress_internal.h:199:5: error: unknown type name 'ZSTD_dictAttachPref_e' 199 | ZSTD_dictAttachPref_e attachDictPref; | ^~~~~ zstd/lib/compress/zstd_compress_internal.h:200:5: error: unknown type name 'ZSTD_literalCompressionMode_e' 200 | ZSTD_literalCompressionMode_e literalCompressionMode; | ^~~~~~~~~ zstd/lib/compress/zstd_compress.c: In function 'ZSTD_initCCtx': zstd/lib/compress/zstd_compress.c:65:50: error: 'ZSTD_reset_parameters' undeclared (first use in this function); did you mean 'ZSTD_parameters'? 65 | { size_t const err = ZSTD_CCtx_reset(cctx, ZSTD_reset_parameters); | ^~~~~ | ZSTD_parameters zstd/lib/compress/zstd_compress.c:65:50: note: each undeclared identifier is reported only once for each function it appears in zstd/lib/compress/zstd_compress.c:65:28: error: too many arguments to function 'ZSTD_CCtx_reset' 65 | { size_t const err = ZSTD_CCtx_reset(cctx, ZSTD_reset_parameters); | ^~~~~~~ In file included from zstd/lib/common/zstd_internal.h:27, from zstd/lib/compress/zstd_compress_internal.h:21, from zstd/lib/compress/zstd_compress.c:23: /miniconda3/envs/pysyft/include/zstd.h:1230:18: note: declared here 1230 | ZSTDLIB_API void ZSTD_CCtx_reset(ZSTD_CCtx* cctx); | ^~~~~~~ zstd/lib/compress/zstd_compress.c:65:28: error: void value not ignored as it ought to be 65 | { size_t const err = ZSTD_CCtx_reset(cctx, ZSTD_reset_parameters); | ^~~~~~~ zstd/lib/compress/zstd_compress.c: At top level: zstd/lib/compress/zstd_compress.c:250:1: error: unknown type name 'ZSTD_bounds' 250 | ZSTD_bounds ZSTD_cParam_getBounds(ZSTD_cParameter param) | ^~~ zstd/lib/compress/zstd_compress.c: In function 'ZSTD_cParam_getBounds': zstd/lib/compress/zstd_compress.c:252:5: error: unknown type name 'ZSTD_bounds' 252 | ZSTD_bounds bounds = { 0, 0, 0 }; | ^~~ zstd/lib/compress/zstd_compress.c:252:31: warning: excess elements in scalar initializer 252 | ZSTD_bounds bounds = { 0, 0, 0 }; | ^ zstd/lib/compress/zstd_compress.c:252:31: note: (near initialization for 'bounds') zstd/lib/compress/zstd_compress.c:252:34: warning: excess elements in scalar initializer 252 | ZSTD_bounds bounds = { 0, 0, 0 }; | ^ zstd/lib/compress/zstd_compress.c:252:34: note: (near initialization for 'bounds') zstd/lib/compress/zstd_compress.c:256:10: error: 'ZSTD_c_compressionLevel' undeclared (first use in this function); did you mean 'ZSTD_p_compressionLevel'? 256 | case ZSTD_c_compressionLevel: | ^~~~~~~ | ZSTD_p_compressionLevel zstd/lib/compress/zstd_compress.c:257:15: error: request for member 'lowerBound' in something not a structure or union 257 | bounds.lowerBound = ZSTD_minCLevel(); | ^ zstd/lib/compress/zstd_compress.c:258:15: error: request for member 'upperBound' in something not a structure or union 258 | bounds.upperBound = ZSTD_maxCLevel(); | ^ zstd/lib/compress/zstd_compress.c:261:10: error: 'ZSTD_c_windowLog' undeclared (first use in this function); did you mean 'ZSTD_p_windowLog'? 261 | case ZSTD_c_windowLog: | ^~~~ | ZSTD_p_windowLog zstd/lib/compress/zstd_compress.c:262:15: error: request for member 'lowerBound' in something not a structure or union 262 | bounds.lowerBound = ZSTD_WINDOWLOG_MIN; | ^ zstd/lib/compress/zstd_compress.c:263:15: error: request for member 'upperBound' in something not a structure or union 263 | bounds.upperBound = ZSTD_WINDOWLOG_MAX; | ^ zstd/lib/compress/zstd_compress.c:266:10: error: 'ZSTD_c_hashLog' undeclared (first use in this function); did you mean 'ZSTD_p_hashLog'? 266 | case ZSTD_c_hashLog: | ^~~~~~ | ZSTD_p_hashLog zstd/lib/compress/zstd_compress.c:267:15: error: request for member 'lowerBound' in something not a structure or union 267 | bounds.lowerBound = ZSTD_HASHLOG_MIN; | ^ zstd/lib/compress/zstd_compress.c:268:15: error: request for member 'upperBound' in something not a structure or union 268 | bounds.upperBound = ZSTD_HASHLOG_MAX; | ^ zstd/lib/compress/zstd_compress.c:271:10: error: 'ZSTD_c_chainLog' undeclared (first use in this function); did you mean 'ZSTD_p_chainLog'? 271 | case ZSTD_c_chainLog: | ^~~~~~~ | ZSTD_p_chainLog zstd/lib/compress/zstd_compress.c:272:15: error: request for member 'lowerBound' in something not a structure or union 272 | bounds.lowerBound = ZSTD_CHAINLOG_MIN; | ^ zstd/lib/compress/zstd_compress.c:273:15: error: request for member 'upperBound' in something not a structure or union 273 | bounds.upperBound = ZSTD_CHAINLOG_MAX; | ^ zstd/lib/compress/zstd_compress.c:276:10: error: 'ZSTD_c_searchLog' undeclared (first use in this function); did you mean 'ZSTD_p_searchLog'? 276 | case ZSTD_c_searchLog: | ^~~~ | ZSTD_p_searchLog zstd/lib/compress/zstd_compress.c:277:15: error: request for member 'lowerBound' in something not a structure or union 277 | bounds.lowerBound = ZSTD_SEARCHLOG_MIN; | ^ zstd/lib/compress/zstd_compress.c:278:15: error: request for member 'upperBound' in something not a structure or union 278 | bounds.upperBound = ZSTD_SEARCHLOG_MAX; | ^ zstd/lib/compress/zstd_compress.c:281:10: error: 'ZSTD_c_minMatch' undeclared (first use in this function); did you mean 'ZSTD_p_minMatch'? 281 | case ZSTD_c_minMatch: | ^~~~~~~ | ZSTD_p_minMatch zstd/lib/compress/zstd_compress.c:282:15: error: request for member 'lowerBound' in something not a structure or union 282 | bounds.lowerBound = ZSTD_MINMATCH_MIN; | ^ zstd/lib/compress/zstd_compress.c:282:29: error: 'ZSTD_MINMATCH_MIN' undeclared (first use in this function); did you mean 'ZSTD_LDM_MINMATCH_MIN'? 282 | bounds.lowerBound = ZSTD_MINMATCH_MIN; | ^~~~~ | ZSTD_LDM_MINMATCH_MIN zstd/lib/compress/zstd_compress.c:283:15: error: request for member 'upperBound' in something not a structure or union 283 | bounds.upperBound = ZSTD_MINMATCH_MAX; | ^ zstd/lib/compress/zstd_compress.c:283:29: error: 'ZSTD_MINMATCH_MAX' undeclared (first use in this function); did you mean 'ZSTD_LDM_MINMATCH_MAX'? 283 | bounds.upperBound = ZSTD_MINMATCH_MAX; | ^~~~~ | ZSTD_LDM_MINMATCH_MAX zstd/lib/compress/zstd_compress.c:286:10: error: 'ZSTD_c_targetLength' undeclared (first use in this function); did you mean 'ZSTD_p_targetLength'? 286 | case ZSTD_c_targetLength: | ^~~~~~~ | ZSTD_p_targetLength zstd/lib/compress/zstd_compress.c:287:15: error: request for member 'lowerBound' in something not a structure or union 287 | bounds.lowerBound = ZSTD_TARGETLENGTH_MIN; | ^ zstd/lib/compress/zstd_compress.c:288:15: error: request for member 'upperBound' in something not a structure or union 288 | bounds.upperBound = ZSTD_TARGETLENGTH_MAX; | ^ zstd/lib/compress/zstd_compress.c:291:10: error: 'ZSTD_c_strategy' undeclared (first use in this function); did you mean 'ZSTD_strategy'? 291 | case ZSTD_c_strategy: | ^~~~~~~ | ZSTD_strategy zstd/lib/compress/zstd_compress.c:292:15: error: request for member 'lowerBound' in something not a structure or union 292 | bounds.lowerBound = ZSTD_STRATEGY_MIN; | ^ zstd/lib/compress/zstd_compress.c:292:29: error: 'ZSTD_STRATEGY_MIN' undeclared (first use in this function) 292 | bounds.lowerBound = ZSTD_STRATEGY_MIN; | ^~~~~ zstd/lib/compress/zstd_compress.c:293:15: error: request for member 'upperBound' in something not a structure or union 293 | bounds.upperBound = ZSTD_STRATEGY_MAX; | ^ zstd/lib/compress/zstd_compress.c:293:29: error: 'ZSTD_STRATEGY_MAX' undeclared (first use in this function) 293 | bounds.upperBound = ZSTD_STRATEGY_MAX; | ^~~~~ zstd/lib/compress/zstd_compress.c:296:10: error: 'ZSTD_c_contentSizeFlag' undeclared (first use in this function); did you mean 'ZSTD_p_contentSizeFlag'? 296 | case ZSTD_c_contentSizeFlag: | ^~~~~~ | ZSTD_p_contentSizeFlag zstd/lib/compress/zstd_compress.c:297:15: error: request for member 'lowerBound' in something not a structure or union 297 | bounds.lowerBound = 0; | ^ zstd/lib/compress/zstd_compress.c:298:15: error: request for member 'upperBound' in something not a structure or union 298 | bounds.upperBound = 1; | ^ zstd/lib/compress/zstd_compress.c:301:10: error: 'ZSTD_c_checksumFlag' undeclared (first use in this function); did you mean 'ZSTD_p_checksumFlag'? 301 | case ZSTD_c_checksumFlag: | ^~~~~~~ | ZSTD_p_checksumFlag zstd/lib/compress/zstd_compress.c:302:15: error: request for member 'lowerBound' in something not a structure or union 302 | bounds.lowerBound = 0; | ^ zstd/lib/compress/zstd_compress.c:303:15: error: request for member 'upperBound' in something not a structure or union 303 | bounds.upperBound = 1; | ^ zstd/lib/compress/zstd_compress.c:306:10: error: 'ZSTD_c_dictIDFlag' undeclared (first use in this function); did you mean 'ZSTD_p_dictIDFlag'? 306 | case ZSTD_c_dictIDFlag: | ^~~~~ | ZSTD_p_dictIDFlag zstd/lib/compress/zstd_compress.c:307:15: error: request for member 'lowerBound' in something not a structure or union 307 | bounds.lowerBound = 0; | ^ zstd/lib/compress/zstd_compress.c:308:15: error: request for member 'upperBound' in something not a structure or union 308 | bounds.upperBound = 1; | ^ zstd/lib/compress/zstd_compress.c:311:10: error: 'ZSTD_c_nbWorkers' undeclared (first use in this function); did you mean 'ZSTD_p_nbWorkers'? 311 | case ZSTD_c_nbWorkers: | ^~~~ | ZSTD_p_nbWorkers zstd/lib/compress/zstd_compress.c:312:15: error: request for member 'lowerBound' in something not a structure or union 312 | bounds.lowerBound = 0; | ^ zstd/lib/compress/zstd_compress.c:314:15: error: request for member 'upperBound' in something not a structure or union 314 | bounds.upperBound = ZSTDMT_NBWORKERS_MAX; | ^ zstd/lib/compress/zstd_compress.c:320:10: error: 'ZSTD_c_jobSize' undeclared (first use in this function); did you mean 'ZSTD_p_jobSize'? 320 | case ZSTD_c_jobSize: | ^~~~~~ | ZSTD_p_jobSize zstd/lib/compress/zstd_compress.c:321:15: error: request for member 'lowerBound' in something not a structure or union 321 | bounds.lowerBound = 0; | ^ zstd/lib/compress/zstd_compress.c:323:15: error: request for member 'upperBound' in something not a structure or union 323 | bounds.upperBound = ZSTDMT_JOBSIZE_MAX; | ^ zstd/lib/compress/zstd_compress.c:329:10: error: 'ZSTD_c_overlapLog' undeclared (first use in this function); did you mean 'ZSTDMT_p_overlapLog'? 329 | case ZSTD_c_overlapLog: | ^~~~~ | ZSTDMT_p_overlapLog zstd/lib/compress/zstd_compress.c:330:15: error: request for member 'lowerBound' in something not a structure or union 330 | bounds.lowerBound = ZSTD_OVERLAPLOG_MIN; | ^ zstd/lib/compress/zstd_compress.c:330:29: error: 'ZSTD_OVERLAPLOG_MIN' undeclared (first use in this function); did you mean 'ZSTD_SEARCHLOG_MIN'? 330 | bounds.lowerBound = ZSTD_OVERLAPLOG_MIN; | ^~~~~~~ | ZSTD_SEARCHLOG_MIN zstd/lib/compress/zstd_compress.c:331:15: error: request for member 'upperBound' in something not a structure or union 331 | bounds.upperBound = ZSTD_OVERLAPLOG_MAX; | ^ zstd/lib/compress/zstd_compress.c:331:29: error: 'ZSTD_OVERLAPLOG_MAX' undeclared (first use in this function); did you mean 'ZSTD_SEARCHLOG_MAX'? 331 | bounds.upperBound = ZSTD_OVERLAPLOG_MAX; | ^~~~~~~ | ZSTD_SEARCHLOG_MAX zstd/lib/compress/zstd_compress.c:334:10: error: 'ZSTD_c_enableLongDistanceMatching' undeclared (first use in this function); did you mean 'ZSTD_p_enableLongDistanceMatching'? 334 | case ZSTD_c_enableLongDistanceMatching: | ^~~~~~~~~ | ZSTD_p_enableLongDistanceMatching zstd/lib/compress/zstd_compress.c:335:15: error: request for member 'lowerBound' in something not a structure or union 335 | bounds.lowerBound = 0; | ^ zstd/lib/compress/zstd_compress.c:336:15: error: request for member 'upperBound' in something not a structure or union 336 | bounds.upperBound = 1; | ^ zstd/lib/compress/zstd_compress.c:339:10: error: 'ZSTD_c_ldmHashLog' undeclared (first use in this function); did you mean 'ZSTD_p_ldmHashLog'? 339 | case ZSTD_c_ldmHashLog: | ^~~~~ | ZSTD_p_ldmHashLog zstd/lib/compress/zstd_compress.c:340:15: error: request for member 'lowerBound' in something not a structure or union 340 | bounds.lowerBound = ZSTD_LDM_HASHLOG_MIN; | ^ zstd/lib/compress/zstd_compress.c:340:29: error: 'ZSTD_LDM_HASHLOG_MIN' undeclared (first use in this function); did you mean 'ZSTD_HASHLOG_MIN'? 340 | bounds.lowerBound = ZSTD_LDM_HASHLOG_MIN; | ^~~~~~~~ | ZSTD_HASHLOG_MIN zstd/lib/compress/zstd_compress.c:341:15: error: request for member 'upperBound' in something not a structure or union 341 | bounds.upperBound = ZSTD_LDM_HASHLOG_MAX; | ^ zstd/lib/compress/zstd_compress.c:341:29: error: 'ZSTD_LDM_HASHLOG_MAX' undeclared (first use in this function); did you mean 'ZSTD_HASHLOG_MAX'? 341 | bounds.upperBound = ZSTD_LDM_HASHLOG_MAX; | ^~~~~~~~ | ZSTD_HASHLOG_MAX zstd/lib/compress/zstd_compress.c:344:10: error: 'ZSTD_c_ldmMinMatch' undeclared (first use in this function); did you mean 'ZSTD_p_ldmMinMatch'? 344 | case ZSTD_c_ldmMinMatch: | ^~~~~~ | ZSTD_p_ldmMinMatch zstd/lib/compress/zstd_compress.c:345:15: error: request for member 'lowerBound' in something not a structure or union 345 | bounds.lowerBound = ZSTD_LDM_MINMATCH_MIN; | ^ zstd/lib/compress/zstd_compress.c:346:15: error: request for member 'upperBound' in something not a structure or union 346 | bounds.upperBound = ZSTD_LDM_MINMATCH_MAX; | ^ zstd/lib/compress/zstd_compress.c:349:10: error: 'ZSTD_c_ldmBucketSizeLog' undeclared (first use in this function); did you mean 'ZSTD_p_ldmBucketSizeLog'? 349 | case ZSTD_c_ldmBucketSizeLog: | ^~~~~~~ | ZSTD_p_ldmBucketSizeLog zstd/lib/compress/zstd_compress.c:350:15: error: request for member 'lowerBound' in something not a structure or union 350 | bounds.lowerBound = ZSTD_LDM_BUCKETSIZELOG_MIN; | ^ zstd/lib/compress/zstd_compress.c:350:29: error: 'ZSTD_LDM_BUCKETSIZELOG_MIN' undeclared (first use in this function); did you mean 'ZSTD_LDM_BUCKETSIZELOG_MAX'? 350 | bounds.lowerBound = ZSTD_LDM_BUCKETSIZELOG_MIN; | ^~~~~~ | ZSTD_LDM_BUCKETSIZELOG_MAX zstd/lib/compress/zstd_compress.c:351:15: error: request for member 'upperBound' in something not a structure or union 351 | bounds.upperBound = ZSTD_LDM_BUCKETSIZELOG_MAX; | ^ zstd/lib/compress/zstd_compress.c:354:10: error: 'ZSTD_c_ldmHashRateLog' undeclared (first use in this function); did you mean 'ZSTD_p_ldmHashLog'? 354 | case ZSTD_c_ldmHashRateLog: | ^~~~~ | ZSTD_p_ldmHashLog zstd/lib/compress/zstd_compress.c:355:15: error: request for member 'lowerBound' in something not a structure or union 355 | bounds.lowerBound = ZSTD_LDM_HASHRATELOG_MIN; | ^ zstd/lib/compress/zstd_compress.c:355:29: error: 'ZSTD_LDM_HASHRATELOG_MIN' undeclared (first use in this function); did you mean 'ZSTD_HASHLOG_MIN'? 355 | bounds.lowerBound = ZSTD_LDM_HASHRATELOG_MIN; | ^~~~~~~~ | ZSTD_HASHLOG_MIN zstd/lib/compress/zstd_compress.c:356:15: error: request for member 'upperBound' in something not a structure or union 356 | bounds.upperBound = ZSTD_LDM_HASHRATELOG_MAX; | ^ zstd/lib/compress/zstd_compress.c:356:29: error: 'ZSTD_LDM_HASHRATELOG_MAX' undeclared (first use in this function); did you mean 'ZSTD_HASHLOG_MAX'? 356 | bounds.upperBound = ZSTD_LDM_HASHRATELOG_MAX; | ^~~~~~~~ | ZSTD_HASHLOG_MAX zstd/lib/compress/zstd_compress.c:360:10: error: 'ZSTD_c_rsyncable' undeclared (first use in this function); did you mean 'ZSTDMT_p_rsyncable'? 360 | case ZSTD_c_rsyncable: | ^~~~ | ZSTDMT_p_rsyncable zstd/lib/compress/zstd_compress.c:361:15: error: request for member 'lowerBound' in something not a structure or union 361 | bounds.lowerBound = 0; | ^ zstd/lib/compress/zstd_compress.c:362:15: error: request for member 'upperBound' in something not a structure or union 362 | bounds.upperBound = 1; | ^ zstd/lib/compress/zstd_compress.c:365:10: error: 'ZSTD_c_forceMaxWindow' undeclared (first use in this function); did you mean 'ZSTD_p_forceMaxWindow'? 365 | case ZSTD_c_forceMaxWindow : | ^~~~~ | ZSTD_p_forceMaxWindow zstd/lib/compress/zstd_compress.c:366:15: error: request for member 'lowerBound' in something not a structure or union 366 | bounds.lowerBound = 0; | ^ zstd/lib/compress/zstd_compress.c:367:15: error: request for member 'upperBound' in something not a structure or union 367 | bounds.upperBound = 1; | ^ zstd/lib/compress/zstd_compress.c:370:10: error: 'ZSTD_c_format' undeclared (first use in this function); did you mean 'ZSTD_p_format'? 370 | case ZSTD_c_format: | ^~~~~ | ZSTD_p_format zstd/lib/compress/zstd_compress.c:372:15: error: request for member 'lowerBound' in something not a structure or union 372 | bounds.lowerBound = ZSTD_f_zstd1; | ^ zstd/lib/compress/zstd_compress.c:373:15: error: request for member 'upperBound' in something not a structure or union 373 | bounds.upperBound = ZSTD_f_zstd1_magicless; / note : how to ensure at compile time that this is the highest value enum ? / | ^ zstd/lib/compress/zstd_compress.c:376:10: error: 'ZSTD_c_forceAttachDict' undeclared (first use in this function); did you mean 'ZSTD_p_forceAttachDict'? 376 | case ZSTD_c_forceAttachDict: | ^~~~~~ | ZSTD_p_forceAttachDict In file included from zstd/lib/common/bitstream.h:51, from zstd/lib/common/fse.h:303, from zstd/lib/compress/zstd_compress.c:20: zstd/lib/compress/zstd_compress.c:377:28: error: 'ZSTD_dictDefaultAttach' undeclared (first use in this function) 377 | ZSTD_STATIC_ASSERT(ZSTD_dictDefaultAttach < ZSTD_dictForceCopy); | ^~~~~~ zstd/lib/common/debug.h:63:51: note: in definition of macro 'DEBUG_STATIC_ASSERT' 63 | #define DEBUG_STATIC_ASSERT(c) (void)sizeof(char[(c) ? 1 : -1]) | ^ zstd/lib/compress/zstd_compress.c:377:9: note: in expansion of macro 'ZSTD_STATIC_ASSERT' 377 | ZSTD_STATIC_ASSERT(ZSTD_dictDefaultAttach < ZSTD_dictForceCopy); | ^~~~~~ zstd/lib/compress/zstd_compress.c:377:53: error: 'ZSTD_dictForceCopy' undeclared (first use in this function) 377 | ZSTD_STATIC_ASSERT(ZSTD_dictDefaultAttach < ZSTD_dictForceCopy); | ^~~~~~ zstd/lib/common/debug.h:63:51: note: in definition of macro 'DEBUG_STATIC_ASSERT' 63 | #define DEBUG_STATIC_ASSERT(c) (void)sizeof(char[(c) ? 1 : -1]) | ^ zstd/lib/compress/zstd_compress.c:377:9: note: in expansion of macro 'ZSTD_STATIC_ASSERT' 377 | ZSTD_STATIC_ASSERT(ZSTD_dictDefaultAttach < ZSTD_dictForceCopy); | ^~~~~~ zstd/lib/compress/zstd_compress.c:378:15: error: request for member 'lowerBound' in something not a structure or union 378 | bounds.lowerBound = ZSTD_dictDefaultAttach; | ^ zstd/lib/compress/zstd_compress.c:379:15: error: request for member 'upperBound' in something not a structure or union 379 | bounds.upperBound = ZSTD_dictForceCopy; / note : how to ensure at compile time that this is the highest value enum ? / | ^ zstd/lib/compress/zstd_compress.c:382:10: error: 'ZSTD_c_literalCompressionMode' undeclared (first use in this function) 382 | case ZSTD_c_literalCompressionMode: | ^~~~~~~~~ In file included from zstd/lib/common/bitstream.h:51, from zstd/lib/common/fse.h:303, from zstd/lib/compress/zstd_compress.c:20: zstd/lib/compress/zstd_compress.c:383:28: error: 'ZSTD_lcm_auto' undeclared (first use in this function); did you mean 'ZSTD_dct_auto'? 383 | ZSTD_STATIC_ASSERT(ZSTD_lcm_auto < ZSTD_lcm_huffman && ZSTD_lcm_huffman < ZSTD_lcm_uncompressed); | ^~~~~ zstd/lib/common/debug.h:63:51: note: in definition of macro 'DEBUG_STATIC_ASSERT' 63 | #define DEBUG_STATIC_ASSERT(c) (void)sizeof(char[(c) ? 1 : -1]) | ^ zstd/lib/compress/zstd_compress.c:383:9: note: in expansion of macro 'ZSTD_STATIC_ASSERT' 383 | ZSTD_STATIC_ASSERT(ZSTD_lcm_auto < ZSTD_lcm_huffman && ZSTD_lcm_huffman < ZSTD_lcm_uncompressed); | ^~~~~~ zstd/lib/compress/zstd_compress.c:383:44: error: 'ZSTD_lcm_huffman' undeclared (first use in this function) 383 | ZSTD_STATIC_ASSERT(ZSTD_lcm_auto < ZSTD_lcm_huffman && ZSTD_lcm_huffman < ZSTD_lcm_uncompressed); | ^~~~ zstd/lib/common/debug.h:63:51: note: in definition of macro 'DEBUG_STATIC_ASSERT' 63 | #define DEBUG_STATIC_ASSERT(c) (void)sizeof(char[(c) ? 1 : -1]) | ^ zstd/lib/compress/zstd_compress.c:383:9: note: in expansion of macro 'ZSTD_STATIC_ASSERT' 383 | ZSTD_STATIC_ASSERT(ZSTD_lcm_auto < ZSTD_lcm_huffman && ZSTD_lcm_huffman < ZSTD_lcm_uncompressed); | ^~~~~~ zstd/lib/compress/zstd_compress.c:383:83: error: 'ZSTD_lcm_uncompressed' undeclared (first use in this function) 383 | ZSTD_STATIC_ASSERT(ZSTD_lcm_auto < ZSTD_lcm_huffman && ZSTD_lcm_huffman < ZSTD_lcm_uncompressed); | ^~~~~ zstd/lib/common/debug.h:63:51: note: in definition of macro 'DEBUG_STATIC_ASSERT' 63 | #define DEBUG_STATIC_ASSERT(c) (void)sizeof(char[(c) ? 1 : -1]) | ^ zstd/lib/compress/zstd_compress.c:383:9: note: in expansion of macro 'ZSTD_STATIC_ASSERT' 383 | ZSTD_STATIC_ASSERT(ZSTD_lcm_auto < ZSTD_lcm_huffman && ZSTD_lcm_huffman < ZSTD_lcm_uncompressed); | ^~~~~~ zstd/lib/compress/zstd_compress.c:384:15: error: request for member 'lowerBound' in something not a structure or union 384 | bounds.lowerBound = ZSTD_lcm_auto; | ^ zstd/lib/compress/zstd_compress.c:385:15: error: request for member 'upperBound' in something not a structure or union 385 | bounds.upperBound = ZSTD_lcm_uncompressed; | ^ zstd/lib/compress/zstd_compress.c:389:13: error: 'ZSTD_bounds' undeclared (first use in this function); did you mean 'ZSTD_count'? 389 | { ZSTD_bounds const boundError = { ERROR(parameter_unsupported), 0, 0 }; | ^~~ | ZSTD_count zstd/lib/compress/zstd_compress.c:389:24: error: expected ';' before 'const' 389 | { ZSTD_bounds const boundError = { ERROR(parameter_unsupported), 0, 0 }; | ^~ | ; zstd/lib/compress/zstd_compress.c:390:20: error: 'boundError' undeclared (first use in this function) 390 | return boundError; | ^~~~~~ zstd/lib/compress/zstd_compress.c: In function 'ZSTD_cParam_withinBounds': zstd/lib/compress/zstd_compress.c:400:5: error: 'ZSTD_bounds' undeclared (first use in this function); did you mean 'ZSTD_count'? 400 | ZSTD_bounds const bounds = ZSTD_cParam_getBounds(cParam); | ^~~ | ZSTD_count zstd/lib/compress/zstd_compress.c:400:16: error: expected ';' before 'const' 400 | ZSTD_bounds const bounds = ZSTD_cParam_getBounds(cParam); | ^~ | ; zstd/lib/compress/zstd_compress.c:401:22: error: 'bounds' undeclared (first use in this function) 401 | if (ZSTD_isError(bounds.error)) return 0; | ^~ zstd/lib/compress/zstd_compress.c: In function 'ZSTD_cParam_clampBounds': zstd/lib/compress/zstd_compress.c:412:5: error: 'ZSTD_bounds' undeclared (first use in this function); did you mean 'ZSTD_count'? 412 | ZSTD_bounds const bounds = ZSTD_cParam_getBounds(cParam); | ^~~ | ZSTD_count zstd/lib/compress/zstd_compress.c:412:16: error: expected ';' before 'const' 412 | ZSTD_bounds const bounds = ZSTD_cParam_getBounds(cParam); | ^~ | ; zstd/lib/compress/zstd_compress.c:413:22: error: 'bounds' undeclared (first use in this function) 413 | if (ZSTD_isError(bounds.error)) return bounds.error; | ^~ zstd/lib/compress/zstd_compress.c: In function 'ZSTD_isUpdateAuthorized': zstd/lib/compress/zstd_compress.c:429:10: error: 'ZSTD_c_compressionLevel' undeclared (first use in this function); did you mean 'ZSTD_p_compressionLevel'? 429 | case ZSTD_c_compressionLevel: | ^~~~~~~ | ZSTD_p_compressionLevel zstd/lib/compress/zstd_compress.c:430:10: error: 'ZSTD_c_hashLog' undeclared (first use in this function); did you mean 'ZSTD_p_hashLog'? 430 | case ZSTD_c_hashLog: | ^~~~~~ | ZSTD_p_hashLog zstd/lib/compress/zstd_compress.c:431:10: error: 'ZSTD_c_chainLog' undeclared (first use in this function); did you mean 'ZSTD_p_chainLog'? 431 | case ZSTD_c_chainLog: | ^~~~~~~ | ZSTD_p_chainLog zstd/lib/compress/zstd_compress.c:432:10: error: 'ZSTD_c_searchLog' undeclared (first use in this function); did you mean 'ZSTD_p_searchLog'? 432 | case ZSTD_c_searchLog: | ^~~~ | ZSTD_p_searchLog zstd/lib/compress/zstd_compress.c:433:10: error: 'ZSTD_c_minMatch' undeclared (first use in this function); did you mean 'ZSTD_p_minMatch'? 433 | case ZSTD_c_minMatch: | ^~~~~~~ | ZSTD_p_minMatch zstd/lib/compress/zstd_compress.c:434:10: error: 'ZSTD_c_targetLength' undeclared (first use in this function); did you mean 'ZSTD_p_targetLength'? 434 | case ZSTD_c_targetLength: | ^~~~~~~ | ZSTD_p_targetLength zstd/lib/compress/zstd_compress.c:435:10: error: 'ZSTD_c_strategy' undeclared (first use in this function); did you mean 'ZSTD_strategy'? 435 | case ZSTD_c_strategy: | ^~~~~~~ | ZSTD_strategy zstd/lib/compress/zstd_compress.c:438:10: error: 'ZSTD_c_format' undeclared (first use in this function); did you mean 'ZSTD_p_format'? 438 | case ZSTD_c_format: | ^~~~~ | ZSTD_p_format zstd/lib/compress/zstd_compress.c:439:10: error: 'ZSTD_c_windowLog' undeclared (first use in this function); did you mean 'ZSTD_p_windowLog'? 439 | case ZSTD_c_windowLog: | ^~~~ | ZSTD_p_windowLog zstd/lib/compress/zstd_compress.c:440:10: error: 'ZSTD_c_contentSizeFlag' undeclared (first use in this function); did you mean 'ZSTD_p_contentSizeFlag'? 440 | case ZSTD_c_contentSizeFlag: | ^~~~~~ | ZSTD_p_contentSizeFlag zstd/lib/compress/zstd_compress.c:441:10: error: 'ZSTD_c_checksumFlag' undeclared (first use in this function); did you mean 'ZSTD_p_checksumFlag'? 441 | case ZSTD_c_checksumFlag: | ^~~~~~~ | ZSTD_p_checksumFlag zstd/lib/compress/zstd_compress.c:442:10: error: 'ZSTD_c_dictIDFlag' undeclared (first use in this function); did you mean 'ZSTD_p_dictIDFlag'? 442 | case ZSTD_c_dictIDFlag: | ^~~~~ | ZSTD_p_dictIDFlag zstd/lib/compress/zstd_compress.c:443:10: error: 'ZSTD_c_forceMaxWindow' undeclared (first use in this function); did you mean 'ZSTD_p_forceMaxWindow'? 443 | case ZSTD_c_forceMaxWindow : | ^~~~~ | ZSTD_p_forceMaxWindow zstd/lib/compress/zstd_compress.c:444:10: error: 'ZSTD_c_nbWorkers' undeclared (first use in this function); did you mean 'ZSTD_p_nbWorkers'? 444 | case ZSTD_c_nbWorkers: | ^~~~ | ZSTD_p_nbWorkers zstd/lib/compress/zstd_compress.c:445:10: error: 'ZSTD_c_jobSize' undeclared (first use in this function); did you mean 'ZSTD_p_jobSize'? 445 | case ZSTD_c_jobSize: | ^~~~~~ | ZSTD_p_jobSize zstd/lib/compress/zstd_compress.c:446:10: error: 'ZSTD_c_overlapLog' undeclared (first use in this function); did you mean 'ZSTDMT_p_overlapLog'? 446 | case ZSTD_c_overlapLog: | ^~~~~ | ZSTDMT_p_overlapLog zstd/lib/compress/zstd_compress.c:447:10: error: 'ZSTD_c_rsyncable' undeclared (first use in this function); did you mean 'ZSTDMT_p_rsyncable'? 447 | case ZSTD_c_rsyncable: | ^~~~ | ZSTDMT_p_rsyncable zstd/lib/compress/zstd_compress.c:448:10: error: 'ZSTD_c_enableLongDistanceMatching' undeclared (first use in this function); did you mean 'ZSTD_p_enableLongDistanceMatching'? 448 | case ZSTD_c_enableLongDistanceMatching: | ^~~~~~~~~ | ZSTD_p_enableLongDistanceMatching zstd/lib/compress/zstd_compress.c:449:10: error: 'ZSTD_c_ldmHashLog' undeclared (first use in this function); did you mean 'ZSTD_p_ldmHashLog'? 449 | case ZSTD_c_ldmHashLog: | ^~~~~ | ZSTD_p_ldmHashLog zstd/lib/compress/zstd_compress.c:450:10: error: 'ZSTD_c_ldmMinMatch' undeclared (first use in this function); did you mean 'ZSTD_p_ldmMinMatch'? 450 | case ZSTD_c_ldmMinMatch: | ^~~~~~ | ZSTD_p_ldmMinMatch zstd/lib/compress/zstd_compress.c:451:10: error: 'ZSTD_c_ldmBucketSizeLog' undeclared (first use in this function); did you mean 'ZSTD_p_ldmBucketSizeLog'? 451 | case ZSTD_c_ldmBucketSizeLog: | ^~~~~~~ | ZSTD_p_ldmBucketSizeLog zstd/lib/compress/zstd_compress.c:452:10: error: 'ZSTD_c_ldmHashRateLog' undeclared (first use in this function); did you mean 'ZSTD_p_ldmHashLog'? 452 | case ZSTD_c_ldmHashRateLog: | ^~~~~ | ZSTD_p_ldmHashLog zstd/lib/compress/zstd_compress.c:453:10: error: 'ZSTD_c_forceAttachDict' undeclared (first use in this function); did you mean 'ZSTD_p_forceAttachDict'? 453 | case ZSTD_c_forceAttachDict: | ^~~~~~ | ZSTD_p_forceAttachDict zstd/lib/compress/zstd_compress.c:454:10: error: 'ZSTD_c_literalCompressionMode' undeclared (first use in this function) 454 | case ZSTD_c_literalCompressionMode: | ^~~~~~~~~ zstd/lib/compress/zstd_compress.c: At top level: zstd/lib/compress/zstd_compress.c:460:8: error: conflicting types for 'ZSTD_CCtx_setParameter' 460 | size_t ZSTD_CCtx_setParameter(ZSTD_CCtx cctx, ZSTD_cParameter param, int value) | ^~~~~~ In file included from zstd/lib/common/zstd_internal.h:27, from zstd/lib/compress/zstd_compress_internal.h:21, from zstd/lib/compress/zstd_compress.c:23: /miniconda3/envs/pysyft/include/zstd.h:1148:20: note: previous declaration of 'ZSTD_CCtx_setParameter' was here 1148 | ZSTDLIB_API size_t ZSTD_CCtx_setParameter(ZSTD_CCtx cctx, ZSTD_cParameter param, unsigned value); | ^~~~~~ zstd/lib/compress/zstd_compress.c: In function 'ZSTD_CCtx_setParameter': zstd/lib/compress/zstd_compress.c:472:10: error: 'ZSTD_c_nbWorkers' undeclared (first use in this function); did you mean 'ZSTD_p_nbWorkers'? 472 | case ZSTD_c_nbWorkers: | ^~~~ | ZSTD_p_nbWorkers zstd/lib/compress/zstd_compress.c:477:10: error: 'ZSTD_c_compressionLevel' undeclared (first use in this function); did you mean 'ZSTD_p_compressionLevel'? 477 | case ZSTD_c_compressionLevel: | ^~~~~~~ | ZSTD_p_compressionLevel zstd/lib/compress/zstd_compress.c:478:10: error: 'ZSTD_c_windowLog' undeclared (first use in this function); did you mean 'ZSTD_p_windowLog'? 478 | case ZSTD_c_windowLog: | ^~~~ | ZSTD_p_windowLog zstd/lib/compress/zstd_compress.c:479:10: error: 'ZSTD_c_hashLog' undeclared (first use in this function); did you mean 'ZSTD_p_hashLog'? 479 | case ZSTD_c_hashLog: | ^~~~~~ | ZSTD_p_hashLog zstd/lib/compress/zstd_compress.c:480:10: error: 'ZSTD_c_chainLog' undeclared (first use in this function); did you mean 'ZSTD_p_chainLog'? 480 | case ZSTD_c_chainLog: | ^~~~~~~ | ZSTD_p_chainLog zstd/lib/compress/zstd_compress.c:481:10: error: 'ZSTD_c_searchLog' undeclared (first use in this function); did you mean 'ZSTD_p_searchLog'? 481 | case ZSTD_c_searchLog: | ^~~~ | ZSTD_p_searchLog zstd/lib/compress/zstd_compress.c:482:10: error: 'ZSTD_c_minMatch' undeclared (first use in this function); did you mean 'ZSTD_p_minMatch'? 482 | case ZSTD_c_minMatch: | ^~~~~~~ | ZSTD_p_minMatch zstd/lib/compress/zstd_compress.c:483:10: error: 'ZSTD_c_targetLength' undeclared (first use in this function); did you mean 'ZSTD_p_targetLength'? 483 | case ZSTD_c_targetLength: | ^~~~~~~ | ZSTD_p_targetLength zstd/lib/compress/zstd_compress.c:484:10: error: 'ZSTD_c_strategy' undeclared (first use in this function); did you mean 'ZSTD_strategy'? 484 | case ZSTD_c_strategy: | ^~~~~~~ | ZSTD_strategy zstd/lib/compress/zstd_compress.c:485:10: error: 'ZSTD_c_ldmHashRateLog' undeclared (first use in this function); did you mean 'ZSTD_p_ldmHashLog'? 485 | case ZSTD_c_ldmHashRateLog: | ^~~~~ | ZSTD_p_ldmHashLog zstd/lib/compress/zstd_compress.c:486:10: error: 'ZSTD_c_format' undeclared (first use in this function); did you mean 'ZSTD_p_format'? 486 | case ZSTD_c_format: | ^~~~~ | ZSTD_p_format zstd/lib/compress/zstd_compress.c:487:10: error: 'ZSTD_c_contentSizeFlag' undeclared (first use in this function); did you mean 'ZSTD_p_contentSizeFlag'? 487 | case ZSTD_c_contentSizeFlag: | ^~~~~~ | ZSTD_p_contentSizeFlag zstd/lib/compress/zstd_compress.c:488:10: error: 'ZSTD_c_checksumFlag' undeclared (first use in this function); did you mean 'ZSTD_p_checksumFlag'? 488 | case ZSTD_c_checksumFlag: | ^~~~~~~ | ZSTD_p_checksumFlag zstd/lib/compress/zstd_compress.c:489:10: error: 'ZSTD_c_dictIDFlag' undeclared (first use in this function); did you mean 'ZSTD_p_dictIDFlag'? 489 | case ZSTD_c_dictIDFlag: | ^~~~~ | ZSTD_p_dictIDFlag zstd/lib/compress/zstd_compress.c:490:10: error: 'ZSTD_c_forceMaxWindow' undeclared (first use in this function); did you mean 'ZSTD_p_forceMaxWindow'? 490 | case ZSTD_c_forceMaxWindow: | ^~~~~ | ZSTD_p_forceMaxWindow zstd/lib/compress/zstd_compress.c:491:10: error: 'ZSTD_c_forceAttachDict' undeclared (first use in this function); did you mean 'ZSTD_p_forceAttachDict'? 491 | case ZSTD_c_forceAttachDict: | ^~~~~~ | ZSTD_p_forceAttachDict zstd/lib/compress/zstd_compress.c:492:10: error: 'ZSTD_c_literalCompressionMode' undeclared (first use in this function) 492 | case ZSTD_c_literalCompressionMode: | ^~~~~~~~~ zstd/lib/compress/zstd_compress.c:493:10: error: 'ZSTD_c_jobSize' undeclared (first use in this function); did you mean 'ZSTD_p_jobSize'? 493 | case ZSTD_c_jobSize: | ^~~~~~ | ZSTD_p_jobSize zstd/lib/compress/zstd_compress.c:494:10: error: 'ZSTD_c_overlapLog' undeclared (first use in this function); did you mean 'ZSTDMT_p_overlapLog'? 494 | case ZSTD_c_overlapLog: | ^~~~~ | ZSTDMT_p_overlapLog zstd/lib/compress/zstd_compress.c:495:10: error: 'ZSTD_c_rsyncable' undeclared (first use in this function); did you mean 'ZSTDMT_p_rsyncable'? 495 | case ZSTD_c_rsyncable: | ^~~~ | ZSTDMT_p_rsyncable zstd/lib/compress/zstd_compress.c:496:10: error: 'ZSTD_c_enableLongDistanceMatching' undeclared (first use in this function); did you mean 'ZSTD_p_enableLongDistanceMatching'? 496 | case ZSTD_c_enableLongDistanceMatching: | ^~~~~~~~~ | ZSTD_p_enableLongDistanceMatching zstd/lib/compress/zstd_compress.c:497:10: error: 'ZSTD_c_ldmHashLog' undeclared (first use in this function); did you mean 'ZSTD_p_ldmHashLog'? 497 | case ZSTD_c_ldmHashLog: | ^~~~~ | ZSTD_p_ldmHashLog zstd/lib/compress/zstd_compress.c:498:10: error: 'ZSTD_c_ldmMinMatch' undeclared (first use in this function); did you mean 'ZSTD_p_ldmMinMatch'? 498 | case ZSTD_c_ldmMinMatch: | ^~~~~~ | ZSTD_p_ldmMinMatch zstd/lib/compress/zstd_compress.c:499:10: error: 'ZSTD_c_ldmBucketSizeLog' undeclared (first use in this function); did you mean 'ZSTD_p_ldmBucketSizeLog'? 499 | case ZSTD_c_ldmBucketSizeLog: | ^~~~~~~ | ZSTD_p_ldmBucketSizeLog zstd/lib/compress/zstd_compress.c:504:12: warning: implicit declaration of function 'ZSTD_CCtxParams_setParameter'; did you mean 'ZSTD_CCtxParam_setParameter'? [-Wimplicit-function-declaration] 504 | return ZSTD_CCtxParams_setParameter(&cctx->requestedParams, param, value); | ^~~~~~~~ | ZSTD_CCtxParam_setParameter zstd/lib/compress/zstd_compress.c: At top level: zstd/lib/compress/zstd_compress.c:507:8: error: conflicting types for 'ZSTD_CCtxParams_setParameter' 507 | size_t ZSTD_CCtxParams_setParameter(ZSTD_CCtx_params CCtxParams, | ^~~~~~~~ zstd/lib/compress/zstd_compress.c:504:12: note: previous implicit declaration of 'ZSTD_CCtxParams_setParameter' was here 504 | return ZSTD_CCtxParams_setParameter(&cctx->requestedParams, param, value); | ^~~~~~~~ zstd/lib/compress/zstd_compress.c: In function 'ZSTD_CCtxParams_setParameter': zstd/lib/compress/zstd_compress.c:513:10: error: 'ZSTD_c_format' undeclared (first use in this function); did you mean 'ZSTD_p_format'? 513 | case ZSTD_c_format : | ^~~~~ | ZSTD_p_format zstd/lib/compress/zstd_compress.c:518:10: error: 'ZSTD_c_compressionLevel' undeclared (first use in this function); did you mean 'ZSTD_p_compressionLevel'? 518 | case ZSTD_c_compressionLevel : { | ^~~~~~~ | ZSTD_p_compressionLevel zstd/lib/compress/zstd_compress.c:527:10: error: 'ZSTD_c_windowLog' undeclared (first use in this function); did you mean 'ZSTD_p_windowLog'? 527 | case ZSTD_c_windowLog : | ^~~~ | ZSTD_p_windowLog zstd/lib/compress/zstd_compress.c:533:10: error: 'ZSTD_c_hashLog' undeclared (first use in this function); did you mean 'ZSTD_p_hashLog'? 533 | case ZSTD_c_hashLog : | ^~~~~~ | ZSTD_p_hashLog zstd/lib/compress/zstd_compress.c:539:10: error: 'ZSTD_c_chainLog' undeclared (first use in this function); did you mean 'ZSTD_p_chainLog'? 539 | case ZSTD_c_chainLog : | ^~~~~~~ | ZSTD_p_chainLog zstd/lib/compress/zstd_compress.c:545:10: error: 'ZSTD_c_searchLog' undeclared (first use in this function); did you mean 'ZSTD_p_searchLog'? 545 | case ZSTD_c_searchLog : | ^~~~ | ZSTD_p_searchLog zstd/lib/compress/zstd_compress.c:551:10: error: 'ZSTD_c_minMatch' undeclared (first use in this function); did you mean 'ZSTD_p_minMatch'? 551 | case ZSTD_c_minMatch : | ^~~~~~~ | ZSTD_p_minMatch zstd/lib/compress/zstd_compress.c:554:28: error: 'ZSTD_compressionParameters' {aka 'struct '} has no member named 'minMatch' 554 | CCtxParams->cParams.minMatch = value; | ^ zstd/lib/compress/zstd_compress.c:555:35: error: 'ZSTD_compressionParameters' {aka 'struct '} has no member named 'minMatch' 555 | return CCtxParams->cParams.minMatch; | ^ zstd/lib/compress/zstd_compress.c:557:10: error: 'ZSTD_c_targetLength' undeclared (first use in this function); did you mean 'ZSTD_p_targetLength'? 557 | case ZSTD_c_targetLength : | ^~~~~~~ | ZSTD_p_targetLength zstd/lib/compress/zstd_compress.c:562:10: error: 'ZSTD_c_strategy' undeclared (first use in this function); did you mean 'ZSTD_strategy'? 562 | case ZSTD_c_strategy : | ^~~~~~~ | ZSTD_strategy zstd/lib/compress/zstd_compress.c:568:10: error: 'ZSTD_c_contentSizeFlag' undeclared (first use in this function); did you mean 'ZSTD_p_contentSizeFlag'? 568 | case ZSTD_c_contentSizeFlag : | ^~~~~~ | ZSTD_p_contentSizeFlag zstd/lib/compress/zstd_compress.c:574:10: error: 'ZSTD_c_checksumFlag' undeclared (first use in this function); did you mean 'ZSTD_p_checksumFlag'? 574 | case ZSTD_c_checksumFlag : | ^~~~~~~ | ZSTD_p_checksumFlag zstd/lib/compress/zstd_compress.c:579:10: error: 'ZSTD_c_dictIDFlag' undeclared (first use in this function); did you mean 'ZSTD_p_dictIDFlag'? 579 | case ZSTD_c_dictIDFlag : / When applicable, dictionary's dictID is provided in frame header (default:1) / | ^~~~~ | ZSTD_p_dictIDFlag zstd/lib/compress/zstd_compress.c:584:10: error: 'ZSTD_c_forceMaxWindow' undeclared (first use in this function); did you mean 'ZSTD_p_forceMaxWindow'? 584 | case ZSTD_c_forceMaxWindow : | ^~~~~ | ZSTD_p_forceMaxWindow zstd/lib/compress/zstd_compress.c:588:10: error: 'ZSTD_c_forceAttachDict' undeclared (first use in this function); did you mean 'ZSTD_p_forceAttachDict'? 588 | case ZSTD_c_forceAttachDict : { | ^~~~~~ | ZSTD_p_forceAttachDict zstd/lib/compress/zstd_compress.c:589:15: error: unknown type name 'ZSTD_dictAttachPref_e' 589 | const ZSTD_dictAttachPref_e pref = (ZSTD_dictAttachPref_e)value; | ^~~~~ zstd/lib/compress/zstd_compress.c:589:45: error: 'ZSTD_dictAttachPref_e' undeclared (first use in this function) 589 | const ZSTD_dictAttachPref_e pref = (ZSTD_dictAttachPref_e)value; | ^~~~~ zstd/lib/compress/zstd_compress.c:589:67: error: expected ',' or ';' before 'value' 589 | const ZSTD_dictAttachPref_e pref = (ZSTD_dictAttachPref_e)value; | ^~~~~ zstd/lib/compress/zstd_compress.c:595:10: error: 'ZSTD_c_literalCompressionMode' undeclared (first use in this function) 595 | case ZSTD_c_literalCompressionMode : { | ^~~~~~~~~ zstd/lib/compress/zstd_compress.c:596:15: error: unknown type name 'ZSTD_literalCompressionMode_e' 596 | const ZSTD_literalCompressionMode_e lcm = (ZSTD_literalCompressionMode_e)value; | ^~~~~~~~~ zstd/lib/compress/zstd_compress.c:596:52: error: 'ZSTD_literalCompressionMode_e' undeclared (first use in this function) 596 | const ZSTD_literalCompressionMode_e lcm = (ZSTD_literalCompressionMode_e)value; | ^~~~~~~~~ zstd/lib/compress/zstd_compress.c:596:82: error: expected ',' or ';' before 'value' 596 | const ZSTD_literalCompressionMode_e lcm = (ZSTD_literalCompressionMode_e)value; | ^~~~~ zstd/lib/compress/zstd_compress.c:602:10: error: 'ZSTD_c_nbWorkers' undeclared (first use in this function); did you mean 'ZSTD_p_nbWorkers'? 602 | case ZSTD_c_nbWorkers : | ^~~~ | ZSTD_p_nbWorkers zstd/lib/compress/zstd_compress.c:612:10: error: 'ZSTD_c_jobSize' undeclared (first use in this function); did you mean 'ZSTD_p_jobSize'? 612 | case ZSTD_c_jobSize : | ^~~~~~ | ZSTD_p_jobSize zstd/lib/compress/zstd_compress.c:626:10: error: 'ZSTD_c_overlapLog' undeclared (first use in this function); did you mean 'ZSTDMT_p_overlapLog'? 626 | case ZSTD_c_overlapLog : | ^~~~~ | ZSTDMT_p_overlapLog zstd/lib/compress/zstd_compress.c:636:10: error: 'ZSTD_c_rsyncable' undeclared (first use in this function); did you mean 'ZSTDMT_p_rsyncable'? 636 | case ZSTD_c_rsyncable : | ^~~~ | ZSTDMT_p_rsyncable zstd/lib/compress/zstd_compress.c:646:10: error: 'ZSTD_c_enableLongDistanceMatching' undeclared (first use in this function); did you mean 'ZSTD_p_enableLongDistanceMatching'? 646 | case ZSTD_c_enableLongDistanceMatching : | ^~~~~~~~~ | ZSTD_p_enableLongDistanceMatching zstd/lib/compress/zstd_compress.c:650:10: error: 'ZSTD_c_ldmHashLog' undeclared (first use in this function); did you mean 'ZSTD_p_ldmHashLog'? 650 | case ZSTD_c_ldmHashLog : | ^~~~~ | ZSTD_p_ldmHashLog zstd/lib/compress/zstd_compress.c:656:10: error: 'ZSTD_c_ldmMinMatch' undeclared (first use in this function); did you mean 'ZSTD_p_ldmMinMatch'? 656 | case ZSTD_c_ldmMinMatch : | ^~~~~~ | ZSTD_p_ldmMinMatch zstd/lib/compress/zstd_compress.c:662:10: error: 'ZSTD_c_ldmBucketSizeLog' undeclared (first use in this function); did you mean 'ZSTD_p_ldmBucketSizeLog'? 662 | case ZSTD_c_ldmBucketSizeLog : | ^~~~~~~ | ZSTD_p_ldmBucketSizeLog zstd/lib/compress/zstd_compress.c:668:10: error: 'ZSTD_c_ldmHashRateLog' undeclared (first use in this function); did you mean 'ZSTD_p_ldmHashLog'? 668 | case ZSTD_c_ldmHashRateLog : | ^~~~~ | ZSTD_p_ldmHashLog In file included from zstd/lib/compress/zstd_compress_internal.h:21, from zstd/lib/compress/zstd_compress.c:23: zstd/lib/compress/zstd_compress.c:669:31: warning: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Wsign-compare] 669 | RETURN_ERROR_IF(value > ZSTD_WINDOWLOG_MAX - ZSTD_HASHLOG_MIN, | ^ zstd/lib/common/zstd_internal.h:65:7: note: in definition of macro 'RETURN_ERROR_IF' 65 | if (cond) { \ | ^~~~ zstd/lib/compress/zstd_compress.c: At top level: zstd/lib/compress/zstd_compress.c:678:8: error: conflicting types for 'ZSTD_CCtx_getParameter' 678 | size_t ZSTD_CCtx_getParameter(ZSTD_CCtx cctx, ZSTD_cParameter param, int value) | ^~~~~~ In file included from zstd/lib/common/zstd_internal.h:27, from zstd/lib/compress/zstd_compress_internal.h:21, from zstd/lib/compress/zstd_compress.c:23: /miniconda3/envs/pysyft/include/zstd.h:1154:20: note: previous declaration of 'ZSTD_CCtx_getParameter' was here 1154 | ZSTDLIB_API size_t ZSTD_CCtx_getParameter(ZSTD_CCtx cctx, ZSTD_cParameter param, unsigned value); | ^~~~~~ zstd/lib/compress/zstd_compress.c: In function 'ZSTD_CCtx_getParameter': zstd/lib/compress/zstd_compress.c:680:12: warning: implicit declaration of function 'ZSTD_CCtxParams_getParameter'; did you mean 'ZSTD_CCtxParams_setParameter'? [-Wimplicit-function-declaration] 680 | return ZSTD_CCtxParams_getParameter(&cctx->requestedParams, param, value); | ^~~~~~~~ | ZSTD_CCtxParams_setParameter zstd/lib/compress/zstd_compress.c: At top level: zstd/lib/compress/zstd_compress.c:683:8: error: conflicting types for 'ZSTD_CCtxParams_getParameter' 683 | size_t ZSTD_CCtxParams_getParameter( | ^~~~~~~~ zstd/lib/compress/zstd_compress.c:680:12: note: previous implicit declaration of 'ZSTD_CCtxParams_getParameter' was here 680 | return ZSTD_CCtxParams_getParameter(&cctx->requestedParams, param, value); | ^~~~~~~~ zstd/lib/compress/zstd_compress.c: In function 'ZSTD_CCtxParams_getParameter': zstd/lib/compress/zstd_compress.c:688:10: error: 'ZSTD_c_format' undeclared (first use in this function); did you mean 'ZSTD_p_format'? 688 | case ZSTD_c_format : | ^~~~~ | ZSTD_p_format zstd/lib/compress/zstd_compress.c:691:10: error: 'ZSTD_c_compressionLevel' undeclared (first use in this function); did you mean 'ZSTD_p_compressionLevel'? 691 | case ZSTD_c_compressionLevel : | ^~~~~~~ | ZSTD_p_compressionLevel zstd/lib/compress/zstd_compress.c:694:10: error: 'ZSTD_c_windowLog' undeclared (first use in this function); did you mean 'ZSTD_p_windowLog'? 694 | case ZSTD_c_windowLog : | ^~~~ | ZSTD_p_windowLog zstd/lib/compress/zstd_compress.c:697:10: error: 'ZSTD_c_hashLog' undeclared (first use in this function); did you mean 'ZSTD_p_hashLog'? 697 | case ZSTD_c_hashLog : | ^~~~~~ | ZSTD_p_hashLog zstd/lib/compress/zstd_compress.c:700:10: error: 'ZSTD_c_chainLog' undeclared (first use in this function); did you mean 'ZSTD_p_chainLog'? 700 | case ZSTD_c_chainLog : | ^~~~~~~ | ZSTD_p_chainLog zstd/lib/compress/zstd_compress.c:703:10: error: 'ZSTD_c_searchLog' undeclared (first use in this function); did you mean 'ZSTD_p_searchLog'? 703 | case ZSTD_c_searchLog : | ^~~~ | ZSTD_p_searchLog zstd/lib/compress/zstd_compress.c:706:10: error: 'ZSTD_c_minMatch' undeclared (first use in this function); did you mean 'ZSTD_p_minMatch'? 706 | case ZSTD_c_minMatch : | ^~~~~~~ | ZSTD_p_minMatch zstd/lib/compress/zstd_compress.c:707:37: error: 'ZSTD_compressionParameters' {aka 'struct '} has no member named 'minMatch' 707 | value = CCtxParams->cParams.minMatch; | ^ zstd/lib/compress/zstd_compress.c:709:10: error: 'ZSTD_c_targetLength' undeclared (first use in this function); did you mean 'ZSTD_p_targetLength'? 709 | case ZSTD_c_targetLength : | ^~~~~~~ | ZSTD_p_targetLength zstd/lib/compress/zstd_compress.c:712:10: error: 'ZSTD_c_strategy' undeclared (first use in this function); did you mean 'ZSTD_strategy'? 712 | case ZSTD_c_strategy : | ^~~~~~~ | ZSTD_strategy zstd/lib/compress/zstd_compress.c:715:10: error: 'ZSTD_c_contentSizeFlag' undeclared (first use in this function); did you mean 'ZSTD_p_contentSizeFlag'? 715 | case ZSTD_c_contentSizeFlag : | ^~~~~~ | ZSTD_p_contentSizeFlag zstd/lib/compress/zstd_compress.c:718:10: error: 'ZSTD_c_checksumFlag' undeclared (first use in this function); did you mean 'ZSTD_p_checksumFlag'? 718 | case ZSTD_c_checksumFlag : | ^~~~~~~ | ZSTD_p_checksumFlag zstd/lib/compress/zstd_compress.c:721:10: error: 'ZSTD_c_dictIDFlag' undeclared (first use in this function); did you mean 'ZSTD_p_dictIDFlag'? 721 | case ZSTD_c_dictIDFlag : | ^~~~~ | ZSTD_p_dictIDFlag zstd/lib/compress/zstd_compress.c:724:10: error: 'ZSTD_c_forceMaxWindow' undeclared (first use in this function); did you mean 'ZSTD_p_forceMaxWindow'? 724 | case ZSTD_c_forceMaxWindow : | ^~~~~ | ZSTD_p_forceMaxWindow zstd/lib/compress/zstd_compress.c:727:10: error: 'ZSTD_c_forceAttachDict' undeclared (first use in this function); did you mean 'ZSTD_p_forceAttachDict'? 727 | case ZSTD_c_forceAttachDict : | ^~~~~~ | ZSTD_p_forceAttachDict zstd/lib/compress/zstd_compress.c:730:10: error: 'ZSTD_c_literalCompressionMode' undeclared (first use in this function) 730 | case ZSTD_c_literalCompressionMode : | ^~~~~~~~~ zstd/lib/compress/zstd_compress.c:733:10: error: 'ZSTD_c_nbWorkers' undeclared (first use in this function); did you mean 'ZSTD_p_nbWorkers'? 733 | case ZSTD_c_nbWorkers : | ^~~~ | ZSTD_p_nbWorkers zstd/lib/compress/zstd_compress.c:739:10: error: 'ZSTD_c_jobSize' undeclared (first use in this function); did you mean 'ZSTD_p_jobSize'? 739 | case ZSTD_c_jobSize : | ^~~~~~ | ZSTD_p_jobSize zstd/lib/compress/zstd_compress.c:747:10: error: 'ZSTD_c_overlapLog' undeclared (first use in this function); did you mean 'ZSTDMT_p_overlapLog'? 747 | case ZSTD_c_overlapLog : | ^~~~~ | ZSTDMT_p_overlapLog zstd/lib/compress/zstd_compress.c:754:10: error: 'ZSTD_c_rsyncable' undeclared (first use in this function); did you mean 'ZSTDMT_p_rsyncable'? 754 | case ZSTD_c_rsyncable : | ^~~~ | ZSTDMT_p_rsyncable zstd/lib/compress/zstd_compress.c:761:10: error: 'ZSTD_c_enableLongDistanceMatching' undeclared (first use in this function); did you mean 'ZSTD_p_enableLongDistanceMatching'? 761 | case ZSTD_c_enableLongDistanceMatching : | ^~~~~~~~~ | ZSTD_p_enableLongDistanceMatching zstd/lib/compress/zstd_compress.c:764:10: error: 'ZSTD_c_ldmHashLog' undeclared (first use in this function); did you mean 'ZSTD_p_ldmHashLog'? 764 | case ZSTD_c_ldmHashLog : | ^~~~~ | ZSTD_p_ldmHashLog zstd/lib/compress/zstd_compress.c:767:10: error: 'ZSTD_c_ldmMinMatch' undeclared (first use in this function); did you mean 'ZSTD_p_ldmMinMatch'? 767 | case ZSTD_c_ldmMinMatch : | ^~~~~~ | ZSTD_p_ldmMinMatch zstd/lib/compress/zstd_compress.c:770:10: error: 'ZSTD_c_ldmBucketSizeLog' undeclared (first use in this function); did you mean 'ZSTD_p_ldmBucketSizeLog'? 770 | case ZSTD_c_ldmBucketSizeLog : | ^~~~~~~ | ZSTD_p_ldmBucketSizeLog zstd/lib/compress/zstd_compress.c:773:10: error: 'ZSTD_c_ldmHashRateLog' undeclared (first use in this function); did you mean 'ZSTD_p_ldmHashLog'? 773 | case ZSTD_c_ldmHashRateLog : | ^~~~~ | ZSTD_p_ldmHashLog zstd/lib/compress/zstd_compress.c: At top level: zstd/lib/compress/zstd_compress.c:911:41: error: unknown type name 'ZSTD_ResetDirective'; did you mean 'ZSTD_EndDirective'? 911 | size_t ZSTD_CCtx_reset(ZSTD_CCtx* cctx, ZSTD_ResetDirective reset) | ^~~~~~~ | ZSTD_EndDirective In file included from zstd/lib/compress/zstd_compress_internal.h:21, from zstd/lib/compress/zstd_compress.c:23: zstd/lib/compress/zstd_compress.c: In function 'ZSTD_checkCParams': zstd/lib/compress/zstd_compress.c:933:16: error: 'ZSTD_c_windowLog' undeclared (first use in this function); did you mean 'ZSTD_p_windowLog'? 933 | BOUNDCHECK(ZSTD_c_windowLog, cParams.windowLog); | ^~~~ zstd/lib/common/zstd_internal.h:65:7: note: in definition of macro 'RETURN_ERROR_IF' 65 | if (cond) { \ | ^~~~ zstd/lib/compress/zstd_compress.c:933:5: note: in expansion of macro 'BOUNDCHECK' 933 | BOUNDCHECK(ZSTD_c_windowLog, cParams.windowLog); | ^~~~~~ zstd/lib/compress/zstd_compress.c:934:16: error: 'ZSTD_c_chainLog' undeclared (first use in this function); did you mean 'ZSTD_p_chainLog'? 934 | BOUNDCHECK(ZSTD_c_chainLog, cParams.chainLog); | ^~~~~~~ zstd/lib/common/zstd_internal.h:65:7: note: in definition of macro 'RETURN_ERROR_IF' 65 | if (cond) { \ | ^~~~ zstd/lib/compress/zstd_compress.c:934:5: note: in expansion of macro 'BOUNDCHECK' 934 | BOUNDCHECK(ZSTD_c_chainLog, cParams.chainLog); | ^~~~~~ zstd/lib/compress/zstd_compress.c:935:16: error: 'ZSTD_c_hashLog' undeclared (first use in this function); did you mean 'ZSTD_p_hashLog'? 935 | BOUNDCHECK(ZSTD_c_hashLog, cParams.hashLog); | ^~~~~~ zstd/lib/common/zstd_internal.h:65:7: note: in definition of macro 'RETURN_ERROR_IF' 65 | if (cond) { \ | ^~~~ zstd/lib/compress/zstd_compress.c:935:5: note: in expansion of macro 'BOUNDCHECK' 935 | BOUNDCHECK(ZSTD_c_hashLog, cParams.hashLog); | ^~~~~~ zstd/lib/compress/zstd_compress.c:936:16: error: 'ZSTD_c_searchLog' undeclared (first use in this function); did you mean 'ZSTD_p_searchLog'? 936 | BOUNDCHECK(ZSTD_c_searchLog, cParams.searchLog); | ^~~~ zstd/lib/common/zstd_internal.h:65:7: note: in definition of macro 'RETURN_ERROR_IF' 65 | if (cond) { \ | ^~~~ zstd/lib/compress/zstd_compress.c:936:5: note: in expansion of macro 'BOUNDCHECK' 936 | BOUNDCHECK(ZSTD_c_searchLog, cParams.searchLog); | ^~~~~~ zstd/lib/compress/zstd_compress.c:937:16: error: 'ZSTD_c_minMatch' undeclared (first use in this function); did you mean 'ZSTD_p_minMatch'? 937 | BOUNDCHECK(ZSTD_c_minMatch, cParams.minMatch); | ^~~~~~~ zstd/lib/common/zstd_internal.h:65:7: note: in definition of macro 'RETURN_ERROR_IF' 65 | if (cond) { \ | ^~~~ zstd/lib/compress/zstd_compress.c:937:5: note: in expansion of macro 'BOUNDCHECK' 937 | BOUNDCHECK(ZSTD_c_minMatch, cParams.minMatch); | ^~~~~~ zstd/lib/compress/zstd_compress.c:937:41: error: 'ZSTD_compressionParameters' {aka 'struct '} has no member named 'minMatch' 937 | BOUNDCHECK(ZSTD_c_minMatch, cParams.minMatch); | ^ zstd/lib/common/zstd_internal.h:65:7: note: in definition of macro 'RETURN_ERROR_IF' 65 | if (cond) { \ | ^~~~ zstd/lib/compress/zstd_compress.c:937:5: note: in expansion of macro 'BOUNDCHECK' 937 | BOUNDCHECK(ZSTD_c_minMatch, cParams.minMatch); | ^~~~~~ zstd/lib/compress/zstd_compress.c:938:16: error: 'ZSTD_c_targetLength' undeclared (first use in this function); did you mean 'ZSTD_p_targetLength'? 938 | BOUNDCHECK(ZSTD_c_targetLength,cParams.targetLength); | ^~~~~~~ zstd/lib/common/zstd_internal.h:65:7: note: in definition of macro 'RETURN_ERROR_IF' 65 | if (cond) { \ | ^~~~ zstd/lib/compress/zstd_compress.c:938:5: note: in expansion of macro 'BOUNDCHECK' 938 | BOUNDCHECK(ZSTD_c_targetLength,cParams.targetLength); | ^~~~~~ zstd/lib/compress/zstd_compress.c:939:16: error: 'ZSTD_c_strategy' undeclared (first use in this function); did you mean 'ZSTD_strategy'? 939 | BOUNDCHECK(ZSTD_c_strategy, cParams.strategy); | ^~~~~~~ zstd/lib/common/zstd_internal.h:65:7: note: in definition of macro 'RETURN_ERROR_IF' 65 | if (cond) { \ | ^~~~ zstd/lib/compress/zstd_compress.c:939:5: note: in expansion of macro 'BOUNDCHECK' 939 | BOUNDCHECK(ZSTD_c_strategy, cParams.strategy); | ^~~~~~ zstd/lib/compress/zstd_compress.c: In function 'ZSTD_clampCParams': zstd/lib/compress/zstd_compress.c:950:9: error: 'ZSTD_bounds' undeclared (first use in this function); did you mean 'ZSTD_count'? 950 | ZSTD_bounds const bounds = ZSTD_cParam_getBounds(cParam); \ | ^~~ zstd/lib/compress/zstd_compress.c:954:31: note: in expansion of macro 'CLAMP_TYPE' 954 | # define CLAMP(cParam, val) CLAMP_TYPE(cParam, val, int) | ^~~~~~ zstd/lib/compress/zstd_compress.c:955:5: note: in expansion of macro 'CLAMP' 955 | CLAMP(ZSTD_c_windowLog, cParams.windowLog); | ^~~~~ zstd/lib/compress/zstd_compress.c:950:21: error: expected ';' before 'const' 950 | ZSTD_bounds const bounds = ZSTD_cParam_getBounds(cParam); \ | ^~~~~ zstd/lib/compress/zstd_compress.c:954:31: note: in expansion of macro 'CLAMP_TYPE' 954 | # define CLAMP(cParam, val) CLAMP_TYPE(cParam, val, int) | ^~~~~~ zstd/lib/compress/zstd_compress.c:955:5: note: in expansion of macro 'CLAMP' 955 | CLAMP(ZSTD_c_windowLog, cParams.windowLog); | ^~~~~ zstd/lib/compress/zstd_compress.c:951:22: error: 'bounds' undeclared (first use in this function) 951 | if ((int)val<bounds.lowerBound) val=(type)bounds.lowerBound; \ | ^~ zstd/lib/compress/zstd_compress.c:954:31: note: in expansion of macro 'CLAMP_TYPE' 954 | # define CLAMP(cParam, val) CLAMP_TYPE(cParam, val, int) | ^~~~~~ zstd/lib/compress/zstd_compress.c:955:5: note: in expansion of macro 'CLAMP' 955 | CLAMP(ZSTD_c_windowLog, cParams.windowLog); | ^~~~~ zstd/lib/compress/zstd_compress.c:950:21: error: expected ';' before 'const' 950 | ZSTD_bounds const bounds = ZSTD_cParam_getBounds(cParam); \ | ^~~~~ zstd/lib/compress/zstd_compress.c:954:31: note: in expansion of macro 'CLAMP_TYPE' 954 | # define CLAMP(cParam, val) CLAMP_TYPE(cParam, val, int) | ^~~~~~ zstd/lib/compress/zstd_compress.c:956:5: note: in expansion of macro 'CLAMP' 956 | CLAMP(ZSTD_c_chainLog, cParams.chainLog); | ^~~~~ zstd/lib/compress/zstd_compress.c:950:21: error: expected ';' before 'const' 950 | ZSTD_bounds const bounds = ZSTD_cParam_getBounds(cParam); \ | ^~~~~ zstd/lib/compress/zstd_compress.c:954:31: note: in expansion of macro 'CLAMP_TYPE' 954 | # define CLAMP(cParam, val) CLAMP_TYPE(cParam, val, int) | ^~~~~~ zstd/lib/compress/zstd_compress.c:957:5: note: in expansion of macro 'CLAMP' 957 | CLAMP(ZSTD_c_hashLog, cParams.hashLog); | ^~~~~ zstd/lib/compress/zstd_compress.c:950:21: error: expected ';' before 'const' 950 | ZSTD_bounds const bounds = ZSTD_cParam_getBounds(cParam); \ | ^~~~~ zstd/lib/compress/zstd_compress.c:954:31: note: in expansion of macro 'CLAMP_TYPE' 954 | # define CLAMP(cParam, val) CLAMP_TYPE(cParam, val, int) | ^~~~~~ zstd/lib/compress/zstd_compress.c:958:5: note: in expansion of macro 'CLAMP' 958 | CLAMP(ZSTD_c_searchLog, cParams.searchLog); | ^~~~~ zstd/lib/compress/zstd_compress.c:950:21: error: expected ';' before 'const' 950 | ZSTD_bounds const bounds = ZSTD_cParam_getBounds(cParam); \ | ^~~~~ zstd/lib/compress/zstd_compress.c:954:31: note: in expansion of macro 'CLAMP_TYPE' 954 | # define CLAMP(cParam, val) CLAMP_TYPE(cParam, val, int) | ^~~~~~ zstd/lib/compress/zstd_compress.c:959:5: note: in expansion of macro 'CLAMP' 959 | CLAMP(ZSTD_c_minMatch, cParams.minMatch); | ^~~~~ zstd/lib/compress/zstd_compress.c:959:36: error: 'ZSTD_compressionParameters' {aka 'struct '} has no member named 'minMatch' 959 | CLAMP(ZSTD_c_minMatch, cParams.minMatch); | ^ zstd/lib/compress/zstd_compress.c:951:18: note: in definition of macro 'CLAMP_TYPE' 951 | if ((int)val<bounds.lowerBound) val=(type)bounds.lowerBound; \ | ^~~ zstd/lib/compress/zstd_compress.c:959:5: note: in expansion of macro 'CLAMP' 959 | CLAMP(ZSTD_c_minMatch, cParams.minMatch); | ^~~~~ zstd/lib/compress/zstd_compress.c:959:36: error: 'ZSTD_compressionParameters' {aka 'struct '} has no member named 'minMatch' 959 | CLAMP(ZSTD_c_minMatch, cParams.minMatch); | ^ zstd/lib/compress/zstd_compress.c:951:41: note: in definition of macro 'CLAMP_TYPE' 951 | if ((int)val<bounds.lowerBound) val=(type)bounds.lowerBound; \ | ^~~ zstd/lib/compress/zstd_compress.c:959:5: note: in expansion of macro 'CLAMP' 959 | CLAMP(ZSTD_c_minMatch, cParams.minMatch); | ^~~~~ zstd/lib/compress/zstd_compress.c:959:36: error: 'ZSTD_compressionParameters' {aka 'struct '} has no member named 'minMatch' 959 | CLAMP(ZSTD_c_minMatch, cParams.minMatch); | ^ zstd/lib/compress/zstd_compress.c:952:23: note: in definition of macro 'CLAMP_TYPE' 952 | else if ((int)val>bounds.upperBound) val=(type)bounds.upperBound; \ | ^~~ zstd/lib/compress/zstd_compress.c:959:5: note: in expansion of macro 'CLAMP' 959 | CLAMP(ZSTD_c_minMatch, cParams.minMatch); | ^~~~~ zstd/lib/compress/zstd_compress.c:959:36: error: 'ZSTD_compressionParameters' {aka 'struct '} has no member named 'minMatch' 959 | CLAMP(ZSTD_c_minMatch, cParams.minMatch); | ^ zstd/lib/compress/zstd_compress.c:952:46: note: in definition of macro 'CLAMP_TYPE' 952 | else if ((int)val>bounds.upperBound) val=(type)bounds.upperBound; \ | ^~~ zstd/lib/compress/zstd_compress.c:959:5: note: in expansion of macro 'CLAMP' 959 | CLAMP(ZSTD_c_minMatch, cParams.minMatch); | ^~~~~ zstd/lib/compress/zstd_compress.c:950:21: error: expected ';' before 'const' 950 | ZSTD_bounds const bounds = ZSTD_cParam_getBounds(cParam); \ | ^~~~~ zstd/lib/compress/zstd_compress.c:954:31: note: in expansion of macro 'CLAMP_TYPE' 954 | # define CLAMP(cParam, val) CLAMP_TYPE(cParam, val, int) | ^~~~~~ zstd/lib/compress/zstd_compress.c:960:5: note: in expansion of macro 'CLAMP' 960 | CLAMP(ZSTD_c_targetLength,cParams.targetLength); | ^~~~~ zstd/lib/compress/zstd_compress.c:950:21: error: expected ';' before 'const' 950 | ZSTD_bounds const bounds = ZSTD_cParam_getBounds(cParam); \ | ^~~~~ zstd/lib/compress/zstd_compress.c:961:5: note: in expansion of macro 'CLAMP_TYPE' 961 | CLAMP_TYPE(ZSTD_c_strategy,cParams.strategy, ZSTD_strategy); | ^~~~~~ In file included from zstd/lib/compress/zstd_compress.c:28: zstd/lib/compress/zstd_compress.c: In function 'ZSTD_getCParamsFromCCtxParams': zstd/lib/compress/zstd_ldm.h:24:37: error: 'ZSTD_WINDOWLOG_LIMIT_DEFAULT' undeclared (first use in this function) 24 | #define ZSTD_LDM_DEFAULT_WINDOW_LOG ZSTD_WINDOWLOG_LIMIT_DEFAULT | ^~~~~~~~ zstd/lib/compress/zstd_compress.c:1027:62: note: in expansion of macro 'ZSTD_LDM_DEFAULT_WINDOW_LOG' 1027 | if (CCtxParams->ldmParams.enableLdm) cParams.windowLog = ZSTD_LDM_DEFAULT_WINDOW_LOG; | ^~~~~~~ zstd/lib/compress/zstd_compress.c:1032:28: error: 'ZSTD_compressionParameters' {aka 'const struct '} has no member named 'minMatch' 1032 | if (CCtxParams->cParams.minMatch) cParams.minMatch = CCtxParams->cParams.minMatch; | ^ zstd/lib/compress/zstd_compress.c:1032:46: error: 'ZSTD_compressionParameters' {aka 'struct '} has no member named 'minMatch' 1032 | if (CCtxParams->cParams.minMatch) cParams.minMatch = CCtxParams->cParams.minMatch; | ^ zstd/lib/compress/zstd_compress.c:1032:77: error: 'ZSTD_compressionParameters' {aka 'const struct '} has no member named 'minMatch' 1032 | if (CCtxParams->cParams.minMatch) cParams.minMatch = CCtxParams->cParams.minMatch; | ^ zstd/lib/compress/zstd_compress.c: In function 'ZSTD_sizeof_matchState': zstd/lib/compress/zstd_compress.c:1045:48: error: 'ZSTD_compressionParameters' {aka 'const struct '} has no member named 'minMatch' 1045 | U32 const hashLog3 = (forCCtx && cParams->minMatch==3) ? MIN(ZSTD_HASHLOG3_MAX, cParams->windowLog) : 0; | ^~ zstd/lib/compress/zstd_compress.c: In function 'ZSTD_estimateCCtxSize_usingCCtxParams': zstd/lib/compress/zstd_compress.c:1064:40: error: 'ZSTD_compressionParameters' {aka 'const struct '} has no member named 'minMatch' 1064 | U32 const divider = (cParams.minMatch==3) ? 3 : 4; | ^ zstd/lib/compress/zstd_compress.c: In function 'ZSTD_equivalentCParams': zstd/lib/compress/zstd_compress.c:1191:22: error: 'ZSTD_compressionParameters' {aka 'struct '} has no member named 'minMatch' 1191 | & ((cParams1.minMatch==3) == (cParams2.minMatch==3)); / hashlog3 space / | ^ zstd/lib/compress/zstd_compress.c:1191:48: error: 'ZSTD_compressionParameters' {aka 'struct '} has no member named 'minMatch' 1191 | & ((cParams1.minMatch==3) == (cParams2.minMatch==3)); / hashlog3 space / | ^ zstd/lib/compress/zstd_compress.c: In function 'ZSTD_sufficientBuff': zstd/lib/compress/zstd_compress.c:1234:53: error: 'ZSTD_compressionParameters' {aka 'struct '} has no member named 'minMatch' 1234 | size_t const maxNbSeq2 = blockSize2 / ((cParams2.minMatch == 3) ? 3 : 4); | ^ zstd/lib/compress/zstd_compress.c: In function 'ZSTD_reset_matchState': zstd/lib/compress/zstd_compress.c:1338:48: error: 'ZSTD_compressionParameters' {aka 'const struct '} has no member named 'minMatch' 1338 | U32 const hashLog3 = (forCCtx && cParams->minMatch==3) ? MIN(ZSTD_HASHLOG3_MAX, cParams->windowLog) : 0; | ^~ zstd/lib/compress/zstd_compress.c: In function 'ZSTD_resetCCtx_internal': zstd/lib/compress/zstd_compress.c:1422:47: error: 'ZSTD_compressionParameters' {aka 'struct '} has no member named 'minMatch' 1422 | U32 const divider = (params.cParams.minMatch==3) ? 3 : 4; | ^ zstd/lib/compress/zstd_compress.c: At top level: zstd/lib/compress/zstd_compress.c:1564:43: error: 'ZSTD_STRATEGY_MAX' undeclared here (not in a function) 1564 | static const size_t attachDictSizeCutoffs[ZSTD_STRATEGY_MAX+1] = { | ^~~~~ zstd/lib/compress/zstd_compress.c: In function 'ZSTD_shouldAttachDict': zstd/lib/compress/zstd_compress.c:1584:39: error: 'ZSTD_dictForceAttach' undeclared (first use in this function) 1584 | || params.attachDictPref == ZSTD_dictForceAttach ) | ^~~~~~~~ zstd/lib/compress/zstd_compress.c:1585:37: error: 'ZSTD_dictForceCopy' undeclared (first use in this function) 1585 | && params.attachDictPref != ZSTD_dictForceCopy | ^~~~~~ zstd/lib/compress/zstd_compress.c: In function 'ZSTD_disableLiteralsCompression': zstd/lib/compress/zstd_compress.c:2458:10: error: 'ZSTD_lcm_huffman' undeclared (first use in this function) 2458 | case ZSTD_lcm_huffman: | ^~~~ zstd/lib/compress/zstd_compress.c:2460:10: error: 'ZSTD_lcm_uncompressed' undeclared (first use in this function) 2460 | case ZSTD_lcm_uncompressed: | ^~~~~ zstd/lib/compress/zstd_compress.c:2465:10: error: 'ZSTD_lcm_auto' undeclared (first use in this function); did you mean 'ZSTD_dct_auto'? 2465 | case ZSTD_lcm_auto: | ^~~~~ | ZSTD_dct_auto zstd/lib/compress/zstd_compress.c: In function 'ZSTD_selectBlockCompressor': zstd/lib/compress/zstd_compress.c:2669:39: warning: unused variable 'blockCompressor' [-Wunused-variable] 2669 | static const ZSTD_blockCompressor blockCompressor[3][ZSTD_STRATEGY_MAX+1] = { | ^~~~~~~ zstd/lib/compress/zstd_compress.c: In function 'ZSTD_compressBlock_internal': zstd/lib/compress/zstd_compress.c:2738:87: error: 'ZSTD_compressionParameters' {aka 'struct '} has no member named 'minMatch' 2738 | ZSTD_ldm_skipSequences(&zc->externSeqStore, srcSize, zc->appliedParams.cParams.minMatch); | ^ zstd/lib/compress/zstd_compress.c: In function 'ZSTD_loadDictionaryContent': zstd/lib/compress/zstd_compress.c:3107:10: error: 'ZSTD_btultra2' undeclared (first use in this function); did you mean 'ZSTD_btultra'? 3107 | case ZSTD_btultra2: | ^~~~~ | ZSTD_btultra In file included from zstd/lib/compress/zstd_compress_internal.h:21, from zstd/lib/compress/zstd_compress.c:23: zstd/lib/compress/zstd_compress.c: In function 'ZSTD_resetCStream': zstd/lib/compress/zstd_compress.c:3837:44: error: 'ZSTD_reset_session_only' undeclared (first use in this function) 3837 | FORWARD_IF_ERROR( ZSTD_CCtx_reset(zcs, ZSTD_reset_session_only) ); | ^~~~~~~ zstd/lib/common/zstd_internal.h:92:30: note: in definition of macro 'FORWARD_IF_ERROR' 92 | size_t const err_code = (err); \ | ^~~ zstd/lib/compress/zstd_compress.c:3837:23: error: too many arguments to function 'ZSTD_CCtx_reset' 3837 | FORWARD_IF_ERROR( ZSTD_CCtx_reset(zcs, ZSTD_reset_session_only) ); | ^~~~~~~ zstd/lib/common/zstd_internal.h:92:30: note: in definition of macro 'FORWARD_IF_ERROR' 92 | size_t const err_code = (err); \ | ^~~ In file included from zstd/lib/common/zstd_internal.h:27, from zstd/lib/compress/zstd_compress_internal.h:21, from zstd/lib/compress/zstd_compress.c:23: /miniconda3/envs/pysyft/include/zstd.h:1230:18: note: declared here 1230 | ZSTDLIB_API void ZSTD_CCtx_reset(ZSTD_CCtx cctx); | ^~~~~~~ In file included from zstd/lib/compress/zstd_compress_internal.h:21, from zstd/lib/compress/zstd_compress.c:23: zstd/lib/common/zstd_internal.h:92:29: error: void value not ignored as it ought to be 92 | size_t const err_code = (err); \ | ^ zstd/lib/compress/zstd_compress.c:3837:5: note: in expansion of macro 'FORWARD_IF_ERROR' 3837 | FORWARD_IF_ERROR( ZSTD_CCtx_reset(zcs, ZSTD_reset_session_only) ); | ^~~~ zstd/lib/compress/zstd_compress.c: In function 'ZSTD_initCStream_internal': zstd/lib/compress/zstd_compress.c:3851:44: error: 'ZSTD_reset_session_only' undeclared (first use in this function) 3851 | FORWARD_IF_ERROR( ZSTD_CCtx_reset(zcs, ZSTD_reset_session_only) ); | ^~~~~~~ zstd/lib/common/zstd_internal.h:92:30: note: in definition of macro 'FORWARD_IF_ERROR' 92 | size_t const err_code = (err); \ | ^~~ zstd/lib/compress/zstd_compress.c:3851:23: error: too many arguments to function 'ZSTD_CCtx_reset' 3851 | FORWARD_IF_ERROR( ZSTD_CCtx_reset(zcs, ZSTD_reset_session_only) ); | ^~~~~~~ zstd/lib/common/zstd_internal.h:92:30: note: in definition of macro 'FORWARD_IF_ERROR' 92 | size_t const err_code = (err); \ | ^~~ In file included from zstd/lib/common/zstd_internal.h:27, from zstd/lib/compress/zstd_compress_internal.h:21, from zstd/lib/compress/zstd_compress.c:23: /miniconda3/envs/pysyft/include/zstd.h:1230:18: note: declared here 1230 | ZSTDLIB_API void ZSTD_CCtx_reset(ZSTD_CCtx cctx); | ^~~~~~~ In file included from zstd/lib/compress/zstd_compress_internal.h:21, from zstd/lib/compress/zstd_compress.c:23: zstd/lib/common/zstd_internal.h:92:29: error: void value not ignored as it ought to be 92 | size_t const err_code = (err); \ | ^ zstd/lib/compress/zstd_compress.c:3851:5: note: in expansion of macro 'FORWARD_IF_ERROR' 3851 | FORWARD_IF_ERROR( ZSTD_CCtx_reset(zcs, ZSTD_reset_session_only) ); | ^~~~ zstd/lib/compress/zstd_compress.c: In function 'ZSTD_initCStream_usingCDict_advanced': zstd/lib/compress/zstd_compress.c:3873:44: error: 'ZSTD_reset_session_only' undeclared (first use in this function) 3873 | FORWARD_IF_ERROR( ZSTD_CCtx_reset(zcs, ZSTD_reset_session_only) ); | ^~~~~~~ zstd/lib/common/zstd_internal.h:92:30: note: in definition of macro 'FORWARD_IF_ERROR' 92 | size_t const err_code = (err); \ | ^~~ zstd/lib/compress/zstd_compress.c:3873:23: error: too many arguments to function 'ZSTD_CCtx_reset' 3873 | FORWARD_IF_ERROR( ZSTD_CCtx_reset(zcs, ZSTD_reset_session_only) ); | ^~~~~~~ zstd/lib/common/zstd_internal.h:92:30: note: in definition of macro 'FORWARD_IF_ERROR' 92 | size_t const err_code = (err); \ | ^~~ In file included from zstd/lib/common/zstd_internal.h:27, from zstd/lib/compress/zstd_compress_internal.h:21, from zstd/lib/compress/zstd_compress.c:23: /miniconda3/envs/pysyft/include/zstd.h:1230:18: note: declared here 1230 | ZSTDLIB_API void ZSTD_CCtx_reset(ZSTD_CCtx cctx); | ^~~~~~~ In file included from zstd/lib/compress/zstd_compress_internal.h:21, from zstd/lib/compress/zstd_compress.c:23: zstd/lib/common/zstd_internal.h:92:29: error: void value not ignored as it ought to be 92 | size_t const err_code = (err); \ | ^ zstd/lib/compress/zstd_compress.c:3873:5: note: in expansion of macro 'FORWARD_IF_ERROR' 3873 | FORWARD_IF_ERROR( ZSTD_CCtx_reset(zcs, ZSTD_reset_session_only) ); | ^~~~ zstd/lib/compress/zstd_compress.c: In function 'ZSTD_initCStream_usingCDict': zstd/lib/compress/zstd_compress.c:3884:44: error: 'ZSTD_reset_session_only' undeclared (first use in this function) 3884 | FORWARD_IF_ERROR( ZSTD_CCtx_reset(zcs, ZSTD_reset_session_only) ); | ^~~~~~~ zstd/lib/common/zstd_internal.h:92:30: note: in definition of macro 'FORWARD_IF_ERROR' 92 | size_t const err_code = (err); \ | ^~~ zstd/lib/compress/zstd_compress.c:3884:23: error: too many arguments to function 'ZSTD_CCtx_reset' 3884 | FORWARD_IF_ERROR( ZSTD_CCtx_reset(zcs, ZSTD_reset_session_only) ); | ^~~~~~~ zstd/lib/common/zstd_internal.h:92:30: note: in definition of macro 'FORWARD_IF_ERROR' 92 | size_t const err_code = (err); \ | ^~~ In file included from zstd/lib/common/zstd_internal.h:27, from zstd/lib/compress/zstd_compress_internal.h:21, from zstd/lib/compress/zstd_compress.c:23: /miniconda3/envs/pysyft/include/zstd.h:1230:18: note: declared here 1230 | ZSTDLIB_API void ZSTD_CCtx_reset(ZSTD_CCtx cctx); | ^~~~~~~ In file included from zstd/lib/compress/zstd_compress_internal.h:21, from zstd/lib/compress/zstd_compress.c:23: zstd/lib/common/zstd_internal.h:92:29: error: void value not ignored as it ought to be 92 | size_t const err_code = (err); \ | ^ zstd/lib/compress/zstd_compress.c:3884:5: note: in expansion of macro 'FORWARD_IF_ERROR' 3884 | FORWARD_IF_ERROR( ZSTD_CCtx_reset(zcs, ZSTD_reset_session_only) ); | ^~~~ zstd/lib/compress/zstd_compress.c: In function 'ZSTD_initCStream_advanced': zstd/lib/compress/zstd_compress.c:3904:44: error: 'ZSTD_reset_session_only' undeclared (first use in this function) 3904 | FORWARD_IF_ERROR( ZSTD_CCtx_reset(zcs, ZSTD_reset_session_only) ); | ^~~~~~~ zstd/lib/common/zstd_internal.h:92:30: note: in definition of macro 'FORWARD_IF_ERROR' 92 | size_t const err_code = (err); \ | ^~~ zstd/lib/compress/zstd_compress.c:3904:23: error: too many arguments to function 'ZSTD_CCtx_reset' 3904 | FORWARD_IF_ERROR( ZSTD_CCtx_reset(zcs, ZSTD_reset_session_only) ); | ^~~~~~~ zstd/lib/common/zstd_internal.h:92:30: note: in definition of macro 'FORWARD_IF_ERROR' 92 | size_t const err_code = (err); \ | ^~~ In file included from zstd/lib/common/zstd_internal.h:27, from zstd/lib/compress/zstd_compress_internal.h:21, from zstd/lib/compress/zstd_compress.c:23: /miniconda3/envs/pysyft/include/zstd.h:1230:18: note: declared here 1230 | ZSTDLIB_API void ZSTD_CCtx_reset(ZSTD_CCtx cctx); | ^~~~~~~ In file included from zstd/lib/compress/zstd_compress_internal.h:21, from zstd/lib/compress/zstd_compress.c:23: zstd/lib/common/zstd_internal.h:92:29: error: void value not ignored as it ought to be 92 | size_t const err_code = (err); \ | ^ zstd/lib/compress/zstd_compress.c:3904:5: note: in expansion of macro 'FORWARD_IF_ERROR' 3904 | FORWARD_IF_ERROR( ZSTD_CCtx_reset(zcs, ZSTD_reset_session_only) ); | ^~~~ zstd/lib/compress/zstd_compress.c: In function 'ZSTD_initCStream_usingDict': zstd/lib/compress/zstd_compress.c:3915:44: error: 'ZSTD_reset_session_only' undeclared (first use in this function) 3915 | FORWARD_IF_ERROR( ZSTD_CCtx_reset(zcs, ZSTD_reset_session_only) ); | ^~~~~~~ zstd/lib/common/zstd_internal.h:92:30: note: in definition of macro 'FORWARD_IF_ERROR' 92 | size_t const err_code = (err); \ | ^~~ zstd/lib/compress/zstd_compress.c:3915:23: error: too many arguments to function 'ZSTD_CCtx_reset' 3915 | FORWARD_IF_ERROR( ZSTD_CCtx_reset(zcs, ZSTD_reset_session_only) ); | ^~~~~~~ zstd/lib/common/zstd_internal.h:92:30: note: in definition of macro 'FORWARD_IF_ERROR' 92 | size_t const err_code = (err); \ | ^~~ In file included from zstd/lib/common/zstd_internal.h:27, from zstd/lib/compress/zstd_compress_internal.h:21, from zstd/lib/compress/zstd_compress.c:23: /miniconda3/envs/pysyft/include/zstd.h:1230:18: note: declared here 1230 | ZSTDLIB_API void ZSTD_CCtx_reset(ZSTD_CCtx cctx); | ^~~~~~~ In file included from zstd/lib/compress/zstd_compress_internal.h:21, from zstd/lib/compress/zstd_compress.c:23: zstd/lib/common/zstd_internal.h:92:29: error: void value not ignored as it ought to be 92 | size_t const err_code = (err); \ | ^ zstd/lib/compress/zstd_compress.c:3915:5: note: in expansion of macro 'FORWARD_IF_ERROR' 3915 | FORWARD_IF_ERROR( ZSTD_CCtx_reset(zcs, ZSTD_reset_session_only) ); | ^~~~ zstd/lib/compress/zstd_compress.c:3916:51: error: 'ZSTD_c_compressionLevel' undeclared (first use in this function); did you mean 'ZSTD_p_compressionLevel'? 3916 | FORWARD_IF_ERROR( ZSTD_CCtx_setParameter(zcs, ZSTD_c_compressionLevel, compressionLevel) ); | ^~~~~~~ zstd/lib/common/zstd_internal.h:92:30: note: in definition of macro 'FORWARD_IF_ERROR' 92 | size_t const err_code = (err); \ | ^~~ zstd/lib/compress/zstd_compress.c: In function 'ZSTD_initCStream_srcSize': zstd/lib/compress/zstd_compress.c:3929:44: error: 'ZSTD_reset_session_only' undeclared (first use in this function) 3929 | FORWARD_IF_ERROR( ZSTD_CCtx_reset(zcs, ZSTD_reset_session_only) ); | ^~~~~~~ zstd/lib/common/zstd_internal.h:92:30: note: in definition of macro 'FORWARD_IF_ERROR' 92 | size_t const err_code = (err); \ | ^~~ zstd/lib/compress/zstd_compress.c:3929:23: error: too many arguments to function 'ZSTD_CCtx_reset' 3929 | FORWARD_IF_ERROR( ZSTD_CCtx_reset(zcs, ZSTD_reset_session_only) ); | ^~~~~~~ zstd/lib/common/zstd_internal.h:92:30: note: in definition of macro 'FORWARD_IF_ERROR' 92 | size_t const err_code = (err); \ | ^~~ In file included from zstd/lib/common/zstd_internal.h:27, from zstd/lib/compress/zstd_compress_internal.h:21, from zstd/lib/compress/zstd_compress.c:23: /miniconda3/envs/pysyft/include/zstd.h:1230:18: note: declared here 1230 | ZSTDLIB_API void ZSTD_CCtx_reset(ZSTD_CCtx cctx); | ^~~~~~~ In file included from zstd/lib/compress/zstd_compress_internal.h:21, from zstd/lib/compress/zstd_compress.c:23: zstd/lib/common/zstd_internal.h:92:29: error: void value not ignored as it ought to be 92 | size_t const err_code = (err); \ | ^ zstd/lib/compress/zstd_compress.c:3929:5: note: in expansion of macro 'FORWARD_IF_ERROR' 3929 | FORWARD_IF_ERROR( ZSTD_CCtx_reset(zcs, ZSTD_reset_session_only) ); | ^~~~ zstd/lib/compress/zstd_compress.c:3931:51: error: 'ZSTD_c_compressionLevel' undeclared (first use in this function); did you mean 'ZSTD_p_compressionLevel'? 3931 | FORWARD_IF_ERROR( ZSTD_CCtx_setParameter(zcs, ZSTD_c_compressionLevel, compressionLevel) ); | ^~~~~~~ zstd/lib/common/zstd_internal.h:92:30: note: in definition of macro 'FORWARD_IF_ERROR' 92 | size_t const err_code = (err); \ | ^~~ zstd/lib/compress/zstd_compress.c: In function 'ZSTD_initCStream': zstd/lib/compress/zstd_compress.c:3939:44: error: 'ZSTD_reset_session_only' undeclared (first use in this function) 3939 | FORWARD_IF_ERROR( ZSTD_CCtx_reset(zcs, ZSTD_reset_session_only) ); | ^~~~~~~ zstd/lib/common/zstd_internal.h:92:30: note: in definition of macro 'FORWARD_IF_ERROR' 92 | size_t const err_code = (err); \ | ^~~ zstd/lib/compress/zstd_compress.c:3939:23: error: too many arguments to function 'ZSTD_CCtx_reset' 3939 | FORWARD_IF_ERROR( ZSTD_CCtx_reset(zcs, ZSTD_reset_session_only) ); | ^~~~~~~ zstd/lib/common/zstd_internal.h:92:30: note: in definition of macro 'FORWARD_IF_ERROR' 92 | size_t const err_code = (err); \ | ^~~ In file included from zstd/lib/common/zstd_internal.h:27, from zstd/lib/compress/zstd_compress_internal.h:21, from zstd/lib/compress/zstd_compress.c:23: /miniconda3/envs/pysyft/include/zstd.h:1230:18: note: declared here 1230 | ZSTDLIB_API void ZSTD_CCtx_reset(ZSTD_CCtx cctx); | ^~~~~~~ In file included from zstd/lib/compress/zstd_compress_internal.h:21, from zstd/lib/compress/zstd_compress.c:23: zstd/lib/common/zstd_internal.h:92:29: error: void value not ignored as it ought to be 92 | size_t const err_code = (err); \ | ^ zstd/lib/compress/zstd_compress.c:3939:5: note: in expansion of macro 'FORWARD_IF_ERROR' 3939 | FORWARD_IF_ERROR( ZSTD_CCtx_reset(zcs, ZSTD_reset_session_only) ); | ^~~~ zstd/lib/compress/zstd_compress.c:3941:51: error: 'ZSTD_c_compressionLevel' undeclared (first use in this function); did you mean 'ZSTD_p_compressionLevel'? 3941 | FORWARD_IF_ERROR( ZSTD_CCtx_setParameter(zcs, ZSTD_c_compressionLevel, compressionLevel) ); | ^~~~~~~ zstd/lib/common/zstd_internal.h:92:30: note: in definition of macro 'FORWARD_IF_ERROR' 92 | size_t const err_code = (err); \ | ^~~ zstd/lib/compress/zstd_compress.c: In function 'ZSTD_compressStream_generic': zstd/lib/compress/zstd_compress.c:4006:38: error: 'ZSTD_reset_session_only' undeclared (first use in this function) 4006 | ZSTD_CCtx_reset(zcs, ZSTD_reset_session_only); | ^~~~~~~ zstd/lib/compress/zstd_compress.c:4006:17: error: too many arguments to function 'ZSTD_CCtx_reset' 4006 | ZSTD_CCtx_reset(zcs, ZSTD_reset_session_only); | ^~~~~~~ In file included from zstd/lib/common/zstd_internal.h:27, from zstd/lib/compress/zstd_compress_internal.h:21, from zstd/lib/compress/zstd_compress.c:23: /miniconda3/envs/pysyft/include/zstd.h:1230:18: note: declared here 1230 | ZSTDLIB_API void ZSTD_CCtx_reset(ZSTD_CCtx cctx); | ^~~~~~~ zstd/lib/compress/zstd_compress.c:4059:25: error: too many arguments to function 'ZSTD_CCtx_reset' 4059 | ZSTD_CCtx_reset(zcs, ZSTD_reset_session_only); | ^~~~~~~ In file included from zstd/lib/common/zstd_internal.h:27, from zstd/lib/compress/zstd_compress_internal.h:21, from zstd/lib/compress/zstd_compress.c:23: /miniconda3/envs/pysyft/include/zstd.h:1230:18: note: declared here 1230 | ZSTDLIB_API void ZSTD_CCtx_reset(ZSTD_CCtx cctx); | ^~~~~~~ zstd/lib/compress/zstd_compress.c:4087:21: error: too many arguments to function 'ZSTD_CCtx_reset' 4087 | ZSTD_CCtx_reset(zcs, ZSTD_reset_session_only); | ^~~~~~~ In file included from zstd/lib/common/zstd_internal.h:27, from zstd/lib/compress/zstd_compress_internal.h:21, from zstd/lib/compress/zstd_compress.c:23: /miniconda3/envs/pysyft/include/zstd.h:1230:18: note: declared here 1230 | ZSTDLIB_API void ZSTD_CCtx_reset(ZSTD_CCtx cctx); | ^~~~~~~ In file included from zstd/lib/compress/zstd_compress_internal.h:21, from zstd/lib/compress/zstd_compress.c:23: zstd/lib/compress/zstd_compress.c: In function 'ZSTD_compressStream': zstd/lib/compress/zstd_compress.c:4119:23: warning: implicit declaration of function 'ZSTD_compressStream2'; did you mean 'ZSTD_compressStream'? [-Wimplicit-function-declaration] 4119 | FORWARD_IF_ERROR( ZSTD_compressStream2(zcs, output, input, ZSTD_e_continue) ); | ^~~~~~~~ zstd/lib/common/zstd_internal.h:92:30: note: in definition of macro 'FORWARD_IF_ERROR' 92 | size_t const err_code = (err); \ | ^~~ zstd/lib/compress/zstd_compress.c: At top level: zstd/lib/compress/zstd_compress.c:4124:8: error: conflicting types for 'ZSTD_compressStream2' 4124 | size_t ZSTD_compressStream2( ZSTD_CCtx cctx, | ^~~~~~~~ In file included from zstd/lib/compress/zstd_compress_internal.h:21, from zstd/lib/compress/zstd_compress.c:23: zstd/lib/compress/zstd_compress.c:4119:23: note: previous implicit declaration of 'ZSTD_compressStream2' was here 4119 | FORWARD_IF_ERROR( ZSTD_compressStream2(zcs, output, input, ZSTD_e_continue) ); | ^~~~~~~~ zstd/lib/common/zstd_internal.h:92:30: note: in definition of macro 'FORWARD_IF_ERROR' 92 | size_t const err_code = (err); \ | ^~~ zstd/lib/compress/zstd_compress.c: In function 'ZSTD_compressStream2': zstd/lib/compress/zstd_compress.c:4193:39: error: 'ZSTD_reset_session_only' undeclared (first use in this function) 4193 | ZSTD_CCtx_reset(cctx, ZSTD_reset_session_only); | ^~~~~~~ zstd/lib/compress/zstd_compress.c:4193:17: error: too many arguments to function 'ZSTD_CCtx_reset' 4193 | ZSTD_CCtx_reset(cctx, ZSTD_reset_session_only); | ^~~~~~~ In file included from zstd/lib/common/zstd_internal.h:27, from zstd/lib/compress/zstd_compress_internal.h:21, from zstd/lib/compress/zstd_compress.c:23: /miniconda3/envs/pysyft/include/zstd.h:1230:18: note: declared here 1230 | ZSTDLIB_API void ZSTD_CCtx_reset(ZSTD_CCtx cctx); | ^~~~~~~ zstd/lib/compress/zstd_compress.c: In function 'ZSTD_compress2': zstd/lib/compress/zstd_compress.c:4229:27: error: 'ZSTD_reset_session_only' undeclared (first use in this function) 4229 | ZSTD_CCtx_reset(cctx, ZSTD_reset_session_only); | ^~~~~~~ zstd/lib/compress/zstd_compress.c:4229:5: error: too many arguments to function 'ZSTD_CCtx_reset' 4229 | ZSTD_CCtx_reset(cctx, ZSTD_reset_session_only); | ^~~~~~~ In file included from zstd/lib/common/zstd_internal.h:27, from zstd/lib/compress/zstd_compress_internal.h:21, from zstd/lib/compress/zstd_compress.c:23: /miniconda3/envs/pysyft/include/zstd.h:1230:18: note: declared here 1230 | ZSTDLIB_API void ZSTD_CCtx_reset(ZSTD_CCtx cctx); | ^~~~~~~ zstd/lib/compress/zstd_compress.c: At top level: zstd/lib/compress/zstd_compress.c:4301:31: error: 'ZSTD_btultra2' undeclared here (not in a function); did you mean 'ZSTD_btultra'? 4301 | { 23, 24, 22, 7, 3,256, ZSTD_btultra2}, / level 19 / | ^~~~~ | ZSTD_btultra zstd/lib/compress/zstd_compress.c: In function 'ZSTD_cParam_getBounds': zstd/lib/compress/zstd_compress.c:393:1: warning: control reaches end of non-void function [-Wreturn-type] 393 | } | ^ zstd/lib/compress/zstd_compress.c: In function 'ZSTD_equivalentCParams': zstd/lib/compress/zstd_compress.c:1192:1: warning: control reaches end of non-void function [-Wreturn-type] 1192 | } | ^ zstd/lib/compress/zstd_compress.c: In function 'ZSTD_shouldAttachDict': zstd/lib/compress/zstd_compress.c:1588:1: warning: control reaches end of non-void function [-Wreturn-type] 1588 | } | ^ At top level: zstd/lib/compress/zstd_compress.c:1564:21: warning: 'attachDictSizeCutoffs' defined but not used [-Wunused-variable] 1564 | static const size_t attachDictSizeCutoffs[ZSTD_STRATEGY_MAX+1] = { | ^~~~~ error: command 'gcc' failed with exit status 1

ERROR: Command "/miniconda3/envs/pysyft/bin/python -u -c 'import setuptools, tokenize;file='"'"'/private/var/folders/96/wgbhc93mdch2sx9dhpymwc0000gn/T/pip-install-a6o9r18r/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/96/wgbhc93mdch2sx9dhpymwc0000gn/T/pip-record-golslkh9/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /private/var/folders/96/w__gbhc93mdch2sx9dhpymwc0000gn/T/pip-install-a6o9r18r/zstd/

EllenZhangYarong commented 5 years ago

My mac: MacOS mojave 10.14.5

EllenZhangYarong commented 5 years ago

SOLVED ON MAC. In my case, I used conda to create a virtual environment. If conda create -n env python=3, It will be good. If without python=3, it raised this problem.

sergey-dryabzhinsky commented 5 years ago

Good to know.

However I didn't tested this project installation with conda. And not uploaded it to anaconda.

AnaMakarevich commented 5 years ago

@EllenZhangYarong I have exactly the same issue, but it happened to me after creating new conda environment with python=3...

EllenZhangYarong commented 5 years ago

@EllenZhangYarong I have exactly the same issue, but it happened to me after creating new conda environment with python=3...

What's your system? If windows, install c++ builder tools, not visual studio or visaul c++. If mac, it is working with python=3.

pyotam commented 5 years ago

I have encountered the same issue with a conda environment on MacOs Mojave version 10.14.6 with: gcc --version Configured with: --prefix=/Library/Developer/CommandLineTools/usr --with-gxx-include-dir=/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/include/c++/4.2.1 Apple LLVM version 10.0.1 (clang-1001.0.46.4) Target: x86_64-apple-darwin18.7.0 Thread model: posix InstalledDir: /Library/Developer/CommandLineTools/usr/bin

What eventually solved the problem for me was changing the gcc version to a more recent one using: export CC=/usr/local/Cellar/gcc/9.2.0/bin/gcc-9 export CFLAGS="-Wa,-q"

and then running: pip install zstd

weimingwill commented 4 years ago

Having this issue with macOS Catalina 10.15.1. I have tried all previous solutions but doesn't work. Any suggestions?

judytraj007 commented 4 years ago

Having the same issue with macOs Mojave 10.14.5 gcc version - 4.8.5 conda 4.7.12 Python 3.6.9 pip 19.3.1

weimingwill commented 4 years ago

@judytraj007 There are problems when installing using conda. virtualenv could work

libratiger commented 4 years ago

I have encountered the same issue with a conda environment on MacOs Mojave version 10.14.6 with: gcc --version Configured with: --prefix=/Library/Developer/CommandLineTools/usr --with-gxx-include-dir=/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/include/c++/4.2.1 Apple LLVM version 10.0.1 (clang-1001.0.46.4) Target: x86_64-apple-darwin18.7.0 Thread model: posix InstalledDir: /Library/Developer/CommandLineTools/usr/bin

What eventually solved the problem for me was changing the gcc version to a more recent one using: export CC=/usr/local/Cellar/gcc/9.2.0/bin/gcc-9 export CFLAGS="-Wa,-q"

and then running: pip install zstd

Thanks! this solved my problem