Comment 0 for bug 1853451

Revision history for this message
MichaƂ Fita (michal.fita) wrote :

Building my complex project with LTO enabled with 2019-q4 toolchain leads to bunch of errors at linking stage:

The system cannot find the path specified.
The system cannot find the path specified.
make[2]: [c:\Projects\Complex\Build\Temp\WiserHeatController.elf.TsjAGF.ltrans28.ltrans.o] Error 1 (ignored)
make[2]: [c:\Projects\Complex\Build\Temp\WiserHeatController.elf.TsjAGF.ltrans24.ltrans.o] Error 1 (ignored)
The system cannot find the path specified.
make[2]: [c:\Projects\Complex\Build\Temp\WiserHeatController.elf.TsjAGF.ltrans30.ltrans.o] Error 1 (ignored)
The system cannot find the path specified.
make[2]: [c:\Projects\Complex\Build\Temp\WiserHeatController.elf.TsjAGF.ltrans8.ltrans.o] Error 1 (ignored)
The system cannot find the path specified.
make[2]: [c:\Projects\Complex\Build\Temp\WiserHeatController.elf.TsjAGF.ltrans5.ltrans.o] Error 1 (ignored)
The system cannot find the path specified.
make[2]: [c:\Projects\Complex\Build\Temp\WiserHeatController.elf.TsjAGF.ltrans3.ltrans.o] Error 1 (ignored)
The system cannot find the path specified.
make[2]: [c:\Projects\Complex\Build\Temp\WiserHeatController.elf.TsjAGF.ltrans13.ltrans.o] Error 1 (ignored)
The system cannot find the path specified.
The system cannot find the path specified.
make[2]: [c:\Projects\Complex\Build\Temp\WiserHeatController.elf.TsjAGF.ltrans1.ltrans.o] Error 1 (ignored)
make[2]: [c:\Projects\Complex\Build\Temp\WiserHeatController.elf.TsjAGF.ltrans26.ltrans.o] Error 1 (ignored)
The system cannot find the path specified.
make[2]: [c:\Projects\Complex\Build\Temp\WiserHeatController.elf.TsjAGF.ltrans32.ltrans.o] Error 1 (ignored)
The system cannot find the path specified.
The system cannot find the path specified.
make[2]: [c:\Projects\Complex\Build\Temp\WiserHeatController.elf.TsjAGF.ltrans0.ltrans.o] Error 1 (ignored)
make[2]: [c:\Projects\Complex\Build\Temp\WiserHeatController.elf.TsjAGF.ltrans14.ltrans.o] Error 1 (ignored)
The system cannot find the path specified.
make[2]: [c:\Projects\Complex\Build\Temp\WiserHeatController.elf.TsjAGF.ltrans20.ltrans.o] Error 1 (ignored)
The system cannot find the path specified.
make[2]: [c:\Projects\Complex\Build\Temp\WiserHeatController.elf.TsjAGF.ltrans6.ltrans.o] Error 1 (ignored)
The system cannot find the path specified.
make[2]: [c:\Projects\Complex\Build\Temp\WiserHeatController.elf.TsjAGF.ltrans25.ltrans.o] Error 1 (ignored)
The system cannot find the path specified.
make[2]: [c:\Projects\Complex\Build\Temp\WiserHeatController.elf.TsjAGF.ltrans23.ltrans.o] Error 1 (ignored)
The system cannot find the path specified.
make[2]: [c:\Projects\Complex\Build\Temp\WiserHeatController.elf.TsjAGF.ltrans33.ltrans.o] Error 1 (ignored)
The system cannot find the path specified.
make[2]: [c:\Projects\Complex\Build\Temp\WiserHeatController.elf.TsjAGF.ltrans31.ltrans.o] Error 1 (ignored)
The system cannot find the path specified.
make[2]: [c:\Projects\Complex\Build\Temp\WiserHeatController.elf.TsjAGF.ltrans15.ltrans.o] Error 1 (ignored)
The system cannot find the path specified.
make[2]: [c:\Projects\Complex\Build\Temp\WiserHeatController.elf.TsjAGF.ltrans4.ltrans.o] Error 1 (ignored)
The system cannot find the path specified.
make[2]: [c:\Projects\Complex\Build\Temp\WiserHeatController.elf.TsjAGF.ltrans18.ltrans.o] Error 1 (ignored)
The system cannot find the path specified.
make[2]: [c:\Projects\Complex\Build\Temp\WiserHeatController.elf.TsjAGF.ltrans16.ltrans.o] Error 1 (ignored)
The system cannot find the path specified.
The system cannot find the path specified.
make[2]: [c:\Projects\Complex\Build\Temp\WiserHeatController.elf.TsjAGF.ltrans17.ltrans.o] Error 1 (ignored)
make[2]: [c:\Projects\Complex\Build\Temp\WiserHeatController.elf.TsjAGF.ltrans10.ltrans.o] Error 1 (ignored)
The system cannot find the path specified.
make[2]: [c:\Projects\Complex\Build\Temp\WiserHeatController.elf.TsjAGF.ltrans37.ltrans.o] Error 1 (ignored)
The system cannot find the path specified.
make[2]: [c:\Projects\Complex\Build\Temp\WiserHeatController.elf.TsjAGF.ltrans22.ltrans.o] Error 1 (ignored)
The system cannot find the path specified.
make[2]: [c:\Projects\Complex\Build\Temp\WiserHeatController.elf.TsjAGF.ltrans36.ltrans.o] Error 1 (ignored)
The system cannot find the path specified.
make[2]: [c:\Projects\Complex\Build\Temp\WiserHeatController.elf.TsjAGF.ltrans12.ltrans.o] Error 1 (ignored)
The system cannot find the path specified.
make[2]: [c:\Projects\Complex\Build\Temp\WiserHeatController.elf.TsjAGF.ltrans9.ltrans.o] Error 1 (ignored)
The system cannot find the path specified.
make[2]: [c:\Projects\Complex\Build\Temp\WiserHeatController.elf.TsjAGF.ltrans7.ltrans.o] Error 1 (ignored)
The system cannot find the path specified.
make[2]: [c:\Projects\Complex\Build\Temp\WiserHeatController.elf.TsjAGF.ltrans27.ltrans.o] Error 1 (ignored)
The system cannot find the path specified.
make[2]: [c:\Projects\Complex\Build\Temp\WiserHeatController.elf.TsjAGF.ltrans11.ltrans.o] Error 1 (ignored)
The system cannot find the path specified.
make[2]: [c:\Projects\Complex\Build\Temp\WiserHeatController.elf.TsjAGF.ltrans21.ltrans.o] Error 1 (ignored)
The system cannot find the path specified.
make[2]: [c:\Projects\Complex\Build\Temp\WiserHeatController.elf.TsjAGF.ltrans34.ltrans.o] Error 1 (ignored)
The system cannot find the path specified.
make[2]: [c:\Projects\Complex\Build\Temp\WiserHeatController.elf.TsjAGF.ltrans38.ltrans.o] Error 1 (ignored)
The system cannot find the path specified.
make[2]: [c:\Projects\Complex\Build\Temp\WiserHeatController.elf.TsjAGF.ltrans29.ltrans.o] Error 1 (ignored)
The system cannot find the path specified.
make[2]: [c:\Projects\Complex\Build\Temp\WiserHeatController.elf.TsjAGF.ltrans35.ltrans.o] Error 1 (ignored)
The system cannot find the path specified.
make[2]: [c:\Projects\Complex\Build\Temp\WiserHeatController.elf.TsjAGF.ltrans2.ltrans.o] Error 1 (ignored)
The system cannot find the path specified.
make[2]: [c:\Projects\Complex\Build\Temp\WiserHeatController.elf.TsjAGF.ltrans19.ltrans.o] Error 1 (ignored)

But adding `-save-temps` to `LD_FLAGS` makes these errors disappear.

As far as I remember MinGW had some issues with temporary files in the past, so definitely this issue takes place here... like temp files removed too early?