[PyInstaller] Pyinstaller bootloader fails compile on AIX 7.2
I'm trying to install pyinstaller on AIX 7.2. *pip3 install pyinstaller *gives me Waf: Entering directory `/tmp/pip-install-9qmkycy2/pyinstaller/bootloader/build/debug' [ 1/13] Compiling src/pyi_python.c [ 2/13] Compiling src/pyi_global.c [ 3/13] Compiling src/main.c [ 4/13] Compiling src/pyi_archive.c [ 5/13] Compiling src/pyi_utils.c [ 6/13] Compiling src/pyi_launch.c [ 7/13] Compiling src/pyi_path.c [ 8/13] Compiling src/pyi_python27_compat.c [ 9/13] Compiling src/pyi_main.c [10/13] Compiling src/pyi_win32_utils.c [11/13] Compiling src/pyi_pythonlib.c ../../src/pyi_path.c: In function 'pyi_path_join': ../../src/pyi_path.c:143:5: error: 'strncpy' specified bound depends on the length of the source argument [-Werror=stringop-overflow=] strncpy(result, path1, strlen(path1)); ^ ../../src/pyi_path.c:156:9: error: 'strncat' specified bound depends on the length of the source argument [-Werror=stringop-overflow=] strncat(result, path2, len - 2); ^~~ ../../src/pyi_path.c:152:11: note: length computed here len = strlen(path2); ^ cc1: all warnings being treated as errors ../../src/pyi_pythonlib.c: In function 'pyi_pylib_start_python': ../../src/pyi_pythonlib.c:469:9: error: 'strncat' specified bound 1 equals source length [-Werror=stringop-overflow=] strncat(pypath, PYI_SEPSTR, strlen(PYI_SEPSTR)); ^~~ ../../src/pyi_pythonlib.c:470:9: error: 'strncat' specified bound 16 equals source length [-Werror=stringop-overflow=] strncat(pypath, "base_library.zip", strlen("base_library.zip")); ^~~ ../../src/pyi_pythonlib.c:471:9: error: 'strncat' specified bound 1 equals source length [-Werror=stringop-overflow=] strncat(pypath, PYI_PATHSEPSTR, strlen(PYI_PATHSEPSTR)); ^~~ ../../src/pyi_pythonlib.c:468:9: error: 'strncpy' specified bound depends on the length of the source argument [-Werror=stringop-overflow=] strncpy(pypath, status->mainpath, strlen(status->mainpath)); ^~~ ../../src/pyi_pythonlib.c:472:9: error: 'strncat' specified bound depends on the length of the source argument [-Werror=stringop-overflow=] strncat(pypath, status->mainpath, strlen(status->mainpath)); ^~~ ../../src/pyi_pythonlib.c:464:9: error: 'strncpy' specified bound depends on the length of the source argument [-Werror=stringop-overflow=] strncpy(pypath, status->mainpath, strlen(status->mainpath)); ^~~ cc1: all warnings being treated as errors Waf: Leaving directory `/tmp/pip-install-9qmkycy2/pyinstaller/bootloader/build/debug' Build failed -> task in 'run_d' failed with exit status 1 (run with -v to display more information) -> task in 'run_d' failed with exit status 1 (run with -v to display more information) No precompiled bootloader found. Trying to compile it for you ... ERROR: Failed compiling the bootloader. Please compile manually and rerun setup.py I downloaded the source and tried to build the bootloader manually as it suggests, but I get the same errors when I do that. Is there a way to successfully install on AIX 7.2? -- You received this message because you are subscribed to the Google Groups "PyInstaller" group. To unsubscribe from this group and stop receiving emails from it, send an email to pyinstaller+unsubscr...@googlegroups.com. To post to this group, send email to pyinstaller@googlegroups.com. Visit this group at https://groups.google.com/group/pyinstaller. To view this discussion on the web visit https://groups.google.com/d/msgid/pyinstaller/bcd63852-e32e-4811-ae0b-a8c681e59c03%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[PyInstaller] Pyinstaller on AIX
I'm trying to install pyinstaller on aix. When I use pip (python 3) to install it, it tells me the bootloader couldn't be built, then it says to try to build it manually. Building it manually yields a set of errors: ../../src/pyi_path.c: In function 'pyi_path_join': ../../src/pyi_path.c:143:5: error: 'strncpy' specified bound depends on the length of the source argument [-Werror=stringop-overflow=] strncpy(result, path1, strlen(path1)); ^ ../../src/pyi_path.c:156:9: error: 'strncat' specified bound depends on the length of the source argument [-Werror=stringop-overflow=] strncat(result, path2, len - 2); ^~~ ../../src/pyi_path.c:152:11: note: length computed here len = strlen(path2); ^ cc1: all warnings being treated as errors ../../src/pyi_pythonlib.c: In function 'pyi_pylib_start_python': ../../src/pyi_pythonlib.c:469:9: error: 'strncat' specified bound 1 equals source length [-Werror=stringop-overflow=] strncat(pypath, PYI_SEPSTR, strlen(PYI_SEPSTR)); ^~~ ../../src/pyi_pythonlib.c:470:9: error: 'strncat' specified bound 16 equals source length [-Werror=stringop-overflow=] strncat(pypath, "base_library.zip", strlen("base_library.zip")); ^~~ ../../src/pyi_pythonlib.c:471:9: error: 'strncat' specified bound 1 equals source length [-Werror=stringop-overflow=] strncat(pypath, PYI_PATHSEPSTR, strlen(PYI_PATHSEPSTR)); ^~~ ../../src/pyi_pythonlib.c:468:9: error: 'strncpy' specified bound depends on the length of the source argument [-Werror=stringop-overflow=] strncpy(pypath, status->mainpath, strlen(status->mainpath)); ^~~ ../../src/pyi_pythonlib.c:472:9: error: 'strncat' specified bound depends on the length of the source argument [-Werror=stringop-overflow=] strncat(pypath, status->mainpath, strlen(status->mainpath)); ^~~ ../../src/pyi_pythonlib.c:464:9: error: 'strncpy' specified bound depends on the length of the source argument [-Werror=stringop-overflow=] strncpy(pypath, status->mainpath, strlen(status->mainpath)); ^~~ I'm not a C++ programmer, but I took a stab at it and changed strncpy to just strcpy, strncat to strcat, etc. It didn't work (probably obvious to all you C++ programmers). Is there a way to install pyinstaller on AIX? It does say it's supported on the pyinstaller web site. -- You received this message because you are subscribed to the Google Groups "PyInstaller" group. To unsubscribe from this group and stop receiving emails from it, send an email to pyinstaller+unsubscr...@googlegroups.com. To post to this group, send email to pyinstaller@googlegroups.com. Visit this group at https://groups.google.com/group/pyinstaller. To view this discussion on the web visit https://groups.google.com/d/msgid/pyinstaller/e101312e-df9b-4757-b6b5-103b51371d36%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.