Error Code

Win 10
Arduino 1.8.5 (Also Tried 1.8.7)
Marlin any version
Board Fysetc F6 but as done it with others

Hi all, im getting this error when trying to complie Marlin for 3d printer.
cc1.exe: error: -fno-fat-lto-objects are supported only with linker plugin.
Been using Arduino for around 2yrs for uploaded the code/firmware. This as only just started.

I have recently loaded Microsoft visual Studio Code with PlatformIo

Any help much appreciated

Please do this:

  • File > Preferences > Show verbose output during: > compilation (check) > OK
  • Sketch > Verify/Compile
  • After the compilation fails you'll see a button on the right side of the orange bar "Copy error messages". Click that button.
  • Paste the error messages in a reply here USING CODE TAGS (</> button on the forum toolbar).

If the length of the output exceeds the forum's 9000 character limit, save it in a txt file and post it here as an attachment. If you click the "Reply" button you'll see the "Attachments and other options" link.

pert:
Please do this:

  • File > Preferences > Show verbose output during: > compilation (check) > OK
  • Sketch > Verify/Compile
  • After the compilation fails you'll see a button on the right side of the orange bar "Copy error messages". Click that button.
  • Paste the error messages in a reply here USING CODE TAGS (</> button on the forum toolbar).

If the length of the output exceeds the forum's 9000 character limit, save it in a txt file and post it here as an attachment. If you click the "Reply" button you'll see the "Attachments and other options" link.

Tried this with original post and get this message
The message exceeds the maximum allowed length (9000 characters).
Tried pressing the tags 1st them pasting the code and pasting, highliting then hitting tags

Sorry just read the part about attachments

Error Code.txt (307 KB)

I think this is the clue to the cause of the error:

Using core 'arduino' from platform in folder: C:\Users\Ian\Documents\Arduino\hardware\arduino\avr

It seems that, for some unknown reason, you have installed a version of Arduino AVR Boards to your sketchbook folder. This is causing an outdated compiler version to be used that doesn't support the compilation recipe.

What is the purpose of the hardware package you have installed at C:\Users\Ian\Documents\Arduino\hardware\arduino\avr?

I think I installed it to try and stop the error

Iv checked the path and there's no avr folder

It looks like you installed the Arduino IDE to your sketchbook folder (C:\Users\Ian\Documents\Arduino) but the Arduino IDE you're actually using is at C:\Program Files (x86)\Arduino. Installing the Arduino IDE to your sketchbook folder makes absolutely no sense and is likely the cause of the error. You need to delete everything in the C:\Users\Ian\Documents\Arduino folder, but first be sure to back up any of your own personal files in that folder. From the screenshot, it doesn't look like you have anything in there.

After doing that, exit all Arduino IDE windows, start the Arduino IDE again, then try compiling Marlin again.

Ok thanks.
Everything removed and a fresh install of 1.8.5.
It now complies but does have 2 errors.
Error while detecting libraries included by C:\Users\Ian\AppData\Local\Temp\arduino_build_17196\sketch\src\Marlin.cpp
Error while detecting libraries included by C:\Users\Ian\AppData\Local\Temp\arduino_build_17196\sketch\src\gcode\control\M80_M81.cpp

Is this something I should be concerned with?

I've never seen that error before and I didn't find any useful information about it. If the code is compiling then it should be fine. If you were only wanting to update the firmware on your 3D printer, I'd say forget about it. Since it sounds like you will continue to use the Arduino IDE, it might be worth looking into this error more, as it might cause problems in some future projects.

Please do this:

  • Click on the black console window at the bottom of the Arduino IDE window.
  • Press Ctrl+A. This will highlight all the text in the console window.
  • Press Ctrl+C. This will copy the highlighted text to the clipboard.
  • Paste the copied text to a txt file and post it here as an attachment. I'll take a look at it and see if I can spot anything that might have caused the error message.

Sorry my bad.
Them errors were with 1.9.0
But when compiling a second time it says

fork/exec C:\Users\Ian\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\5.4.0-atmel3.6.1-arduino2/bin/avr-gcc.exe: The filename or extension is too long.

Folder is at D:\3D\Fysetc\Marlin-bugfix-2.0.x\

IanSuggy:
Them errors were with 1.9.0
But when compiling a second time it says

fork/exec C:\Users\Ian\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\5.4.0-atmel3.6.1-arduino2/bin/avr-gcc.exe: The filename or extension is too long.

Folder is at D:\3D\Fysetc\Marlin-bugfix-2.0.x\

Which version of the Arduino IDE are you using when you got that error? I remember this problem with Marlin but I though it had been fixed:

1.8.5

Try it with 1.8.7.

Attached 2 files.
1 compiled with 1.9.0
and
1 Compiled with 1.8.5

1.9.0.txt (138 KB)

1.8.5.txt (784 KB)

Tried 1.8.7

Compiles with the same errors as 1.9.0 I think

Attached

1.8.7.txt (831 KB)

I only see the "Error while detecting libraries included by" in the 1.8.7 output:

"C:\\Users\\Ian\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\5.4.0-atmel3.6.1-arduino2/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=10807 -DARDUINO_AVR_FYSETCF6 -DARDUINO_ARCH_AVR "-IC:\\Users\\Ian\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.6.23\\cores\\arduino" "-IC:\\Users\\Ian\\AppData\\Local\\Arduino15\\packages\\fysetcf6\\hardware\\avr\\1.3.0\\variants\\fysetcf6" "-IC:\\Users\\Ian\\Documents\\Arduino\\libraries\\TMC2130Stepper\\src" "-IC:\\Users\\Ian\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.6.23\\libraries\\SPI\\src" "C:\\Users\\Ian\\AppData\\Local\\Temp\\arduino_build_515808\\sketch\\src\\Marlin.cpp" -o nul
Error while detecting libraries included by C:\Users\Ian\AppData\Local\Temp\arduino_build_515808\sketch\src\Marlin.cpp
"C:\\Users\\Ian\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\5.4.0-atmel3.6.1-arduino2/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=10807 -DARDUINO_AVR_FYSETCF6 -DARDUINO_ARCH_AVR "-IC:\\Users\\Ian\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.6.23\\cores\\arduino" "-IC:\\Users\\Ian\\AppData\\Local\\Arduino15\\packages\\fysetcf6\\hardware\\avr\\1.3.0\\variants\\fysetcf6" "-IC:\\Users\\Ian\\Documents\\Arduino\\libraries\\TMC2130Stepper\\src" "-IC:\\Users\\Ian\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.6.23\\libraries\\SPI\\src" "C:\\Users\\Ian\\AppData\\Local\\Temp\\arduino_build_515808\\sketch\\src\\gcode\\control\\M80_M81.cpp" -o nul
Error while detecting libraries included by C:\Users\Ian\AppData\Local\Temp\arduino_build_515808\sketch\src\gcode\control\M80_M81.cpp

I don't spot an obvious reason for it. Maybe someone else will have an idea.

I don't spot any error in the 1.9.0 output.

Ok thanks for your help
Very much appreciated
1.9.0 it is then