bugfix> python > 投稿

私が持っています:
Windows 10、64ビット
Python 3.8.1
tkinter 8.6.9
PyInstaller 3.6

-wフラグを使用して.pyスクリプトからexeを作成しようとすると、次のエラーが発生します。

Fatal error: PyInstaller does not include a pre-compiled bootloader for your platform.

-wフラグなしのPyInstallerでエラーは発生しませんが、実行時にコンソールを表示したくありません。

また、私のPyInstaller \ bootloader \ Windows-64bitディレクトリには、ブートローダーrun.exe、run_d.exe、runw.exe、runw_d.exeがあり、Windows-32bitディレクトリには、run.exe、run_d.exe、runw_d.exeがあります。 32ビットのrunw.exeが-wに必要なものでない限り、プリコンパイルされたブートローダーはそこにあるように見えます。

私はここの指示に従っていました:Pyinstallerのブートローダーを再コンパイルする方法 

PyInstallerの.tar.gzファイルをダウンロードし、ブートローダーディレクトリに移動して、コマンド python ./waf distclean all を実行しました

次に、エラーが発生しました:

Build failed  
-> task in 'run_d' failed with exit status 1 (run with
-v to display more information)

これが私のconfig.logファイルのほとんどです(私はそれに合うようにオプション情報を削除しました):

# project PyInstallerBootloader (nodist) configured on Fri Jan 31 13:44:31 2020 by
# waf 2.0.19 (abi 20, python 30801f0 on win32)
# using ./waf distclean all
#
---------------------------------------- Setting top to M:\My Documents\Python\PyInstaller\Bootloader
---------------------------------------- Setting out to \\server1\HOME\usera\My Documents\Python\PyInstaller\Bootloader\build
---------------------------------------- Python Version
3.8.1 (tags/v3.8.1:1b293b6, Dec 18 2019, 22:39:24) [MSC v.1916 32 bit (Intel)]
---------------------------------------- Checking for 'msvc' (C compiler) ['C:\\Program Files (x86)\\Microsoft Visual Studio\\Installer\\vswhere.exe', '-products', '*', '-legacy', '-format', 'json'] ['cmd.exe', '/E:on', '/V:on', '/C', '\\\\server1\\HOME\\usera\\My Documents\\Python\\PyInstaller\\Bootloader\\build\\waf-print-msvc-1.bat'] out: PATH=C:\Program Files (x86)\MSBuild\14.0\bin\amd64;C:\Program Files (x86)\MSBuild\14.0\bin\amd64;C:\Program Files (x86)\Microsoft Visual Studio
14.0\VC\BIN\amd64;C:\WINDOWS\Microsoft.NET\Framework64\v4.0.30319;C:\WINDOWS\Microsoft.NET\Framework64\;C:\Program Files (x86)\Windows Kits\8.1\bin\x64;C:\Program Files (x86)\Windows Kits\8.1\bin\x86;C:\ActiveTcl\bin;C:\Program Files (x86)\Vector vFlash 4\Bin\Automation\;C:\Program Files (x86)\Vector vFlash
2.7\Bin\;C:\ProgramData\Oracle\Java\javapath;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files\MATLAB\R2017b\runtime\win64;C:\Program Files\MATLAB\R2017b\bin;C:\Program Files\MATLAB\R2015b\runtime\win64;C:\Program Files\MATLAB\R2015b\bin;C:\Program Files (x86)\Plantronics\Spokes3G\;C:\Program Files (x86)\Pico Technology\PicoScope6\;C:\Users\usera\AppData\Local\Programs\Python\Python38-32\Scripts\;C:\Users\usera\AppData\Local\Programs\Python\Python38-32\;C:\Users\usera\AppData\Local\Microsoft\WindowsApps;c:\ActiveTcl\bin
INCLUDE=C:\Program Files (x86)\Microsoft Visual Studio
14.0\VC\INCLUDE;C:\Program Files (x86)\Windows Kits\10\include\10.0.10240.0\ucrt;C:\Program Files (x86)\Windows Kits\8.1\include\shared;C:\Program Files (x86)\Windows Kits\8.1\include\um;C:\Program Files (x86)\Windows Kits\8.1\include\winrt;
LIB=C:\Program Files (x86)\Microsoft Visual Studio
14.0\VC\LIB\amd64;C:\Program Files (x86)\Windows Kits\10\lib\10.0.10240.0\ucrt\x64;C:\Program Files (x86)\Windows Kits\8.1\lib\winv6.3\um\x64;;C:\Program Files (x86)\Microsoft Visual Studio
14.0\VC\LIB\amd64;C:\WINDOWS\Microsoft.NET\Framework64\v4.0.30319;C:\WINDOWS\Microsoft.NET\Framework64\;C:\Program Files (x86)\Windows Kits\8.1\References\CommonConfiguration\Neutral;\Microsoft.VCLibs\14.0\References\CommonConfiguration\neutral;

find program=['CL'] paths=['C:\\Program Files (x86)\\MSBuild\\14.0\\bin\\amd64', 'C:\\Program Files (x86)\\MSBuild\\14.0\\bin\\amd64', 'C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\BIN\\amd64', 'C:\\WINDOWS\\Microsoft.NET\\Framework64\\v4.0.30319', 'C:\\WINDOWS\\Microsoft.NET\\Framework64\\', 'C:\\Program Files (x86)\\Windows Kits\\8.1\\bin\\x64', 'C:\\Program Files (x86)\\Windows Kits\\8.1\\bin\\x86', 'C:\\ActiveTcl\\bin', 'C:\\Program Files (x86)\\Vector vFlash 4\\Bin\\Automation\\', 'C:\\Program Files (x86)\\Vector vFlash 2.7\\Bin\\', 'C:\\ProgramData\\Oracle\\Java\\javapath', 'C:\\WINDOWS\\system32', 'C:\\WINDOWS', 'C:\\WINDOWS\\System32\\Wbem', 'C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\', 'C:\\WINDOWS\\System32\\OpenSSH\\', 'C:\\Program Files\\MATLAB\\R2017b\\runtime\\win64', 'C:\\Program Files\\MATLAB\\R2017b\\bin', 'C:\\Program Files\\MATLAB\\R2015b\\runtime\\win64', 'C:\\Program Files\\MATLAB\\R2015b\\bin', 'C:\\Program Files (x86)\\Plantronics\\Spokes3G\\', 'C:\\Program Files (x86)\\Pico Technology\\PicoScope6\\', 'C:\\Users\\usera\\AppData\\Local\\Programs\\Python\\Python38-32\\Scripts\\', 'C:\\Users\\usera\\AppData\\Local\\Programs\\Python\\Python38-32\\', 'C:\\Users\\usera\\AppData\\Local\\Microsoft\\WindowsApps', 'c:\\ActiveTcl\\bin'] var='CL' -> ['C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\BIN\\amd64\\CL.exe'] ['C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\BIN\\amd64\\CL.exe', '/help'] out:

find program=['LINK'] paths=['C:\\Program Files (x86)\\MSBuild\\14.0\\bin\\amd64', 'C:\\Program Files (x86)\\MSBuild\\14.0\\bin\\amd64', 'C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\BIN\\amd64', 'C:\\WINDOWS\\Microsoft.NET\\Framework64\\v4.0.30319', 'C:\\WINDOWS\\Microsoft.NET\\Framework64\\', 'C:\\Program Files (x86)\\Windows Kits\\8.1\\bin\\x64', 'C:\\Program Files (x86)\\Windows Kits\\8.1\\bin\\x86', 'C:\\ActiveTcl\\bin', 'C:\\Program Files (x86)\\Vector vFlash 4\\Bin\\Automation\\', 'C:\\Program Files (x86)\\Vector vFlash 2.7\\Bin\\', 'C:\\ProgramData\\Oracle\\Java\\javapath', 'C:\\WINDOWS\\system32', 'C:\\WINDOWS', 'C:\\WINDOWS\\System32\\Wbem', 'C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\', 'C:\\WINDOWS\\System32\\OpenSSH\\', 'C:\\Program Files\\MATLAB\\R2017b\\runtime\\win64', 'C:\\Program Files\\MATLAB\\R2017b\\bin', 'C:\\Program Files\\MATLAB\\R2015b\\runtime\\win64', 'C:\\Program Files\\MATLAB\\R2015b\\bin', 'C:\\Program Files (x86)\\Plantronics\\Spokes3G\\', 'C:\\Program Files (x86)\\Pico Technology\\PicoScope6\\', 'C:\\Users\\usera\\AppData\\Local\\Programs\\Python\\Python38-32\\Scripts\\', 'C:\\Users\\usera\\AppData\\Local\\Programs\\Python\\Python38-32\\', 'C:\\Users\\usera\\AppData\\Local\\Microsoft\\WindowsApps', 'c:\\ActiveTcl\\bin'] var='LINK_CXX' -> ['C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\BIN\\amd64\\LINK.exe'] find program=['LIB'] paths=['C:\\Program Files (x86)\\MSBuild\\14.0\\bin\\amd64', 'C:\\Program Files (x86)\\MSBuild\\14.0\\bin\\amd64', 'C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\BIN\\amd64', 'C:\\WINDOWS\\Microsoft.NET\\Framework64\\v4.0.30319', 'C:\\WINDOWS\\Microsoft.NET\\Framework64\\', 'C:\\Program Files (x86)\\Windows Kits\\8.1\\bin\\x64', 'C:\\Program Files (x86)\\Windows Kits\\8.1\\bin\\x86', 'C:\\ActiveTcl\\bin', 'C:\\Program Files (x86)\\Vector vFlash 4\\Bin\\Automation\\', 'C:\\Program Files (x86)\\Vector vFlash 2.7\\Bin\\', 'C:\\ProgramData\\Oracle\\Java\\javapath', 'C:\\WINDOWS\\system32', 'C:\\WINDOWS', 'C:\\WINDOWS\\System32\\Wbem', 'C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\', 'C:\\WINDOWS\\System32\\OpenSSH\\', 'C:\\Program Files\\MATLAB\\R2017b\\runtime\\win64', 'C:\\Program Files\\MATLAB\\R2017b\\bin', 'C:\\Program Files\\MATLAB\\R2015b\\runtime\\win64', 'C:\\Program Files\\MATLAB\\R2015b\\bin', 'C:\\Program Files (x86)\\Plantronics\\Spokes3G\\', 'C:\\Program Files (x86)\\Pico Technology\\PicoScope6\\', 'C:\\Users\\usera\\AppData\\Local\\Programs\\Python\\Python38-32\\Scripts\\', 'C:\\Users\\usera\\AppData\\Local\\Programs\\Python\\Python38-32\\', 'C:\\Users\\usera\\AppData\\Local\\Microsoft\\WindowsApps', 'c:\\ActiveTcl\\bin'] var='AR' -> ['C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\BIN\\amd64\\LIB.exe'] find program=['MT'] paths=['C:\\Program Files (x86)\\MSBuild\\14.0\\bin\\amd64', 'C:\\Program Files (x86)\\MSBuild\\14.0\\bin\\amd64', 'C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\BIN\\amd64', 'C:\\WINDOWS\\Microsoft.NET\\Framework64\\v4.0.30319', 'C:\\WINDOWS\\Microsoft.NET\\Framework64\\', 'C:\\Program Files (x86)\\Windows Kits\\8.1\\bin\\x64', 'C:\\Program Files (x86)\\Windows Kits\\8.1\\bin\\x86', 'C:\\ActiveTcl\\bin', 'C:\\Program Files (x86)\\Vector vFlash 4\\Bin\\Automation\\', 'C:\\Program Files (x86)\\Vector vFlash 2.7\\Bin\\', 'C:\\ProgramData\\Oracle\\Java\\javapath', 'C:\\WINDOWS\\system32', 'C:\\WINDOWS', 'C:\\WINDOWS\\System32\\Wbem', 'C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\', 'C:\\WINDOWS\\System32\\OpenSSH\\', 'C:\\Program Files\\MATLAB\\R2017b\\runtime\\win64', 'C:\\Program Files\\MATLAB\\R2017b\\bin', 'C:\\Program Files\\MATLAB\\R2015b\\runtime\\win64', 'C:\\Program Files\\MATLAB\\R2015b\\bin', 'C:\\Program Files (x86)\\Plantronics\\Spokes3G\\', 'C:\\Program Files (x86)\\Pico Technology\\PicoScope6\\', 'C:\\Users\\usera\\AppData\\Local\\Programs\\Python\\Python38-32\\Scripts\\', 'C:\\Users\\usera\\AppData\\Local\\Programs\\Python\\Python38-32\\', 'C:\\Users\\usera\\AppData\\Local\\Microsoft\\WindowsApps', 'c:\\ActiveTcl\\bin'] var='MT' -> ['C:\\Program Files (x86)\\Windows Kits\\8.1\\bin\\x64\\MT.exe'] find program=['RC'] paths=['C:\\Program Files (x86)\\MSBuild\\14.0\\bin\\amd64', 'C:\\Program Files (x86)\\MSBuild\\14.0\\bin\\amd64', 'C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\BIN\\amd64', 'C:\\WINDOWS\\Microsoft.NET\\Framework64\\v4.0.30319', 'C:\\WINDOWS\\Microsoft.NET\\Framework64\\', 'C:\\Program Files (x86)\\Windows Kits\\8.1\\bin\\x64', 'C:\\Program Files (x86)\\Windows Kits\\8.1\\bin\\x86', 'C:\\ActiveTcl\\bin', 'C:\\Program Files (x86)\\Vector vFlash 4\\Bin\\Automation\\', 'C:\\Program Files (x86)\\Vector vFlash 2.7\\Bin\\', 'C:\\ProgramData\\Oracle\\Java\\javapath', 'C:\\WINDOWS\\system32', 'C:\\WINDOWS', 'C:\\WINDOWS\\System32\\Wbem', 'C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\', 'C:\\WINDOWS\\System32\\OpenSSH\\', 'C:\\Program Files\\MATLAB\\R2017b\\runtime\\win64', 'C:\\Program Files\\MATLAB\\R2017b\\bin', 'C:\\Program Files\\MATLAB\\R2015b\\runtime\\win64', 'C:\\Program Files\\MATLAB\\R2015b\\bin', 'C:\\Program Files (x86)\\Plantronics\\Spokes3G\\', 'C:\\Program Files (x86)\\Pico Technology\\PicoScope6\\', 'C:\\Users\\usera\\AppData\\Local\\Programs\\Python\\Python38-32\\Scripts\\', 'C:\\Users\\usera\\AppData\\Local\\Programs\\Python\\Python38-32\\', 'C:\\Users\\usera\\AppData\\Local\\Microsoft\\WindowsApps', 'c:\\ActiveTcl\\bin'] var='WINRC' -> ['C:\\Program Files (x86)\\Windows Kits\\8.1\\bin\\x64\\RC.exe'] C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\amd64\CL.exe
---------------------------------------- Checking size of pointer
==>
        int main() {
            static int test_array[1 - 2 * !(sizeof(void *) == 4)];
            test_array[0] = 0;
            return 0;
        } <== [1/2] Compiling [32m\\server1\HOME\usera\My Documents\Python\PyInstaller\Bootloader\build\conf_check_303e219cf805e8bf7cae31152a34da6b\test.c[0m
['C:\\Program Files (x86)\\Microsoft Visual Studio
14.0\\VC\\BIN\\amd64\\CL.exe', '/nologo', '/IC:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\INCLUDE', '/IC:\\Program Files (x86)\\Windows Kits\\10\\include\\10.0.10240.0\\ucrt', '/IC:\\Program Files (x86)\\Windows Kits\\8.1\\include\\shared', '/IC:\\Program Files (x86)\\Windows Kits\\8.1\\include\\um', '/IC:\\Program Files (x86)\\Windows Kits\\8.1\\include\\winrt', '..\\test.c', '/FC', '/c', '/Fo\\\\server1\\HOME\\usera\\My Documents\\Python\\PyInstaller\\Bootloader\\build\\conf_check_303e219cf805e8bf7cae31152a34da6b\\testbuild\\test.c.1.o'] out: test.c
\\server1\HOME\usera\my documents\python\pyinstaller\bootloader\build\conf_check_303e219cf805e8bf7cae31152a34da6b\test.c(3): error C2118: negative subscript

from M:\My Documents\Python\PyInstaller\Bootloader: Test does not build: Traceback (most recent call last):   File "M:\My Documents\Python\PyInstaller\Bootloader\waf3-2.0.19-9054d7a7f551c4b14b458abcd389b706\waflib\Configure.py", line 333, in run_build
    bld.compile()   File "M:\My Documents\Python\PyInstaller\Bootloader\waf3-2.0.19-9054d7a7f551c4b14b458abcd389b706\waflib\Build.py", line 176, in compile
    raise Errors.BuildError(self.producer.error) waflib.Errors.BuildError: Build failed  -> task in 'testprog' failed with exit status 2 (run with -v to display more information)
from M:\My Documents\Python\PyInstaller\Bootloader: The configuration failed
==>
        int main() {
            static int test_array[1 - 2 * !(sizeof(void *) == 8)];
            test_array[0] = 0;
            return 0;
        } <== [1/2] Compiling [32m\\server1\HOME\usera\My Documents\Python\PyInstaller\Bootloader\build\conf_check_df399ceca844fdee226fb77c6f4a4073\test.c[0m
['C:\\Program Files (x86)\\Microsoft Visual Studio
14.0\\VC\\BIN\\amd64\\CL.exe', '/nologo', '/IC:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\INCLUDE', '/IC:\\Program Files (x86)\\Windows Kits\\10\\include\\10.0.10240.0\\ucrt', '/IC:\\Program Files (x86)\\Windows Kits\\8.1\\include\\shared', '/IC:\\Program Files (x86)\\Windows Kits\\8.1\\include\\um', '/IC:\\Program Files (x86)\\Windows Kits\\8.1\\include\\winrt', '..\\test.c', '/FC', '/c', '/Fo\\\\server1\\HOME\\usera\\My Documents\\Python\\PyInstaller\\Bootloader\\build\\conf_check_df399ceca844fdee226fb77c6f4a4073\\testbuild\\test.c.1.o'] out: test.c

[2/2] Linking [33m\\server1\HOME\usera\My Documents\Python\PyInstaller\Bootloader\build\conf_check_df399ceca844fdee226fb77c6f4a4073\testbuild\testprog.exe[0m
['C:\\Program Files (x86)\\Microsoft Visual Studio
14.0\\VC\\BIN\\amd64\\LINK.exe', '/nologo', '/MANIFEST', 'test.c.1.o', '/OUT:\\\\server1\\HOME\\usera\\My Documents\\Python\\PyInstaller\\Bootloader\\build\\conf_check_df399ceca844fdee226fb77c6f4a4073\\testbuild\\testprog.exe', '/LIBPATH:C:\\Program Files (x86)\\Microsoft Visual Studio
14.0\\VC\\LIB\\amd64', '/LIBPATH:C:\\Program Files (x86)\\Windows Kits\\10\\lib\\10.0.10240.0\\ucrt\\x64', '/LIBPATH:C:\\Program Files (x86)\\Windows Kits\\8.1\\lib\\winv6.3\\um\\x64', '/LIBPATH:C:\\Program Files (x86)\\Microsoft Visual Studio
14.0\\VC\\LIB\\amd64', '/LIBPATH:C:\\WINDOWS\\Microsoft.NET\\Framework64\\v4.0.30319', '/LIBPATH:C:\\WINDOWS\\Microsoft.NET\\Framework64\\', '/LIBPATH:C:\\Program Files (x86)\\Windows Kits\\8.1\\References\\CommonConfiguration\\Neutral', '/LIBPATH:\\Microsoft.VCLibs\\14.0\\References\\CommonConfiguration\\neutral'] ['C:\\Program Files (x86)\\Windows Kits\\8.1\\bin\\x64\\MT.exe', '/nologo', '-manifest', '\\\\server1\\HOME\\usera\\My Documents\\Python\\PyInstaller\\Bootloader\\build\\conf_check_df399ceca844fdee226fb77c6f4a4073\\testbuild\\testprog.exe.manifest', '-outputresource:\\\\server1\\HOME\\usera\\My Documents\\Python\\PyInstaller\\Bootloader\\build\\conf_check_df399ceca844fdee226fb77c6f4a4073\\testbuild\\testprog.exe;1'] 8
---------------------------------------- Platform Windows-64bit detected based on compiler
---------------------------------------- Checking for function unsetenv
==>
    #include <stdlib.h>
    int main(int argc, char **argv) {
        void (*p)();
        (void)argc; (void)argv;
        p=(void(*)())(unsetenv);
        return !p;
    }
<== [1/2] Compiling [32m\\server1\HOME\usera\My Documents\Python\PyInstaller\Bootloader\build\conf_check_2b863466c990906d29ccc349c383bbe8\test.cpp[0m
['C:\\Program Files (x86)\\Microsoft Visual Studio
14.0\\VC\\BIN\\amd64\\CL.exe', '/nologo', '/IC:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\INCLUDE', '/IC:\\Program Files (x86)\\Windows Kits\\10\\include\\10.0.10240.0\\ucrt', '/IC:\\Program Files (x86)\\Windows Kits\\8.1\\include\\shared', '/IC:\\Program Files (x86)\\Windows Kits\\8.1\\include\\um', '/IC:\\Program Files (x86)\\Windows Kits\\8.1\\include\\winrt', '/DWIN32', '..\\test.cpp', '/FC', '/c', '/Fo\\\\server1\\HOME\\usera\\My Documents\\Python\\PyInstaller\\Bootloader\\build\\conf_check_2b863466c990906d29ccc349c383bbe8\\testbuild\\test.cpp.1.o'] out: test.cpp
\\server1\HOME\usera\my documents\python\pyinstaller\bootloader\build\conf_check_2b863466c990906d29ccc349c383bbe8\test.cpp(8): error C2065: 'unsetenv': undeclared identifier

from M:\My Documents\Python\PyInstaller\Bootloader: Test does not build: Traceback (most recent call last):   File "M:\My Documents\Python\PyInstaller\Bootloader\waf3-2.0.19-9054d7a7f551c4b14b458abcd389b706\waflib\Configure.py", line 333, in run_build
    bld.compile()   File "M:\My Documents\Python\PyInstaller\Bootloader\waf3-2.0.19-9054d7a7f551c4b14b458abcd389b706\waflib\Build.py", line 176, in compile
    raise Errors.BuildError(self.producer.error) waflib.Errors.BuildError: Build failed  -> task in 'testprog' failed with exit status 2 (run with -v to display more information)
no from M:\My Documents\Python\PyInstaller\Bootloader: The configuration failed
---------------------------------------- Checking for function mkdtemp
==>
    #include <stdlib.h>
    int main(int argc, char **argv) {
        void (*p)();
        (void)argc; (void)argv;
        p=(void(*)())(mkdtemp);
        return !p;
    }
<== [1/2] Compiling [32m\\server1\HOME\usera\My Documents\Python\PyInstaller\Bootloader\build\conf_check_35bda8a5d479c0fc31bb3ca93a5c8147\test.cpp[0m
['C:\\Program Files (x86)\\Microsoft Visual Studio
14.0\\VC\\BIN\\amd64\\CL.exe', '/nologo', '/IC:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\INCLUDE', '/IC:\\Program Files (x86)\\Windows Kits\\10\\include\\10.0.10240.0\\ucrt', '/IC:\\Program Files (x86)\\Windows Kits\\8.1\\include\\shared', '/IC:\\Program Files (x86)\\Windows Kits\\8.1\\include\\um', '/IC:\\Program Files (x86)\\Windows Kits\\8.1\\include\\winrt', '/DWIN32', '..\\test.cpp', '/FC', '/c', '/Fo\\\\server1\\HOME\\usera\\My Documents\\Python\\PyInstaller\\Bootloader\\build\\conf_check_35bda8a5d479c0fc31bb3ca93a5c8147\\testbuild\\test.cpp.1.o'] out: test.cpp
\\server1\HOME\usera\my documents\python\pyinstaller\bootloader\build\conf_check_35bda8a5d479c0fc31bb3ca93a5c8147\test.cpp(8): error C2065: 'mkdtemp': undeclared identifier

from M:\My Documents\Python\PyInstaller\Bootloader: Test does not build: Traceback (most recent call last):   File "M:\My Documents\Python\PyInstaller\Bootloader\waf3-2.0.19-9054d7a7f551c4b14b458abcd389b706\waflib\Configure.py", line 333, in run_build
    bld.compile()   File "M:\My Documents\Python\PyInstaller\Bootloader\waf3-2.0.19-9054d7a7f551c4b14b458abcd389b706\waflib\Build.py", line 176, in compile
    raise Errors.BuildError(self.producer.error) waflib.Errors.BuildError: Build failed  -> task in 'testprog' failed with exit status 2 (run with -v to display more information)
no from M:\My Documents\Python\PyInstaller\Bootloader: The configuration failed
---------------------------------------- Checking for function strndup
==>
    #include <string.h>
    int main(int argc, char **argv) {
        void (*p)();
        (void)argc; (void)argv;
        p=(void(*)())(strndup);
        return !p;
    }
<== [1/2] Compiling [32m\\server1\HOME\usera\My Documents\Python\PyInstaller\Bootloader\build\conf_check_0dd60a7756386d5da02cc6ba31c28717\test.cpp[0m
['C:\\Program Files (x86)\\Microsoft Visual Studio
14.0\\VC\\BIN\\amd64\\CL.exe', '/nologo', '/IC:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\INCLUDE', '/IC:\\Program Files (x86)\\Windows Kits\\10\\include\\10.0.10240.0\\ucrt', '/IC:\\Program Files (x86)\\Windows Kits\\8.1\\include\\shared', '/IC:\\Program Files (x86)\\Windows Kits\\8.1\\include\\um', '/IC:\\Program Files (x86)\\Windows Kits\\8.1\\include\\winrt', '/DWIN32', '..\\test.cpp', '/FC', '/c', '/Fo\\\\server1\\HOME\\usera\\My Documents\\Python\\PyInstaller\\Bootloader\\build\\conf_check_0dd60a7756386d5da02cc6ba31c28717\\testbuild\\test.cpp.1.o'] out: test.cpp
\\server1\HOME\usera\my documents\python\pyinstaller\bootloader\build\conf_check_0dd60a7756386d5da02cc6ba31c28717\test.cpp(8): error C2065: 'strndup': undeclared identifier

from M:\My Documents\Python\PyInstaller\Bootloader: Test does not build: Traceback (most recent call last):   File "M:\My Documents\Python\PyInstaller\Bootloader\waf3-2.0.19-9054d7a7f551c4b14b458abcd389b706\waflib\Configure.py", line 333, in run_build
    bld.compile()   File "M:\My Documents\Python\PyInstaller\Bootloader\waf3-2.0.19-9054d7a7f551c4b14b458abcd389b706\waflib\Build.py", line 176, in compile
    raise Errors.BuildError(self.producer.error) waflib.Errors.BuildError: Build failed  -> task in 'testprog' failed with exit status 2 (run with -v to display more information)
no from M:\My Documents\Python\PyInstaller\Bootloader: The configuration failed
---------------------------------------- Checking for function strnlen
==>
    #include <string.h>
    int main(int argc, char **argv) {
        void (*p)();
        (void)argc; (void)argv;
        p=(void(*)())(strnlen);
        return !p;
    }
<== [1/2] Compiling [32m\\server1\HOME\usera\My Documents\Python\PyInstaller\Bootloader\build\conf_check_21240939c9ddbcc20d9e6d66cf882183\test.cpp[0m
['C:\\Program Files (x86)\\Microsoft Visual Studio
14.0\\VC\\BIN\\amd64\\CL.exe', '/nologo', '/IC:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\INCLUDE', '/IC:\\Program Files (x86)\\Windows Kits\\10\\include\\10.0.10240.0\\ucrt', '/IC:\\Program Files (x86)\\Windows Kits\\8.1\\include\\shared', '/IC:\\Program Files (x86)\\Windows Kits\\8.1\\include\\um', '/IC:\\Program Files (x86)\\Windows Kits\\8.1\\include\\winrt', '/DWIN32', '..\\test.cpp', '/FC', '/c', '/Fo\\\\server1\\HOME\\usera\\My Documents\\Python\\PyInstaller\\Bootloader\\build\\conf_check_21240939c9ddbcc20d9e6d66cf882183\\testbuild\\test.cpp.1.o'] out: test.cpp

[2/2] Linking [33m\\server1\HOME\usera\My Documents\Python\PyInstaller\Bootloader\build\conf_check_21240939c9ddbcc20d9e6d66cf882183\testbuild\testprog.exe[0m
['C:\\Program Files (x86)\\Microsoft Visual Studio
14.0\\VC\\BIN\\amd64\\LINK.exe', '/nologo', '/MANIFEST', '/MACHINE:X64', 'test.cpp.1.o', '/OUT:\\\\server1\\HOME\\usera\\My Documents\\Python\\PyInstaller\\Bootloader\\build\\conf_check_21240939c9ddbcc20d9e6d66cf882183\\testbuild\\testprog.exe', '/LIBPATH:C:\\Program Files (x86)\\Microsoft Visual Studio
14.0\\VC\\LIB\\amd64', '/LIBPATH:C:\\Program Files (x86)\\Windows Kits\\10\\lib\\10.0.10240.0\\ucrt\\x64', '/LIBPATH:C:\\Program Files (x86)\\Windows Kits\\8.1\\lib\\winv6.3\\um\\x64', '/LIBPATH:C:\\Program Files (x86)\\Microsoft Visual Studio
14.0\\VC\\LIB\\amd64', '/LIBPATH:C:\\WINDOWS\\Microsoft.NET\\Framework64\\v4.0.30319', '/LIBPATH:C:\\WINDOWS\\Microsoft.NET\\Framework64\\', '/LIBPATH:C:\\Program Files (x86)\\Windows Kits\\8.1\\References\\CommonConfiguration\\Neutral', '/LIBPATH:\\Microsoft.VCLibs\\14.0\\References\\CommonConfiguration\\neutral'] yes

ビルドできないのに何が欠けているのでしょうか?

回答 1 件
  • ウイルス対策ソフトウェアが原因のようです。詳細については、このPyInstaller GitHub問題スレッドを参照してください。

    Okay, I think I might have identified the problem, and it's anti-virus.

    Since the files were missing, I tried copying them from a downloaded tarball of PyInstaller 3.5. After placing them in the appropriate folder, all but runw_d.exe were shortly thereafter quarantined (albeit not removed as they appear to have been during pip installation).

    I've seen other references to anti-virus causing issues with these files, so I'll take this up with my IT group.

    https://github.com/pyinstaller/pyinstaller/issues/4318#issuecomment-518281240

あなたの答え