[ISSUE] - Photon Compilation Fail on Particle Workbench Alpha 7

When i try to compile a simple program on a recently installed Workbench Alpha 7 i receive the following error:

make -C /home/ijbgreen/.particle/toolchains/deviceOS/1.0.0/firmware-1.0.0/modules/photon/user-part/ clean
fatal: not a git repository (or any of the parent directories): .git
make[2]: Entering directory `/home/ijbgreen/.particle/toolchains/deviceOS/1.0.0/firmware-1.0.0/modules/photon/user-part'
../../../build/module.mk:227: warning: overriding recipe for target `/home/ijbgreen/Particle'
../../../build/module.mk:220: warning: ignoring old recipe for target `/home/ijbgreen/Particle'
../../../build/module.mk:227: warning: overriding recipe for target `Workbench/WaterLevel/target//Particle'
../../../build/module.mk:220: warning: ignoring old recipe for target `Workbench/WaterLevel/target//Particle'
../../../build/module.mk:236: warning: overriding recipe for target `/home/ijbgreen/Particle'
../../../build/module.mk:227: warning: ignoring old recipe for target `/home/ijbgreen/Particle'
../../../build/module.mk:236: warning: overriding recipe for target `Workbench/WaterLevel/target//Particle'
../../../build/module.mk:227: warning: ignoring old recipe for target `Workbench/WaterLevel/target//Particle'
../../../build/module.mk:260: warning: overriding recipe for target `/home/ijbgreen/Particle'
../../../build/module.mk:236: warning: ignoring old recipe for target `/home/ijbgreen/Particle'
../../../build/module.mk:259: *** mixed implicit and normal rules.  Stop.
make[2]: Leaving directory `/home/ijbgreen/.particle/toolchains/deviceOS/1.0.0/firmware-1.0.0/modules/photon/user-part'
make[1]: *** [/home/ijbgreen/.particle/toolchains/deviceOS/1.0.0/firmware-1.0.0/modules/photon/user-part/makefile]Error 2
make[1]: Leaving directory `/home/ijbgreen/.particle/toolchains/deviceOS/1.0.0/firmware-1.0.0/modules'
make: *** [clean-all] Error 2
The terminal process terminated with exit code: 2

Ambient:

  • VSCode Version: 1.30.2
  • OS Version: Fedora 29 - 4.20.3-200.fc29.x86_64
  • Other extensions installed: None

Have you tried uninstall the local toolchain and reinstall it?
image

Yes. In fact i’m testing onto a VM and fully roll back the VM before installing.

@ijbgreen

there are a few additional dependencies / steps you need in order to get up an running over on linux.

the gcc-arm compiler needs 32bit libs - on Ubuntu that’s a matter of running:

apt-get install gcc-multilib (not sure what the yum equivalent is but perhaps this helps)

similarly, we’ve had cases where you also need:

apt-get install libncurses5:i386

in order to fulfill a dependency of arm-none-eabi-gdb

finally, you’ll need to setup some udev rules:

# Core
SUBSYSTEMS=="usb", ATTRS{idVendor}=="1d50", ATTRS{idProduct}=="607[df]", GROUP="plugdev", MODE="664", ENV{ID_MM_DEVICE_IGNORE}="1"
#
# Photon/P1/Electron/Argon/Boron/Xenon
SUBSYSTEMS=="usb", ATTRS{idVendor}=="2b04", ATTRS{idProduct}=="[cd]0??", GROUP="plugdev", MODE="664", ENV{ID_MM_DEVICE_IGNORE}="1"
#
# Particle Programmer Shield v1.0
SUBSYSTEMS=="usb", ATTRS{idVendor}=="0403", ATTRS{idProduct}=="6010", GROUP="plugdev", MODE="664", ENV{ID_MM_DEVICE_IGNORE}="1"
#
# Particle Debugger
SUBSYSTEMS=="usb", ATTRS{idVendor}=="0d28", ATTRS{idProduct}=="0204", GROUP="plugdev", MODE="664", ENV{ID_MM_DEVICE_IGNORE}="1"
# 

we’ve been installing these here: /etc/udev/rules.d/50-particle.rules

i’m looking at how we might simplify some of this so please let me know what you find :pray::+1:

EDIT: also, fyi we have a category dedicated to Workbench-related conversations over here :point_right:https://community.particle.io/c/particle-workbench

Im getting same Error on MAC. Is there a fix for this?