PlatformIO Community

'CC' is not recognized as an internal or external command, operable program or batch file

Anything i try to compile just ends up giving me the error

Processing BIGTREE_SKR_PRO (platform: ststm32@~8.0; board: BigTree_SKR_Pro; framework: arduino)
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------Verbose mode can be enabled via `-v, --verbose` option
'CC' is not recognized as an internal or external command,
operable program or batch file.
CalledProcessError: Command 'CC -D__MARLIN_FIRMWARE__ -DUSBCON -DUSBD_USE_CDC -DTIM_IRQ_PRIO=13 -DSTM32F407_5ZX -DVECT_TAB_OFFSET=0x8000 -D__MARLIN_DEPS__ -w -dM -E -x c++ buildroot/share/PlatformIO/scripts/common-dependencies.h' returned non-zero exit status 1.:
  File "C:\Users\user\.platformio\penv\Lib\site-packages\platformio\builder\main.py", line 176:
    env.SConscript(item, exports="env")
  File "C:\Users\user\.platformio\packages\tool-scons\scons-local-4.2.0\SCons\Script\SConscript.py", line 597:
    return _SConscript(self.fs, *files, **subst_kw)
  File "C:\Users\user\.platformio\packages\tool-scons\scons-local-4.2.0\SCons\Script\SConscript.py", line 285:
    exec(compile(scriptdata, scriptname, 'exec'), call_stack[-1].globals)
  File "C:\Users\user\Desktop\CNC LOWRIDER FILES\V1CNC_SkrPro_2209-2.0.7.2-src (1)\Marlin_V1CNC_SkrPro_2209_2.0.7.2_510-src\Marlin\buildroot\share\PlatformIO\scripts\common-dependencies.py", line 286:        
    apply_features_config()
  File "C:\Users\user\Desktop\CNC LOWRIDER FILES\V1CNC_SkrPro_2209-2.0.7.2-src (1)\Marlin_V1CNC_SkrPro_2209_2.0.7.2_510-src\Marlin\buildroot\share\PlatformIO\scripts\common-dependencies.py", line 118:        
    if not env.MarlinFeatureIsEnabled(feature):
  File "C:\Users\user\.platformio\packages\tool-scons\scons-local-4.2.0\SCons\Util.py", line 748:
    return self.method(*nargs, **kwargs)
  File "C:\Users\user\Desktop\CNC LOWRIDER FILES\V1CNC_SkrPro_2209-2.0.7.2-src (1)\Marlin_V1CNC_SkrPro_2209_2.0.7.2_510-src\Marlin\buildroot\share\PlatformIO\scripts\common-dependencies.py", line 262:        
    load_marlin_features()
  File "C:\Users\user\Desktop\CNC LOWRIDER FILES\V1CNC_SkrPro_2209-2.0.7.2-src (1)\Marlin_V1CNC_SkrPro_2209_2.0.7.2_510-src\Marlin\buildroot\share\PlatformIO\scripts\common-dependencies.py", line 250:        
    define_list = subprocess.check_output(cmd, shell=True).splitlines()
  File "C:\Users\user\AppData\Local\Programs\Python\Python310\lib\subprocess.py", line 420:
    return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
  File "C:\Users\user\AppData\Local\Programs\Python\Python310\lib\subprocess.py", line 524:
    raise CalledProcessError(retcode, process.args,

This occurred in old Marlin versions and was reported in https://github.com/MarlinFirmware/Marlin/issues/20671. From when is the Marlin version you’re using? Does deleting the whole C:\Users\user\.platformio\packages\ folder and rebuilding help?

1 Like