Pyinstaller bootloader fails compile on AIX 7.2

7 views
Skip to first unread message

Bruce Van Horn

unread,
Jun 30, 2019, 5:23:31 AM6/30/19
to PyInstaller
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?
Reply all
Reply to author
Forward
0 new messages