NicoHood / HoodLoader2

16u2 Bootloader to reprogram 16u2 + 328/2560 with Arduino IDE
http://www.nicohood.de
731 stars 185 forks source link

Error compiling program for HoodLoader2 Uno #124

Closed Sanjeet990 closed 1 week ago

Sanjeet990 commented 1 year ago

I was able to flash HoodLoader2 correctly. I can also veryfy this in devices and printers but while flashing any program, I'm getting this:

cc1.exe: error: -fno-fat-lto-objects are supported only with linker plugin. cc1.exe: error: -fno-fat-lto-objects are supported only with linker plugin. cc1.exe: error: -fno-fat-lto-objects are supported only with linker plugin. cc1.exe: error: -fno-fat-lto-objects are supported only with linker plugin. cc1.exe: error: -fno-fat-lto-objects are supported only with linker plugin. cc1.exe: error: -fno-fat-lto-objects are supported only with linker plugin. cc1.exe: error: -fno-fat-lto-objects are supported only with linker plugin.

exit status 1

Compilation error: exit status 1

Bnco3DTech commented 8 months ago

Did you fix it I have same issue.

cc1.exe: error: -fno-fat-lto-objects are supported only with linker plugin.

Kandermann commented 7 months ago

I am having this issue too! kind of wierd

TannerGilbert commented 6 months ago

I also got the same error when using Arduino IDE 2.x. Using Arduino IDE 1.8.x instead solved the problem for me. (PS Thanks @FRALEXAlexander for the advice)

DRSDavidSoft commented 4 months ago

@NicoHood Same issue with VS Code and the Arduino extension :(

image
syfenx commented 1 month ago

pretty sure I fixed this by installing 1.8.3 Arduino AVR Boards in board manager

SlopeSlayer910 commented 1 week ago

Using Arduino IDE 1.8.x instead solved the problem for me.

I am also encountering this error. Switching to Arduino IDE 1.8.19 solved the problem for me as well however compatibility with Arduino IDE 2.X.X would be greatly appreciated.

Sanjeet990 commented 1 week ago

The issue above fixes by installing the proper board definitions in board manager. Closing it to prevent any confusion.

DRSDavidSoft commented 1 week ago

@Sanjeet990 Are you saying that the issue will not occur with Arduino 2.X as well? It was established that the legacy IDE doesn't have this issue anymore.

Also I use VS Code with the Arduino extension by Microsoft which caused the error I posted.

For building the HoodLoader I would prefer not to need the legacy IDE since everyone is switching away from it to the new, modular, cool v2.x IDE. Would you please re-open the issue until this is also fixed for the v2.x?