Welcome! Log In Create A New Profile

Advanced

Marlin 2.0 Compile Error

Posted by rdagijones 
Marlin 2.0 Compile Error
November 27, 2019 04:01PM
Trying to compile Marlin 2.0 for an SKR Mini E3. Every time I try to compile any fork of Marlin 2.0 I get a failure. I think it is missing something that python needs but I cannot figure it out.

I have downloaded the zip, extracted it, opened the project in Platformio and tried to build it without making any changes. Still the build fails. I have attempted this on two different Windows 10 laptops and still get the identical failure.

Here is my system:
Windows 10
Visual Studio Code 1.40.1
Platformio Extension (Home 3.0.1 Core 4.1.0)
Python 3.8.0 (and Python Extension installed in VSC)
Also have installed GIT, updated Pip (Just in case)

It does not matter if I use the "master" fork from bigtreetech or any of the other forks of this fork, I get the same results. I have reached out on the BigTreeTech git site but I think I need to reach out on a larger group to see it anyone else has had a similar issue.

Here is the output while attempting to compile the master fork from BigTreeTech:
Processing STM32F103RC_bigtree_NOUSB (platform: ststm32; framework: arduino; board: genericSTM32F103RC)

Verbose mode can be enabled via -v, --verbose option
CONFIGURATION: [docs.platformio.org]
PLATFORM: ST STM32 5.7.0 > STM32F103RC (48k RAM. 256k Flash)
HARDWARE: STM32F103RCT6 72MHz, 48KB RAM, 256KB Flash
DEBUG: Current (blackmagic) External (blackmagic, jlink, stlink)
PACKAGES: toolchain-gccarmnoneeabi 1.70201.0 (7.2.1), framework-arduinoststm32-maple 1.10000.190819 (1.0.0), tool-stm32duino 1.0.2
No pyvenv.cfg file
OSError: 'python Marlin/src/HAL/HAL_STM32F1/build_flags.py' exited 106:
File "C:\Users\Raymond\appdata\local\programs\python\python38\lib\site-packages\platformio\builder\main.py", line 151:
env.SConscript("$BUILD_SCRIPT")
File "C:\Users\Raymond.platformio\packages\tool-scons\script..\engine\SCons\Script\SConscript.py", line 605:
return _SConscript(self.fs, *files, **subst_kw)
File "C:\Users\Raymond.platformio\packages\tool-scons\script..\engine\SCons\Script\SConscript.py", line 286:
exec(compile(scriptdata, scriptname, 'exec'), call_stack[-1].globals)
File "C:\Users\Raymond.platformio\platforms\ststm32\builder\main.py", line 91:
target_elf = env.BuildProgram()
File "C:\Users\Raymond.platformio\packages\tool-scons\script..\engine\SCons\Environment.py", line 224:
return self.method(*nargs, **kwargs)
File "C:\Users\Raymond\appdata\local\programs\python\python38\lib\site-packages\platformio\builder\tools\platformio.py", line 112:
env.ProcessFlags(env.get("BUILD_FLAGS"))
File "C:\Users\Raymond.platformio\packages\tool-scons\script..\engine\SCons\Environment.py", line 224:
return self.method(*nargs, **kwargs)
File "C:\Users\Raymond\appdata\local\programs\python\python38\lib\site-packages\platformio\builder\tools\platformio.py", line 202:
env.Append(**env.ParseFlagsExtended(flags))
File "C:\Users\Raymond.platformio\packages\tool-scons\script..\engine\SCons\Environment.py", line 224:
return self.method(*nargs, **kwargs)
File "C:\Users\Raymond\appdata\local\programs\python\python38\lib\site-packages\platformio\builder\tools\platformio.py", line 165:
for key, value in env.ParseFlags(str(raw)).items():
File "C:\Users\Raymond.platformio\packages\tool-scons\script..\engine\SCons\Environment.py", line 807:
do_parse(arg)
File "C:\Users\Raymond.platformio\packages\tool-scons\script..\engine\SCons\Environment.py", line 676:
arg = self.backtick(arg[1:])
File "C:\Users\Raymond.platformio\packages\tool-scons\script..\engine\SCons\Environment.py", line 594:
raise OSError("'%s' exited %d" % (command, status))
==================================================== [FAILED] Took 1.57 seconds ====================================================

Environment Status Duration

megaatmega2560 IGNORED
megaatmega1280 IGNORED
at90usb1286_cdc IGNORED
at90usb1286_dfu IGNORED
DUE IGNORED
DUE_USB IGNORED
DUE_debug IGNORED
LPC1768 IGNORED
LPC1769 IGNORED
sanguino_atmega644p IGNORED
sanguino_atmega1284p IGNORED
melzi IGNORED
melzi_optiboot IGNORED
rambo IGNORED
STM32F103RE IGNORED
STM32F103RC_fysetc IGNORED
STM32F103RC_bigtree IGNORED
STM32F103RC_bigtree_NOUSB FAILED 00:00:01.571
STM32F103RC_bigtree_512K IGNORED
STM32F103RC_bigtree_512K_NOUSB IGNORED
STM32F103RE_bigtree IGNORED
STM32F103RE_bigtree_NOUSB IGNORED
STM32F4 IGNORED
STM32F7 IGNORED
ARMED IGNORED
STM32F103VE_longer IGNORED
mks_robin IGNORED
mks_robin_lite IGNORED
mks_robin_mini IGNORED
mks_robin_nano IGNORED
jgaurora_a5s_a1 IGNORED
STM32F407VE_black IGNORED
BIGTREE_SKR_PRO IGNORED
BIGTREE_BTT002 IGNORED
teensy31 IGNORED
STM32F103CB_malyan IGNORED
chitu_f103 IGNORED
teensy35 IGNORED
esp32 IGNORED
fysetc_f6_13 IGNORED
linux_native IGNORED
SAMD51_grandcentral_m4 IGNORED
include_tree IGNORED
=============================================== 1 failed, 0 succeeded in 00:00:01.571 ===============================================
The terminal process terminated with exit code: 1

Terminal will be reused by tasks, press any key to close it.
Sorry, only registered users may post in this forum.

Click here to login