Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] compilation for SKR E3 V3 mini #27189

Closed
1 task done
Mesgame1 opened this issue Jun 18, 2024 · 3 comments
Closed
1 task done

[BUG] compilation for SKR E3 V3 mini #27189

Mesgame1 opened this issue Jun 18, 2024 · 3 comments

Comments

@Mesgame1
Copy link

Mesgame1 commented Jun 18, 2024

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

Yes, and the problem still exists.

Bug Description

I can't compile my firmware with my configurations, I even tried with the basic configuration

Bug Timeline

No response

Expected behavior

No response

Actual behavior

No response

Steps to Reproduce

No response

Version of Marlin Firmware

Marlin-BUGFIX-2.1.X

Printer model

Creality Ender-3

Electronics

Bigtreetech SKR E3 V3 mini

LCD/Controller

Bigtreetech TFT 35

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

config Files:
Marlin.zip

ERROR:

details:

*  Executing task: C:\Users\devie\.platformio\penv\Scripts\platformio.exe run 

Processing STM32G0B1RE_btt (platform: ststm32@17.1.0; board: marlin_STM32G0B1RE; framework: arduino)
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Verbose mode can be enabled via `-v, --verbose` option
In file included from c:\marlin-bugfix-2.1.x\marlin\src\inc\MarlinConfigPre.h:39,
                 from c:\marlin-bugfix-2.1.x\marlin\src\inc\marlinconfig.h:28,
                 from buildroot/share/PlatformIO/scripts/common-dependencies.h:29:
c:\marlin-bugfix-2.1.x\marlin\configuration.h:284:11: error: missing binary operator before token "("
  284 | #if EITHER(PARKING_EXTRUDER, MAGNETIC_PARKING_EXTRUDER)
      |           ^
c:\marlin-bugfix-2.1.x\marlin\configuration.h:986:11: error: missing binary operator before token "("
  986 | #if EITHER(MORGAN_SCARA, MP_SCARA)
      |           ^
c:\marlin-bugfix-2.1.x\marlin\configuration.h:1787:11: error: missing binary operator before token "("
 1787 | #if EITHER(MIN_SOFTWARE_ENDSTOPS, MAX_SOFTWARE_ENDSTOPS)
      |           ^
c:\marlin-bugfix-2.1.x\marlin\configuration.h:1989:11: error: missing binary operator before token "("
 1989 | #if EITHER(AUTO_BED_LEVELING_LINEAR, AUTO_BED_LEVELING_BILINEAR)
      |           ^
c:\marlin-bugfix-2.1.x\marlin\configuration.h:3035:11: error: missing binary operator before token "("
 3035 | #if EITHER(ANYCUBIC_LCD_I3MEGA, ANYCUBIC_LCD_CHIRON)
      |           ^
c:\marlin-bugfix-2.1.x\marlin\configuration.h:3323:11: error: missing binary operator before token "("
 3323 | #if EITHER(RGB_LED, RGBW_LED)
      |           ^
In file included from c:\marlin-bugfix-2.1.x\marlin\src\inc\MarlinConfigPre.h:56:
c:\marlin-bugfix-2.1.x\marlin\configuration_adv.h:305:11: error: missing binary operator before token "("
  305 |   #if BOTH(ADAPTIVE_FAN_SLOWING, PIDTEMP)
      |           ^
c:\marlin-bugfix-2.1.x\marlin\configuration_adv.h:1089:11: error: missing binary operator before token "("
 1089 | #if EITHER(INPUT_SHAPING_X, INPUT_SHAPING_Y)
      |           ^
c:\marlin-bugfix-2.1.x\marlin\configuration_adv.h:1325:11: error: missing binary operator before token "("
 1325 | #if EITHER(DIGIPOT_MCP4018, DIGIPOT_MCP4451)
      |           ^
c:\marlin-bugfix-2.1.x\marlin\configuration_adv.h:1382:28: error: missing binary operator before token "("
 1382 | #if HAS_BED_PROBE && EITHER(HAS_MARLINUI_MENU, HAS_TFT_LVGL_UI)
      |                            ^
c:\marlin-bugfix-2.1.x\marlin\configuration_adv.h:1437:11: error: missing binary operator before token "("
 1437 | #if EITHER(HAS_DISPLAY, DWIN_LCD_PROUI)
      |           ^
c:\marlin-bugfix-2.1.x\marlin\configuration_adv.h:1495:11: error: missing binary operator before token "("
 1495 |   #if BOTH(M73_REPORT, SDSUPPORT)
      |           ^
c:\marlin-bugfix-2.1.x\marlin\configuration_adv.h:1501:26: error: missing binary operator before token "("
 1501 | #if HAS_DISPLAY && EITHER(SDSUPPORT, SET_PROGRESS_MANUALLY)
      |                          ^
c:\marlin-bugfix-2.1.x\marlin\configuration_adv.h:2149:11: error: missing binary operator before token "("
 2149 | #if EITHER(AUTO_BED_LEVELING_3POINT, AUTO_BED_LEVELING_UBL)
      |           ^
c:\marlin-bugfix-2.1.x\marlin\configuration_adv.h:2184:11: error: missing binary operator before token "("
 2184 | #if EITHER(MESH_BED_LEVELING, AUTO_BED_LEVELING_UBL)
      |           ^
c:\marlin-bugfix-2.1.x\marlin\configuration_adv.h:2192:9: error: missing binary operator before token "("
 2192 | #if BOTH(AUTO_BED_LEVELING_UBL, EEPROM_SETTINGS)
      |         ^
c:\marlin-bugfix-2.1.x\marlin\configuration_adv.h:2306:11: error: missing binary operator before token "("
 2306 | #if EITHER(ARC_SUPPORT, BEZIER_CURVE_SUPPORT)
      |           ^
c:\marlin-bugfix-2.1.x\marlin\configuration_adv.h:2394:9: error: missing binary operator before token "("
 2394 | #if BOTH(SDSUPPORT, DIRECT_STEPPING)
      |         ^
c:\marlin-bugfix-2.1.x\marlin\configuration_adv.h:3174:13: error: missing binary operator before token "("
 3174 |   #if EITHER(SENSORLESS_HOMING, SENSORLESS_PROBING)
      |             ^
c:\marlin-bugfix-2.1.x\marlin\configuration_adv.h:3336:11: error: missing binary operator before token "("
 3336 | #if EITHER(SPINDLE_FEATURE, LASER_FEATURE)
      |           ^
Error: Failed to parse Marlin features. See previous error messages.
===================================================================================== [FAILED] Took 4.87 seconds =====================================================================================

Environment      Status    Duration
---------------  --------  ------------
STM32G0B1RE_btt  FAILED    00:00:04.870
=============================================================================== 1 failed, 0 succeeded in 00:00:04.870 ===============================================================================

 *  The terminal process "C:\Users\devie\.platformio\penv\Scripts\platformio.exe 'run'" terminated with exit code: 1. 
 *  Terminal will be reused by tasks, press any key to close it. 

platformio.ini:

#
# Marlin Firmware
# PlatformIO Configuration File
#
# For detailed documentation with EXAMPLES:
#
# https://docs.platformio.org/en/latest/projectconf/index.html
#

# Automatic targets - enable auto-uploading
#targets = upload

[platformio]
src_dir = Marlin
boards_dir = buildroot/share/PlatformIO/boards
default_envs = STM32G0B1RE_btt
include_dir = Marlin
extra_configs =
    Marlin/config.ini
    ini/avr.ini
    ini/due.ini
    ini/esp32.ini
    ini/features.ini
    ini/hc32.ini
    ini/lpc176x.ini
    ini/native.ini
    ini/samd21.ini
    ini/samd51.ini
    ini/stm32-common.ini
    ini/stm32f0.ini
    ini/stm32f1-maple.ini
    ini/stm32f1.ini
    ini/stm32f4.ini
    ini/stm32f7.ini
    ini/stm32h7.ini
    ini/stm32g0.ini
    ini/teensy.ini
    ini/renamed.ini

#
# The 'common' section applies to most Marlin builds.
#
# By default platformio build will abort after 5 errors.
# Remove '-fmax-errors=5' from build_flags below to see all.
#
[common]
build_flags        = -g3 -D__MARLIN_FIRMWARE__ -DNDEBUG
                     -fmax-errors=5
extra_scripts      =
  pre:buildroot/share/PlatformIO/scripts/configuration.py
  pre:buildroot/share/PlatformIO/scripts/common-dependencies.py
  pre:buildroot/share/PlatformIO/scripts/common-cxxflags.py
  pre:buildroot/share/PlatformIO/scripts/preflight-checks.py
  post:buildroot/share/PlatformIO/scripts/common-dependencies-post.py
lib_deps           =
default_src_filter = +<src/*> -<src/config> -<src/tests>
  ; LCDs and Controllers
  -<src/lcd/HD44780> -<src/lcd/dogm> -<src/lcd/TFTGLCD> -<src/lcd/tft> -<src/lcd/tft_io>
  -<src/lcd/e3v2> -<src/lcd/menu> -<src/lcd/extui> -<src/lcd/touch>
  -<src/lcd/lcdprint.cpp>
  ; Marlin HAL
  -<src/HAL>
  +<src/HAL/shared>
  -<src/HAL/shared/backtrace>
  -<src/HAL/shared/cpu_exception>
  -<src/HAL/shared/eeprom_if_i2c.cpp>
  -<src/HAL/shared/eeprom_if_spi.cpp>
  ; Features and G-Codes
  -<src/feature>
  -<src/gcode/bedlevel>
  -<src/gcode/calibrate>
  -<src/gcode/config>
  -<src/gcode/control>
  -<src/gcode/feature>
  -<src/gcode/geometry>
  -<src/gcode/host>
  -<src/gcode/lcd>
  -<src/gcode/motion>
  -<src/gcode/probe>
  -<src/gcode/scara>
  -<src/gcode/sd>
  -<src/gcode/temp>
  -<src/gcode/units>
  ; Library Code
  -<src/libs/heatshrink>
  -<src/libs/BL24CXX.cpp> -<src/libs/W25Qxx.cpp>
  -<src/libs/MAX31865.cpp>
  -<src/libs/hex_print.cpp>
  -<src/libs/least_squares_fit.cpp>
  -<src/libs/nozzle.cpp>
  ; Modules
  -<src/module>
  -<src/module/stepper>
  ; Media Support
  -<src/sd>
  ;
  ; Minimal Requirements
  ;
  +<src/gcode/calibrate/G28.cpp>
  +<src/gcode/config/M200-M205.cpp>
  +<src/gcode/config/M220.cpp>
  +<src/gcode/control/M17_M18_M84.cpp>
  +<src/gcode/control/M80_M81.cpp>
  +<src/gcode/control/M85.cpp>
  +<src/gcode/control/M108_*.cpp>
  +<src/gcode/control/M111.cpp>
  +<src/gcode/control/M120_M121.cpp>
  +<src/gcode/control/M999.cpp>
  +<src/gcode/geometry/G92.cpp>
  +<src/gcode/host/M110.cpp>
  +<src/gcode/host/M114.cpp>
  +<src/gcode/host/M118.cpp>
  +<src/gcode/host/M119.cpp>
  +<src/gcode/motion/G0_G1.cpp>
  +<src/gcode/motion/G4.cpp>
  +<src/gcode/motion/M400.cpp>
  +<src/gcode/temp/M105.cpp>
  +<src/module/endstops.cpp>
  +<src/module/motion.cpp>
  +<src/module/planner.cpp>
  +<src/module/settings.cpp>
  +<src/module/stepper.cpp>
  +<src/module/temperature.cpp>
  +<src/module/tool_change.cpp>
  +<src/module/stepper/indirection.cpp>

#
# Default values apply to all 'env:' prefixed environments
#
[env]
framework         = arduino
extra_scripts     = ${common.extra_scripts}
build_flags       = ${common.build_flags}
lib_deps          = ${common.lib_deps}
monitor_speed     = 250000
monitor_eol       = LF
monitor_echo      = yes
monitor_filters   = colorize, time, send_on_enter

#
# Just print the dependency tree
#
[env:include_tree]
platform         = atmelavr
board            = megaatmega2560
build_flags      = -c -H -std=gnu++11 -Wall -Os -D__MARLIN_FIRMWARE__
build_src_filter = +<src/MarlinCore.cpp>

@thisiskeithb
Copy link
Member

You're not using the latest bugfix-2.1.x and/or have copied an old config in since BOTH() and EITHER() macros were removed over a year ago.


This Issue Queue is for Marlin bug reports and development-related issues, and we prefer not to handle user-support questions here. (As noted on this page.) For best results getting help with configuration and troubleshooting, please use the following resources:

@Mesgame1
Copy link
Author

Hello, how can you explain that even with a stock configuration of the latest version of marlin available on your site. Taking the config and the marlin that you indicate, I cannot compile? You should know that the files and error that I gave you, I already managed to compile them 3 months ago and that it works

@thisiskeithb
Copy link
Member

Did you test the latest bugfix-2.1.x code?
Yes, and the problem still exists.

Version of Marlin Firmware
Marlin-BUGFIX-2.1.X

The configs you attached have:
#define CONFIGURATION_H_VERSION 02010202

This is not the latest bugfix-2.1.x. You cannot mix & match configs/Marlin version.

Neither Marlin bugfix-2.1.x from https://github.com/MarlinFirmware/Marlin/tree/bugfix-2.1.x or bugfix-2.1.x Configurations from https://github.com/MarlinFirmware/Configurations/tree/bugfix-2.1.x contain these macros.

You will need to manually transfer your old config settings to the latest bugfix-2.1.x version or use the latest bugfix-2.1.x configs from the same config directory you have in your config (#define CONFIG_EXAMPLES_DIR "config/examples/Creality/Ender-3/BigTreeTech SKR Mini E3 3.0")


This Issue Queue is for Marlin bug reports and development-related issues, and we prefer not to handle user-support questions here. (As noted on this page.) For best results getting help with configuration and troubleshooting, please use the following resources:

@MarlinFirmware MarlinFirmware locked as resolved and limited conversation to collaborators Jun 19, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants