espressif setup: the install.bat file failed - installation

I'm using:
Windows 10 64
Python 2.7.16
Git 2.21.0
Cmake 3.15.1
Ninja 1.10.1
MConf V4.6.0.0-idf-20190628
Toolchain xtensa-esp32-elf-gcc8_2_0-esp32-2019r1-win32 (zip file)
To the PATH variable I added these paths:
C:\esp\cmake\bin
C:\Program Files\Git\bin
C:\Python27
C:\Python27\Scripts
C:\esp\toolchain\xtensa-esp32-elf\bin
C:\esp\mconf-v4.6.0.0-idf-20190628-win32
C:\esp\esp-idf\tools
C:\esp\cmake
I have created a new variable IDF_PATH with one path:
C:\esp\esp-idf
I have installed pip with python get-pip.py
When I'm running the install.bat file in the C:\esp\esp-idf order, I receive a failure (See image).install.bat logdata
The first time I ran it. The zip file xtensa-esp32s2-elf-gcc8_4_0-esp-2020r3-win64 could not be extracted/read completely. Now it is skipped because it was already done. That's the reason why I can't show the logdata (had closed the DOS). Or does anyone have an idea how to reproduce it or to see the log data of a closed command prompt ?
According to these logdata I have to install Microsoft Visual C++ 9.0. So if I install it, that does not fix it, or I have a second problem.
Here the logdata after installing Microsoft Visual C++ 9.0.
Building wheels for collected packages: esp-windows-curses, brotli
Building wheel for esp-windows-curses (setup.py) ... done
Created wheel for esp-windows-curses: filename=esp_windows_curses-0.1-py2-none-any.whl size=1186 sha256=f3d20e95c244846be0065eb4fb20dd2e0b0bfeb2b42bd3fb50487ccb37e77e80
Stored in directory: c:\users\antoine schnetz\appdata\local\pip\cache\wheels\6b\23\dc\3f08e5d8e20335c3a015cb544ae35ed0220a6ef91fad289528
Building wheel for brotli (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: 'C:\Users\Antoine Schnetz\.espressif\python_env\idf4.3_py2.7_env\Scripts\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'c:\\users\\antoin~1\\appdata\\local\\temp\\pip-install-0skvpo\\brotli\\setup.py'"'"'; __file__='"'"'c:\\users\\antoin~1\\appdata\\local\\temp\\pip-install-0skvpo\\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\antoin~1\appdata\local\temp\pip-wheel-bfvqex'
cwd: c:\users\antoin~1\appdata\local\temp\pip-install-0skvpo\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\Antoine Schnetz\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:\Users\Antoine Schnetz\.espressif\python_env\idf4.3_py2.7_env\include" "-IC:\Users\Antoine Schnetz\.espressif\python_env\idf4.3_py2.7_env\PC" /Tcc/common/constants.c /Fobin\temp.win-amd64-2.7\Release\c/common/constants.obj
constants.c
C:\Users\Antoine Schnetz\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:\Users\Antoine Schnetz\.espressif\python_env\idf4.3_py2.7_env\include" "-IC:\Users\Antoine Schnetz\.espressif\python_env\idf4.3_py2.7_env\PC" /Tcc/common/context.c /Fobin\temp.win-amd64-2.7\Release\c/common/context.obj
context.c
C:\Users\Antoine Schnetz\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:\Users\Antoine Schnetz\.espressif\python_env\idf4.3_py2.7_env\include" "-IC:\Users\Antoine Schnetz\.espressif\python_env\idf4.3_py2.7_env\PC" /Tcc/common/dictionary.c /Fobin\temp.win-amd64-2.7\Release\c/common/dictionary.obj
dictionary.c
C:\Users\Antoine Schnetz\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:\Users\Antoine Schnetz\.espressif\python_env\idf4.3_py2.7_env\include" "-IC:\Users\Antoine Schnetz\.espressif\python_env\idf4.3_py2.7_env\PC" /Tcc/common/platform.c /Fobin\temp.win-amd64-2.7\Release\c/common/platform.obj
platform.c
C:\Users\Antoine Schnetz\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:\Users\Antoine Schnetz\.espressif\python_env\idf4.3_py2.7_env\include" "-IC:\Users\Antoine Schnetz\.espressif\python_env\idf4.3_py2.7_env\PC" /Tcc/common/transform.c /Fobin\temp.win-amd64-2.7\Release\c/common/transform.obj
transform.c
C:\Users\Antoine Schnetz\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:\Users\Antoine Schnetz\.espressif\python_env\idf4.3_py2.7_env\include" "-IC:\Users\Antoine Schnetz\.espressif\python_env\idf4.3_py2.7_env\PC" /Tcc/dec/bit_reader.c /Fobin\temp.win-amd64-2.7\Release\c/dec/bit_reader.obj
bit_reader.c
C:\Users\Antoine Schnetz\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:\Users\Antoine Schnetz\.espressif\python_env\idf4.3_py2.7_env\include" "-IC:\Users\Antoine Schnetz\.espressif\python_env\idf4.3_py2.7_env\PC" /Tcc/dec/decode.c /Fobin\temp.win-amd64-2.7\Release\c/dec/decode.obj
decode.c
C:\Users\Antoine Schnetz\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:\Users\Antoine Schnetz\.espressif\python_env\idf4.3_py2.7_env\include" "-IC:\Users\Antoine Schnetz\.espressif\python_env\idf4.3_py2.7_env\PC" /Tcc/dec/huffman.c /Fobin\temp.win-amd64-2.7\Release\c/dec/huffman.obj
huffman.c
C:\Users\Antoine Schnetz\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:\Users\Antoine Schnetz\.espressif\python_env\idf4.3_py2.7_env\include" "-IC:\Users\Antoine Schnetz\.espressif\python_env\idf4.3_py2.7_env\PC" /Tcc/dec/state.c /Fobin\temp.win-amd64-2.7\Release\c/dec/state.obj
state.c
C:\Users\Antoine Schnetz\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:\Users\Antoine Schnetz\.espressif\python_env\idf4.3_py2.7_env\include" "-IC:\Users\Antoine Schnetz\.espressif\python_env\idf4.3_py2.7_env\PC" /Tcc/enc/backward_references.c /Fobin\temp.win-amd64-2.7\Release\c/enc/backward_references.obj
backward_references.c
c:\users\antoine schnetz\appdata\local\temp\pip-install-0skvpo\brotli\c\enc\./find_match_length.h(34) : warning C4013: '_tzcnt_u64' undefined; assuming extern returning int
C:\Users\Antoine Schnetz\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:\Users\Antoine Schnetz\.espressif\python_env\idf4.3_py2.7_env\include" "-IC:\Users\Antoine Schnetz\.espressif\python_env\idf4.3_py2.7_env\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\antoine schnetz\appdata\local\temp\pip-install-0skvpo\brotli\c\enc\./find_match_length.h(34) : warning C4013: '_tzcnt_u64' undefined; assuming extern returning int
C:\Users\Antoine Schnetz\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:\Users\Antoine Schnetz\.espressif\python_env\idf4.3_py2.7_env\include" "-IC:\Users\Antoine Schnetz\.espressif\python_env\idf4.3_py2.7_env\PC" /Tcc/enc/bit_cost.c /Fobin\temp.win-amd64-2.7\Release\c/enc/bit_cost.obj
bit_cost.c
C:\Users\Antoine Schnetz\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:\Users\Antoine Schnetz\.espressif\python_env\idf4.3_py2.7_env\include" "-IC:\Users\Antoine Schnetz\.espressif\python_env\idf4.3_py2.7_env\PC" /Tcc/enc/block_splitter.c /Fobin\temp.win-amd64-2.7\Release\c/enc/block_splitter.obj
block_splitter.c
C:\Users\Antoine Schnetz\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:\Users\Antoine Schnetz\.espressif\python_env\idf4.3_py2.7_env\include" "-IC:\Users\Antoine Schnetz\.espressif\python_env\idf4.3_py2.7_env\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\Antoine Schnetz\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:\Users\Antoine Schnetz\.espressif\python_env\idf4.3_py2.7_env\include" "-IC:\Users\Antoine Schnetz\.espressif\python_env\idf4.3_py2.7_env\PC" /Tcc/enc/cluster.c /Fobin\temp.win-amd64-2.7\Release\c/enc/cluster.obj
cluster.c
C:\Users\Antoine Schnetz\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:\Users\Antoine Schnetz\.espressif\python_env\idf4.3_py2.7_env\include" "-IC:\Users\Antoine Schnetz\.espressif\python_env\idf4.3_py2.7_env\PC" /Tcc/enc/command.c /Fobin\temp.win-amd64-2.7\Release\c/enc/command.obj
command.c
C:\Users\Antoine Schnetz\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:\Users\Antoine Schnetz\.espressif\python_env\idf4.3_py2.7_env\include" "-IC:\Users\Antoine Schnetz\.espressif\python_env\idf4.3_py2.7_env\PC" /Tcc/enc/compress_fragment.c /Fobin\temp.win-amd64-2.7\Release\c/enc/compress_fragment.obj
compress_fragment.c
c:\users\antoine schnetz\appdata\local\temp\pip-install-0skvpo\brotli\c\enc\./find_match_length.h(34) : warning C4013: '_tzcnt_u64' undefined; assuming extern returning int
C:\Users\Antoine Schnetz\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:\Users\Antoine Schnetz\.espressif\python_env\idf4.3_py2.7_env\include" "-IC:\Users\Antoine Schnetz\.espressif\python_env\idf4.3_py2.7_env\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\antoine schnetz\appdata\local\temp\pip-install-0skvpo\brotli\c\enc\./find_match_length.h(34) : warning C4013: '_tzcnt_u64' undefined; assuming extern returning int
C:\Users\Antoine Schnetz\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:\Users\Antoine Schnetz\.espressif\python_env\idf4.3_py2.7_env\include" "-IC:\Users\Antoine Schnetz\.espressif\python_env\idf4.3_py2.7_env\PC" /Tcc/enc/dictionary_hash.c /Fobin\temp.win-amd64-2.7\Release\c/enc/dictionary_hash.obj
dictionary_hash.c
C:\Users\Antoine Schnetz\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:\Users\Antoine Schnetz\.espressif\python_env\idf4.3_py2.7_env\include" "-IC:\Users\Antoine Schnetz\.espressif\python_env\idf4.3_py2.7_env\PC" /Tcc/enc/encode.c /Fobin\temp.win-amd64-2.7\Release\c/enc/encode.obj
encode.c
c:\users\antoine schnetz\appdata\local\temp\pip-install-0skvpo\brotli\c\enc\./find_match_length.h(34) : warning C4013: '_tzcnt_u64' undefined; assuming extern returning int
C:\Users\Antoine Schnetz\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:\Users\Antoine Schnetz\.espressif\python_env\idf4.3_py2.7_env\include" "-IC:\Users\Antoine Schnetz\.espressif\python_env\idf4.3_py2.7_env\PC" /Tcc/enc/encoder_dict.c /Fobin\temp.win-amd64-2.7\Release\c/enc/encoder_dict.obj
encoder_dict.c
c:\users\antoine schnetz\appdata\local\temp\pip-install-0skvpo\brotli\c\enc\./find_match_length.h(34) : warning C4013: '_tzcnt_u64' undefined; assuming extern returning int
C:\Users\Antoine Schnetz\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:\Users\Antoine Schnetz\.espressif\python_env\idf4.3_py2.7_env\include" "-IC:\Users\Antoine Schnetz\.espressif\python_env\idf4.3_py2.7_env\PC" /Tcc/enc/entropy_encode.c /Fobin\temp.win-amd64-2.7\Release\c/enc/entropy_encode.obj
entropy_encode.c
C:\Users\Antoine Schnetz\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:\Users\Antoine Schnetz\.espressif\python_env\idf4.3_py2.7_env\include" "-IC:\Users\Antoine Schnetz\.espressif\python_env\idf4.3_py2.7_env\PC" /Tcc/enc/fast_log.c /Fobin\temp.win-amd64-2.7\Release\c/enc/fast_log.obj
fast_log.c
C:\Users\Antoine Schnetz\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:\Users\Antoine Schnetz\.espressif\python_env\idf4.3_py2.7_env\include" "-IC:\Users\Antoine Schnetz\.espressif\python_env\idf4.3_py2.7_env\PC" /Tcc/enc/histogram.c /Fobin\temp.win-amd64-2.7\Release\c/enc/histogram.obj
histogram.c
C:\Users\Antoine Schnetz\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:\Users\Antoine Schnetz\.espressif\python_env\idf4.3_py2.7_env\include" "-IC:\Users\Antoine Schnetz\.espressif\python_env\idf4.3_py2.7_env\PC" /Tcc/enc/literal_cost.c /Fobin\temp.win-amd64-2.7\Release\c/enc/literal_cost.obj
literal_cost.c
C:\Users\Antoine Schnetz\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:\Users\Antoine Schnetz\.espressif\python_env\idf4.3_py2.7_env\include" "-IC:\Users\Antoine Schnetz\.espressif\python_env\idf4.3_py2.7_env\PC" /Tcc/enc/memory.c /Fobin\temp.win-amd64-2.7\Release\c/enc/memory.obj
memory.c
C:\Users\Antoine Schnetz\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:\Users\Antoine Schnetz\.espressif\python_env\idf4.3_py2.7_env\include" "-IC:\Users\Antoine Schnetz\.espressif\python_env\idf4.3_py2.7_env\PC" /Tcc/enc/metablock.c /Fobin\temp.win-amd64-2.7\Release\c/enc/metablock.obj
metablock.c
C:\Users\Antoine Schnetz\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:\Users\Antoine Schnetz\.espressif\python_env\idf4.3_py2.7_env\include" "-IC:\Users\Antoine Schnetz\.espressif\python_env\idf4.3_py2.7_env\PC" /Tcc/enc/static_dict.c /Fobin\temp.win-amd64-2.7\Release\c/enc/static_dict.obj
static_dict.c
c:\users\antoine schnetz\appdata\local\temp\pip-install-0skvpo\brotli\c\enc\./find_match_length.h(34) : warning C4013: '_tzcnt_u64' undefined; assuming extern returning int
C:\Users\Antoine Schnetz\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:\Users\Antoine Schnetz\.espressif\python_env\idf4.3_py2.7_env\include" "-IC:\Users\Antoine Schnetz\.espressif\python_env\idf4.3_py2.7_env\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\Antoine Schnetz\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:\Users\Antoine Schnetz\.espressif\python_env\idf4.3_py2.7_env\include" "-IC:\Users\Antoine Schnetz\.espressif\python_env\idf4.3_py2.7_env\PC" /Tppython/_brotli.cc /Fobin\temp.win-amd64-2.7\Release\python/_brotli.obj /EHsc
_brotli.cc
C:\Users\Antoine Schnetz\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\link.exe /DLL /nologo /INCREMENTAL:NO "/LIBPATH:C:\Users\Antoine Schnetz\.espressif\python_env\idf4.3_py2.7_env\libs" "/LIBPATH:C:\Users\Antoine Schnetz\.espressif\python_env\idf4.3_py2.7_env\PCbuild\amd64" "/LIBPATH:C:\Users\Antoine Schnetz\.espressif\python_env\idf4.3_py2.7_env\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\\Antoine Schnetz\\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
What am I doing wrong or what is missing on my computer ?
Thanks

Looks like a recent issue in brotli, see here.
In the mean time you should be able to install an older version. I hit this today and found that 1.0.7 works for me.
python -m pip install --user brotli==1.0.7

Related

VS2013 and CUDA 12 compatibility

Error 2 error MSB3721: The command ""C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.0\bin\nvcc.exe" -gencode=arch=compute_35,code="sm_35,compute_35" --use-local-env -ccbin "C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin\x86_amd64" -x cu -rdc=true -IInclude\cutil\inc -IC:\Users\fardin\BundleFusion2\BundleFusion\FriedLiver -ISource\DXUT\Optional -ISource\DXUT\Core -IInclude\Uplink -I"C:\Program Files (x86)\Intel RealSense SDK 2.0\include" -I"C:\Program Files (x86)\Intel RealSense SDK 2.0\third-party\" -I"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.0\include" -I"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.0\include" --keep-dir x64\Debug -maxrregcount=62 --machine 64 --compile -cudart static -g -DWIN32 -D_DEBUG -DDEBUG -DPROFILE -D_CONSOLE -DD3DXFX_LARGEADDRESS_HANDLE -D_CRT_SECURE_NO_WARNINGS -DNOMINMAX -D_UNICODE -DUNICODE -Xcompiler "/EHsc /W3 /nologo /Od /Fdx64\Debug\vc120.pdb /FS /Zi /RTC1 /MDd " -o C:\Users\fardin\BundleFusion2\BundleFusion\FriedLiver\x64\Debug\CUDAHistogramHashSDF.cu.obj "C:\Users\fardin\BundleFusion2\BundleFusion\FriedLiver\Source\DepthSensing\CUDAHistogramHashSDF.cu"" exited with code 1. C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\BuildCustomizations\CUDA 12.0.targets 794 9 FriedLiver
I ran into this issue when I was building my project. So I was wondering whether CUDA 12 is compatible with VS2013. I am on windows 11 so I can only download CUDA 12 and 11.6. Also I have both VS2013 and VS2019 but my project requires it to be used in VS2013
CUDA 12 is not compatible with VS2013.
If you attempt to run the CUDA 12 installer after installing VS2013, the CUDA 12 installer will ignore the VS2013 install, and not install necessary pieces to make the integration work.

How to upgrade the CUDA version in a Visual Studio solution?

Earlier I installed CUDA 9.2 on my machine and built a solution with it. Then I upgraded Visual Studio 2017 to a revision that is not supported by CUDA 9.2, so I'm getting errors like:
1>D:\Dev\Views\Engines\ProbQA\ProbQA\PqaCore>"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v9.2\bin\nvcc.exe" -gencode=arch=compute_61,code=\"sm_61,compute_61\" --use-local-env -ccbin "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\bin\HostX64\x64" -x cu -rdc=true -ID:\Dev\Views\Engines\ProbQA\ProbQA\PqaCore\ -I"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v9.2\include" -I"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v9.2\include" -I"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v9.2\include" --source-in-ptx -G -lineinfo --keep-dir x64\Debug -maxrregcount=32 --machine 64 --compile -cudart static -g -D_DEBUG -D_WINDOWS -D_USRDLL -DPQACORE_EXPORTS -D_WINDLL -D_UNICODE -DUNICODE -Xcompiler "/EHsc /W4 /nologo /Od /FS /Zi /RTC1 /MDd /GR" -o x64\Debug\CudaEngineGpu.cu.obj "D:\Dev\Views\Engines\ProbQA\ProbQA\PqaCore\CudaEngineGpu.cu"
1>c:\program files\nvidia gpu computing toolkit\cuda\v9.2\include\crt/host_config.h(133): fatal error C1189: #error: -- unsupported Microsoft Visual Studio version! Only the versions 2012, 2013, 2015 and 2017 are supported!
1>CUDACOMPILE : nvcc warning : '--device-debug (-G)' overrides '--generate-line-info (-lineinfo)'
1>CudaEngineGpu.cu
1>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\BuildCustomizations\CUDA 9.2.targets(707,9): error MSB3721: The command ""C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v9.2\bin\nvcc.exe" -gencode=arch=compute_61,code=\"sm_61,compute_61\" --use-local-env -ccbin "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\bin\HostX64\x64" -x cu -rdc=true -ID:\Dev\Views\Engines\ProbQA\ProbQA\PqaCore\ -I"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v9.2\include" -I"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v9.2\include" -I"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v9.2\include" --source-in-ptx -G -lineinfo --keep-dir x64\Debug -maxrregcount=32 --machine 64 --compile -cudart static -g -D_DEBUG -D_WINDOWS -D_USRDLL -DPQACORE_EXPORTS -D_WINDLL -D_UNICODE -DUNICODE -Xcompiler "/EHsc /W4 /nologo /Od /FS /Zi /RTC1 /MDd /GR" -o x64\Debug\CudaEngineGpu.cu.obj "D:\Dev\Views\Engines\ProbQA\ProbQA\PqaCore\CudaEngineGpu.cu"" exited with code 2.
I've installed CUDA 10.0 that claims to be compatible with VS2017 Update 8 and any later versions. However, my solution still uses CUDA 9.2.
How to upgrade the solution to CUDA 10.0? Can I do this from GUI somewhere, or do I have to edit project files and something else?
You have two ways to upgrade the CUDA version in a Visual Studio solution:
Build dependencies -> Build customizations;
Open the vcxproj file associated to the Visual Studio solution and change 9.2 to 10.0 wherever 9.2 occurs.

Linking against SHARED library on Windows [duplicate]

This question already has an answer here:
CMake linking against shared library on windows: error about not finding .lib file
(1 answer)
Closed 4 years ago.
I'm a bit puzzled by the way that CMake deals with library linking on Windows machine. Below I have a simple CMakeLists.txt file:
cmake_minimum_required (VERSION 3.10)
project (sample)
add_library (quad SHARED quad.cpp)
add_executable (run main.cpp)
target_link_libraries (run PRIVATE quad)
On a Linux/Mac machine, CMake correctly builds the *.so/*.dylib libraries and links the executable against the *.so/*.dylib files. However on a Windows machine it builds the *.dll file and then attempts to link against a *.lib file.
Underneath the hood CMake executes the following command:
>------ Build started: Project: CMakeLists, Configuration: Debug ------
[1/4] C:\PROGRA~2\MICROS~1\2017\COMMUN~1\VC\Tools\MSVC\1415~1.267\bin\HostX64\x64\cl.exe /nologo /TP -Dquad_EXPORTS /DWIN32 /D_WINDOWS /W3 /GR /EHsc /MDd /Zi /Ob0 /Od /RTC1 /showIncludes /FoCMakeFiles\quad.dir\quad.cpp.obj /FdCMakeFiles\quad.dir\ /FS -c C:\Users\UX\Workspace\sample\quad.cpp
[2/4] C:\PROGRA~2\MICROS~1\2017\COMMUN~1\VC\Tools\MSVC\1415~1.267\bin\HostX64\x64\cl.exe /nologo /TP /DWIN32 /D_WINDOWS /W3 /GR /EHsc /MDd /Zi /Ob0 /Od /RTC1 /showIncludes /FoCMakeFiles\run.dir\main.cpp.obj /FdCMakeFiles\run.dir\ /FS -c C:\Users\UX\Workspace\sample\main.cpp
[3/4] cmd.exe /C "cd . && "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin\cmake.exe" -E vs_link_dll --intdir=CMakeFiles\quad.dir --manifests -- C:\PROGRA~2\MICROS~1\2017\COMMUN~1\VC\Tools\MSVC\1415~1.267\bin\Hostx64\x64\link.exe /nologo CMakeFiles\quad.dir\quad.cpp.obj /out:quad.dll /implib:quad.lib /pdb:quad.pdb /dll /version:0.0 /machine:x64 /debug /INCREMENTAL kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib && cd ."
[4/4] cmd.exe /C "cd . && "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin\cmake.exe" -E vs_link_exe --intdir=CMakeFiles\run.dir --manifests -- C:\PROGRA~2\MICROS~1\2017\COMMUN~1\VC\Tools\MSVC\1415~1.267\bin\Hostx64\x64\link.exe /nologo CMakeFiles\run.dir\main.cpp.obj /out:run.exe /implib:run.lib /pdb:run.pdb /version:0.0 /machine:x64 /debug /INCREMENTAL /subsystem:console quad.lib kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib && cd ."
FAILED: run.exe
cmd.exe /C "cd . && "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin\cmake.exe" -E vs_link_exe --intdir=CMakeFiles\run.dir --manifests -- C:\PROGRA~2\MICROS~1\2017\COMMUN~1\VC\Tools\MSVC\1415~1.267\bin\Hostx64\x64\link.exe /nologo CMakeFiles\run.dir\main.cpp.obj /out:run.exe /implib:run.lib /pdb:run.pdb /version:0.0 /machine:x64 /debug /INCREMENTAL /subsystem:console quad.lib kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib && cd ."
LINK Pass 1: command "C:\PROGRA~2\MICROS~1\2017\COMMUN~1\VC\Tools\MSVC\1415~1.267\bin\Hostx64\x64\link.exe /nologo CMakeFiles\run.dir\main.cpp.obj /out:run.exe /implib:run.lib /pdb:run.pdb /version:0.0 /machine:x64 /debug /INCREMENTAL /subsystem:console quad.lib kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib /MANIFEST /MANIFESTFILE:CMakeFiles\run.dir/intermediate.manifest CMakeFiles\run.dir/manifest.res" failed (exit code 1104) with the following output:
C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\LINK : fatal error LNK1104: cannot open file 'quad.lib'
ninja: build stopped: subcommand failed.
Build failed.
My question is why does it fail on Windows when the CMake documentation states the following:
target_link_libraries(<target>
<PRIVATE|PUBLIC|INTERFACE> <item>...
[<PRIVATE|PUBLIC|INTERFACE> <item>...]...)
Where item can be A library target name? Shouldn't it have enough information from the target's properties to identify the full path to the compiled library as well as its type (i.e. SHARED) to be able to properly link the executable?
This is how linking works in Windows. You need a foo.lib file to link to foo.dll library. This .lib is produced when .dll itself is linked. You have to distribute .lib files together with library headers.

Build Qt for Visual Studio

I searched the Web for few days now, for how to build Qt 4.8.6 for Visual Studio 2012. I am using Windows 10 x64.
I tried following:
Enviroment Variables:
QTDIR=c:\Qt\4.8.6
Path=%QTDIR%\bin
QMAKESPEC=%QTDIR%\mkspecs\win32-msvc2012
Visual Studio Native Tools Command Prompt:
cd c:\Qt\4.8.6
nmake confclean
configure -no-webkit -debug-and-release -opensource -platform win32-msvc2012
jom -j 8
But I always get Error-Codes: (last few lines)
cl -c -nologo -Zm200 -Zc:wchar_t- -O2 -MD -GR -EHsc -W3 -w34100 -w34189 -DUNICODE -DWIN32 -DQT_DLL -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_HAVE_MMX -DQT_HAVE_3DNOW -DQT_HAVE_SSE -DQT_HAVE_MMXEXT -DQT_HAVE_SSE2 -DQT_THREAD_SUPPORT -DNDEBUG -I"..\..\..\include\QtCore" -I"..\..\..\include\QtGui" -I"..\..\..\include" -I"..\..\..\include\ActiveQt" -I"tmp\moc\release_shared" -I"..\..\..\mkspecs\win32-msvc2012" -Fotmp\obj\release_shared\ #C:\Users\HONIAH~1\AppData\Local\Temp\moc_mainwindow.obj.146576.5359.jom
moc_mainwindow.cpp
link /LIBPATH:"c:\Qt\4.8.6\lib" /LIBPATH:"c:\Qt\4.8.6\lib" /NOLOGO /DYNAMICBASE /NXCOMPAT /INCREMENTAL:NO /SUBSYSTEM:WINDOWS "/MANIFESTDEPENDENCY:type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' publicKeyToken='6595b64144ccf1df' language='*' processorArchitecture='*'" /OUT:release\undoframework.exe #C:\Users\HONIAH~1\AppData\Local\Temp\undoframework.exe.146576.7484.jom
jom: C:\Qt\4.8.6\Makefile [sub-examples-make_default-ordered] Error 2

"fatal error : Failed to open output file" when compiling CUDA programs under Win 7

whenever I try to compile a CUDA program (even the samples) on Windows 7 (64 Bit), using VisualStudio 2010 and CUDA 5.0, I get the error message below and nvcc crashes:
1>------ Erstellen gestartet: Projekt: vectorAdd, Konfiguration: Debug x64 ------
1> Compiling CUDA source file vectorAdd.cu...
1>
1> C:\ProgramData\NVIDIA Corporation\CUDA Samples\v5.0\0_Simple\vectorAdd>"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v5.0\bin\nvcc.exe" -gencode=arch=compute_10,code=\"sm_10,compute_10\" -gencode=arch=compute_20,code=\"sm_20,compute_20\" -gencode=arch=compute_30,code=\"sm_30,compute_30\" -gencode=arch=compute_35,code=\"sm_35,compute_35\" --use-local-env --cl-version 2010 -ccbin "c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin\x86_amd64" -I"../../common/inc" -I"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v5.0\include" -I"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v5.0\include" -G --keep-dir "x64\Debug" -maxrregcount=0 --machine 64 --compile -g -DWIN32 -D_MBCS -Xcompiler "/EHsc /W3 /nologo /Od /Zi /RTC1 /MTd " -o "x64/Debug/vectorAdd.cu.obj" "C:\ProgramData\NVIDIA Corporation\CUDA Samples\v5.0\0_Simple\vectorAdd\vectorAdd.cu"
1>nvcc : fatal error : Failed to open output file 'C:\Users\<MY_USERNAME>\AppData\Local\Temp;"C:\Windows\winsxs"/tmpxft_00001d24_00000000'
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\BuildCustomizations\CUDA 5.0.targets(592,9): error MSB3721: Der Befehl ""C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v5.0\bin\nvcc.exe" -gencode=arch=compute_10,code=\"sm_10,compute_10\" -gencode=arch=compute_20,code=\"sm_20,compute_20\" -gencode=arch=compute_30,code=\"sm_30,compute_30\" -gencode=arch=compute_35,code=\"sm_35,compute_35\" --use-local-env --cl-version 2010 -ccbin "c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin\x86_amd64" -I"../../common/inc" -I"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v5.0\include" -I"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v5.0\include" -G --keep-dir "x64\Debug" -maxrregcount=0 --machine 64 --compile -g -DWIN32 -D_MBCS -Xcompiler "/EHsc /W3 /nologo /Od /Zi /RTC1 /MTd " -o "x64/Debug/vectorAdd.cu.obj" "C:\ProgramData\NVIDIA Corporation\CUDA Samples\v5.0\0_Simple\vectorAdd\vectorAdd.cu"" wurde mit Code -1073741819 beendet.
========== Erstellen: 0 erfolgreich, Fehler bei 1, 0 aktuell, 0 übersprungen ==========
This error also occurs when I try to compile the program from the command line or using VS2008.
I have tried redownloading and reinstalling CUDA, the display driver and VisualStudio. The permissions for the Temp folder are set correctly.
I also tested the solutions proposed in these two threads:
https://devtalk.nvidia.com/default/topic/503284/?comment=3590464
https://devtalk.nvidia.com/default/topic/406549/?comment=2860913
Unfortunately, none of it worked :(
I am fairly new to CUDA, so maybe I just forgot a setting, but the target architectures were set to x64 for both host and device code, and in the samples the settings should be correct anyways.
If anyone knows a solutions to this problem I will be glad to hear it!
Kind regards,
maddin45
EDIT: formated the compiler output as code for better readability
SOLVED
Thanks to the support of SO member Robert Crovella I was able to find the error. The path "C:\Windows\winsxs" was added to the end of my user's TEMP variable. I removed it and now the samples compile without an error.

Resources