Welcome! Log In Create A New Profile

Advanced

Marlin 2.0 compile error

Posted by jdebuhr 
Marlin 2.0 compile error
January 29, 2020 12:08AM
Trying to compile Marlin 2.0 for my RAMBo and Reprap discount Full graphic smart controller..

I changed the Mother board and commented the LCD screen.. when I try to compile here is the error list::

Quote

Arduino: 1.8.10 (Windows 10), Board: "RAMBo"

In file included from sketch\src\lcd/ultralcd.h:40:0,

from sketch\src\Marlin.cpp:34:

c:\users\jeffd\appdata\local\temp\arduino_build_124149\sketch\src\marlincore.h: In function 'bool IsRunning()':

c:\users\jeffd\appdata\local\temp\arduino_build_124149\sketch\src\marlincore.h:74:13: error: redefinition of 'bool IsRunning()'

inline bool IsRunning() { return Running; }

^~~~~~~~~

In file included from sketch\src\Marlin.cpp:31:0:

sketch\src\Marlin.h:331:13: note: 'bool IsRunning()' previously defined here

inline bool IsRunning() { return Running; }

^~~~~~~~~

In file included from sketch\src\lcd/ultralcd.h:40:0,

from sketch\src\Marlin.cpp:34:

c:\users\jeffd\appdata\local\temp\arduino_build_124149\sketch\src\marlincore.h: In function 'bool IsStopped()':

c:\users\jeffd\appdata\local\temp\arduino_build_124149\sketch\src\marlincore.h:75:13: error: redefinition of 'bool IsStopped()'

inline bool IsStopped() { return !Running; }

^~~~~~~~~

In file included from sketch\src\Marlin.cpp:31:0:

sketch\src\Marlin.h:332:13: note: 'bool IsStopped()' previously defined here

inline bool IsStopped() { return !Running; }

^~~~~~~~~

Multiple libraries were found for "U8glib.h"
Used: C:\Users\jeffd\AppData\Local\Arduino15\packages\rambo\hardware\avr\1.0.1\libraries\U8glib
Not used: C:\Arduino\libraries\U8glib_Arduino-1.19.1
Multiple libraries were found for "SPI.h"
Used: C:\Program
exit status 1
Error compiling for board RAMBo.

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

I did the same changes to Marlin 1.1.9 and it works just fine.. I am using Arduino IDE 1.8.10

EDIT.. Added Verbose Error file

Thanks

Edited 1 time(s). Last edit at 01/29/2020 12:12AM by jdebuhr.
Attachments:
open | download - Error.txt (485.8 KB)
Re: Marlin 2.0 compile error
January 29, 2020 03:34AM
Yea someone broke Marlin quite badly recently...

You can't have \src\Marlin.h and \src\MarlinCore.h delete \src\Marlin.h
Also you can't have \src\Marlin.cpp and \src\MarlinCore.cpp delete \src\Marlin.cpp

Edited 2 time(s). Last edit at 01/29/2020 03:37AM by Dust.
Re: Marlin 2.0 compile error
January 29, 2020 04:34AM
They released Marlin 2.0.2 yesterday, you might want to test that version, or the bugfix version of that.
Re: Marlin 2.0 compile error
January 29, 2020 07:18AM
Quote
Dust
Yea someone broke Marlin quite badly recently...

You can't have \src\Marlin.h and \src\MarlinCore.h delete \src\Marlin.h
Also you can't have \src\Marlin.cpp and \src\MarlinCore.cpp delete \src\Marlin.cpp

removed those files and still have errors.. I attached the file, but will wait for 2.0.2

I am good with using 1.1.9 which I assume is better than 1.1.6 on my RAMPS setup.
Attachments:
open | download - error2.txt (497.7 KB)
Re: Marlin 2.0 compile error
January 29, 2020 07:47AM
Cant quite replicate the error but I see what is going on..

"Multiple libraries were found for "U8glib.h"
Used: C:\Users\jeffd\AppData\Local\Arduino15\packages\rambo\hardware\avr\1.0.1\libraries\U8glib
Not used: C:\Arduino\libraries\U8glib_Arduino-1.19.1"

It is using the wrong U8glib..

So don't give it a choice

Delete the directory "C:\Users\jeffd\AppData\Local\Arduino15\packages\rambo\hardware\avr\1.0.1\libraries\U8glib"
Re: Marlin 2.0 compile error
January 29, 2020 08:17AM
Thanks will try it tonight.
Re: Marlin 2.0 compile error
January 29, 2020 07:24PM
okay,

tried the version I had then the 2.0.2.. removed Marlin.cpp and Marlin.h

Set the LCD, Board and SDCard..

tried to compile.. attached is the log from 2.0.2 (Trimmed down, but all errors are there). While I would really like it to work, I will be content with 1.1.9, which I have loaded on my Rambo Board and it seems to boot up and work. I just need to connect all the pieces onmy printer to try it, since I have been having other issues with that. I might just swap..
Attachments:
open | download - Error-Ver202.txt (163.1 KB)
Re: Marlin 2.0 compile error
January 29, 2020 08:23PM
The error is "fork/exec C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-gcc.exe: The filename or extension is too long."

Now your running into a windows limitation.

Windows can't have commands larger than 32k characters. This is hard coded into windows and not changeable.

If you turn on to many features marlin easily exceeds this limit.

You need to delete some unused stuff from marlin.
I remove the support for the controller chips your not using.

To do this go into Marlin/src/HAL and delete the following directories

HAL_SAMD51
HAL_STM32_F4_F7
HAL_DUE
HAL_LINUX
HAL_STM32
HAL_TEENSY31_32
HAL_ESP32
HAL_LPC1768
HAL_STM32F1
HAL_TEENSY35_36

and try again.

Edited 1 time(s). Last edit at 01/29/2020 08:24PM by Dust.
Re: Marlin 2.0 compile error
January 29, 2020 10:32PM
That did it.. THANK YOU VERY MUCH!!
Re: Marlin 2.0 compile error
January 30, 2020 09:47PM
Dust,

Just wanted to thank you for your help.. I successfully loaded 2.0.2 on my printer
Re: Marlin 2.0 compile error
January 31, 2020 01:08PM
Another thing that can help is to switch to VSCode+PlatformIO instead of Arduino. PlatformIO will compile the libraries into archive files (.a) instead of trying to link all of the constituent files on one long command line, and also handles dependencies (such as ensuring that the right library version is used) much better that Arduino.
Re: Marlin 2.0 compile error
January 31, 2020 01:28PM
Quote
MMcLure
Another thing that can help is to switch to VSCode+PlatformIO instead of Arduino. PlatformIO will compile the libraries into archive files (.a) instead of trying to link all of the constituent files on one long command line, and also handles dependencies (such as ensuring that the right library version is used) much better that Arduino.

Yeah I would need a tutorial on that.. I did try to use that but did not get very far

I do have VScode and PatformIO installed
Sorry, only registered users may post in this forum.

Click here to login