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.28k stars 19.24k forks source link

[Error build STM32F103RC_creality (Ender 3)] (configuration.h:3223:15: error: missing binary operator before token "(") #26867

Closed Nightwalker813 closed 8 months ago

Nightwalker813 commented 8 months ago

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

Yes, and the problem still exists.

Bug Description

I tried to comlpile build Marlin for Ender 3 STM32F103RC_creality (256K) but AutoBuild back error f:\ender 3\fw\marlin-2.1.x\marlin\configuration.h:3223:15: error: missing binary operator before token "(" 3223 | #if DGUS_UI_IS(MKS) | ^ 3225 | #elif DGUS_UI_IS(IA_CREALITY) | ^ Error: Failed to parse Marlin features. See previous error messages.

At first try I used copypast strings from file. At second try I listed file configuration.h and configuration_adv.h manually and edit nessesary strings manually. But error sill stay. I don't understand, where is error. I searched 200 strings higher and lower. There is no errors with missing "(". Безымянный

Bug Timeline

in 2.1.2.1 there is no same issue.

Expected behavior

No response

Actual behavior

No response

Steps to Reproduce

  1. use "Marlin 2.1.2.2 with bug fixes"
  2. use "Marlin "Nightly" Source"" configs
  3. build new fw for Ender 3 v.4.2.2 board

configs config.zip

Version of Marlin Firmware

2.1.2.2

Printer model

Ender 3

Electronics

stock (GD32F303 - chip) (previously build is ok)

LCD/Controller

CR10_STOCKDISPLAY HD44780

Other add-ons

No response

Bed Leveling

ABL Bilinear mesh

Your Slicer

Other (explain below)

Host Software

SD Card (headless)

Don't forget to include

Additional information & file uploads

No response

thisiskeithb commented 8 months ago

use "Marlin 2.1.2.2 with bug fixes" use "Marlin "Nightly" Source"" configs

You cannot mix & match versions of Marlin. Since you are using Marlin 2.1.2.2, you must use 2.1.2.2 configs: https://github.com/MarlinFirmware/Configurations/tree/release-2.1.2.2

Having said that, I would recommend sticking with 2.1.2.1 or moving completely to bugfix-2.1.x since 2.1.2.2 has several bugs in it.

github-actions[bot] commented 6 months 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.