Skip to content

[BUG] Build fails with later PlatformIO versions #9

@Dealman

Description

@Dealman

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

Yes, and the problem still exists.

Bug Description

Tried building this using PlatformIO Core 6.1.16 and Home 3.4.4 which fails, came across this post which fixes the issue.

In short, you need to change the replace_define method in buildroot/share/PlatformIO/scripts/marlin.py to this;

def replace_define(field, value):
	envdefs = env['CPPDEFINES'].copy()
	for define in envdefs:
		if define[0] == field:
			env['CPPDEFINES'].remove(define)
	env['CPPDEFINES'].append((field, value))

platformio.ini is also using names for the configuration options which have since been marked as deprecated and will be removed in a future version. Simply change these occurrences;

- build_flags
- src_filter
+ build_src_flags
+ build_src_filter

Bug Timeline

No response

Expected behavior

No response

Actual behavior

No response

Steps to Reproduce

No response

Version of Marlin Firmware

V2.0.0_A

Printer model

Sovol SV06

Electronics

Stock

Add-ons

N/A

Bed Leveling

None

Your Slicer

None

Host Software

None

Additional information & file uploads

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions