Julien, to reproduce do below steps on Windows:
$ echo "int foo() {return 0;}" > input1.c $ echo "int bar() {return 3;}" > input2.c
$ ./gcc-arm-none-eabi-9-2019-q4-major-win32/bin/arm-none-eabi-gcc.exe -c input1.c $ ./gcc-arm-none-eabi-9-2019-q4-major-win32/bin/arm-none-eabi-gcc.exe -c input2.c
$ ./gen.sh > build.ninja $ ./ninja.exe
$ PATH=./gcc-arm-none-eabi-9-2019-q4-major-win32/bin:$PATH ./ninja.exe [1/1000] Creating archive out-61.a FAILED: out-61.a 'cmd.exe /C "arm-none-eabi-ar qc out-61.a input1.o input2.o && arm-none-eabi-ranlib out-61.a' CreateProcess failed: The system cannot find the file specified. [2/1000] Creating archive out-68.a FAILED: out-68.a 'cmd.exe /C "arm-none-eabi-ar qc out-68.a input1.o input2.o && arm-none-eabi-ranlib out-68.a' CreateProcess failed: The system cannot find the file specified. [3/1000] Creating archive out-77.a FAILED: out-77.a 'cmd.exe /C "arm-none-eabi-ar qc out-77.a input1.o input2.o && arm-none-eabi-ranlib out-77.a' CreateProcess failed: The system cannot find the file specified. [4/1000] Creating archive out-27.a FAILED: out-27.a 'cmd.exe /C "arm-none-eabi-ar qc out-27.a input1.o input2.o && arm-none-eabi-ranlib out-27.a' CreateProcess failed: The system cannot find the file specified. [5/1000] Creating archive out-31.a FAILED: out-31.a 'cmd.exe /C "arm-none-eabi-ar qc out-31.a input1.o input2.o && arm-none-eabi-ranlib out-31.a' CreateProcess failed: The system cannot find the file specified. [6/1000] Creating archive out-37.a FAILED: out-37.a 'cmd.exe /C "arm-none-eabi-ar qc out-37.a input1.o input2.o && arm-none-eabi-ranlib out-37.a' CreateProcess failed: The system cannot find the file specified. ninja: build stopped: subcommand failed.
Julien,
to reproduce do below steps on Windows:
$ echo "int foo() {return 0;}" > input1.c
$ echo "int bar() {return 3;}" > input2.c
$ ./gcc-arm- none-eabi- 9-2019- q4-major- win32/bin/ arm-none- eabi-gcc. exe -c input1.c none-eabi- 9-2019- q4-major- win32/bin/ arm-none- eabi-gcc. exe -c input2.c
$ ./gcc-arm-
$ ./gen.sh > build.ninja
$ ./ninja.exe
$ PATH=./ gcc-arm- none-eabi- 9-2019- q4-major- win32/bin: $PATH ./ninja.exe eabi-ranlib out-61.a' eabi-ranlib out-68.a' eabi-ranlib out-77.a' eabi-ranlib out-27.a' eabi-ranlib out-31.a' eabi-ranlib out-37.a'
[1/1000] Creating archive out-61.a
FAILED: out-61.a
'cmd.exe /C "arm-none-eabi-ar qc out-61.a input1.o input2.o && arm-none-
CreateProcess failed: The system cannot find the file specified.
[2/1000] Creating archive out-68.a
FAILED: out-68.a
'cmd.exe /C "arm-none-eabi-ar qc out-68.a input1.o input2.o && arm-none-
CreateProcess failed: The system cannot find the file specified.
[3/1000] Creating archive out-77.a
FAILED: out-77.a
'cmd.exe /C "arm-none-eabi-ar qc out-77.a input1.o input2.o && arm-none-
CreateProcess failed: The system cannot find the file specified.
[4/1000] Creating archive out-27.a
FAILED: out-27.a
'cmd.exe /C "arm-none-eabi-ar qc out-27.a input1.o input2.o && arm-none-
CreateProcess failed: The system cannot find the file specified.
[5/1000] Creating archive out-31.a
FAILED: out-31.a
'cmd.exe /C "arm-none-eabi-ar qc out-31.a input1.o input2.o && arm-none-
CreateProcess failed: The system cannot find the file specified.
[6/1000] Creating archive out-37.a
FAILED: out-37.a
'cmd.exe /C "arm-none-eabi-ar qc out-37.a input1.o input2.o && arm-none-
CreateProcess failed: The system cannot find the file specified.
ninja: build stopped: subcommand failed.