Lto-wrapper failed


I am facing the error
error: lto-wrapper failed
collect2.exe: error: ld returned 1 exit status
exit status 1
Error compiling for board Arduino Uno.

I have used both the version of arduino IDE i.e.
Arduino 1.8.18
Arduino 2.3.3

Does the same error occur when you try to compile e.g. blink?

Both IDEs use the same board package so I would kind-of expect both to fail with the same error.

Unfortunately there is not much information in the error. You can set the Warning Level to All under file / preferences if you haven't done that already; it might reveal something.

I think that I would downgrade the AVR board package (that's not the IDE !!) to 1.8.3 using board manager. Next test and upgrade again to 1.8.6.

Wow
Its working now
Thanks for telling me sir

3 posts were split to a new topic: Lto-wrapper failed (another one)

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.