PlatformIO Community

Marlin 2.0 Build Issues with Plaformio Mac

I am trying to build Marlin Bugfix 2.0.x Everytime I build I am getting the following errors wheather I use Platformio through Atom or Vscode on my mac.
I can borrow a friends windows laptop and the same files build perfectly.
Is there something incorrect with the python instal on my system?

Processing LPC1768 (platform: https://github.com/p3p/pio-nxplpc-arduino-lpc176x/archive/maste

r.zip; framework: arduino; board: nxp_lpc1768)

--------------------------------------------------------------------------------

PackageManager: Installing toolchain-gccarmnoneeabi @ >=1.80201.181221

Downloading...

Unpacking...

toolchain-gccarmnoneeabi @ 1.80201.181221 has been successfully installed!

Verbose mode can be enabled via `-v, --verbose` option

CONFIGURATION: https://docs.platformio.org/page/boards/nxplpc-arduino-lpc176x/nxp_lpc1768.htm

l

PLATFORM: NXP Arduino LPC176x 0.0.2 > NXP LPC1768

HARDWARE: LPC1768 100MHz, 31.80KB RAM, 464KB Flash

DEBUG: Current (cmsis-dap) On-board (cmsis-dap) External (blackmagic, jlink)

PACKAGES: framework-arduino-lpc176x 0.1.3

Converting Marlin.ino

sh: arm-none-eabi-g++: command not found

*** Error 127

AssertionError: :

  File "/Volumes/Macintosh HDD/samuelread/.platformio/penv/lib/python2.7/site-packages/platfo

rmio/builder/main.py", line 126:

    env.SConscript("$BUILD_SCRIPT")

  File "/Volumes/Macintosh HDD/samuelread/.platformio/packages/tool-scons/script/../engine/SC

ons/Script/SConscript.py", line 541:

    return _SConscript(self.fs, *files, **subst_kw)

  File "/Volumes/Macintosh HDD/samuelread/.platformio/packages/tool-scons/script/../engine/SC

ons/Script/SConscript.py", line 250:

    exec _file_ in call_stack[-1].globals

  File "/Volumes/Macintosh HDD/samuelread/.platformio/platforms/nxplpc-arduino-lpc176x/builde

r/main.py", line 136:

    target_elf = env.BuildProgram()

  File "/Volumes/Macintosh HDD/samuelread/.platformio/packages/tool-scons/script/../engine/SC

ons/Environment.py", line 224:

    return self.method(*nargs, **kwargs)

  File "/Volumes/Macintosh HDD/samuelread/.platformio/penv/lib/python2.7/site-packages/platfo

rmio/builder/tools/platformio.py", line 110:

    env.BuildFrameworks(env.get("PIOFRAMEWORK"))

  File "/Volumes/Macintosh HDD/samuelread/.platformio/packages/tool-scons/script/../engine/SC

ons/Environment.py", line 224:

    return self.method(*nargs, **kwargs)

  File "/Volumes/Macintosh HDD/samuelread/.platformio/penv/lib/python2.7/site-packages/platfo

rmio/builder/tools/platformio.py", line 288:

    env.ConvertInoToCpp()

  File "/Volumes/Macintosh HDD/samuelread/.platformio/packages/tool-scons/script/../engine/SC

ons/Environment.py", line 224:

    return self.method(*nargs, **kwargs)

  File "/Volumes/Macintosh HDD/samuelread/.platformio/penv/lib/python2.7/site-packages/platfo

rmio/builder/tools/piomisc.py", line 198:
out_file = c.convert(ino_nodes)

  File "/Volumes/Macintosh HDD/samuelread/.platformio/penv/lib/python2.7/site-packages/platfo

rmio/builder/tools/piomisc.py", line 57:

    return self.process(contents)

  File "/Volumes/Macintosh HDD/samuelread/.platformio/penv/lib/python2.7/site-packages/platfo

rmio/builder/tools/piomisc.py", line 80:

    assert self._gcc_preprocess(contents, out_file)

========================= [FAILED] Took 154.12 seconds =========================

Thanks,

This exact same error was discussed in this thread already: Can not compile: arm-none-eabi-g++: command not found

The people you download the Marlin firmware from only supply an extra linux compiler (and the current windows one works too), but not a Mac-OS one. You will have to do some hacking.

Ah Thank you for the link. I tried to search for related subjects but didn’t find this one. I am still having an issue but I will post in the linked thread if I cannot sort it myself.
Thank you