Marlin: [bugfix-2.0.x] compile error when CONTROLLER_FAN_PIN set

Created on 24 Apr 2018  路  8Comments  路  Source: MarlinFirmware/Marlin

i get this error when i try to compile: https://pastebin.com/eWw4Qsv3

its sure a fault of mine but i cant figure it

Configuration.zip

EDIT: using IDE 1.9.0

Build / Toolchain Question

All 8 comments

#define _SET_OUTPUT(IO) SBI(DIO ## IO ## _DDR, DIO ## IO ## _PIN)

This is almost for sure a result of this Pull Request: https://github.com/MarlinFirmware/Marlin/pull/10502

This is an attempt to save a few clock cycles within the ISR's and is a good thing. But apparently, it isn't fully baked yet. If you back up and grab a copy of Marlin just prior to this, or back this Pull Request out... The problem should go away. My guess is this will get fixed tonight.

Looks like the Arduino IDE bug where its preprocessor gets comments inserted into token concatenations

its no rush, its to late (23:00) to start flashing firmware etc

i have applied to the facebook group too as i have a question regarding my endstop setup, template said to post help there but not sure if i can do it here too?

This is a avr-gcc bug, and is not being compliant with C99
We can only workaround it:

Just replace

#define CONTROLLER_FAN_PIN 4 // Set a custom pin for the controller fan

With

#define CONTROLLER_FAN_PIN 4

And it will compile and work. That is the only workaround i found for this problem so far

anyways errors are now down to:

C:\Users\boher\AppData\Local\Temp\arduino_build_442589\sketch\src\lcd\dogm\u8g_dev_ssd1306_sh1106_128x64_I2C.cpp:72:20: fatal error: U8glib.h: No such file or directory

 #include <U8glib.h>

                    ^

compilation terminated.

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

its years since i have used marlin, do i need to install this lib also?

Yes, you need to install u8glib

confirmed, it now compiles without errors

i have deleted my endstop Q and posted it on the facebook group instead

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Was this page helpful?
0 / 5 - 0 ratings