Brotli 1.0.9 with Python 2.7 Windows seems broken #342

Closed
opened 2026-01-29 20:42:17 +00:00 by claunia · 7 comments
Owner

Originally created by @gpotter2 on GitHub (Sep 1, 2020).

Hi, since 1.0.8 (we're actually using 1.0.9) we're getting some installation failures on automated builds that use both Python 2.7 and Windows (exclusively this case).
See below for the error log

The error log
Collecting brotli
  Downloading Brotli-1.0.9.zip (510 kB)
  Building wheel for brotli (setup.py): started
  Building wheel for brotli (setup.py): finished with status 'error'
  ERROR: Command errored out with exit status 1:
   command: 'C:\projects\scapy\.tox\py27-windows\Scripts\python.EXE' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'c:\\users\\appveyor\\appdata\\local\\temp\\1\\pip-install-6b28ed\\brotli\\setup.py'"'"'; __file__='"'"'c:\\users\\appveyor\\appdata\\local\\temp\\1\\pip-install-6b28ed\\brotli\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d 'c:\users\appveyor\appdata\local\temp\1\pip-wheel-cv3vb2'
       cwd: c:\users\appveyor\appdata\local\temp\1\pip-install-6b28ed\brotli\
  Complete output (93 lines):
  running bdist_wheel
  running build
  running build_py
  creating bin
  creating bin\lib.win-amd64-2.7
  copying python\brotli.py -> bin\lib.win-amd64-2.7
  running build_ext
  building '_brotli' extension
  creating bin\temp.win-amd64-2.7
  creating bin\temp.win-amd64-2.7\Release
  creating bin\temp.win-amd64-2.7\Release\c
  creating bin\temp.win-amd64-2.7\Release\c\common
  creating bin\temp.win-amd64-2.7\Release\c\dec
  creating bin\temp.win-amd64-2.7\Release\c\enc
  C:\Users\appveyor\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Ic/include -IC:\projects\scapy\.tox\py27-windows\include -IC:\projects\scapy\.tox\py27-windows\PC /Tcc/common/constants.c /Fobin\temp.win-amd64-2.7\Release\c/common/constants.obj
  constants.c
  C:\Users\appveyor\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Ic/include -IC:\projects\scapy\.tox\py27-windows\include -IC:\projects\scapy\.tox\py27-windows\PC /Tcc/common/context.c /Fobin\temp.win-amd64-2.7\Release\c/common/context.obj
  context.c
  C:\Users\appveyor\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Ic/include -IC:\projects\scapy\.tox\py27-windows\include -IC:\projects\scapy\.tox\py27-windows\PC /Tcc/common/dictionary.c /Fobin\temp.win-amd64-2.7\Release\c/common/dictionary.obj
  dictionary.c
  C:\Users\appveyor\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Ic/include -IC:\projects\scapy\.tox\py27-windows\include -IC:\projects\scapy\.tox\py27-windows\PC /Tcc/common/platform.c /Fobin\temp.win-amd64-2.7\Release\c/common/platform.obj
  platform.c
  C:\Users\appveyor\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Ic/include -IC:\projects\scapy\.tox\py27-windows\include -IC:\projects\scapy\.tox\py27-windows\PC /Tcc/common/transform.c /Fobin\temp.win-amd64-2.7\Release\c/common/transform.obj
  transform.c
  C:\Users\appveyor\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Ic/include -IC:\projects\scapy\.tox\py27-windows\include -IC:\projects\scapy\.tox\py27-windows\PC /Tcc/dec/bit_reader.c /Fobin\temp.win-amd64-2.7\Release\c/dec/bit_reader.obj
  bit_reader.c
  C:\Users\appveyor\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Ic/include -IC:\projects\scapy\.tox\py27-windows\include -IC:\projects\scapy\.tox\py27-windows\PC /Tcc/dec/decode.c /Fobin\temp.win-amd64-2.7\Release\c/dec/decode.obj
  decode.c
  C:\Users\appveyor\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Ic/include -IC:\projects\scapy\.tox\py27-windows\include -IC:\projects\scapy\.tox\py27-windows\PC /Tcc/dec/huffman.c /Fobin\temp.win-amd64-2.7\Release\c/dec/huffman.obj
  huffman.c
  C:\Users\appveyor\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Ic/include -IC:\projects\scapy\.tox\py27-windows\include -IC:\projects\scapy\.tox\py27-windows\PC /Tcc/dec/state.c /Fobin\temp.win-amd64-2.7\Release\c/dec/state.obj
  state.c
  C:\Users\appveyor\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Ic/include -IC:\projects\scapy\.tox\py27-windows\include -IC:\projects\scapy\.tox\py27-windows\PC /Tcc/enc/backward_references.c /Fobin\temp.win-amd64-2.7\Release\c/enc/backward_references.obj
  backward_references.c
  c:\users\appveyor\appdata\local\temp\1\pip-install-6b28ed\brotli\c\enc\./find_match_length.h(34) : warning C4013: '_tzcnt_u64' undefined; assuming extern returning int
  C:\Users\appveyor\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Ic/include -IC:\projects\scapy\.tox\py27-windows\include -IC:\projects\scapy\.tox\py27-windows\PC /Tcc/enc/backward_references_hq.c /Fobin\temp.win-amd64-2.7\Release\c/enc/backward_references_hq.obj
  backward_references_hq.c
  c:\users\appveyor\appdata\local\temp\1\pip-install-6b28ed\brotli\c\enc\./find_match_length.h(34) : warning C4013: '_tzcnt_u64' undefined; assuming extern returning int
  C:\Users\appveyor\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Ic/include -IC:\projects\scapy\.tox\py27-windows\include -IC:\projects\scapy\.tox\py27-windows\PC /Tcc/enc/bit_cost.c /Fobin\temp.win-amd64-2.7\Release\c/enc/bit_cost.obj
  bit_cost.c
  C:\Users\appveyor\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Ic/include -IC:\projects\scapy\.tox\py27-windows\include -IC:\projects\scapy\.tox\py27-windows\PC /Tcc/enc/block_splitter.c /Fobin\temp.win-amd64-2.7\Release\c/enc/block_splitter.obj
  block_splitter.c
  C:\Users\appveyor\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Ic/include -IC:\projects\scapy\.tox\py27-windows\include -IC:\projects\scapy\.tox\py27-windows\PC /Tcc/enc/brotli_bit_stream.c /Fobin\temp.win-amd64-2.7\Release\c/enc/brotli_bit_stream.obj
  brotli_bit_stream.c
  C:\Users\appveyor\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Ic/include -IC:\projects\scapy\.tox\py27-windows\include -IC:\projects\scapy\.tox\py27-windows\PC /Tcc/enc/cluster.c /Fobin\temp.win-amd64-2.7\Release\c/enc/cluster.obj
  cluster.c
  C:\Users\appveyor\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Ic/include -IC:\projects\scapy\.tox\py27-windows\include -IC:\projects\scapy\.tox\py27-windows\PC /Tcc/enc/command.c /Fobin\temp.win-amd64-2.7\Release\c/enc/command.obj
  command.c
  C:\Users\appveyor\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Ic/include -IC:\projects\scapy\.tox\py27-windows\include -IC:\projects\scapy\.tox\py27-windows\PC /Tcc/enc/compress_fragment.c /Fobin\temp.win-amd64-2.7\Release\c/enc/compress_fragment.obj
  compress_fragment.c
  c:\users\appveyor\appdata\local\temp\1\pip-install-6b28ed\brotli\c\enc\./find_match_length.h(34) : warning C4013: '_tzcnt_u64' undefined; assuming extern returning int
  C:\Users\appveyor\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Ic/include -IC:\projects\scapy\.tox\py27-windows\include -IC:\projects\scapy\.tox\py27-windows\PC /Tcc/enc/compress_fragment_two_pass.c /Fobin\temp.win-amd64-2.7\Release\c/enc/compress_fragment_two_pass.obj
  compress_fragment_two_pass.c
  c:\users\appveyor\appdata\local\temp\1\pip-install-6b28ed\brotli\c\enc\./find_match_length.h(34) : warning C4013: '_tzcnt_u64' undefined; assuming extern returning int
  C:\Users\appveyor\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Ic/include -IC:\projects\scapy\.tox\py27-windows\include -IC:\projects\scapy\.tox\py27-windows\PC /Tcc/enc/dictionary_hash.c /Fobin\temp.win-amd64-2.7\Release\c/enc/dictionary_hash.obj
  dictionary_hash.c
  C:\Users\appveyor\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Ic/include -IC:\projects\scapy\.tox\py27-windows\include -IC:\projects\scapy\.tox\py27-windows\PC /Tcc/enc/encode.c /Fobin\temp.win-amd64-2.7\Release\c/enc/encode.obj
  encode.c
  c:\users\appveyor\appdata\local\temp\1\pip-install-6b28ed\brotli\c\enc\./find_match_length.h(34) : warning C4013: '_tzcnt_u64' undefined; assuming extern returning int
  C:\Users\appveyor\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Ic/include -IC:\projects\scapy\.tox\py27-windows\include -IC:\projects\scapy\.tox\py27-windows\PC /Tcc/enc/encoder_dict.c /Fobin\temp.win-amd64-2.7\Release\c/enc/encoder_dict.obj
  encoder_dict.c
  c:\users\appveyor\appdata\local\temp\1\pip-install-6b28ed\brotli\c\enc\./find_match_length.h(34) : warning C4013: '_tzcnt_u64' undefined; assuming extern returning int
  C:\Users\appveyor\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Ic/include -IC:\projects\scapy\.tox\py27-windows\include -IC:\projects\scapy\.tox\py27-windows\PC /Tcc/enc/entropy_encode.c /Fobin\temp.win-amd64-2.7\Release\c/enc/entropy_encode.obj
  entropy_encode.c
  C:\Users\appveyor\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Ic/include -IC:\projects\scapy\.tox\py27-windows\include -IC:\projects\scapy\.tox\py27-windows\PC /Tcc/enc/fast_log.c /Fobin\temp.win-amd64-2.7\Release\c/enc/fast_log.obj
  fast_log.c
  C:\Users\appveyor\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Ic/include -IC:\projects\scapy\.tox\py27-windows\include -IC:\projects\scapy\.tox\py27-windows\PC /Tcc/enc/histogram.c /Fobin\temp.win-amd64-2.7\Release\c/enc/histogram.obj
  histogram.c
  C:\Users\appveyor\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Ic/include -IC:\projects\scapy\.tox\py27-windows\include -IC:\projects\scapy\.tox\py27-windows\PC /Tcc/enc/literal_cost.c /Fobin\temp.win-amd64-2.7\Release\c/enc/literal_cost.obj
  literal_cost.c
  C:\Users\appveyor\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Ic/include -IC:\projects\scapy\.tox\py27-windows\include -IC:\projects\scapy\.tox\py27-windows\PC /Tcc/enc/memory.c /Fobin\temp.win-amd64-2.7\Release\c/enc/memory.obj
  memory.c
  C:\Users\appveyor\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Ic/include -IC:\projects\scapy\.tox\py27-windows\include -IC:\projects\scapy\.tox\py27-windows\PC /Tcc/enc/metablock.c /Fobin\temp.win-amd64-2.7\Release\c/enc/metablock.obj
  metablock.c
  C:\Users\appveyor\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Ic/include -IC:\projects\scapy\.tox\py27-windows\include -IC:\projects\scapy\.tox\py27-windows\PC /Tcc/enc/static_dict.c /Fobin\temp.win-amd64-2.7\Release\c/enc/static_dict.obj
  static_dict.c
  c:\users\appveyor\appdata\local\temp\1\pip-install-6b28ed\brotli\c\enc\./find_match_length.h(34) : warning C4013: '_tzcnt_u64' undefined; assuming extern returning int
  C:\Users\appveyor\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Ic/include -IC:\projects\scapy\.tox\py27-windows\include -IC:\projects\scapy\.tox\py27-windows\PC /Tcc/enc/utf8_util.c /Fobin\temp.win-amd64-2.7\Release\c/enc/utf8_util.obj
  utf8_util.c
  creating bin\temp.win-amd64-2.7\Release\python
  C:\Users\appveyor\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Ic/include -IC:\projects\scapy\.tox\py27-windows\include -IC:\projects\scapy\.tox\py27-windows\PC /Tppython/_brotli.cc /Fobin\temp.win-amd64-2.7\Release\python/_brotli.obj /EHsc
  _brotli.cc
  C:\Users\appveyor\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\link.exe /DLL /nologo /INCREMENTAL:NO /LIBPATH:C:\projects\scapy\.tox\py27-windows\libs /LIBPATH:C:\projects\scapy\.tox\py27-windows\PCbuild\amd64 /LIBPATH:C:\projects\scapy\.tox\py27-windows\PC\VS9.0\amd64 /EXPORT:init_brotli bin\temp.win-amd64-2.7\Release\c/common/constants.obj bin\temp.win-amd64-2.7\Release\c/common/context.obj bin\temp.win-amd64-2.7\Release\c/common/dictionary.obj bin\temp.win-amd64-2.7\Release\c/common/platform.obj bin\temp.win-amd64-2.7\Release\c/common/transform.obj bin\temp.win-amd64-2.7\Release\c/dec/bit_reader.obj bin\temp.win-amd64-2.7\Release\c/dec/decode.obj bin\temp.win-amd64-2.7\Release\c/dec/huffman.obj bin\temp.win-amd64-2.7\Release\c/dec/state.obj bin\temp.win-amd64-2.7\Release\c/enc/backward_references.obj bin\temp.win-amd64-2.7\Release\c/enc/backward_references_hq.obj bin\temp.win-amd64-2.7\Release\c/enc/bit_cost.obj bin\temp.win-amd64-2.7\Release\c/enc/block_splitter.obj bin\temp.win-amd64-2.7\Release\c/enc/brotli_bit_stream.obj bin\temp.win-amd64-2.7\Release\c/enc/cluster.obj bin\temp.win-amd64-2.7\Release\c/enc/command.obj bin\temp.win-amd64-2.7\Release\c/enc/compress_fragment.obj bin\temp.win-amd64-2.7\Release\c/enc/compress_fragment_two_pass.obj bin\temp.win-amd64-2.7\Release\c/enc/dictionary_hash.obj bin\temp.win-amd64-2.7\Release\c/enc/encode.obj bin\temp.win-amd64-2.7\Release\c/enc/encoder_dict.obj bin\temp.win-amd64-2.7\Release\c/enc/entropy_encode.obj bin\temp.win-amd64-2.7\Release\c/enc/fast_log.obj bin\temp.win-amd64-2.7\Release\c/enc/histogram.obj bin\temp.win-amd64-2.7\Release\c/enc/literal_cost.obj bin\temp.win-amd64-2.7\Release\c/enc/memory.obj bin\temp.win-amd64-2.7\Release\c/enc/metablock.obj bin\temp.win-amd64-2.7\Release\c/enc/static_dict.obj bin\temp.win-amd64-2.7\Release\c/enc/utf8_util.obj bin\temp.win-amd64-2.7\Release\python/_brotli.obj /OUT:bin\lib.win-amd64-2.7\_brotli.pyd /IMPLIB:bin\temp.win-amd64-2.7\Release\c/common\_brotli.lib /MANIFESTFILE:bin\temp.win-amd64-2.7\Release\c/common\_brotli.pyd.manifest
  _brotli.obj : warning LNK4197: export 'init_brotli' specified multiple times; using first specification
     Creating library bin\temp.win-amd64-2.7\Release\c/common\_brotli.lib and object bin\temp.win-amd64-2.7\Release\c/common\_brotli.exp
  encode.obj : error LNK2001: unresolved external symbol _tzcnt_u64
  static_dict.obj : error LNK2001: unresolved external symbol _tzcnt_u64
  backward_references.obj : error LNK2019: unresolved external symbol _tzcnt_u64 referenced in function FindMatchLengthWithLimit
  backward_references_hq.obj : error LNK2001: unresolved external symbol _tzcnt_u64
  compress_fragment.obj : error LNK2001: unresolved external symbol _tzcnt_u64
  compress_fragment_two_pass.obj : error LNK2001: unresolved external symbol _tzcnt_u64
  bin\lib.win-amd64-2.7\_brotli.pyd : fatal error LNK1120: 1 unresolved externals
  error: command 'C:\\Users\\appveyor\\AppData\\Local\\Programs\\Common\\Microsoft\\Visual C++ for Python\\9.0\\VC\\Bin\\amd64\\link.exe' failed with exit status 1120
  ----------------------------------------
  ERROR: Failed building wheel for brotli
  Running setup.py clean for brotli
  Building wheel for wrapt (setup.py): started
  Building wheel for wrapt (setup.py): finished with status 'done'
  Created wheel for wrapt: filename=wrapt-1.12.1-cp27-cp27m-win_amd64.whl size=31282 sha256=2f47491c07a18e533e4cbee1db9c57213043ed8c52be4a4b415e510ac2bac29e
  Stored in directory: c:\users\appveyor\appdata\local\pip\cache\wheels\5b\d8\8e\81a83cb5321b940a954996f5b57fddc8976e712b3ac3a1a54b
Successfully built python-can wrapt
Failed to build brotli
DEPRECATION: Could not build wheels for brotli which do not use PEP 517. pip will fall back to legacy 'setup.py install' for these. pip 21.0 will remove support for this functionality. A possible replacement is to fix the wheel build issue reported above. You can find discussion regarding this at https://github.com/pypa/pip/issues/8368.
Installing collected packages: funcsigs, six, mock, ipaddress, enum34, pycparser, cffi, cryptography, coverage, wrapt, aenum, windows-curses, typing, python-can, brotli
    Running setup.py install for brotli: started
    Running setup.py install for brotli: finished with status 'error'
    ERROR: Command errored out with exit status 1:
     command: 'C:\projects\scapy\.tox\py27-windows\Scripts\python.EXE' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'c:\\users\\appveyor\\appdata\\local\\temp\\1\\pip-install-6b28ed\\brotli\\setup.py'"'"'; __file__='"'"'c:\\users\\appveyor\\appdata\\local\\temp\\1\\pip-install-6b28ed\\brotli\\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\appveyor\appdata\local\temp\1\pip-record-zo923q\install-record.txt' --single-version-externally-managed --compile --install-headers 'C:\projects\scapy\.tox\py27-windows\include\site\python2.7\brotli'
         cwd: c:\users\appveyor\appdata\local\temp\1\pip-install-6b28ed\brotli\
    Complete output (93 lines):
    running install
    running build
    running build_py
    creating bin
    creating bin\lib.win-amd64-2.7
    copying python\brotli.py -> bin\lib.win-amd64-2.7
    running build_ext
    building '_brotli' extension
    creating bin\temp.win-amd64-2.7
    creating bin\temp.win-amd64-2.7\Release
    creating bin\temp.win-amd64-2.7\Release\c
    creating bin\temp.win-amd64-2.7\Release\c\common
    creating bin\temp.win-amd64-2.7\Release\c\dec
    creating bin\temp.win-amd64-2.7\Release\c\enc
    C:\Users\appveyor\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Ic/include -IC:\projects\scapy\.tox\py27-windows\include -IC:\projects\scapy\.tox\py27-windows\PC /Tcc/common/constants.c /Fobin\temp.win-amd64-2.7\Release\c/common/constants.obj
    constants.c
    C:\Users\appveyor\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Ic/include -IC:\projects\scapy\.tox\py27-windows\include -IC:\projects\scapy\.tox\py27-windows\PC /Tcc/common/context.c /Fobin\temp.win-amd64-2.7\Release\c/common/context.obj
    context.c
    C:\Users\appveyor\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Ic/include -IC:\projects\scapy\.tox\py27-windows\include -IC:\projects\scapy\.tox\py27-windows\PC /Tcc/common/dictionary.c /Fobin\temp.win-amd64-2.7\Release\c/common/dictionary.obj
    dictionary.c
    C:\Users\appveyor\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Ic/include -IC:\projects\scapy\.tox\py27-windows\include -IC:\projects\scapy\.tox\py27-windows\PC /Tcc/common/platform.c /Fobin\temp.win-amd64-2.7\Release\c/common/platform.obj
    platform.c
    C:\Users\appveyor\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Ic/include -IC:\projects\scapy\.tox\py27-windows\include -IC:\projects\scapy\.tox\py27-windows\PC /Tcc/common/transform.c /Fobin\temp.win-amd64-2.7\Release\c/common/transform.obj
    transform.c
    C:\Users\appveyor\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Ic/include -IC:\projects\scapy\.tox\py27-windows\include -IC:\projects\scapy\.tox\py27-windows\PC /Tcc/dec/bit_reader.c /Fobin\temp.win-amd64-2.7\Release\c/dec/bit_reader.obj
    bit_reader.c
    C:\Users\appveyor\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Ic/include -IC:\projects\scapy\.tox\py27-windows\include -IC:\projects\scapy\.tox\py27-windows\PC /Tcc/dec/decode.c /Fobin\temp.win-amd64-2.7\Release\c/dec/decode.obj
    decode.c
    C:\Users\appveyor\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Ic/include -IC:\projects\scapy\.tox\py27-windows\include -IC:\projects\scapy\.tox\py27-windows\PC /Tcc/dec/huffman.c /Fobin\temp.win-amd64-2.7\Release\c/dec/huffman.obj
    huffman.c
    C:\Users\appveyor\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Ic/include -IC:\projects\scapy\.tox\py27-windows\include -IC:\projects\scapy\.tox\py27-windows\PC /Tcc/dec/state.c /Fobin\temp.win-amd64-2.7\Release\c/dec/state.obj
    state.c
    C:\Users\appveyor\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Ic/include -IC:\projects\scapy\.tox\py27-windows\include -IC:\projects\scapy\.tox\py27-windows\PC /Tcc/enc/backward_references.c /Fobin\temp.win-amd64-2.7\Release\c/enc/backward_references.obj
    backward_references.c
    c:\users\appveyor\appdata\local\temp\1\pip-install-6b28ed\brotli\c\enc\./find_match_length.h(34) : warning C4013: '_tzcnt_u64' undefined; assuming extern returning int
    C:\Users\appveyor\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Ic/include -IC:\projects\scapy\.tox\py27-windows\include -IC:\projects\scapy\.tox\py27-windows\PC /Tcc/enc/backward_references_hq.c /Fobin\temp.win-amd64-2.7\Release\c/enc/backward_references_hq.obj
    backward_references_hq.c
    c:\users\appveyor\appdata\local\temp\1\pip-install-6b28ed\brotli\c\enc\./find_match_length.h(34) : warning C4013: '_tzcnt_u64' undefined; assuming extern returning int
    C:\Users\appveyor\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Ic/include -IC:\projects\scapy\.tox\py27-windows\include -IC:\projects\scapy\.tox\py27-windows\PC /Tcc/enc/bit_cost.c /Fobin\temp.win-amd64-2.7\Release\c/enc/bit_cost.obj
    bit_cost.c
    C:\Users\appveyor\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Ic/include -IC:\projects\scapy\.tox\py27-windows\include -IC:\projects\scapy\.tox\py27-windows\PC /Tcc/enc/block_splitter.c /Fobin\temp.win-amd64-2.7\Release\c/enc/block_splitter.obj
    block_splitter.c
    C:\Users\appveyor\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Ic/include -IC:\projects\scapy\.tox\py27-windows\include -IC:\projects\scapy\.tox\py27-windows\PC /Tcc/enc/brotli_bit_stream.c /Fobin\temp.win-amd64-2.7\Release\c/enc/brotli_bit_stream.obj
    brotli_bit_stream.c
    C:\Users\appveyor\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Ic/include -IC:\projects\scapy\.tox\py27-windows\include -IC:\projects\scapy\.tox\py27-windows\PC /Tcc/enc/cluster.c /Fobin\temp.win-amd64-2.7\Release\c/enc/cluster.obj
    cluster.c
    C:\Users\appveyor\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Ic/include -IC:\projects\scapy\.tox\py27-windows\include -IC:\projects\scapy\.tox\py27-windows\PC /Tcc/enc/command.c /Fobin\temp.win-amd64-2.7\Release\c/enc/command.obj
    command.c
    C:\Users\appveyor\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Ic/include -IC:\projects\scapy\.tox\py27-windows\include -IC:\projects\scapy\.tox\py27-windows\PC /Tcc/enc/compress_fragment.c /Fobin\temp.win-amd64-2.7\Release\c/enc/compress_fragment.obj
    compress_fragment.c
    c:\users\appveyor\appdata\local\temp\1\pip-install-6b28ed\brotli\c\enc\./find_match_length.h(34) : warning C4013: '_tzcnt_u64' undefined; assuming extern returning int
    C:\Users\appveyor\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Ic/include -IC:\projects\scapy\.tox\py27-windows\include -IC:\projects\scapy\.tox\py27-windows\PC /Tcc/enc/compress_fragment_two_pass.c /Fobin\temp.win-amd64-2.7\Release\c/enc/compress_fragment_two_pass.obj
    compress_fragment_two_pass.c
    c:\users\appveyor\appdata\local\temp\1\pip-install-6b28ed\brotli\c\enc\./find_match_length.h(34) : warning C4013: '_tzcnt_u64' undefined; assuming extern returning int
    C:\Users\appveyor\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Ic/include -IC:\projects\scapy\.tox\py27-windows\include -IC:\projects\scapy\.tox\py27-windows\PC /Tcc/enc/dictionary_hash.c /Fobin\temp.win-amd64-2.7\Release\c/enc/dictionary_hash.obj
    dictionary_hash.c
    C:\Users\appveyor\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Ic/include -IC:\projects\scapy\.tox\py27-windows\include -IC:\projects\scapy\.tox\py27-windows\PC /Tcc/enc/encode.c /Fobin\temp.win-amd64-2.7\Release\c/enc/encode.obj
    encode.c
    c:\users\appveyor\appdata\local\temp\1\pip-install-6b28ed\brotli\c\enc\./find_match_length.h(34) : warning C4013: '_tzcnt_u64' undefined; assuming extern returning int
    C:\Users\appveyor\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Ic/include -IC:\projects\scapy\.tox\py27-windows\include -IC:\projects\scapy\.tox\py27-windows\PC /Tcc/enc/encoder_dict.c /Fobin\temp.win-amd64-2.7\Release\c/enc/encoder_dict.obj
    encoder_dict.c
    c:\users\appveyor\appdata\local\temp\1\pip-install-6b28ed\brotli\c\enc\./find_match_length.h(34) : warning C4013: '_tzcnt_u64' undefined; assuming extern returning int
    C:\Users\appveyor\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Ic/include -IC:\projects\scapy\.tox\py27-windows\include -IC:\projects\scapy\.tox\py27-windows\PC /Tcc/enc/entropy_encode.c /Fobin\temp.win-amd64-2.7\Release\c/enc/entropy_encode.obj
    entropy_encode.c
    C:\Users\appveyor\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Ic/include -IC:\projects\scapy\.tox\py27-windows\include -IC:\projects\scapy\.tox\py27-windows\PC /Tcc/enc/fast_log.c /Fobin\temp.win-amd64-2.7\Release\c/enc/fast_log.obj
    fast_log.c
    C:\Users\appveyor\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Ic/include -IC:\projects\scapy\.tox\py27-windows\include -IC:\projects\scapy\.tox\py27-windows\PC /Tcc/enc/histogram.c /Fobin\temp.win-amd64-2.7\Release\c/enc/histogram.obj
    histogram.c
    C:\Users\appveyor\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Ic/include -IC:\projects\scapy\.tox\py27-windows\include -IC:\projects\scapy\.tox\py27-windows\PC /Tcc/enc/literal_cost.c /Fobin\temp.win-amd64-2.7\Release\c/enc/literal_cost.obj
    literal_cost.c
    C:\Users\appveyor\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Ic/include -IC:\projects\scapy\.tox\py27-windows\include -IC:\projects\scapy\.tox\py27-windows\PC /Tcc/enc/memory.c /Fobin\temp.win-amd64-2.7\Release\c/enc/memory.obj
    memory.c
    C:\Users\appveyor\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Ic/include -IC:\projects\scapy\.tox\py27-windows\include -IC:\projects\scapy\.tox\py27-windows\PC /Tcc/enc/metablock.c /Fobin\temp.win-amd64-2.7\Release\c/enc/metablock.obj
    metablock.c
    C:\Users\appveyor\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Ic/include -IC:\projects\scapy\.tox\py27-windows\include -IC:\projects\scapy\.tox\py27-windows\PC /Tcc/enc/static_dict.c /Fobin\temp.win-amd64-2.7\Release\c/enc/static_dict.obj
    static_dict.c
    c:\users\appveyor\appdata\local\temp\1\pip-install-6b28ed\brotli\c\enc\./find_match_length.h(34) : warning C4013: '_tzcnt_u64' undefined; assuming extern returning int
    C:\Users\appveyor\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Ic/include -IC:\projects\scapy\.tox\py27-windows\include -IC:\projects\scapy\.tox\py27-windows\PC /Tcc/enc/utf8_util.c /Fobin\temp.win-amd64-2.7\Release\c/enc/utf8_util.obj
    utf8_util.c
    creating bin\temp.win-amd64-2.7\Release\python
    C:\Users\appveyor\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Ic/include -IC:\projects\scapy\.tox\py27-windows\include -IC:\projects\scapy\.tox\py27-windows\PC /Tppython/_brotli.cc /Fobin\temp.win-amd64-2.7\Release\python/_brotli.obj /EHsc
    _brotli.cc
    C:\Users\appveyor\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\link.exe /DLL /nologo /INCREMENTAL:NO /LIBPATH:C:\projects\scapy\.tox\py27-windows\libs /LIBPATH:C:\projects\scapy\.tox\py27-windows\PCbuild\amd64 /LIBPATH:C:\projects\scapy\.tox\py27-windows\PC\VS9.0\amd64 /EXPORT:init_brotli bin\temp.win-amd64-2.7\Release\c/common/constants.obj bin\temp.win-amd64-2.7\Release\c/common/context.obj bin\temp.win-amd64-2.7\Release\c/common/dictionary.obj bin\temp.win-amd64-2.7\Release\c/common/platform.obj bin\temp.win-amd64-2.7\Release\c/common/transform.obj bin\temp.win-amd64-2.7\Release\c/dec/bit_reader.obj bin\temp.win-amd64-2.7\Release\c/dec/decode.obj bin\temp.win-amd64-2.7\Release\c/dec/huffman.obj bin\temp.win-amd64-2.7\Release\c/dec/state.obj bin\temp.win-amd64-2.7\Release\c/enc/backward_references.obj bin\temp.win-amd64-2.7\Release\c/enc/backward_references_hq.obj bin\temp.win-amd64-2.7\Release\c/enc/bit_cost.obj bin\temp.win-amd64-2.7\Release\c/enc/block_splitter.obj bin\temp.win-amd64-2.7\Release\c/enc/brotli_bit_stream.obj bin\temp.win-amd64-2.7\Release\c/enc/cluster.obj bin\temp.win-amd64-2.7\Release\c/enc/command.obj bin\temp.win-amd64-2.7\Release\c/enc/compress_fragment.obj bin\temp.win-amd64-2.7\Release\c/enc/compress_fragment_two_pass.obj bin\temp.win-amd64-2.7\Release\c/enc/dictionary_hash.obj bin\temp.win-amd64-2.7\Release\c/enc/encode.obj bin\temp.win-amd64-2.7\Release\c/enc/encoder_dict.obj bin\temp.win-amd64-2.7\Release\c/enc/entropy_encode.obj bin\temp.win-amd64-2.7\Release\c/enc/fast_log.obj bin\temp.win-amd64-2.7\Release\c/enc/histogram.obj bin\temp.win-amd64-2.7\Release\c/enc/literal_cost.obj bin\temp.win-amd64-2.7\Release\c/enc/memory.obj bin\temp.win-amd64-2.7\Release\c/enc/metablock.obj bin\temp.win-amd64-2.7\Release\c/enc/static_dict.obj bin\temp.win-amd64-2.7\Release\c/enc/utf8_util.obj bin\temp.win-amd64-2.7\Release\python/_brotli.obj /OUT:bin\lib.win-amd64-2.7\_brotli.pyd /IMPLIB:bin\temp.win-amd64-2.7\Release\c/common\_brotli.lib /MANIFESTFILE:bin\temp.win-amd64-2.7\Release\c/common\_brotli.pyd.manifest
    _brotli.obj : warning LNK4197: export 'init_brotli' specified multiple times; using first specification
       Creating library bin\temp.win-amd64-2.7\Release\c/common\_brotli.lib and object bin\temp.win-amd64-2.7\Release\c/common\_brotli.exp
    encode.obj : error LNK2001: unresolved external symbol _tzcnt_u64
    static_dict.obj : error LNK2001: unresolved external symbol _tzcnt_u64
    backward_references.obj : error LNK2019: unresolved external symbol _tzcnt_u64 referenced in function FindMatchLengthWithLimit
    backward_references_hq.obj : error LNK2001: unresolved external symbol _tzcnt_u64
    compress_fragment.obj : error LNK2001: unresolved external symbol _tzcnt_u64
    compress_fragment_two_pass.obj : error LNK2001: unresolved external symbol _tzcnt_u64
    bin\lib.win-amd64-2.7\_brotli.pyd : fatal error LNK1120: 1 unresolved externals
    error: command 'C:\\Users\\appveyor\\AppData\\Local\\Programs\\Common\\Microsoft\\Visual C++ for Python\\9.0\\VC\\Bin\\amd64\\link.exe' failed with exit status 1120
    ----------------------------------------
ERROR: Command errored out with exit status 1: 'C:\projects\scapy\.tox\py27-windows\Scripts\python.EXE' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'c:\\users\\appveyor\\appdata\\local\\temp\\1\\pip-install-6b28ed\\brotli\\setup.py'"'"'; __file__='"'"'c:\\users\\appveyor\\appdata\\local\\temp\\1\\pip-install-6b28ed\\brotli\\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\appveyor\appdata\local\temp\1\pip-record-zo923q\install-record.txt' --single-version-externally-managed --compile --install-headers 'C:\projects\scapy\.tox\py27-windows\include\site\python2.7\brotli' Check the logs for full command output.

Full error logs: https://ci.appveyor.com/project/secdev/scapy/branch/master/job/qesqgvj3e69onb48

Those builds are using Appveyor. Pinning 1.0.7 fixes the issue (https://github.com/secdev/scapy/pull/2790)
Has Windows Python 2.7 support been dropped, is it an issue on our side (updated dependencies?) or is that a bug ?

Thanks for the support !

Originally created by @gpotter2 on GitHub (Sep 1, 2020). Hi, since 1.0.8 (we're actually using 1.0.9) we're getting some installation failures on automated builds that use both Python 2.7 and Windows (exclusively this case). See below for the error log <details> <summary>The error log</summary> ``` Collecting brotli Downloading Brotli-1.0.9.zip (510 kB) Building wheel for brotli (setup.py): started Building wheel for brotli (setup.py): finished with status 'error' ERROR: Command errored out with exit status 1: command: 'C:\projects\scapy\.tox\py27-windows\Scripts\python.EXE' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'c:\\users\\appveyor\\appdata\\local\\temp\\1\\pip-install-6b28ed\\brotli\\setup.py'"'"'; __file__='"'"'c:\\users\\appveyor\\appdata\\local\\temp\\1\\pip-install-6b28ed\\brotli\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d 'c:\users\appveyor\appdata\local\temp\1\pip-wheel-cv3vb2' cwd: c:\users\appveyor\appdata\local\temp\1\pip-install-6b28ed\brotli\ Complete output (93 lines): running bdist_wheel running build running build_py creating bin creating bin\lib.win-amd64-2.7 copying python\brotli.py -> bin\lib.win-amd64-2.7 running build_ext building '_brotli' extension creating bin\temp.win-amd64-2.7 creating bin\temp.win-amd64-2.7\Release creating bin\temp.win-amd64-2.7\Release\c creating bin\temp.win-amd64-2.7\Release\c\common creating bin\temp.win-amd64-2.7\Release\c\dec creating bin\temp.win-amd64-2.7\Release\c\enc C:\Users\appveyor\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Ic/include -IC:\projects\scapy\.tox\py27-windows\include -IC:\projects\scapy\.tox\py27-windows\PC /Tcc/common/constants.c /Fobin\temp.win-amd64-2.7\Release\c/common/constants.obj constants.c C:\Users\appveyor\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Ic/include -IC:\projects\scapy\.tox\py27-windows\include -IC:\projects\scapy\.tox\py27-windows\PC /Tcc/common/context.c /Fobin\temp.win-amd64-2.7\Release\c/common/context.obj context.c C:\Users\appveyor\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Ic/include -IC:\projects\scapy\.tox\py27-windows\include -IC:\projects\scapy\.tox\py27-windows\PC /Tcc/common/dictionary.c /Fobin\temp.win-amd64-2.7\Release\c/common/dictionary.obj dictionary.c C:\Users\appveyor\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Ic/include -IC:\projects\scapy\.tox\py27-windows\include -IC:\projects\scapy\.tox\py27-windows\PC /Tcc/common/platform.c /Fobin\temp.win-amd64-2.7\Release\c/common/platform.obj platform.c C:\Users\appveyor\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Ic/include -IC:\projects\scapy\.tox\py27-windows\include -IC:\projects\scapy\.tox\py27-windows\PC /Tcc/common/transform.c /Fobin\temp.win-amd64-2.7\Release\c/common/transform.obj transform.c C:\Users\appveyor\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Ic/include -IC:\projects\scapy\.tox\py27-windows\include -IC:\projects\scapy\.tox\py27-windows\PC /Tcc/dec/bit_reader.c /Fobin\temp.win-amd64-2.7\Release\c/dec/bit_reader.obj bit_reader.c C:\Users\appveyor\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Ic/include -IC:\projects\scapy\.tox\py27-windows\include -IC:\projects\scapy\.tox\py27-windows\PC /Tcc/dec/decode.c /Fobin\temp.win-amd64-2.7\Release\c/dec/decode.obj decode.c C:\Users\appveyor\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Ic/include -IC:\projects\scapy\.tox\py27-windows\include -IC:\projects\scapy\.tox\py27-windows\PC /Tcc/dec/huffman.c /Fobin\temp.win-amd64-2.7\Release\c/dec/huffman.obj huffman.c C:\Users\appveyor\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Ic/include -IC:\projects\scapy\.tox\py27-windows\include -IC:\projects\scapy\.tox\py27-windows\PC /Tcc/dec/state.c /Fobin\temp.win-amd64-2.7\Release\c/dec/state.obj state.c C:\Users\appveyor\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Ic/include -IC:\projects\scapy\.tox\py27-windows\include -IC:\projects\scapy\.tox\py27-windows\PC /Tcc/enc/backward_references.c /Fobin\temp.win-amd64-2.7\Release\c/enc/backward_references.obj backward_references.c c:\users\appveyor\appdata\local\temp\1\pip-install-6b28ed\brotli\c\enc\./find_match_length.h(34) : warning C4013: '_tzcnt_u64' undefined; assuming extern returning int C:\Users\appveyor\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Ic/include -IC:\projects\scapy\.tox\py27-windows\include -IC:\projects\scapy\.tox\py27-windows\PC /Tcc/enc/backward_references_hq.c /Fobin\temp.win-amd64-2.7\Release\c/enc/backward_references_hq.obj backward_references_hq.c c:\users\appveyor\appdata\local\temp\1\pip-install-6b28ed\brotli\c\enc\./find_match_length.h(34) : warning C4013: '_tzcnt_u64' undefined; assuming extern returning int C:\Users\appveyor\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Ic/include -IC:\projects\scapy\.tox\py27-windows\include -IC:\projects\scapy\.tox\py27-windows\PC /Tcc/enc/bit_cost.c /Fobin\temp.win-amd64-2.7\Release\c/enc/bit_cost.obj bit_cost.c C:\Users\appveyor\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Ic/include -IC:\projects\scapy\.tox\py27-windows\include -IC:\projects\scapy\.tox\py27-windows\PC /Tcc/enc/block_splitter.c /Fobin\temp.win-amd64-2.7\Release\c/enc/block_splitter.obj block_splitter.c C:\Users\appveyor\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Ic/include -IC:\projects\scapy\.tox\py27-windows\include -IC:\projects\scapy\.tox\py27-windows\PC /Tcc/enc/brotli_bit_stream.c /Fobin\temp.win-amd64-2.7\Release\c/enc/brotli_bit_stream.obj brotli_bit_stream.c C:\Users\appveyor\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Ic/include -IC:\projects\scapy\.tox\py27-windows\include -IC:\projects\scapy\.tox\py27-windows\PC /Tcc/enc/cluster.c /Fobin\temp.win-amd64-2.7\Release\c/enc/cluster.obj cluster.c C:\Users\appveyor\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Ic/include -IC:\projects\scapy\.tox\py27-windows\include -IC:\projects\scapy\.tox\py27-windows\PC /Tcc/enc/command.c /Fobin\temp.win-amd64-2.7\Release\c/enc/command.obj command.c C:\Users\appveyor\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Ic/include -IC:\projects\scapy\.tox\py27-windows\include -IC:\projects\scapy\.tox\py27-windows\PC /Tcc/enc/compress_fragment.c /Fobin\temp.win-amd64-2.7\Release\c/enc/compress_fragment.obj compress_fragment.c c:\users\appveyor\appdata\local\temp\1\pip-install-6b28ed\brotli\c\enc\./find_match_length.h(34) : warning C4013: '_tzcnt_u64' undefined; assuming extern returning int C:\Users\appveyor\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Ic/include -IC:\projects\scapy\.tox\py27-windows\include -IC:\projects\scapy\.tox\py27-windows\PC /Tcc/enc/compress_fragment_two_pass.c /Fobin\temp.win-amd64-2.7\Release\c/enc/compress_fragment_two_pass.obj compress_fragment_two_pass.c c:\users\appveyor\appdata\local\temp\1\pip-install-6b28ed\brotli\c\enc\./find_match_length.h(34) : warning C4013: '_tzcnt_u64' undefined; assuming extern returning int C:\Users\appveyor\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Ic/include -IC:\projects\scapy\.tox\py27-windows\include -IC:\projects\scapy\.tox\py27-windows\PC /Tcc/enc/dictionary_hash.c /Fobin\temp.win-amd64-2.7\Release\c/enc/dictionary_hash.obj dictionary_hash.c C:\Users\appveyor\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Ic/include -IC:\projects\scapy\.tox\py27-windows\include -IC:\projects\scapy\.tox\py27-windows\PC /Tcc/enc/encode.c /Fobin\temp.win-amd64-2.7\Release\c/enc/encode.obj encode.c c:\users\appveyor\appdata\local\temp\1\pip-install-6b28ed\brotli\c\enc\./find_match_length.h(34) : warning C4013: '_tzcnt_u64' undefined; assuming extern returning int C:\Users\appveyor\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Ic/include -IC:\projects\scapy\.tox\py27-windows\include -IC:\projects\scapy\.tox\py27-windows\PC /Tcc/enc/encoder_dict.c /Fobin\temp.win-amd64-2.7\Release\c/enc/encoder_dict.obj encoder_dict.c c:\users\appveyor\appdata\local\temp\1\pip-install-6b28ed\brotli\c\enc\./find_match_length.h(34) : warning C4013: '_tzcnt_u64' undefined; assuming extern returning int C:\Users\appveyor\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Ic/include -IC:\projects\scapy\.tox\py27-windows\include -IC:\projects\scapy\.tox\py27-windows\PC /Tcc/enc/entropy_encode.c /Fobin\temp.win-amd64-2.7\Release\c/enc/entropy_encode.obj entropy_encode.c C:\Users\appveyor\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Ic/include -IC:\projects\scapy\.tox\py27-windows\include -IC:\projects\scapy\.tox\py27-windows\PC /Tcc/enc/fast_log.c /Fobin\temp.win-amd64-2.7\Release\c/enc/fast_log.obj fast_log.c C:\Users\appveyor\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Ic/include -IC:\projects\scapy\.tox\py27-windows\include -IC:\projects\scapy\.tox\py27-windows\PC /Tcc/enc/histogram.c /Fobin\temp.win-amd64-2.7\Release\c/enc/histogram.obj histogram.c C:\Users\appveyor\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Ic/include -IC:\projects\scapy\.tox\py27-windows\include -IC:\projects\scapy\.tox\py27-windows\PC /Tcc/enc/literal_cost.c /Fobin\temp.win-amd64-2.7\Release\c/enc/literal_cost.obj literal_cost.c C:\Users\appveyor\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Ic/include -IC:\projects\scapy\.tox\py27-windows\include -IC:\projects\scapy\.tox\py27-windows\PC /Tcc/enc/memory.c /Fobin\temp.win-amd64-2.7\Release\c/enc/memory.obj memory.c C:\Users\appveyor\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Ic/include -IC:\projects\scapy\.tox\py27-windows\include -IC:\projects\scapy\.tox\py27-windows\PC /Tcc/enc/metablock.c /Fobin\temp.win-amd64-2.7\Release\c/enc/metablock.obj metablock.c C:\Users\appveyor\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Ic/include -IC:\projects\scapy\.tox\py27-windows\include -IC:\projects\scapy\.tox\py27-windows\PC /Tcc/enc/static_dict.c /Fobin\temp.win-amd64-2.7\Release\c/enc/static_dict.obj static_dict.c c:\users\appveyor\appdata\local\temp\1\pip-install-6b28ed\brotli\c\enc\./find_match_length.h(34) : warning C4013: '_tzcnt_u64' undefined; assuming extern returning int C:\Users\appveyor\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Ic/include -IC:\projects\scapy\.tox\py27-windows\include -IC:\projects\scapy\.tox\py27-windows\PC /Tcc/enc/utf8_util.c /Fobin\temp.win-amd64-2.7\Release\c/enc/utf8_util.obj utf8_util.c creating bin\temp.win-amd64-2.7\Release\python C:\Users\appveyor\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Ic/include -IC:\projects\scapy\.tox\py27-windows\include -IC:\projects\scapy\.tox\py27-windows\PC /Tppython/_brotli.cc /Fobin\temp.win-amd64-2.7\Release\python/_brotli.obj /EHsc _brotli.cc C:\Users\appveyor\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\link.exe /DLL /nologo /INCREMENTAL:NO /LIBPATH:C:\projects\scapy\.tox\py27-windows\libs /LIBPATH:C:\projects\scapy\.tox\py27-windows\PCbuild\amd64 /LIBPATH:C:\projects\scapy\.tox\py27-windows\PC\VS9.0\amd64 /EXPORT:init_brotli bin\temp.win-amd64-2.7\Release\c/common/constants.obj bin\temp.win-amd64-2.7\Release\c/common/context.obj bin\temp.win-amd64-2.7\Release\c/common/dictionary.obj bin\temp.win-amd64-2.7\Release\c/common/platform.obj bin\temp.win-amd64-2.7\Release\c/common/transform.obj bin\temp.win-amd64-2.7\Release\c/dec/bit_reader.obj bin\temp.win-amd64-2.7\Release\c/dec/decode.obj bin\temp.win-amd64-2.7\Release\c/dec/huffman.obj bin\temp.win-amd64-2.7\Release\c/dec/state.obj bin\temp.win-amd64-2.7\Release\c/enc/backward_references.obj bin\temp.win-amd64-2.7\Release\c/enc/backward_references_hq.obj bin\temp.win-amd64-2.7\Release\c/enc/bit_cost.obj bin\temp.win-amd64-2.7\Release\c/enc/block_splitter.obj bin\temp.win-amd64-2.7\Release\c/enc/brotli_bit_stream.obj bin\temp.win-amd64-2.7\Release\c/enc/cluster.obj bin\temp.win-amd64-2.7\Release\c/enc/command.obj bin\temp.win-amd64-2.7\Release\c/enc/compress_fragment.obj bin\temp.win-amd64-2.7\Release\c/enc/compress_fragment_two_pass.obj bin\temp.win-amd64-2.7\Release\c/enc/dictionary_hash.obj bin\temp.win-amd64-2.7\Release\c/enc/encode.obj bin\temp.win-amd64-2.7\Release\c/enc/encoder_dict.obj bin\temp.win-amd64-2.7\Release\c/enc/entropy_encode.obj bin\temp.win-amd64-2.7\Release\c/enc/fast_log.obj bin\temp.win-amd64-2.7\Release\c/enc/histogram.obj bin\temp.win-amd64-2.7\Release\c/enc/literal_cost.obj bin\temp.win-amd64-2.7\Release\c/enc/memory.obj bin\temp.win-amd64-2.7\Release\c/enc/metablock.obj bin\temp.win-amd64-2.7\Release\c/enc/static_dict.obj bin\temp.win-amd64-2.7\Release\c/enc/utf8_util.obj bin\temp.win-amd64-2.7\Release\python/_brotli.obj /OUT:bin\lib.win-amd64-2.7\_brotli.pyd /IMPLIB:bin\temp.win-amd64-2.7\Release\c/common\_brotli.lib /MANIFESTFILE:bin\temp.win-amd64-2.7\Release\c/common\_brotli.pyd.manifest _brotli.obj : warning LNK4197: export 'init_brotli' specified multiple times; using first specification Creating library bin\temp.win-amd64-2.7\Release\c/common\_brotli.lib and object bin\temp.win-amd64-2.7\Release\c/common\_brotli.exp encode.obj : error LNK2001: unresolved external symbol _tzcnt_u64 static_dict.obj : error LNK2001: unresolved external symbol _tzcnt_u64 backward_references.obj : error LNK2019: unresolved external symbol _tzcnt_u64 referenced in function FindMatchLengthWithLimit backward_references_hq.obj : error LNK2001: unresolved external symbol _tzcnt_u64 compress_fragment.obj : error LNK2001: unresolved external symbol _tzcnt_u64 compress_fragment_two_pass.obj : error LNK2001: unresolved external symbol _tzcnt_u64 bin\lib.win-amd64-2.7\_brotli.pyd : fatal error LNK1120: 1 unresolved externals error: command 'C:\\Users\\appveyor\\AppData\\Local\\Programs\\Common\\Microsoft\\Visual C++ for Python\\9.0\\VC\\Bin\\amd64\\link.exe' failed with exit status 1120 ---------------------------------------- ERROR: Failed building wheel for brotli Running setup.py clean for brotli Building wheel for wrapt (setup.py): started Building wheel for wrapt (setup.py): finished with status 'done' Created wheel for wrapt: filename=wrapt-1.12.1-cp27-cp27m-win_amd64.whl size=31282 sha256=2f47491c07a18e533e4cbee1db9c57213043ed8c52be4a4b415e510ac2bac29e Stored in directory: c:\users\appveyor\appdata\local\pip\cache\wheels\5b\d8\8e\81a83cb5321b940a954996f5b57fddc8976e712b3ac3a1a54b Successfully built python-can wrapt Failed to build brotli DEPRECATION: Could not build wheels for brotli which do not use PEP 517. pip will fall back to legacy 'setup.py install' for these. pip 21.0 will remove support for this functionality. A possible replacement is to fix the wheel build issue reported above. You can find discussion regarding this at https://github.com/pypa/pip/issues/8368. Installing collected packages: funcsigs, six, mock, ipaddress, enum34, pycparser, cffi, cryptography, coverage, wrapt, aenum, windows-curses, typing, python-can, brotli Running setup.py install for brotli: started Running setup.py install for brotli: finished with status 'error' ERROR: Command errored out with exit status 1: command: 'C:\projects\scapy\.tox\py27-windows\Scripts\python.EXE' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'c:\\users\\appveyor\\appdata\\local\\temp\\1\\pip-install-6b28ed\\brotli\\setup.py'"'"'; __file__='"'"'c:\\users\\appveyor\\appdata\\local\\temp\\1\\pip-install-6b28ed\\brotli\\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\appveyor\appdata\local\temp\1\pip-record-zo923q\install-record.txt' --single-version-externally-managed --compile --install-headers 'C:\projects\scapy\.tox\py27-windows\include\site\python2.7\brotli' cwd: c:\users\appveyor\appdata\local\temp\1\pip-install-6b28ed\brotli\ Complete output (93 lines): running install running build running build_py creating bin creating bin\lib.win-amd64-2.7 copying python\brotli.py -> bin\lib.win-amd64-2.7 running build_ext building '_brotli' extension creating bin\temp.win-amd64-2.7 creating bin\temp.win-amd64-2.7\Release creating bin\temp.win-amd64-2.7\Release\c creating bin\temp.win-amd64-2.7\Release\c\common creating bin\temp.win-amd64-2.7\Release\c\dec creating bin\temp.win-amd64-2.7\Release\c\enc C:\Users\appveyor\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Ic/include -IC:\projects\scapy\.tox\py27-windows\include -IC:\projects\scapy\.tox\py27-windows\PC /Tcc/common/constants.c /Fobin\temp.win-amd64-2.7\Release\c/common/constants.obj constants.c C:\Users\appveyor\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Ic/include -IC:\projects\scapy\.tox\py27-windows\include -IC:\projects\scapy\.tox\py27-windows\PC /Tcc/common/context.c /Fobin\temp.win-amd64-2.7\Release\c/common/context.obj context.c C:\Users\appveyor\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Ic/include -IC:\projects\scapy\.tox\py27-windows\include -IC:\projects\scapy\.tox\py27-windows\PC /Tcc/common/dictionary.c /Fobin\temp.win-amd64-2.7\Release\c/common/dictionary.obj dictionary.c C:\Users\appveyor\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Ic/include -IC:\projects\scapy\.tox\py27-windows\include -IC:\projects\scapy\.tox\py27-windows\PC /Tcc/common/platform.c /Fobin\temp.win-amd64-2.7\Release\c/common/platform.obj platform.c C:\Users\appveyor\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Ic/include -IC:\projects\scapy\.tox\py27-windows\include -IC:\projects\scapy\.tox\py27-windows\PC /Tcc/common/transform.c /Fobin\temp.win-amd64-2.7\Release\c/common/transform.obj transform.c C:\Users\appveyor\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Ic/include -IC:\projects\scapy\.tox\py27-windows\include -IC:\projects\scapy\.tox\py27-windows\PC /Tcc/dec/bit_reader.c /Fobin\temp.win-amd64-2.7\Release\c/dec/bit_reader.obj bit_reader.c C:\Users\appveyor\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Ic/include -IC:\projects\scapy\.tox\py27-windows\include -IC:\projects\scapy\.tox\py27-windows\PC /Tcc/dec/decode.c /Fobin\temp.win-amd64-2.7\Release\c/dec/decode.obj decode.c C:\Users\appveyor\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Ic/include -IC:\projects\scapy\.tox\py27-windows\include -IC:\projects\scapy\.tox\py27-windows\PC /Tcc/dec/huffman.c /Fobin\temp.win-amd64-2.7\Release\c/dec/huffman.obj huffman.c C:\Users\appveyor\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Ic/include -IC:\projects\scapy\.tox\py27-windows\include -IC:\projects\scapy\.tox\py27-windows\PC /Tcc/dec/state.c /Fobin\temp.win-amd64-2.7\Release\c/dec/state.obj state.c C:\Users\appveyor\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Ic/include -IC:\projects\scapy\.tox\py27-windows\include -IC:\projects\scapy\.tox\py27-windows\PC /Tcc/enc/backward_references.c /Fobin\temp.win-amd64-2.7\Release\c/enc/backward_references.obj backward_references.c c:\users\appveyor\appdata\local\temp\1\pip-install-6b28ed\brotli\c\enc\./find_match_length.h(34) : warning C4013: '_tzcnt_u64' undefined; assuming extern returning int C:\Users\appveyor\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Ic/include -IC:\projects\scapy\.tox\py27-windows\include -IC:\projects\scapy\.tox\py27-windows\PC /Tcc/enc/backward_references_hq.c /Fobin\temp.win-amd64-2.7\Release\c/enc/backward_references_hq.obj backward_references_hq.c c:\users\appveyor\appdata\local\temp\1\pip-install-6b28ed\brotli\c\enc\./find_match_length.h(34) : warning C4013: '_tzcnt_u64' undefined; assuming extern returning int C:\Users\appveyor\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Ic/include -IC:\projects\scapy\.tox\py27-windows\include -IC:\projects\scapy\.tox\py27-windows\PC /Tcc/enc/bit_cost.c /Fobin\temp.win-amd64-2.7\Release\c/enc/bit_cost.obj bit_cost.c C:\Users\appveyor\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Ic/include -IC:\projects\scapy\.tox\py27-windows\include -IC:\projects\scapy\.tox\py27-windows\PC /Tcc/enc/block_splitter.c /Fobin\temp.win-amd64-2.7\Release\c/enc/block_splitter.obj block_splitter.c C:\Users\appveyor\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Ic/include -IC:\projects\scapy\.tox\py27-windows\include -IC:\projects\scapy\.tox\py27-windows\PC /Tcc/enc/brotli_bit_stream.c /Fobin\temp.win-amd64-2.7\Release\c/enc/brotli_bit_stream.obj brotli_bit_stream.c C:\Users\appveyor\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Ic/include -IC:\projects\scapy\.tox\py27-windows\include -IC:\projects\scapy\.tox\py27-windows\PC /Tcc/enc/cluster.c /Fobin\temp.win-amd64-2.7\Release\c/enc/cluster.obj cluster.c C:\Users\appveyor\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Ic/include -IC:\projects\scapy\.tox\py27-windows\include -IC:\projects\scapy\.tox\py27-windows\PC /Tcc/enc/command.c /Fobin\temp.win-amd64-2.7\Release\c/enc/command.obj command.c C:\Users\appveyor\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Ic/include -IC:\projects\scapy\.tox\py27-windows\include -IC:\projects\scapy\.tox\py27-windows\PC /Tcc/enc/compress_fragment.c /Fobin\temp.win-amd64-2.7\Release\c/enc/compress_fragment.obj compress_fragment.c c:\users\appveyor\appdata\local\temp\1\pip-install-6b28ed\brotli\c\enc\./find_match_length.h(34) : warning C4013: '_tzcnt_u64' undefined; assuming extern returning int C:\Users\appveyor\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Ic/include -IC:\projects\scapy\.tox\py27-windows\include -IC:\projects\scapy\.tox\py27-windows\PC /Tcc/enc/compress_fragment_two_pass.c /Fobin\temp.win-amd64-2.7\Release\c/enc/compress_fragment_two_pass.obj compress_fragment_two_pass.c c:\users\appveyor\appdata\local\temp\1\pip-install-6b28ed\brotli\c\enc\./find_match_length.h(34) : warning C4013: '_tzcnt_u64' undefined; assuming extern returning int C:\Users\appveyor\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Ic/include -IC:\projects\scapy\.tox\py27-windows\include -IC:\projects\scapy\.tox\py27-windows\PC /Tcc/enc/dictionary_hash.c /Fobin\temp.win-amd64-2.7\Release\c/enc/dictionary_hash.obj dictionary_hash.c C:\Users\appveyor\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Ic/include -IC:\projects\scapy\.tox\py27-windows\include -IC:\projects\scapy\.tox\py27-windows\PC /Tcc/enc/encode.c /Fobin\temp.win-amd64-2.7\Release\c/enc/encode.obj encode.c c:\users\appveyor\appdata\local\temp\1\pip-install-6b28ed\brotli\c\enc\./find_match_length.h(34) : warning C4013: '_tzcnt_u64' undefined; assuming extern returning int C:\Users\appveyor\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Ic/include -IC:\projects\scapy\.tox\py27-windows\include -IC:\projects\scapy\.tox\py27-windows\PC /Tcc/enc/encoder_dict.c /Fobin\temp.win-amd64-2.7\Release\c/enc/encoder_dict.obj encoder_dict.c c:\users\appveyor\appdata\local\temp\1\pip-install-6b28ed\brotli\c\enc\./find_match_length.h(34) : warning C4013: '_tzcnt_u64' undefined; assuming extern returning int C:\Users\appveyor\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Ic/include -IC:\projects\scapy\.tox\py27-windows\include -IC:\projects\scapy\.tox\py27-windows\PC /Tcc/enc/entropy_encode.c /Fobin\temp.win-amd64-2.7\Release\c/enc/entropy_encode.obj entropy_encode.c C:\Users\appveyor\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Ic/include -IC:\projects\scapy\.tox\py27-windows\include -IC:\projects\scapy\.tox\py27-windows\PC /Tcc/enc/fast_log.c /Fobin\temp.win-amd64-2.7\Release\c/enc/fast_log.obj fast_log.c C:\Users\appveyor\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Ic/include -IC:\projects\scapy\.tox\py27-windows\include -IC:\projects\scapy\.tox\py27-windows\PC /Tcc/enc/histogram.c /Fobin\temp.win-amd64-2.7\Release\c/enc/histogram.obj histogram.c C:\Users\appveyor\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Ic/include -IC:\projects\scapy\.tox\py27-windows\include -IC:\projects\scapy\.tox\py27-windows\PC /Tcc/enc/literal_cost.c /Fobin\temp.win-amd64-2.7\Release\c/enc/literal_cost.obj literal_cost.c C:\Users\appveyor\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Ic/include -IC:\projects\scapy\.tox\py27-windows\include -IC:\projects\scapy\.tox\py27-windows\PC /Tcc/enc/memory.c /Fobin\temp.win-amd64-2.7\Release\c/enc/memory.obj memory.c C:\Users\appveyor\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Ic/include -IC:\projects\scapy\.tox\py27-windows\include -IC:\projects\scapy\.tox\py27-windows\PC /Tcc/enc/metablock.c /Fobin\temp.win-amd64-2.7\Release\c/enc/metablock.obj metablock.c C:\Users\appveyor\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Ic/include -IC:\projects\scapy\.tox\py27-windows\include -IC:\projects\scapy\.tox\py27-windows\PC /Tcc/enc/static_dict.c /Fobin\temp.win-amd64-2.7\Release\c/enc/static_dict.obj static_dict.c c:\users\appveyor\appdata\local\temp\1\pip-install-6b28ed\brotli\c\enc\./find_match_length.h(34) : warning C4013: '_tzcnt_u64' undefined; assuming extern returning int C:\Users\appveyor\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Ic/include -IC:\projects\scapy\.tox\py27-windows\include -IC:\projects\scapy\.tox\py27-windows\PC /Tcc/enc/utf8_util.c /Fobin\temp.win-amd64-2.7\Release\c/enc/utf8_util.obj utf8_util.c creating bin\temp.win-amd64-2.7\Release\python C:\Users\appveyor\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Ic/include -IC:\projects\scapy\.tox\py27-windows\include -IC:\projects\scapy\.tox\py27-windows\PC /Tppython/_brotli.cc /Fobin\temp.win-amd64-2.7\Release\python/_brotli.obj /EHsc _brotli.cc C:\Users\appveyor\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\link.exe /DLL /nologo /INCREMENTAL:NO /LIBPATH:C:\projects\scapy\.tox\py27-windows\libs /LIBPATH:C:\projects\scapy\.tox\py27-windows\PCbuild\amd64 /LIBPATH:C:\projects\scapy\.tox\py27-windows\PC\VS9.0\amd64 /EXPORT:init_brotli bin\temp.win-amd64-2.7\Release\c/common/constants.obj bin\temp.win-amd64-2.7\Release\c/common/context.obj bin\temp.win-amd64-2.7\Release\c/common/dictionary.obj bin\temp.win-amd64-2.7\Release\c/common/platform.obj bin\temp.win-amd64-2.7\Release\c/common/transform.obj bin\temp.win-amd64-2.7\Release\c/dec/bit_reader.obj bin\temp.win-amd64-2.7\Release\c/dec/decode.obj bin\temp.win-amd64-2.7\Release\c/dec/huffman.obj bin\temp.win-amd64-2.7\Release\c/dec/state.obj bin\temp.win-amd64-2.7\Release\c/enc/backward_references.obj bin\temp.win-amd64-2.7\Release\c/enc/backward_references_hq.obj bin\temp.win-amd64-2.7\Release\c/enc/bit_cost.obj bin\temp.win-amd64-2.7\Release\c/enc/block_splitter.obj bin\temp.win-amd64-2.7\Release\c/enc/brotli_bit_stream.obj bin\temp.win-amd64-2.7\Release\c/enc/cluster.obj bin\temp.win-amd64-2.7\Release\c/enc/command.obj bin\temp.win-amd64-2.7\Release\c/enc/compress_fragment.obj bin\temp.win-amd64-2.7\Release\c/enc/compress_fragment_two_pass.obj bin\temp.win-amd64-2.7\Release\c/enc/dictionary_hash.obj bin\temp.win-amd64-2.7\Release\c/enc/encode.obj bin\temp.win-amd64-2.7\Release\c/enc/encoder_dict.obj bin\temp.win-amd64-2.7\Release\c/enc/entropy_encode.obj bin\temp.win-amd64-2.7\Release\c/enc/fast_log.obj bin\temp.win-amd64-2.7\Release\c/enc/histogram.obj bin\temp.win-amd64-2.7\Release\c/enc/literal_cost.obj bin\temp.win-amd64-2.7\Release\c/enc/memory.obj bin\temp.win-amd64-2.7\Release\c/enc/metablock.obj bin\temp.win-amd64-2.7\Release\c/enc/static_dict.obj bin\temp.win-amd64-2.7\Release\c/enc/utf8_util.obj bin\temp.win-amd64-2.7\Release\python/_brotli.obj /OUT:bin\lib.win-amd64-2.7\_brotli.pyd /IMPLIB:bin\temp.win-amd64-2.7\Release\c/common\_brotli.lib /MANIFESTFILE:bin\temp.win-amd64-2.7\Release\c/common\_brotli.pyd.manifest _brotli.obj : warning LNK4197: export 'init_brotli' specified multiple times; using first specification Creating library bin\temp.win-amd64-2.7\Release\c/common\_brotli.lib and object bin\temp.win-amd64-2.7\Release\c/common\_brotli.exp encode.obj : error LNK2001: unresolved external symbol _tzcnt_u64 static_dict.obj : error LNK2001: unresolved external symbol _tzcnt_u64 backward_references.obj : error LNK2019: unresolved external symbol _tzcnt_u64 referenced in function FindMatchLengthWithLimit backward_references_hq.obj : error LNK2001: unresolved external symbol _tzcnt_u64 compress_fragment.obj : error LNK2001: unresolved external symbol _tzcnt_u64 compress_fragment_two_pass.obj : error LNK2001: unresolved external symbol _tzcnt_u64 bin\lib.win-amd64-2.7\_brotli.pyd : fatal error LNK1120: 1 unresolved externals error: command 'C:\\Users\\appveyor\\AppData\\Local\\Programs\\Common\\Microsoft\\Visual C++ for Python\\9.0\\VC\\Bin\\amd64\\link.exe' failed with exit status 1120 ---------------------------------------- ERROR: Command errored out with exit status 1: 'C:\projects\scapy\.tox\py27-windows\Scripts\python.EXE' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'c:\\users\\appveyor\\appdata\\local\\temp\\1\\pip-install-6b28ed\\brotli\\setup.py'"'"'; __file__='"'"'c:\\users\\appveyor\\appdata\\local\\temp\\1\\pip-install-6b28ed\\brotli\\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\appveyor\appdata\local\temp\1\pip-record-zo923q\install-record.txt' --single-version-externally-managed --compile --install-headers 'C:\projects\scapy\.tox\py27-windows\include\site\python2.7\brotli' Check the logs for full command output. ``` Full error logs: https://ci.appveyor.com/project/secdev/scapy/branch/master/job/qesqgvj3e69onb48 </details> Those builds are using Appveyor. Pinning 1.0.7 fixes the issue (https://github.com/secdev/scapy/pull/2790) Has Windows Python 2.7 support been dropped, is it an issue on our side (updated dependencies?) or is that a bug ? Thanks for the support !
Author
Owner

@eustas commented on GitHub (Sep 1, 2020):

Yes, it looks like problem with MSVC (unresolved external symbol _tzcnt_u64)
In #636 _tzcnt_u64 is used for X64 architecture for MSVC 12+...
It seems that "Visual C++ for Python\9.0" lies about its capabilities.

@eustas commented on GitHub (Sep 1, 2020): Yes, it looks like problem with MSVC (`unresolved external symbol _tzcnt_u64`) In #636 `_tzcnt_u64` is used for X64 architecture for MSVC 12+... It seems that "Visual C++ for Python\9.0" lies about its capabilities.
Author
Owner

@gpotter2 commented on GitHub (Sep 1, 2020):

If it's too much work, you can probably just drop support for 2.7 but you'll need to update pypi to reflect that in the versioning.
It doesn't really matter to us (but maybe it does to some people?)

@gpotter2 commented on GitHub (Sep 1, 2020): If it's too much work, you can *probably* just drop support for 2.7 but you'll need to update pypi to reflect that in the versioning. It doesn't really matter to us (but maybe it does to some people?)
Author
Owner

@saucecontrol commented on GitHub (Sep 1, 2020):

@gpotter2 do you know what _MSC_VER is set to in Visual C++ for Python\9.0?

All appearances -- including the system requirements on the download page -- would seem to indicate it is actually a version of VS 9 (VS 2008), so it should not be passing the check for MSVC 12+.

@saucecontrol commented on GitHub (Sep 1, 2020): @gpotter2 do you know what `_MSC_VER` is set to in Visual C++ for Python\9.0? All appearances -- including the system requirements on the [download page](https://www.microsoft.com/en-us/download/details.aspx?id=44266) -- would seem to indicate it is actually a version of VS 9 (VS 2008), so it should not be passing the check for MSVC 12+.
Author
Owner

@eustas commented on GitHub (Sep 2, 2020):

A quick fix would be to add -DBROTLI_BUILD_32_BIT compilation flag. However this will negatively affect performance.

@eustas commented on GitHub (Sep 2, 2020): A quick fix would be to add `-DBROTLI_BUILD_32_BIT` compilation flag. However this will negatively affect performance.
Author
Owner

@gpotter2 commented on GitHub (Sep 2, 2020):

Correct me if I'm wrong, according to https://dev.to/yumetodo/list-of-mscver-and-mscfullver-8nd (or the wikipedia page) it would mean VC C++ 9.0 gets

_MSC_VER = 1500
_MSC_FULL_VER = 150021022

So if you use
f1124c8524/c/include/brotli/port.h (L51-L53) and
b4077b8070/c/common/platform.h (L44)

You would get 12 * 10000000 + 0 + 0 = 120000000 < 150021022 -> True

@gpotter2 commented on GitHub (Sep 2, 2020): Correct me if I'm wrong, according to https://dev.to/yumetodo/list-of-mscver-and-mscfullver-8nd (or the [wikipedia page](https://en.wikipedia.org/wiki/Microsoft_Visual_C%2B%2B#Internal_version_numbering)) it would mean VC C++ 9.0 gets ``` _MSC_VER = 1500 _MSC_FULL_VER = 150021022 ``` So if you use https://github.com/google/brotli/blob/f1124c8524647932a72b17eedf03c6ed5676fc44/c/include/brotli/port.h#L51-L53 and https://github.com/google/brotli/blob/b4077b80700c5ad9f3a64ddc4a190458a42b98d4/c/common/platform.h#L44 You would get `12 * 10000000 + 0 + 0 = 120000000 < 150021022` -> `True`
Author
Owner

@saucecontrol commented on GitHub (Sep 3, 2020):

Yeah, you're right. BROTLI_MSVC_VERSION_CHECK doesn't work at all the way I thought it did.

@eustas would you prefer to update BROTLI_MSVC_VERSION_CHECK to work on actual MSVC version, or should I update the usages of it to match the _MSC_VER values instead of MSVC version?

@saucecontrol commented on GitHub (Sep 3, 2020): Yeah, you're right. `BROTLI_MSVC_VERSION_CHECK` doesn't work at all the way I thought it did. @eustas would you prefer to update `BROTLI_MSVC_VERSION_CHECK` to work on actual MSVC version, or should I update the usages of it to match the `_MSC_VER` values instead of MSVC version?
Author
Owner

@tlorometrics commented on GitHub (Sep 8, 2020):

was trying to install Dash to play with plot.ly and stumbled on this exact issue. Eventually found it here, explains why I couldn't find a fix in my googling :) I have been delaying the upgrade to python3 to avoid reworking any scripts so appreciate any fix y'all can come up with here.

EDIT: installing 1.0.8 failed with the same issue but installing 1.0.7 allowed dash to be installed and appears to be working.

@tlorometrics commented on GitHub (Sep 8, 2020): was trying to install Dash to play with plot.ly and stumbled on this exact issue. Eventually found it here, explains why I couldn't find a fix in my googling :) I have been delaying the upgrade to python3 to avoid reworking any scripts so appreciate any fix y'all can come up with here. EDIT: installing 1.0.8 failed with the same issue but installing 1.0.7 allowed dash to be installed and appears to be working.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/brotli#342