Libpsl fails to build on Win 10 x64 after recent "python3 only fix"
Got errors on 2 build machines (both Win 10 x64, -v visualstudio):
Machine 1:
[(53/73) libpsl -> compile]
Running command 'c:/cerbero/build/build-tools/bin/ninja.EXE -v -d keeprsp'
[1/25] "C:/Python38/python.exe" "python" "C:/cerbero/build/sources/msvc_x86_64/libpsl-0.21.0/src/psl-make-dafsa" "--outp
ut-format=binary" "C:/cerbero/build/sources/msvc_x86_64/libpsl-0.21.0/list/public_suffix_list.dat" "tests/psl.dafsa"
FAILED: tests/psl.dafsa
"C:/Python38/python.exe" "python" "C:/cerbero/build/sources/msvc_x86_64/libpsl-0.21.0/src/psl-make-dafsa" "--output-form
at=binary" "C:/cerbero/build/sources/msvc_x86_64/libpsl-0.21.0/list/public_suffix_list.dat" "tests/psl.dafsa"
C:/Python38/python.exe: can't open file 'python': [Errno 2] No such file or directory
[2/25] "C:/Python38/python.exe" "python" "C:/cerbero/build/sources/msvc_x86_64/libpsl-0.21.0/src/psl-make-dafsa" "--outp
ut-format=cxx+" "C:/cerbero/build/sources/msvc_x86_64/libpsl-0.21.0/list/public_suffix_list.dat" "src/suffixes_dafsa.h"
FAILED: src/suffixes_dafsa.h
"C:/Python38/python.exe" "python" "C:/cerbero/build/sources/msvc_x86_64/libpsl-0.21.0/src/psl-make-dafsa" "--output-form
at=cxx+" "C:/cerbero/build/sources/msvc_x86_64/libpsl-0.21.0/list/public_suffix_list.dat" "src/suffixes_dafsa.h"
C:/Python38/python.exe: can't open file 'python': [Errno 2] No such file or directory
[3/25] cl @tests/59830eb@@test-is-public@exe/test-is-public.c.obj.rsp
ninja: build stopped: subcommand failed.
Recipe 'libpsl' failed at the build step 'compile'
Command Error: Running ['c:/cerbero/build/build-tools/bin/ninja.EXE', '-v', '-d', 'keeprsp'] returned 1
Machine 2:
Running command 'c:/lib/cerbero/build/build-tools/bin/ninja.EXE -v -d keeprsp'
[1/25] "C:/Programs/Python38/python.exe" "python" "C:/Lib/cerbero/build/sources/msvc_x86_64/libpsl-0.21.0/src/psl-make-dafsa" "--output-format=cxx+" "C:/Lib/cerbero/build/sources/msvc_x86_64/libpsl-0.21.0/list/public_suffix_list.dat" "src/suffixes_dafsa.h"
FAILED: src/suffixes_dafsa.h
"C:/Programs/Python38/python.exe" "python" "C:/Lib/cerbero/build/sources/msvc_x86_64/libpsl-0.21.0/src/psl-make-dafsa" "--output-format=cxx+" "C:/Lib/cerbero/build/sources/msvc_x86_64/libpsl-0.21.0/list/public_suffix_list.dat" "src/suffixes_dafsa.h"
C:/Programs/Python38/python.exe: can't open file 'python': [Errno 2] No such file or directory
[2/25] "C:/Programs/Python38/python.exe" "python" "C:/Lib/cerbero/build/sources/msvc_x86_64/libpsl-0.21.0/src/psl-make-dafsa" "--output-format=binary" "C:/Lib/cerbero/build/sources/msvc_x86_64/libpsl-0.21.0/list/public_suffix_list.dat" "tests/psl.dafsa"
FAILED: tests/psl.dafsa
"C:/Programs/Python38/python.exe" "python" "C:/Lib/cerbero/build/sources/msvc_x86_64/libpsl-0.21.0/src/psl-make-dafsa" "--output-format=binary" "C:/Lib/cerbero/build/sources/msvc_x86_64/libpsl-0.21.0/list/public_suffix_list.dat" "tests/psl.dafsa"
C:/Programs/Python38/python.exe: can't open file 'python': [Errno 2] No such file or directory
[3/25] "C:/Programs/Python38/python.exe" "python" "C:/Lib/cerbero/build/sources/msvc_x86_64/libpsl-0.21.0/src/psl-make-dafsa" "--output-format=binary" "--encoding=ascii" "C:/Lib/cerbero/build/sources/msvc_x86_64/libpsl-0.21.0/list/public_suffix_list.dat" "tests/psl_ascii.dafsa"
FAILED: tests/psl_ascii.dafsa
"C:/Programs/Python38/python.exe" "python" "C:/Lib/cerbero/build/sources/msvc_x86_64/libpsl-0.21.0/src/psl-make-dafsa" "--output-format=binary" "--encoding=ascii" "C:/Lib/cerbero/build/sources/msvc_x86_64/libpsl-0.21.0/list/public_suffix_list.dat" "tests/psl_ascii.dafsa"
C:/Programs/Python38/python.exe: can't open file 'python': [Errno 2] No such file or directory
[4/25] cl @fuzz/93850b7@@libpsl_load_dafsa_fuzzer@exe/main.c.obj.rsp
[5/25] cl @fuzz/93850b7@@libpsl_load_dafsa_fuzzer@exe/libpsl_load_dafsa_fuzzer.c.obj.rsp
[6/25] cl @fuzz/93850b7@@libpsl_fuzzer@exe/main.c.obj.rsp
[7/25] cl @fuzz/93850b7@@libpsl_load_fuzzer@exe/libpsl_load_fuzzer.c.obj.rsp
[8/25] cl @fuzz/93850b7@@libpsl_load_fuzzer@exe/main.c.obj.rsp
[9/25] cl @tests/59830eb@@test-is-cookie-domain-acceptable@exe/test-is-cookie-domain-acceptable.c.obj.rsp
[10/25] cl @fuzz/93850b7@@libpsl_fuzzer@exe/libpsl_fuzzer.c.obj.rsp
[11/25] cl @tests/59830eb@@test-is-public@exe/test-is-public.c.obj.rsp
[12/25] cl @tests/59830eb@@test-is-public-all@exe/test-is-public-all.c.obj.rsp
[13/25] cl @tools/f9d35d4@@psl@exe/psl.c.obj.rsp
ninja: build stopped: subcommand failed.
Recipe 'libpsl' failed at the build step 'compile'
Command Error: Running ['c:/lib/cerbero/build/build-tools/bin/ninja.EXE', '-v', '-d', 'keeprsp'] returned 1
I'm pretty sure that both machines have a python.exe at the locations the script was looking at. Reverting back to one commit before 08d1fe59 (a8ff8514) makes the error go away.
Edited by zEdS15B3GCwq