Problem compiling for Marlin

/ Errort while detecting libraries included by c:\Users\henry\AppData\Local\Temp\arduino_build_836652\sketch\src\MarlinCore.cpp
Error while detecting libraries included by c:\Users\henry\AppData\Local\Temp\arduino_build_836652\sketch\src\core\utility.cpp
Error while detecting libraries included by c:\users\henry\AppData\Local\Temp\arduino_build_836652\sketch\src\gcode\calibrate\G28.cpp

Error while detecting libraries included by c:\users\henry\AppData\Local\Temp\arduino_build_836652\sketch\src\gcode\config\M200-M205.cpp
Error while detecting libraries included by c:\users\henry\AppData\Local\Temp\arduino_build_836652\sketch\src\gcode\config\M220.cpp
Error while detecting libraries included by c:\users\henry\AppData\Local\Temp\arduino_build_836652\sketch\src\gcode\config\M221.cpp
Error while detecting libraries included by c:\users\henry\AppData\Local\Temp\arduino_build_836652\sketch\src\gcode\config\M301.cpp
Error while detecting libraries included by c:\users\henry\AppData\Local\Temp\arduino_build_836652\sketch\src\gcode\config\M302.cpp
Error while detecting libraries included by c:\users\henry\AppData\Local\Temp\arduino_build_836652\sketch\src\gcode\config\M92.cpp
Error while detecting libraries included by c:\users\henry\AppData\Local\Temp\arduino_build_836652\sketch\src\gcode\control\M108_M112_410.cpp
Error while detecting libraries included by c:\users\henry\AppData\Local\Temp\arduino_build_836652\sketch\src\gcode\control\M111.cpp
Error while detecting libraries included by c:\users\henry\AppData\Local\Temp\arduino_build_836652\sketch\src\gcode\control\M120_M121.cpp
Error while detecting libraries included by c:\users\henry\AppData\Local\Temp\arduino_build_836652\sketch\src\gcodcontrol\M17_M18_M84.cpp
Error while detecting libraries included by c:\users\henry\AppData\Local\Temp\arduino_build_836652\sketch\src\gcode\control\M211.cpp
Error while detecting libraries included by c:\users\henry\AppData\Local\Temp\arduino_build_836652\sketch\src\gcode\control\M400.cpp
Error while detecting libraries included by c:\users\henry\AppData\Local\Temp\arduino_build_836652\sketch\src\gcode\control\M80_M81.cpp
Error while detecting libraries included by c:\users\henry\AppData\Local\Temp\arduino_build_836652\sketch\src\gcode\control\M85.cpp
Error while detecting libraries included by c:\users\henry\AppData\Local\Temp\arduino_build_836652\sketch\src\gcode\control\M997.cpp
Error while detecting libraries included by c:\users\henry\AppData\Local\Temp\arduino_build_836652\sketch\src\gcode\control\M999.cpp
Error while detecting libraries included by c:\users\henry\AppData\Local\Temp\arduino_build_836652\sketch\src\gcode\control\T.cpp
Error while detecting libraries included by c:\users\henry\AppData\Local\Temp\arduino_build_836652\sketch\src\gcode\eeprom\M500-M504.cpp
Error while detecting libraries included by c:\users\henry\AppData\Local\Temp\arduino_build_836652\sketch\src\gcode\gcode.cpp
Error while detecting libraries included by c:\users\henry\AppData\Local\Temp\arduino_build_836652\sketch\src\gcode\geometry\G53-G59.cpp
Error while detecting libraries included by c:\users\henry\AppData\Local\Temp\arduino_build_836652\sketch\src\gcode\geometry\G92.cpp
Error while detecting libraries included by c:\users\henry\AppData\Local\Temp\arduino_build_836652\sketch\src\gcode\geometry\M206_M428.cpp
Error while detecting libraries included by c:\users\henry\AppData\Local\Temp\arduino_build_836652\sketch\src\gcode\host\M10.cpp
Error while detecting libraries included by c:\users\henry\AppData\Local\Temp\arduino_build_836652\sketch\src\gcode\host\M113.cpp
Error while detecting libraries included by c:\users\henry\AppData\Local\Temp\arduino_build_836652\sketch\src\gcode\host\M114.cpp
Error while detecting libraries included by c:\users\henry\AppData\Local\Temp\arduino_build_836652\sketch\src\gcode\host\M115.cpp
Error while detecting libraries included by c:\users\henry\AppData\Local\Temp\arduino_build_836652\sketch\src\gcode\host\M118.cpp
Error while detecting libraries included by c:\users\henry\AppData\Local\Temp\arduino_build_836652\sketch\src\gcode\host\M119.cpp
Error while detecting libraries included by c:\users\henry\AppData\Local\Temp\arduino_build_836652\sketch\src\gcode\lcd\M117.cpp
Error while detecting libraries included by c:\users\henry\AppData\Local\Temp\arduino_build_836652\sketch\src\gcode\motion\G0_G1.cpp
Error while detecting libraries included by c:\users\henry\AppData\Local\Temp\arduino_build_836652\sketch\src\gcode\motion\G2_G3.cpp
Error while detecting libraries included by c:\users\henry\AppData\Local\Temp\arduino_build_836652\sketch\src\gcode\motion\G4.cpp
Error while detecting libraries included by c:\users\henry\AppData\Local\Temp\arduino_build_836652\sketch\src\gcode\motion\queue.cpp
Error while detecting libraries included by c:\users\henry\AppData\Local\Temp\arduino_build_836652\sketch\src\gcode\stats\M31.cpp
Error while detecting libraries included by c:\users\henry\AppData\Local\Temp\arduino_build_836652\sketch\src\gcode\stats\M75-M78.cpp
Error while detecting libraries included by c:\users\henry\AppData\Local\Temp\arduino_build_836652\sketch\src\gcode\temp\M104_M109.cpp
Error while detecting libraries included by c:\users\henry\AppData\Local\Temp\arduino_build_836652\sketch\src\gcode\temp\M105.cpp
Error while detecting libraries included by c:\users\henry\AppData\Local\Temp\arduino_build_836652\sketch\src\gcode\temp\M106_M107.cpp
Error while detecting libraries included by c:\users\henry\AppData\Local\Temp\arduino_build_836652\sketch\src\gcode\temp\M155.cpp
Error while detecting libraries included by c:\users\henry\AppData\Local\Temp\arduino_build_836652\sketch\src\gcode\temp\M303.cpp
Error while detecting libraries included by c:\users\henry\AppData\Local\Temp\arduino_build_836652\sketch\src\gcode\units\M82_M83.cpp
Error while detecting libraries included by c:\users\henry\AppData\Local\Temp\arduino_build_836652\sketch\src\module\motion.cpp
Error while detecting libraries included by c:\users\henry\AppData\Local\Temp\arduino_build_836652\sketch\src\module\settings.cpp
Error while detecting libraries included by c:\users\henry\AppData\Local\Temp\arduino_build_836652\sketch\src\module\temperature.cpp
avr-gcc: error: CreateProcess: No such file or directory
exit status 1
Error compiling for board Arduino Mega or Mega 2560.

I am the new user of 3D print, and Marlin, my display LCD cannot show anything which linked with my MKS-Gen-L. (D1scount Smart controller) at the top, and (2004H) at the bottom, at the back.

thanks so much

Split from an unrelated topic

DO NOT hijack old topics

code: [/]

[color=#222222]Error while detecting libraries included by c:\Users\henry\AppData\Local\Temp\arduino_build_836652\sketch\src\MarlinCore.cpp[/color]
[color=#222222]Error while detecting libraries included by c:\Users\henry\AppData\Local\Temp\arduino_build_836652\sketch\src\core\utility.cpp[/color]
[color=#222222]Error while detecting libraries included by c:\users\henry\AppData\Local\Temp\arduino_build_836652\sketch\src\gcode\calibrate\G28.cpp[/color]


[color=#222222]Error while detecting libraries included by c:\users\henry\AppData\Local\Temp\arduino_build_836652\sketch\src\gcode\config\M200-M205.cpp[/color]
[color=#222222]Error while detecting libraries included by c:\users\henry\AppData\Local\Temp\arduino_build_836652\sketch\src\gcode\config\M220.cpp[/color]
[color=#222222]Error while detecting libraries included by c:\users\henry\AppData\Local\Temp\arduino_build_836652\sketch\src\gcode\config\M221.cpp[/color]
[color=#222222]Error while detecting libraries included by c:\users\henry\AppData\Local\Temp\arduino_build_836652\sketch\src\gcode\config\M301.cpp[/color]
[color=#222222]Error while detecting libraries included by c:\users\henry\AppData\Local\Temp\arduino_build_836652\sketch\src\gcode\config\M302.cpp[/color]
[color=#222222]Error while detecting libraries included by c:\users\henry\AppData\Local\Temp\arduino_build_836652\sketch\src\gcode\config\M92.cpp[/color]
[color=#222222]Error while detecting libraries included by c:\users\henry\AppData\Local\Temp\arduino_build_836652\sketch\src\gcode\control\M108_M112_410.cpp[/color]
[color=#222222]Error while detecting libraries included by c:\users\henry\AppData\Local\Temp\arduino_build_836652\sketch\src\gcode\control\M111.cpp[/color]
[color=#222222]Error while detecting libraries included by c:\users\henry\AppData\Local\Temp\arduino_build_836652\sketch\src\gcode\control\M120_M121.cpp[/color]
[color=#222222]Error while detecting libraries included by c:\users\henry\AppData\Local\Temp\arduino_build_836652\sketch\src\gcodcontrol\M17_M18_M84.cpp[/color]
[color=#222222]Error while detecting libraries included by c:\users\henry\AppData\Local\Temp\arduino_build_836652\sketch\src\gcode\control\M211.cpp[/color]
[color=#222222]Error while detecting libraries included by c:\users\henry\AppData\Local\Temp\arduino_build_836652\sketch\src\gcode\control\M400.cpp[/color]
[color=#222222]Error while detecting libraries included by c:\users\henry\AppData\Local\Temp\arduino_build_836652\sketch\src\gcode\control\M80_M81.cpp[/color]
[color=#222222]Error while detecting libraries included by c:\users\henry\AppData\Local\Temp\arduino_build_836652\sketch\src\gcode\control\M85.cpp[/color]
[color=#222222]Error while detecting libraries included by c:\users\henry\AppData\Local\Temp\arduino_build_836652\sketch\src\gcode\control\M997.cpp[/color]
[color=#222222]Error while detecting libraries included by c:\users\henry\AppData\Local\Temp\arduino_build_836652\sketch\src\gcode\control\M999.cpp[/color]
[color=#222222]Error while detecting libraries included by c:\users\henry\AppData\Local\Temp\arduino_build_836652\sketch\src\gcode\control\T.cpp[/color]
[color=#222222]Error while detecting libraries included by c:\users\henry\AppData\Local\Temp\arduino_build_836652\sketch\src\gcode\eeprom\M500-M504.cpp[/color]
[color=#222222]Error while detecting libraries included by c:\users\henry\AppData\Local\Temp\arduino_build_836652\sketch\src\gcode\gcode.cpp[/color]
[color=#222222]Error while detecting libraries included by c:\users\henry\AppData\Local\Temp\arduino_build_836652\sketch\src\gcode\geometry\G53-G59.cpp[/color]
[color=#222222]Error while detecting libraries included by c:\users\henry\AppData\Local\Temp\arduino_build_836652\sketch\src\gcode\geometry\G92.cpp[/color]
[color=#222222]Error while detecting libraries included by c:\users\henry\AppData\Local\Temp\arduino_build_836652\sketch\src\gcode\geometry\M206_M428.cpp[/color]
[color=#222222]Error while detecting libraries included by c:\users\henry\AppData\Local\Temp\arduino_build_836652\sketch\src\gcode\host\M10.cpp[/color]
[color=#222222]Error while detecting libraries included by c:\users\henry\AppData\Local\Temp\arduino_build_836652\sketch\src\gcode\host\M113.cpp[/color]
[color=#222222]Error while detecting libraries included by c:\users\henry\AppData\Local\Temp\arduino_build_836652\sketch\src\gcode\host\M114.cpp[/color]
[color=#222222]Error while detecting libraries included by c:\users\henry\AppData\Local\Temp\arduino_build_836652\sketch\src\gcode\host\M115.cpp[/color]
[color=#222222]Error while detecting libraries included by c:\users\henry\AppData\Local\Temp\arduino_build_836652\sketch\src\gcode\host\M118.cpp[/color]
[color=#222222]Error while detecting libraries included by c:\users\henry\AppData\Local\Temp\arduino_build_836652\sketch\src\gcode\host\M119.cpp[/color]
[color=#222222]Error while detecting libraries included by c:\users\henry\AppData\Local\Temp\arduino_build_836652\sketch\src\gcode\lcd\M117.cpp[/color]
[color=#222222]Error while detecting libraries included by c:\users\henry\AppData\Local\Temp\arduino_build_836652\sketch\src\gcode\motion\G0_G1.cpp[/color]
[color=#222222]Error while detecting libraries included by c:\users\henry\AppData\Local\Temp\arduino_build_836652\sketch\src\gcode\motion\G2_G3.cpp[/color]
[color=#222222]Error while detecting libraries included by c:\users\henry\AppData\Local\Temp\arduino_build_836652\sketch\src\gcode\motion\G4.cpp[/color]
[color=#222222]Error while detecting libraries included by c:\users\henry\AppData\Local\Temp\arduino_build_836652\sketch\src\gcode\motion\queue.cpp[/color]
[color=#222222]Error while detecting libraries included by c:\users\henry\AppData\Local\Temp\arduino_build_836652\sketch\src\gcode\stats\M31.cpp[/color]
[color=#222222]Error while detecting libraries included by c:\users\henry\AppData\Local\Temp\arduino_build_836652\sketch\src\gcode\stats\M75-M78.cpp[/color]
[color=#222222]Error while detecting libraries included by c:\users\henry\AppData\Local\Temp\arduino_build_836652\sketch\src\gcode\temp\M104_M109.cpp[/color]
[color=#222222]Error while detecting libraries included by c:\users\henry\AppData\Local\Temp\arduino_build_836652\sketch\src\gcode\temp\M105.cpp[/color]
[color=#222222]Error while detecting libraries included by c:\users\henry\AppData\Local\Temp\arduino_build_836652\sketch\src\gcode\temp\M106_M107.cpp[/color]
[color=#222222]Error while detecting libraries included by c:\users\henry\AppData\Local\Temp\arduino_build_836652\sketch\src\gcode\temp\M155.cpp[/color]
[color=#222222]Error while detecting libraries included by c:\users\henry\AppData\Local\Temp\arduino_build_836652\sketch\src\gcode\temp\M303.cpp[/color]
[color=#222222]Error while detecting libraries included by c:\users\henry\AppData\Local\Temp\arduino_build_836652\sketch\src\gcode\units\M82_M83.cpp[/color]
[color=#222222]Error while detecting libraries included by c:\users\henry\AppData\Local\Temp\arduino_build_836652\sketch\src\module\motion.cpp[/color]
[color=#222222]Error while detecting libraries included by c:\users\henry\AppData\Local\Temp\arduino_build_836652\sketch\src\module\settings.cpp[/color]
[color=#222222]Error while detecting libraries included by c:\users\henry\AppData\Local\Temp\arduino_build_836652\sketch\src\module\temperature.cpp[/color]
[color=#222222]avr-gcc: error: CreateProcess: No such file or directory[/color]
[color=#222222]exit status 1[/color]
[color=#222222]Error compiling for board Arduino Mega or Mega 2560.[/color]

I am the new user of 3D print, and Marlin, my display LCD cannot show anything which linked with my
board.

3D printer display ramp1.4, LCD 2004 : (D1scount Smart controller) at the top, and (2004H) at the bottom, at the back.
Board: MKS-GEN-L

I am using Window 10 professional.

thanks so much

sorry, thanks for reminder.

Error while detecting libraries included by
<path of .cpp file>

You can ignore all these messages, that is normal behavior when compiling Marlin using the Arduino IDE and is not an actual error, but more of a bug with the IDE.

avr-gcc: error: CreateProcess: No such file or directory

I am not familiar with this error, but there are a few bug reports for Marlin related to it, check the github site for MarlinFirmware. Seems to have the same root cause as the more common error:

gcc.exe: The filename or extension is too long.

General recommendation is to not use Arduino IDE to compile Marlin on a computer when the operating system is Windows. The IDE is generating a command that exceeds the maximum length allowed by Windows of 32,767 characters. Sometimes this can be fixed by changing the location of the temporary build directory used by the IDE to a directory at the root of the hard drive, but that does not always work, depending on which options you have enabled in Marlin.

Arduino: 1.8.5 (Windows 10), Board: "Arduino/Genuino Mega or Mega 2560, ATmega2560 (Mega 2560)"

Build options changed, rebuilding all
Archiving built core (caching) in: C:\Users\henry\AppData\Local\Temp\arduino_cache_588385\core\core_arduino_avr_mega_cpu_atmega2560_385bcb8f8bb63faf163a369c572fa114.a
fork/exec C:\Users\henry\Desktop\arduino-1.8.5-windows\arduino-1.8.5\hardware\tools\avr/bin/avr-gcc.exe: The filename or extension is too long.
Error compiling for board Arduino/Genuino Mega or Mega 2560.

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

using window 10 professional, 3D printer name: i3, board: mks-gen-l, ramps1.4 2004A
i am the new user of 3D printer, and arduino, my english is not good, sorry, please help, thanks.

Arduino: 1.8.5 (Windows 10), Board: "Arduino/Genuino Mega or Mega 2560, ATmega2560 (Mega 2560)"

Archiving built core (caching) in: C:\Users\henry\AppData\Local\Temp\arduino_cache_220048\core\core_arduino_avr_mega_cpu_atmega2560_97ccdff383f511d8ed2c5b6b5fe37fb6.a
C:\Users\henry\AppData\Local\Temp\ccr1NA8X.ltrans0.ltrans.o: In function `main':

C:\Users\henry\Documents\arduino-1.8.5-windows\arduino-1.8.5\hardware\arduino\avr\cores\arduino/main.cpp:43: undefined reference to `setup'

C:\Users\henry\Documents\arduino-1.8.5-windows\arduino-1.8.5\hardware\arduino\avr\cores\arduino/main.cpp:46: undefined reference to `loop'

collect2.exe: error: ld returned 1 exit status

exit status 1
Error compiling for board Arduino/Genuino Mega or Mega 2560.

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

I'd tried to solve the problem, but still have error, please help.
I opened (configuration.h), and selected: tools>board : Arduino mega 2560, processor: ATmega2560, programmer: window 10.
deleted (//) in front of (define REPRAP_DISCOUNT_SMART_CONTROLLER
I wanted to reset my 3D printer's LCD display, because my old display damaged, just see some light, but cannot see the words, but changed to new LCD display, nothing I can see, and no light.
broad name: Makerbase model: MKS-GEN-L, the LCD display : RepRapD1scount Smart Controller (2004A).
stopped the bluetooth mouse, moved the original Ardiuno file inside (My documents), then run the problem.

Cross-posts merged. Please don't do that @sharonyee.

This is a very common problem compiling Marlin, or other such Arduino sketches with a huge number of files, on Windows.

Some improvements have been made to the IDE recently to mitigate these issues (though it wasn't fixed completely), so you should try again with Arduino IDE 1.8.13.

The issue has been fixed in Arduino CLI just this week:

See the links at this reply for lots of information about the issue. You might also find this of interest:

The fix will eventually propagate from Arduino CLI to the Arduino IDE, but that will take some time. If you like, you can give it a try using the nightly build of Arduino CLI, which has the fix to allow compiling Marlin on Windows:
https://arduino.github.io/arduino-cli/latest/installation/#nightly-builds

thank you so much, i will use 1.8.13 to do it again.

pert:
Cross-posts merged. Please don’t do that @sharonyee.

This is a very common problem compiling Marlin, or other such Arduino sketches with a huge number of files, on Windows.

Some improvements have been made to the IDE recently to mitigate these issues (though it wasn’t fixed completely), so you should try again with Arduino IDE 1.8.13.

The issue has been fixed in Arduino CLI just this week:
https://github.com/arduino/arduino-cli/pull/961
See the links at this reply for lots of information about the issue. You might also find this of interest:
Maximum Path Length Limitation - Win32 apps | Microsoft Docs

The fix will eventually propagate from Arduino CLI to the Arduino IDE, but that will take some time. If you like, you can give it a try using the nightly build of Arduino CLI, which has the fix to allow compiling Marlin on Windows:
Installation - Arduino CLI

I found the topic named: Enable Long Paths in Windows 10, Version 1607, and Later, and copied these XML, but I am not sure where I can put it to solve the problem about that.

<application xmlns="urn:schemas-microsoft-com:asm.v3">
    <windowsSettings xmlns:ws2="http://schemas.microsoft.com/SMI/2016/WindowsSettings">
        <ws2:longPathAware>true</ws2:longPathAware>
    </windowsSettings>
</application>

I am not the programmer, just the mother of the children want to try 3D printer, sorry of the trouble.
Do I need to put it at the (C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores) where I found main.app?
thousands of thanks for all helper.

The truth is that I really don't know anything about this Microsoft thing I linked to. Someone shared it in a previous discussion and I just parroted the link here in case it might be useful. I actually didn't read it carefully enough to see that this manifest thing was required. I thought it was only a registry setting, which is a fairly straightforward process. I don't know how to do this manifest thing.

So if Arduino IDE 1.8.13 doesn't fix the issue for you, I would recommend using Arduino CLI instead. I am very knowledgeable about that subject, so I can definitely be more helpful if you have any questions about that.

pert:
The truth is that I really don't know anything about this Microsoft thing I linked to. Someone shared it in a previous discussion and I just parroted the link here in case it might be useful. I actually didn't read it carefully enough to see that this manifest thing was required. I thought it was only a registry setting, which is a fairly straightforward process. I don't know how to do this manifest thing.

So if Arduino IDE 1.8.13 doesn't fix the issue for you, I would recommend using Arduino CLI instead. I am very knowledgeable about that subject, so I can definitely be more helpful if you have any questions about that.

pert:
The truth is that I really don't know anything about this Microsoft thing I linked to. Someone shared it in a previous discussion and I just parroted the link here in case it might be useful. I actually didn't read it carefully enough to see that this manifest thing was required. I thought it was only a registry setting, which is a fairly straightforward process. I don't know how to do this manifest thing.

So if Arduino IDE 1.8.13 doesn't fix the issue for you, I would recommend using Arduino CLI instead. I am very knowledgeable about that subject, so I can definitely be more helpful if you have any questions about that.

thank you so much, which version of the Arduino CLI I need to download? And do I need to uninstall the Anduino IDE before?

sharonyee:
which version of the Arduino CLI I need to download?

The Nightly build. The reason is because the fix was just made three days ago, so it’s not in the release version of Arduino CLI.

Use this download link:
https://downloads.arduino.cc/arduino-cli/nightly/arduino-cli_nightly-latest_Windows_64bit.zip

After that, just unzip the downloaded file. You’ll then have the file arduino-cli.exe that you can run from the command line (e.g., cmd) to compile and upload Marlin to the 3D printer board.

You can find documentation for how to use Arduino CLI here:
https://arduino.github.io/arduino-cli/latest/getting-started/


Or I can provide you with the command you need to run, but I don’t have quite enough information to be able to do that. If you want assistance with that, I could get all the information if you’ll do this:

  • Start the Arduino IDE.
  • Make any modifications that are needed to the Marlin configuration.
  • File > Save
  • (In the Arduino IDE) click File > Preferences
  • Check the box next to "Show verbose output during: > compilation
  • Check the box next to "Show verbose output during: > upload
  • Click “OK”
  • Now attempt whatever the upload process is from the instructions from your 3D printer.
  • After the compilation fails you’ll see a button on the right side of the orange bar “Copy error messages”. Click that button.
  • In a forum reply here, click on the reply field.
  • Click the </> button on the forum toolbar. This will add the forum’s code tags markup to your reply.
  • Press “Ctrl + V”. This will paste the compilation output between the code tags.
  • Move the cursor outside of the code tags before you add any additional text to your reply.

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 that will allow you to make the attachment.

sharonyee:
And do I need to uninstall the Anduino IDE before?

No. You can have both Arduino CLI and Arduino IDE installed at the same time without any problems.

I just found below message with orange colors:

C:\Users\henry\AppData\Local\Temp\ccuhDDMf.ltrans0.ltrans.o: In function `main’:

C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/main.cpp:43: undefined reference to `setup’

C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/main.cpp:46: undefined reference to `loop’

collect2.exe: error: ld returned 1 exit status

exit status 1

Error compiling for board Arduino Mega or Mega 2560.

message.txt (27.9 KB)

This error indicates you're missing part of Marlin. You need to make sure to download the entire program, which consists of hundreds of files. You might be used to Arduino sketches only being a single .ino file, but Marlin is much more complex than the average Arduino sketch.

If you'll post a link to the instructions or tutorial you're following I can provide you with detailed directions.

pert:
This error indicates you’re missing part of Marlin. You need to make sure to download the entire program, which consists of hundreds of files. You might be used to Arduino sketches only being a single .ino file, but Marlin is much more complex than the average Arduino sketch.

If you’ll post a link to the instructions or tutorial you’re following I can provide you with detailed directions.

understood, thanks.
I want to download Arduino CLO nightly, but the website error 502, may be need to try tomorrow. thanks again.

I’m sorry about the 502 error. I get it also. I do sometimes see these errors on the Arduino website temporarily (perhaps due to high traffic levels), but I’ll make sure to keep an eye on it and get it fixed if it doesn’t clear up on its own.

If you like, you can get the nightly build by clicking the “dist” link on this page:

That is the source of the download from the other link I provided, so you get the exact same files. The only problem is that the download you get from that page contains the macOS, Linux, and Windows versions, so it is a larger file to download (226 MB). After downloading it, unzip the downloaded dist.zip file. The 64 bit Windows version of Arduino CLI will be in the “arduino_cli_windows_amd64” folder.

Hi @sharonyee. The normal Arduino CLI download link is fixed now.

pert:
Hi @sharonyee. The normal Arduino CLI download link is fixed now.

thank you so much