Skip to content

[BUG] undefined reference to `MarlinUI::drawPercent() #27864

@CRCinAU

Description

@CRCinAU

Did you test the latest bugfix-2.1.x code?

Yes, and the problem still exists.

Bug Description

Compile fails with the following errors:

Linking .pio/build/STM32F103RE_creality/firmware.elf

Marlin/src/inc/Warnings.cpp:130:6: warning: #warning "Note: Auto-assigned LCD_SERIAL_PORT. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)" [-Wcpp]
  130 |     #warning "Note: Auto-assigned LCD_SERIAL_PORT. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
      |      ^~~~~~~
/home/marlin/.platformio/packages/toolchain-gccarmnoneeabi@1.90201.191206/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld: .pio/build/STM32F103RE_creality/src/src/lcd/marlinui.cpp.o:(.rodata+0x4): undefined reference to `MarlinUI::drawPercent()'
/home/marlin/.platformio/packages/toolchain-gccarmnoneeabi@1.90201.191206/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld: .pio/build/STM32F103RE_creality/src/src/lcd/marlinui.cpp.o:(.rodata+0x8): undefined reference to `MarlinUI::drawElapsed()'
/home/marlin/.platformio/packages/toolchain-gccarmnoneeabi@1.90201.191206/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld: .pio/build/STM32F103RE_creality/src/src/lcd/marlinui.cpp.o:(.rodata+0xc): undefined reference to `MarlinUI::drawRemain()'
collect2: error: ld returned 1 exit status
*** [.pio/build/STM32F103RE_creality/firmware.elf] Error 1

Bug Timeline

First broke in commit 6cda10d

Expected behavior

Build works

Actual behavior

Build fails

Steps to Reproduce

No response

Version of Marlin Firmware

bugfix-2.1.x

Printer model

No response

Electronics

No response

LCD/Controller

No response

Other add-ons

No response

Bed Leveling

None

Your Slicer

None

Host Software

None

Don't forget to include

  • A ZIP file containing your Configuration.h and Configuration_adv.h.

Additional information & file uploads

Configuration.zip

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions