I get the following error when I try to compile the bootloader for 
PyInstaller

$ python ./waf --gcc all
'all' finished successfully (0.001s)
'distclean' finished successfully (0.021s)
Setting top to                           : C:/msys64/home/jador/pyinstaller/
bootloader
Setting out to                           : C:/msys64/home/jador/pyinstaller/
bootloader/build
Python Version                           : 3.8.0 (default, Oct 25 2019, 06:
23:40)  [GCC 9.2.0 64 bit (AMD64)]
Checking for program 'gcc, cc'           : C:\msys64\mingw64\bin/gcc.exe
Checking for program 'ar'                : C:\msys64\mingw64\bin/ar.exe
Checking size of pointer                 : 8
Platform                                 : Windows-64bit detected based on 
compiler
Checking for compiler flags -m64         : yes
Checking for program 'C:\\msys64\\mingw64\\bin/windres' : C:\msys64\mingw64\
bin/windres.exe
Checking for library user32                             : yes
Checking for library comctl32                           : yes
Checking for library kernel32                           : yes
Checking for library ws2_32                             : yes
Checking for function unsetenv                          : no
Checking for function mkdtemp                           : no
Checking for function strndup                           : no
Checking for function strnlen                           : yes
Checking for program 'C:\\msys64\\mingw64\\bin/strip'   : C:\msys64\mingw64\
bin/strip.exe
Checking for program 'strip'                            : C:\msys64\mingw64\
bin/strip.exe
'configure' finished successfully (1.782s)
'make_all' finished successfully (0.008s)
Waf: Entering directory 
`C:/msys64/home/jador/pyinstaller/bootloader/build/debug'
[ 1/23] Compiling zlib/unzip.c
[ 2/23] Compiling zlib/inffast.c
[ 3/23] Compiling zlib/adler32.c
[ 4/23] Compiling zlib/ioapi.c
[ 5/23] Compiling zlib/inftrees.c
[ 6/23] Compiling zlib/crc32.c
[ 7/23] Compiling zlib/zutil.c
[ 8/23] Compiling zlib/inflate.c
[ 9/23] Compiling src/pyi_python.c
[10/23] Compiling src/pyi_archive.c
[11/23] Compiling src/pyi_launch.c
[12/23] Compiling src/pyi_main.c
[13/23] Compiling src/pyi_win32_utils.c
[14/23] Compiling src/pyi_global.c
[15/23] Compiling src/pyi_pythonlib.c
[16/23] Compiling src/pyi_utils.c
[17/23] Linking build/debug/libstatic_zlib.a
[18/23] Compiling windows/run.rc
[19/23] Compiling src/main.c
[20/23] Compiling src/pyi_python27_compat.c
[21/23] Compiling src/pyi_path.c
C:\msys64\mingw64\bin/windres.exe: windows/run.rc.o: No such file or 
directory

../../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=]
  469 |         strncat(pypath, PYI_SEPSTR, strlen(PYI_SEPSTR));
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../src/pyi_pythonlib.c:470:9: error: 'strncat' specified bound 16 equals 
source length [-Werror=stringop-overflow=]
  470 |         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=]
  471 |         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=]
  468 |         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=]
  472 |         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=]
  464 |         strncpy(pypath, status->mainpath, strlen(status->mainpath));
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1.exe: all warnings being treated as errors

../../src/pyi_path.c: In function 'pyi_path_dirname':
../../src/pyi_path.c:56:5: error: 'strncpy' specified bound depends on the 
length of the source argument [-Werror=stringop-overflow=]
   56 |     strncpy(result, path, strlen(path) + 1);
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../src/pyi_path.c:56:27: note: length computed here
   56 |     strncpy(result, path, strlen(path) + 1);
      |                           ^~~~~~~~~~~~
../../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=]
  143 |     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=]
  156 |         strncat(result, path2, len - 2);
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../src/pyi_path.c:152:11: note: length computed here
  152 |     len = strlen(path2);
      |           ^~~~~~~~~~~~~
cc1.exe: all warnings being treated as errors

Waf: Leaving directory `C:/msys64/home/jador/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)
 -> task in 'run_d' failed with exit status 1 (run with -v to display more 
information)

and when I try to install PyInstaller on MSYS2 I get the following error:

$ python setup.py install
Traceback (most recent call last):
  File "setup.py", line 16, in <module>
    from setuptools import setup
ModuleNotFoundError: No module named 'setuptools'

but I know for a fact that setuptools is installed:

$ pip install setuptools
Requirement already satisfied: setuptools in /usr/lib/python3.7/site-packages 
(41.6.0)

What should I do? I know that it is possible to install PyInstaller on 
MSYS2 but I keep getting these errors.

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/pyinstaller/28052aa1-0f1b-460d-a2d4-8679c9f36275%40googlegroups.com.

Reply via email to