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

missing binary operator before token "(" - Compiling in Visual Studio/Platformio fails #184

Open
bstabens opened this issue Sep 15, 2024 · 0 comments

Comments

@bstabens
Copy link

System: Linux Mint Wilma
Visual Studio Code 1.9.3
Platformio 6.1.15
Board: MKS_Robin_Nano_V3, using recommended
Firmware: https://github.com/makerbase-mks/Mks-Robin-Nano-Marlin2.0-Firmware

Changed Configuration.h and Configuration_adv.h like described in the github (files attached together with corresponding platformio.ini).
Configuration.h.txt
Configuration_adv.h.txt
platformio.ini.txt

Read up on it and tried with #define USB_FLASH_DRIVE_SUPPORT enabled AND disabled, doesn't matter.
Compiling fails with attached error reports:

Warning! Ignore unknown configuration option monitor_flags in section [env]
Warning! src_filter configuration option in section [env:include_tree] is deprecated and will be removed in the next release! Please use build_src_filter instead
Warning! src_filter configuration option in section [env:DUE] is deprecated and will be removed in the next release! Please use build_src_filter instead
Warning! src_filter configuration option in section [env:esp32] is deprecated and will be removed in the next release! Please use build_src_filter instead
Warning! src_build_flags configuration option in section [env:linux_native] is deprecated and will be removed in the next release! Please use build_src_flags instead
Warning! src_filter configuration option in section [env:linux_native] is deprecated and will be removed in the next release! Please use build_src_filter instead
Warning! src_build_flags configuration option in section [env:simulator_windows] is deprecated and will be removed in the next release! Please use build_src_flags instead
Warning! src_filter configuration option in section [env:SAMD51_grandcentral_m4] is deprecated and will be removed in the next release! Please use build_src_filter instead
Warning! src_filter configuration option in section [env:malyan_M300] is deprecated and will be removed in the next release! Please use build_src_filter instead
Warning! src_filter configuration option in section [env:STM32F103CB_malyan] is deprecated and will be removed in the next release! Please use build_src_filter instead
Warning! src_filter configuration option in section [env:teensy31] is deprecated and will be removed in the next release! Please use build_src_filter instead
Warning! src_filter configuration option in section [env:teensy35] is deprecated and will be removed in the next release! Please use build_src_filter instead
Warning! src_filter configuration option in section [env:teensy36] is deprecated and will be removed in the next release! Please use build_src_filter instead
Warning! src_filter configuration option in section [env:teensy41] is deprecated and will be removed in the next release! Please use build_src_filter instead
Processing mks_robin_nano_v3_usb_flash_drive_msc (platform: ststm32@~12.1; board: marlin_STM32F407VGT6_CCM; framework: arduino)


Verbose mode can be enabled via -v, --verbose option
In file included from buildroot/share/PlatformIO/scripts/../../../../Marlin/src/inc/MarlinConfigPre.h:39,
from buildroot/share/PlatformIO/scripts/../../../../Marlin/src/inc/MarlinConfig.h:28,
from buildroot/share/PlatformIO/scripts/common-dependencies.h:29:
buildroot/share/PlatformIO/scripts/../../../../Marlin/src/inc/../../Configuration.h:574:26: error: missing binary operator before token "("
574 | #if TEMP_SENSOR_IS_MAX_TC(0)
| ^
buildroot/share/PlatformIO/scripts/../../../../Marlin/src/inc/../../Configuration.h:578:26: error: missing binary operator before token "("
578 | #if TEMP_SENSOR_IS_MAX_TC(1)
| ^
buildroot/share/PlatformIO/scripts/../../../../Marlin/src/inc/../../Configuration.h:582:26: error: missing binary operator before token "("
582 | #if TEMP_SENSOR_IS_MAX_TC(2)
| ^
In file included from buildroot/share/PlatformIO/scripts/../../../../Marlin/src/inc/MarlinConfigPre.h:56:
buildroot/share/PlatformIO/scripts/../../../../Marlin/src/inc/../../Configuration_adv.h:2735:25: error: missing binary operator before token "("
2735 | #if AXIS_IS_TMC_CONFIG(X)
| ^
buildroot/share/PlatformIO/scripts/../../../../Marlin/src/inc/../../Configuration_adv.h:2745:25: error: missing binary operator before token "("
2745 | #if AXIS_IS_TMC_CONFIG(X2)
| ^
buildroot/share/PlatformIO/scripts/../../../../Marlin/src/inc/../../Configuration_adv.h:2755:25: error: missing binary operator before token "("
2755 | #if AXIS_IS_TMC_CONFIG(Y)
| ^
buildroot/share/PlatformIO/scripts/../../../../Marlin/src/inc/../../Configuration_adv.h:2765:25: error: missing binary operator before token "("
2765 | #if AXIS_IS_TMC_CONFIG(Y2)
| ^
buildroot/share/PlatformIO/scripts/../../../../Marlin/src/inc/../../Configuration_adv.h:2775:25: error: missing binary operator before token "("
2775 | #if AXIS_IS_TMC_CONFIG(Z)
| ^
buildroot/share/PlatformIO/scripts/../../../../Marlin/src/inc/../../Configuration_adv.h:2785:25: error: missing binary operator before token "("
2785 | #if AXIS_IS_TMC_CONFIG(Z2)
| ^
buildroot/share/PlatformIO/scripts/../../../../Marlin/src/inc/../../Configuration_adv.h:2795:25: error: missing binary operator before token "("
2795 | #if AXIS_IS_TMC_CONFIG(Z3)
| ^
buildroot/share/PlatformIO/scripts/../../../../Marlin/src/inc/../../Configuration_adv.h:2805:25: error: missing binary operator before token "("
2805 | #if AXIS_IS_TMC_CONFIG(Z4)
| ^
buildroot/share/PlatformIO/scripts/../../../../Marlin/src/inc/../../Configuration_adv.h:2815:25: error: missing binary operator before token "("
2815 | #if AXIS_IS_TMC_CONFIG(I)
| ^
buildroot/share/PlatformIO/scripts/../../../../Marlin/src/inc/../../Configuration_adv.h:2825:25: error: missing binary operator before token "("
2825 | #if AXIS_IS_TMC_CONFIG(J)
| ^
buildroot/share/PlatformIO/scripts/../../../../Marlin/src/inc/../../Configuration_adv.h:2835:25: error: missing binary operator before token "("
2835 | #if AXIS_IS_TMC_CONFIG(K)
| ^
buildroot/share/PlatformIO/scripts/../../../../Marlin/src/inc/../../Configuration_adv.h:2845:25: error: missing binary operator before token "("
2845 | #if AXIS_IS_TMC_CONFIG(U)
| ^
buildroot/share/PlatformIO/scripts/../../../../Marlin/src/inc/../../Configuration_adv.h:2855:25: error: missing binary operator before token "("
2855 | #if AXIS_IS_TMC_CONFIG(V)
| ^
buildroot/share/PlatformIO/scripts/../../../../Marlin/src/inc/../../Configuration_adv.h:2865:25: error: missing binary operator before token "("
2865 | #if AXIS_IS_TMC_CONFIG(W)
| ^
buildroot/share/PlatformIO/scripts/../../../../Marlin/src/inc/../../Configuration_adv.h:2875:25: error: missing binary operator before token "("
2875 | #if AXIS_IS_TMC_CONFIG(E0)
| ^
buildroot/share/PlatformIO/scripts/../../../../Marlin/src/inc/../../Configuration_adv.h:2884:25: error: missing binary operator before token "("
2884 | #if AXIS_IS_TMC_CONFIG(E1)
| ^
buildroot/share/PlatformIO/scripts/../../../../Marlin/src/inc/../../Configuration_adv.h:2893:25: error: missing binary operator before token "("
2893 | #if AXIS_IS_TMC_CONFIG(E2)
| ^
buildroot/share/PlatformIO/scripts/../../../../Marlin/src/inc/../../Configuration_adv.h:2902:25: error: missing binary operator before token "("
2902 | #if AXIS_IS_TMC_CONFIG(E3)
| ^
buildroot/share/PlatformIO/scripts/../../../../Marlin/src/inc/../../Configuration_adv.h:2911:25: error: missing binary operator before token "("
2911 | #if AXIS_IS_TMC_CONFIG(E4)
| ^
buildroot/share/PlatformIO/scripts/../../../../Marlin/src/inc/../../Configuration_adv.h:2920:25: error: missing binary operator before token "("
2920 | #if AXIS_IS_TMC_CONFIG(E5)
| ^
buildroot/share/PlatformIO/scripts/../../../../Marlin/src/inc/../../Configuration_adv.h:2929:25: error: missing binary operator before token "("
2929 | #if AXIS_IS_TMC_CONFIG(E6)
| ^
buildroot/share/PlatformIO/scripts/../../../../Marlin/src/inc/../../Configuration_adv.h:2938:25: error: missing binary operator before token "("
2938 | #if AXIS_IS_TMC_CONFIG(E7)
| ^
CalledProcessError: Command '"c++" -D__MARLIN_FIRMWARE__ -DNDEBUG -DHAL_STM32 -DUSBCON -DUSBD_USE_CDC -DTIM_IRQ_PRIO=13 -DHAL_PCD_MODULE_ENABLED -DHAL_HCD_MODULE_ENABLED -DUSBHOST -DUSBH_IRQ_PRIO=3 -DUSBH_IRQ_SUBPRIO=4 -DPIN_WIRE_SCL=PB6 -DPIN_WIRE_SDA=PB7 -DUSE_USBHOST_HS -DUSBD_IRQ_PRIO=5 -DUSBD_IRQ_SUBPRIO=6 -DUSE_USB_HS_IN_FS -DUSBD_USE_CDC_MSC -D__MARLIN_DEPS__ -w -dM -E -x c++ buildroot/share/PlatformIO/scripts/common-dependencies.h' returned non-zero exit status 1.:
File "/home/nini/.platformio/penv/lib/python3.12/site-packages/platformio/builder/main.py", line 167:
env.SConscript(env.GetExtraScripts("pre"), exports="env")
File "/home/nini/.platformio/packages/tool-scons/scons-local-4.7.0/SCons/Script/SConscript.py", line 612:
return _SConscript(self.fs, *files, **subst_kw)
File "/home/nini/.platformio/packages/tool-scons/scons-local-4.7.0/SCons/Script/SConscript.py", line 279:
exec(compile(scriptdata, scriptname, 'exec'), call_stack[-1].globals)
File "/home/nini/3D/Software/elegoo/Mks-Robin-Nano-Marlin2.0-Firmware-master/buildroot/share/PlatformIO/scripts/common-dependencies.py", line 317:
apply_features_config()
File "/home/nini/3D/Software/elegoo/Mks-Robin-Nano-Marlin2.0-Firmware-master/buildroot/share/PlatformIO/scripts/common-dependencies.py", line 136:
if not env.MarlinFeatureIsEnabled(feature):
File "/home/nini/.platformio/packages/tool-scons/scons-local-4.7.0/SCons/Util/envs.py", line 251:
return self.method(*nargs, **kwargs)
File "/home/nini/3D/Software/elegoo/Mks-Robin-Nano-Marlin2.0-Firmware-master/buildroot/share/PlatformIO/scripts/common-dependencies.py", line 293:
load_marlin_features()
File "/home/nini/3D/Software/elegoo/Mks-Robin-Nano-Marlin2.0-Firmware-master/buildroot/share/PlatformIO/scripts/common-dependencies.py", line 281:
define_list = subprocess.check_output(cmd, shell=True).splitlines()
File "/usr/lib/python3.12/subprocess.py", line 466:
return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
File "/usr/lib/python3.12/subprocess.py", line 571:
raise CalledProcessError(retcode, process.args,
======================================================================= [FAILED] Took 0.38 seconds =======================================================================

Environment Status Duration


mks_robin_nano_v3_usb_flash_drive_msc FAILED 00:00:00.377
================================================================= 1 failed, 0 succeeded in 00:00:00.377 =================================================================

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant