Activity log for bug #1853451

Date Who What changed Old value New value Message
2019-11-21 12:45:16 Michał Fita bug added bug
2019-11-21 12:47:21 Michał Fita tags lto
2019-11-21 12:47:48 Michał Fita description 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? 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\Complex.elf.TsjAGF.ltrans28.ltrans.o] Error 1 (ignored) make[2]: [c:\Projects\Complex\Build\Temp\Complex.elf.TsjAGF.ltrans24.ltrans.o] Error 1 (ignored) The system cannot find the path specified. make[2]: [c:\Projects\Complex\Build\Temp\Complex.elf.TsjAGF.ltrans30.ltrans.o] Error 1 (ignored) The system cannot find the path specified. make[2]: [c:\Projects\Complex\Build\Temp\Complex.elf.TsjAGF.ltrans8.ltrans.o] Error 1 (ignored) The system cannot find the path specified. make[2]: [c:\Projects\Complex\Build\Temp\Complex.elf.TsjAGF.ltrans5.ltrans.o] Error 1 (ignored) The system cannot find the path specified. make[2]: [c:\Projects\Complex\Build\Temp\Complex.elf.TsjAGF.ltrans3.ltrans.o] Error 1 (ignored) The system cannot find the path specified. make[2]: [c:\Projects\Complex\Build\Temp\Complex.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\Complex.elf.TsjAGF.ltrans1.ltrans.o] Error 1 (ignored) make[2]: [c:\Projects\Complex\Build\Temp\Complex.elf.TsjAGF.ltrans26.ltrans.o] Error 1 (ignored) The system cannot find the path specified. make[2]: [c:\Projects\Complex\Build\Temp\Complex.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\Complex.elf.TsjAGF.ltrans0.ltrans.o] Error 1 (ignored) make[2]: [c:\Projects\Complex\Build\Temp\Complex.elf.TsjAGF.ltrans14.ltrans.o] Error 1 (ignored) The system cannot find the path specified. make[2]: [c:\Projects\Complex\Build\Temp\Complex.elf.TsjAGF.ltrans20.ltrans.o] Error 1 (ignored) The system cannot find the path specified. make[2]: [c:\Projects\Complex\Build\Temp\Complex.elf.TsjAGF.ltrans6.ltrans.o] Error 1 (ignored) The system cannot find the path specified. make[2]: [c:\Projects\Complex\Build\Temp\Complex.elf.TsjAGF.ltrans25.ltrans.o] Error 1 (ignored) The system cannot find the path specified. make[2]: [c:\Projects\Complex\Build\Temp\Complex.elf.TsjAGF.ltrans23.ltrans.o] Error 1 (ignored) The system cannot find the path specified. make[2]: [c:\Projects\Complex\Build\Temp\Complex.elf.TsjAGF.ltrans33.ltrans.o] Error 1 (ignored) The system cannot find the path specified. make[2]: [c:\Projects\Complex\Build\Temp\Complex.elf.TsjAGF.ltrans31.ltrans.o] Error 1 (ignored) The system cannot find the path specified. make[2]: [c:\Projects\Complex\Build\Temp\Complex.elf.TsjAGF.ltrans15.ltrans.o] Error 1 (ignored) The system cannot find the path specified. make[2]: [c:\Projects\Complex\Build\Temp\Complex.elf.TsjAGF.ltrans4.ltrans.o] Error 1 (ignored) The system cannot find the path specified. make[2]: [c:\Projects\Complex\Build\Temp\Complex.elf.TsjAGF.ltrans18.ltrans.o] Error 1 (ignored) The system cannot find the path specified. make[2]: [c:\Projects\Complex\Build\Temp\Complex.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\Complex.elf.TsjAGF.ltrans17.ltrans.o] Error 1 (ignored) make[2]: [c:\Projects\Complex\Build\Temp\Complex.elf.TsjAGF.ltrans10.ltrans.o] Error 1 (ignored) The system cannot find the path specified. make[2]: [c:\Projects\Complex\Build\Temp\Complex.elf.TsjAGF.ltrans37.ltrans.o] Error 1 (ignored) The system cannot find the path specified. make[2]: [c:\Projects\Complex\Build\Temp\Complex.elf.TsjAGF.ltrans22.ltrans.o] Error 1 (ignored) The system cannot find the path specified. make[2]: [c:\Projects\Complex\Build\Temp\Complex.elf.TsjAGF.ltrans36.ltrans.o] Error 1 (ignored) The system cannot find the path specified. make[2]: [c:\Projects\Complex\Build\Temp\Complex.elf.TsjAGF.ltrans12.ltrans.o] Error 1 (ignored) The system cannot find the path specified. make[2]: [c:\Projects\Complex\Build\Temp\Complex.elf.TsjAGF.ltrans9.ltrans.o] Error 1 (ignored) The system cannot find the path specified. make[2]: [c:\Projects\Complex\Build\Temp\Complex.elf.TsjAGF.ltrans7.ltrans.o] Error 1 (ignored) The system cannot find the path specified. make[2]: [c:\Projects\Complex\Build\Temp\Complex.elf.TsjAGF.ltrans27.ltrans.o] Error 1 (ignored) The system cannot find the path specified. make[2]: [c:\Projects\Complex\Build\Temp\Complex.elf.TsjAGF.ltrans11.ltrans.o] Error 1 (ignored) The system cannot find the path specified. make[2]: [c:\Projects\Complex\Build\Temp\Complex.elf.TsjAGF.ltrans21.ltrans.o] Error 1 (ignored) The system cannot find the path specified. make[2]: [c:\Projects\Complex\Build\Temp\Complex.elf.TsjAGF.ltrans34.ltrans.o] Error 1 (ignored) The system cannot find the path specified. make[2]: [c:\Projects\Complex\Build\Temp\Complex.elf.TsjAGF.ltrans38.ltrans.o] Error 1 (ignored) The system cannot find the path specified. make[2]: [c:\Projects\Complex\Build\Temp\Complex.elf.TsjAGF.ltrans29.ltrans.o] Error 1 (ignored) The system cannot find the path specified. make[2]: [c:\Projects\Complex\Build\Temp\Complex.elf.TsjAGF.ltrans35.ltrans.o] Error 1 (ignored) The system cannot find the path specified. make[2]: [c:\Projects\Complex\Build\Temp\Complex.elf.TsjAGF.ltrans2.ltrans.o] Error 1 (ignored) The system cannot find the path specified. make[2]: [c:\Projects\Complex\Build\Temp\Complex.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?
2019-12-02 14:59:51 Michał Fita attachment added This time demo that reveal the problem. https://bugs.launchpad.net/gcc-arm-embedded/+bug/1853451/+attachment/5309326/+files/lto-wrapped-demo.7z