Closed FHoevi closed 3 years ago
OK, following https://www.visualmicro.com/forums/YaBB.pl?num=1589058710/16 I had to delete the folder "C:\Users\XXX\AppData\Local\arduino15\packages\arduino". Now it uses avr-gcc from a different location which has been created during recent Arduino IDE 1.8.13 installation.
Problem solved.
Isnt this a general error you also get with the upstream arduino boards? It seems that the visualmicro plugin has a compiler that does not ship LTO. And the board definition file enables LTO: https://github.com/arduino/ArduinoCore-avr/blob/master/platform.txt#L23
When using the Arduino IDE anything was working well. I wanted to switch to VS2019 and VisualMicro for being able to set up larger projects and not just sketches. You are right, VisualMicro seems to to bring an outdated or not fully fledged compiler which needs to be removed by the step from above.
Isn't this the same as #124?
I'm just trying to build the following code for a Mega2560 board on a Win10 box with Arduino IDE Ver 1.8.13 working in the background:
During "Building core..." I get the following error message:
When I take the same thing in the command line and skip the -fno-fat-lto-objects it seems to be working.
What do I have to do to get that working?