Hello Team,
I am facing this issue while running the pyinstaller command or run ./setup.py command.
But still not resolved, I also refereed this document.
- How to Install PyInstaller - PyInstaller 5.9.0 documentation
# /usr/opt/python3/bin/pyinstaller --onefile data_collector_utility.py
1014 INFO: PyInstaller: 5.8.0
1014 INFO: Python: 3.9.14
1143 INFO: Platform: AIX-3-00F9B5A84C00-powerpc-64bit
1147 INFO: wrote /Himani/data_collector_utility.spec
1211 INFO: UPX is not available.
1216 INFO: Extending PYTHONPATH with paths
['/Himani']
2374 INFO: checking Analysis
2390 INFO: checking PYZ
2397 INFO: checking PKG
2401 INFO: Bootloader /usr/opt/python3/lib/python3.9/site-packages/PyInstaller/bootloader/AIX-64bit/run
2401 INFO: checking EXE
2401 INFO: Building EXE because EXE-00.toc is non existent
2401 INFO: Building EXE from EXE-00.toc
Fatal error: PyInstaller does not include a pre-compiled bootloader for your
platform. For more details and instructions how to build the bootloader see
<https://pyinstaller.readthedocs.io/en/stable/bootloader-building.html>
when we referred this document which mentioned above and tried to build the bootloader ,
we are facing this issue -
#python3 ./setup.py build
running build
running build_bootloader
No precompiled bootloader found. Trying to compile it for you ...
Setting top to : /Package_DC/PyInstallerCustom-3.5/bootloader
Setting out to : /Package_DC/PyInstallerCustom-3.5/bootloader/build
Python Version : 3.9.14 (main, Nov 29 2022, 06:17:15) [IBM XL C/C++ for AIX 13.1.3.7]
Checking for 'xlc' (C compiler) : /opt/IBM/xlC/16.1.0/bin/xlc_r
Checking size of pointer : 8
Platform : AIX-64bit detected based on compiler
Checking for compiler flags -q64 : yes
Checking for linker flags -q64 : yes
Checking for library dl : yes
Checking for library m : yes
Checking for library z : yes
Checking for function unsetenv : yes
Checking for function mkdtemp : yes
Checking for function dirname : yes
Checking for function basename : yes
Checking for function strndup : yes
Checking for function strnlen : yes
Checking for program '/opt/IBM/xlC/16.1.0/bin/xlc_r' : /opt/IBM/xlC/16.1.0/bin/xlc_r
Checking for program 'strip' : /opt/IBM/xlC/16.1.0/bin/xlc_r
'configure' finished successfully (2.513s)
'all' finished successfully (0.000s)
'distclean' finished successfully (0.012s)
Setting top to : /Package_DC/PyInstallerCustom-3.5/bootloader
Setting out to : /Package_DC/PyInstallerCustom-3.5/bootloader/build
Python Version : 3.9.14 (main, Nov 29 2022, 06:17:15) [IBM XL C/C++ for AIX 13.1.3.7]
Checking for 'xlc' (C compiler) : /opt/IBM/xlC/16.1.0/bin/xlc_r
Checking size of pointer : 8
Platform : AIX-64bit detected based on compiler
Checking for compiler flags -q64 : yes
Checking for linker flags -q64 : yes
Checking for library dl : yes
Checking for library m : yes
Checking for library z : yes
Checking for function unsetenv : yes
Checking for function mkdtemp : yes
Checking for function dirname : yes
Checking for function basename : yes
Checking for function strndup : yes
Checking for function strnlen : yes
Checking for program '/opt/IBM/xlC/16.1.0/bin/xlc_r' : /opt/IBM/xlC/16.1.0/bin/xlc_r
Checking for program 'strip' : /opt/IBM/xlC/16.1.0/bin/xlc_r
'configure' finished successfully (1.983s)
'make_all' finished successfully (0.009s)
Waf: Entering directory `/Package_DC/PyInstallerCustom-3.5/bootloader/build/debug'
[ 1/13] Compiling src/pyi_python.c
[ 2/13] Compiling src/pyi_global.c
[ 3/13] Compiling src/pyi_archive.c
[ 4/13] Compiling src/pyi_python27_compat.c
[ 5/13] Compiling src/pyi_pythonlib.c
[ 6/13] Compiling src/pyi_win32_utils.c
[ 7/13] Compiling src/pyi_path.c
[ 8/13] Compiling src/pyi_main.c
[ 9/13] Compiling src/pyi_launch.c
[10/13] Compiling src/main.c
[11/13] Compiling src/pyi_utils.c
"../../src/pyi_win32_utils.c", line 574.21: 1506-356 (W) Compilation unit is empty.
"../../src/pyi_archive.c", line 102.14: 1506-275 (S) Unexpected text zstream encountered.
"../../src/pyi_archive.c", line 102.5: 1506-045 (S) Undeclared identifier z_stream.
"../../src/pyi_archive.c", line 113.5: 1506-045 (S) Undeclared identifier zstream.
"../../src/pyi_archive.c", line 123.34: 1506-045 (S) Undeclared identifier Z_FINISH.
Waf: Leaving directory `/Package_DC/PyInstallerCustom-3.5/bootloader/build/debug'
Build failed
-> task in 'run_d' failed with exit status 1 (run with -v to display more information)
ERROR: Failed compiling the bootloader. Please compile manually and rerun setup.py
I also tried to build the bootloader with the help of this command -
(127) root @ curve5: /Package_DC/PyInstallerCustom-3.5/bootloader
# python3 ./waf configure all CC="xlc"
Setting top to : /Package_DC/PyInstallerCustom-3.5/bootloader
Setting out to : /Package_DC/PyInstallerCustom-3.5/bootloader/build
Python Version : 3.9.14 (main, Nov 29 2022, 06:17:15) [IBM XL C/C++ for AIX 13.1.3.7]
Checking for 'xlc' (C compiler) : xlc
Checking size of pointer : 8
Platform : AIX-64bit detected based on compiler
Checking for compiler flags -q64 : yes
Checking for linker flags -q64 : yes
Checking for library dl : yes
Checking for library m : yes
Checking for library z : yes
Checking for function unsetenv : yes
Checking for function mkdtemp : yes
Checking for function dirname : yes
Checking for function basename : yes
Checking for function strndup : yes
Checking for function strnlen : yes
Checking for program 'xlc' : /opt/IBM/xlC/16.1.0/bin/xlc
Checking for program 'strip' : /opt/IBM/xlC/16.1.0/bin/xlc
'configure' finished successfully (3.185s)
'all' finished successfully (0.000s)
'distclean' finished successfully (0.015s)
Setting top to : /Package_DC/PyInstallerCustom-3.5/bootloader
Setting out to : /Package_DC/PyInstallerCustom-3.5/bootloader/build
Python Version : 3.9.14 (main, Nov 29 2022, 06:17:15) [IBM XL C/C++ for AIX 13.1.3.7]
Checking for 'xlc' (C compiler) : xlc
Checking size of pointer : 8
Platform : AIX-64bit detected based on compiler
Checking for compiler flags -q64 : yes
Checking for linker flags -q64 : yes
Checking for library dl : yes
Checking for library m : yes
Checking for library z : yes
Checking for function unsetenv : yes
Checking for function mkdtemp : yes
Checking for function dirname : yes
Checking for function basename : yes
Checking for function strndup : yes
Checking for function strnlen : yes
Checking for program 'xlc' : /opt/IBM/xlC/16.1.0/bin/xlc
Checking for program 'strip' : /opt/IBM/xlC/16.1.0/bin/xlc
'configure' finished successfully (3.130s)
'make_all' finished successfully (0.015s)
Waf: Entering directory `/Package_DC/PyInstallerCustom-3.5/bootloader/build/debug'
[ 1/13] Compiling src/pyi_python.c
[ 2/13] Compiling src/pyi_global.c
[ 3/13] Compiling src/pyi_archive.c
[ 4/13] Compiling src/pyi_python27_compat.c
[ 5/13] Compiling src/pyi_win32_utils.c
[ 6/13] Compiling src/pyi_path.c
[ 7/13] Compiling src/pyi_main.c
[ 8/13] Compiling src/pyi_launch.c
[ 9/13] Compiling src/main.c
[10/13] Compiling src/pyi_utils.c
[11/13] Compiling src/pyi_pythonlib.c
"../../src/pyi_win32_utils.c", line 574.21: 1506-356 (W) Compilation unit is empty.
"../../src/pyi_archive.c", line 102.14: 1506-275 (S) Unexpected text zstream encountered.
"../../src/pyi_archive.c", line 102.5: 1506-045 (S) Undeclared identifier z_stream.
"../../src/pyi_archive.c", line 113.5: 1506-045 (S) Undeclared identifier zstream.
"../../src/pyi_archive.c", line 123.34: 1506-045 (S) Undeclared identifier Z_FINISH.
Waf: Leaving directory `/Package_DC/PyInstallerCustom-3.5/bootloader/build/debug'
Build failed
-> task in 'run_d' failed with exit status 1 (run with -v to display more information
Please do the needful.
Thankyou,
------------------------------
Himani Gupta
------------------------------
#AIXOpenSource