MarlinFirmware / Marlin

Marlin is an optimized firmware for RepRap 3D printers based on the Arduino platform. Many commercial 3D printers come with Marlin installed. Check with your vendor if you need source code for your specific machine.
https://marlinfw.org
GNU General Public License v3.0
16.27k stars 19.24k forks source link

[2.0.x] menu_action_setting_edit_float32 not declared compile failure #11776

Closed fiveangle closed 6 years ago

fiveangle commented 6 years ago

Description

10360 resulted in following compile failure on config with MBL, U8g, AVR:

avr-g++ -o .pioenvs/at90usb1286_dfu/src/src/module/delta.cpp.o -c -fno-exceptions -std=gnu++0x -felide-constructors -fno-threadsafe-statics -g -Os -Wall -ffunction-sections -fdata-sections -mmcu=at90usb1286 -fsingle-precision-constant -fmax-errors=5 -g -ggdb -DF_CPU=16000000L -DLAYOUT_US_ENGLISH -DPLATFORMIO=30600 -DTEENSY2PP -DUSB_SERIAL -DARDUINO=10610 -DTEENSYDUINO=136 -IMarlin -I.piolibdeps/U8glib-HAL_ID1932@src-e4c7e6783c6dd978ad94fbe876d94ee1/src -I/Users/speedster/.platformio/packages/framework-arduinoteensy/libraries/Wire -I/Users/speedster/.platformio/packages/framework-arduinoteensy/libraries/Wire/utility -I.piolibdeps/LiquidCrystal_ID136 -I/Users/speedster/.platformio/packages/framework-arduinoteensy/libraries/SPI -I.piolibdeps/TMC2130Stepper/src -I.piolibdeps/TMC2208Stepper@src-891d2e7c096ea56f9fbbee548d8f1588/src "-I.piolibdeps/Adafruit NeoPixel_ID28" -I.piolibdeps/30aa480 -I.piolibdeps/Arduino-L6470 -I.piolibdeps/c1921b4 -I/Users/speedster/.platformio/packages/framework-arduinoteensy/libraries/Servo -I/Users/speedster/.platformio/packages/framework-arduinoteensy/cores/teensy -I/Users/speedster/.platformio/packages/framework-arduinoteensy/cores Marlin/src/module/delta.cpp
Marlin/src/lcd/ultralcd.cpp: In function 'void lcd_advanced_settings_menu()':
Marlin/src/lcd/ultralcd.cpp:317:41: error: 'menu_action_setting_edit_float32' was not declared in this scope
menu_action_ ## TYPE(__VA_ARGS__); \
^
Marlin/src/lcd/ultralcd.cpp:328:7: note: in expansion of macro '_MENU_ITEM_PART_2'
_MENU_ITEM_PART_2(TYPE, PLABEL, ## __VA_ARGS__); \
^
Marlin/src/lcd/ultralcd.cpp:331:39: note: in expansion of macro 'MENU_ITEM_P'
#define MENU_ITEM(TYPE, LABEL, ...) MENU_ITEM_P(TYPE, PSTR(LABEL), ## __VA_ARGS__)
^
Marlin/src/lcd/ultralcd.cpp:372:44: note: in expansion of macro 'MENU_ITEM'
#define MENU_ITEM_EDIT(TYPE, LABEL, ...) MENU_ITEM(setting_edit_ ## TYPE, LABEL, PSTR(LABEL), ## __VA_ARGS__)
^
Marlin/src/lcd/ultralcd.cpp:3818:7: note: in expansion of macro 'MENU_ITEM_EDIT'
MENU_ITEM_EDIT(float32, MSG_ADVANCE_K, &planner.extruder_advance_K, 0, 999);
^
Marlin/src/lcd/ultralcd.cpp:321:108: error: 'lcd_implementation_drawmenu_setting_edit_float32' was not declared in this scope
lcd_implementation_drawmenu_ ## TYPE(encoderLine == _thisItemNr, _lcdLineNr, PLABEL, ## __VA_ARGS__); \
^
Marlin/src/lcd/ultralcd.cpp:328:7: note: in expansion of macro '_MENU_ITEM_PART_2'
_MENU_ITEM_PART_2(TYPE, PLABEL, ## __VA_ARGS__); \
^
Marlin/src/lcd/ultralcd.cpp:331:39: note: in expansion of macro 'MENU_ITEM_P'
#define MENU_ITEM(TYPE, LABEL, ...) MENU_ITEM_P(TYPE, PSTR(LABEL), ## __VA_ARGS__)
^
Marlin/src/lcd/ultralcd.cpp:372:44: note: in expansion of macro 'MENU_ITEM'
#define MENU_ITEM_EDIT(TYPE, LABEL, ...) MENU_ITEM(setting_edit_ ## TYPE, LABEL, PSTR(LABEL), ## __VA_ARGS__)
^
Marlin/src/lcd/ultralcd.cpp:3818:7: note: in expansion of macro 'MENU_ITEM_EDIT'
MENU_ITEM_EDIT(float32, MSG_ADVANCE_K, &planner.extruder_advance_K, 0, 999);
^
avr-g++ -o .pioenvs/at90usb1286_dfu/src/src/module/endstops.cpp.o -c -fno-exceptions -std=gnu++0x -felide-constructors -fno-threadsafe-statics -g -Os -Wall -ffunction-sections -fdata-sections -mmcu=at90usb1286 -fsingle-precision-constant -fmax-errors=5 -g -ggdb -DF_CPU=16000000L -DLAYOUT_US_ENGLISH -DPLATFORMIO=30600 -DTEENSY2PP -DUSB_SERIAL -DARDUINO=10610 -DTEENSYDUINO=136 -IMarlin -I.piolibdeps/U8glib-HAL_ID1932@src-e4c7e6783c6dd978ad94fbe876d94ee1/src -I/Users/speedster/.platformio/packages/framework-arduinoteensy/libraries/Wire -I/Users/speedster/.platformio/packages/framework-arduinoteensy/libraries/Wire/utility -I.piolibdeps/LiquidCrystal_ID136 -I/Users/speedster/.platformio/packages/framework-arduinoteensy/libraries/SPI -I.piolibdeps/TMC2130Stepper/src -I.piolibdeps/TMC2208Stepper@src-891d2e7c096ea56f9fbbee548d8f1588/src "-I.piolibdeps/Adafruit NeoPixel_ID28" -I.piolibdeps/30aa480 -I.piolibdeps/Arduino-L6470 -I.piolibdeps/c1921b4 -I/Users/speedster/.platformio/packages/framework-arduinoteensy/libraries/Servo -I/Users/speedster/.platformio/packages/framework-arduinoteensy/cores/teensy -I/Users/speedster/.platformio/packages/framework-arduinoteensy/cores Marlin/src/module/endstops.cpp
*** [.pioenvs/at90usb1286_dfu/src/src/lcd/ultralcd.cpp.o] Error 1
========================== [ERROR] Took 11.56 seconds ==========================

================================== [SUMMARY] ==================================
Environment megaatmega2560          [SKIP]
Environment megaatmega1280          [SKIP]
Environment at90usb1286_cdc         [SKIP]
Environment at90usb1286_dfu         [ERROR]
Environment DUE                     [SKIP]
Environment DUE_USB                 [SKIP]
Environment DUE_debug               [SKIP]
Environment LPC1768                 [SKIP]
Environment melzi                   [SKIP]
Environment melzi_optiboot          [SKIP]
Environment rambo                   [SKIP]
Environment sanguino_atmega644p     [SKIP]
Environment sanguino_atmega1284p    [SKIP]
Environment STM32F1                 [SKIP]
Environment STM32F4                 [SKIP]
Environment teensy35                [SKIP]
Environment malyanm200              [SKIP]
Environment esp32                   [SKIP]
========================== [ERROR] Took 11.56 seconds ==========================

[Sat Sep  8 22:39:00 2018]

Steps to Reproduce

Compile with these configs: https://github.com/fiveangle/Marlin/tree/bf2_pb_ug8_10360/Marlin

Just getting settled in after getting back from burning man so haven't dug deeply into this yet.

thinkyhead commented 6 years ago

Patched!

github-actions[bot] commented 4 years ago

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.