Unable to compile Marlin

My compile of Marlin is failing during linking with the error message:

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

The link line is obscenely long, and the error does not say which file or directory is missing,

Particulars:

  • Based on other forum topics, I’ve tried compiling with both Arduino version 1.8.39 and 1.9.0-beta.
  • I attempting to compile the Marlin version for the full Rambo board with endstops downloaded from the Allted GitHub page.
  • I’ve place the Merlin directory at the root of an empty drive.
  • I’ve tried the compile on two different machines.
  • The board is set to RAMBo.

The only other issue that may impact the problem is another warning/error:

Multiple libraries were found for “U8glib.h”
Used: C:\Users\rober\OneDrive\Documents\Arduino\libraries\U8glib
Not used: C:\Users\rober\AppData\Local\Arduino15\packages\rambo\hardware\avr\1.0.1\libraries\U8glib

Any ideas of what I can try to get Marlin to link?

Hmmm. I haven’t seen that one in a while. Is that really the first error? You can just paste the whole thing in here and I will look at it.

The u8glib thing is not a real error.

I don’t know windows well, but I do know you need to not use the version from the app store.

Thanks for any help. The html interpreter mangled the output when I pasted it in directly, so I’ve attached it in a zip file. Note the link line is very long (pages long).

Output.zip (16.6 KB)

More information. I completely uninstalled the Arduino IDE, removed all the projects and libraries from the Documents folder, and reinstalled everything. The only library installed is U8glib. When I compiled after a clean install, I have the exact same problem. Same problem on two machines, same problem after a complete reinstall of the Arduino IDE.

So I attempted to use Visual Studio Code and PlatformIO (an environment I’m NOT familiar with). I believe it is compiling correctly, but when I attempt to upload, I get a timeout. Any help down either pathway is greatly appreciated.

image

Huh. Yep, that is exactly what you described. I do not know what that error from avr-gcc is, I haven’t seen it.

The timeouts are because it can’t talk to the chip. Do you have the 12V power on as well? Do you have the right com port?

The 12V power is on, and the Rambo board boots up with its current firmware. The port is auto-detected. If the Rambo board is not connected, the upload fails sooner, so I believe it is correctly finding the board. Perhaps it is a driver issue or a baud rate issue or a cabling issue, but I don’t know how to debug it from here. I’ve tried two different USB cables. And as stated, I’m not familiar with Visual Studio Code, so the problem might be something else entirely.

I just tried it again, and noted that the upload causes the Rambo board to reboot (and it should), so the port is correct.

That timeout message is really familiar. We see it from the arduino upload too. There are two chips. One connects to USB and can reset the board, and then talks to the main CPU over uart. That one gets powered by the USB. It seems like you’re not having trouble connecting to that one.

When you upload to the board, it should use that chip to reset the main CPU, and then within a quick timeout, it will send a message to make the bootloader pause the boot, and then talk back and forth a bit to the computer to copy the data onto the main CPU’s storage.

If the main CPU wasn’t powered, then that would look like this (which is why I mentioned it, it is commonly that problem). It is also sometimes a blown fuse, but it sounds like your main CPU is powered fine.

I am worried that you don’t have a bootloader on that main CPU. Where did you get the board?

I got the board directly from Ryan/V1 engineering with his version of the Rambo firmware already flashed. The board worked fine for my Burly build, but when I upgraded the machine to Primo, I incorporated dual endstops and need to change the firmware.

That is an odd combination of issues.

In p.io if you open the home tab (click on the alien icon, then home). See if there are any updates.

From there restart it. Then try to build first to make sure that is working with no errors, the upload. If that fails see what repetier host says when you try to connect.

Thank you for your suggestion Ryan. I run my MPCNC headless with a pendent that writes GCode to the serial port. Your mention of repetier host triggered my memory that the USB connection and the pendent do not co-exist. I unplugged the pendant, and the upload from p.io succeeded. I’m still frustrated that the Adrino IDE would not compile Marlin, but I can move forward with the CNC now. And thanks jeffeb3 for confirming that I was not going too far off the rails.

1 Like