# \[ISSUE\] Local compile fails on Ubuntu

**URL:** <https://community.particle.io/t/issue-local-compile-fails-on-ubuntu/47033>\
**Category:** Particle Workbench\
**Created:** [January 16, 2019, 7:04am UTC](https://community.particle.io/t/issue-local-compile-fails-on-ubuntu/47033 "2019-01-16T07:04:03Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![sryburn](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/sryburn/32/19682_2.png) [@sryburn](https://community.particle.io/u/sryburn)\
**Post date:** [January 16, 2019, 7:04am UTC](https://community.particle.io/t/issue-local-compile-fails-on-ubuntu/47033/1 "2019-01-16T07:04:03Z")

</div>

Hi,

I have been running particle workbench on a clean install of VS Code running on a clean install of Ubuntu 18.10. So far everything seems to work great except for the local compile - I have had this same issue on RC5, 6, and 7. I get the following output:

```auto
cd "/home/scott/.particle/toolchains/deviceOS/0.8.0-rc.27/firmware-0.8.0-rc.27//main" && make all
fatal: not a git repository (or any of the parent directories): .git
make[1]: Entering directory `/home/scott/.particle/toolchains/deviceOS/0.8.0-rc.27/firmware-0.8.0-rc.27/main'
make -C ../modules/argon/user-part all
fatal: not a git repository (or any of the parent directories): .git
make[2]: /home/scott/.particle/toolchains/gcc-arm/5.3.1/bin/arm-none-eabi-gcc: Command not found
make[2]: Entering directory `/home/scott/.particle/toolchains/deviceOS/0.8.0-rc.27/firmware-0.8.0-rc.27/modules/argon/user-part'
/home/scott/.particle/toolchains/deviceOS/0.8.0-rc.27/firmware-0.8.0-rc.27/build/arm-tools.mk:61: ***"ARMgcc version 5.3.1 or later required, but found ". Stop.
make[2]: Leaving directory `/home/scott/.particle/toolchains/deviceOS/0.8.0-rc.27/firmware-0.8.0-rc.27/modules/argon/user-part'
make[1]: *** [modules/argon/user-part] Error 2
make[1]: Leaving directory `/home/scott/.particle/toolchains/deviceOS/0.8.0-rc.27/firmware-0.8.0-rc.27/main'
make: *** [compile-user] Error 2
The terminal process terminated with exit code: 2

```

Not sure about the ARM GCC version… `/home/scott/.particle/toolchains/gcc-arm/5.3.1/bin/arm-none-eabi-gcc` definitely exists. I also tried installing manually via `sudo apt install gcc-arm-none-eabi`. As a result `arm-none-eabi-gcc -dumpversion` now returns `6.3.1` from the terminal but the same issue persists. Any ideas?

---

<div class="post-metadata">

**Author:** ![ScruffR](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/scruffr/32/6952_2.png) [@ScruffR](https://community.particle.io/u/ScruffR)\
**Post date:** [January 16, 2019, 3:53pm UTC](https://community.particle.io/t/issue-local-compile-fails-on-ubuntu/47033/2 "2019-01-16T15:53:33Z")

</div>

You could try Ctrl+Shift+P _Particle: Uninstall Local Compiler_, restart VS Code and then reinstall via Ctrl+Shift+P _Particle: Install Local Compiler_

Also one issue when switching between mesh platforms is that you need to run  
`make -f $PARTICLE_MAKEFILE clean-all` in Ctrl+Shift+P _Particle: Launch Compiler Shell_

---

<div class="post-metadata">

**Author:** ![m\_m](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/m_m/32/18365_2.png) [@m\_m](https://community.particle.io/u/m_m)\
**Post date:** [January 16, 2019, 6:07pm UTC](https://community.particle.io/t/issue-local-compile-fails-on-ubuntu/47033/3 "2019-01-16T18:07:58Z")

</div>

ah, sorry for the bumps.

if you haven’t already, try running `apt-get install gcc-multilib` - we need the 32bit libs since gcc-arm is itself 32bit.

we’ll make sure to highlight this in the docs (in-progress) going forward as well as look at options for eliminating the prerequisite entirely.

---

<div class="post-metadata">

**Author:** ![m\_m](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/m_m/32/18365_2.png) [@m\_m](https://community.particle.io/u/m_m)\
**Post date:** [January 16, 2019, 6:11pm UTC](https://community.particle.io/t/issue-local-compile-fails-on-ubuntu/47033/4 "2019-01-16T18:11:13Z")

</div>

these are all also available via VSCode’s “tasks” ux - from the main menu, select “Terminals \> Run Task…” and then select the appropriate `clean` task from the list shown.

as of alpha 7 we’ve also exposed these as “commands” - from the main menu, select “View \> Command Palette” (or ctrl+shift+p) then type “Particle:” and you’ll see the full list available.

---

<div class="post-metadata">

**Author:** ![sryburn](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/sryburn/32/19682_2.png) [@sryburn](https://community.particle.io/u/sryburn)\
**Post date:** [January 17, 2019, 4:49am UTC](https://community.particle.io/t/issue-local-compile-fails-on-ubuntu/47033/5 "2019-01-17T04:49:59Z")

</div>

Thanks guys - `apt-get install gcc-multilib` did the trick 👍

---

<div class="post-metadata">

**Author:** ![addisonwk](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/addisonwk/32/21992_2.png) [@addisonwk](https://community.particle.io/u/addisonwk)\
**Post date:** [June 24, 2019, 7:12pm UTC](https://community.particle.io/t/issue-local-compile-fails-on-ubuntu/47033/6 "2019-06-24T19:12:46Z")

</div>

Hi all,

Was having the same issue on Pop! OS which is a fork of Ubuntu, and just like @sryburn I was able to fix it with `sudo apt install gcc-multilib` . Is there any update on making this more prominent in the docs or eliminating the prerequisite as @m_m stated above? Thanks

---

<div class="post-metadata">

**Author:** ![m\_m](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/m_m/32/18365_2.png) [@m\_m](https://community.particle.io/u/m_m)\
**Post date:** [June 24, 2019, 9:25pm UTC](https://community.particle.io/t/issue-local-compile-fails-on-ubuntu/47033/7 "2019-06-24T21:25:34Z")

</div>

hi @addisonwk 👋

good call-out - we’ve included the tip in the docs over here but should probably highlight it better:

[https://docs.particle.io/support/particle-tools-faq/workbench/#linux-tips](https://docs.particle.io/support/particle-tools-faq/workbench/#linux-tips)

i’ll add it to our list over here 👍

---

<div class="post-metadata">

**Author:** ![addisonwk](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/addisonwk/32/21992_2.png) [@addisonwk](https://community.particle.io/u/addisonwk)\
**Post date:** [June 24, 2019, 9:39pm UTC](https://community.particle.io/t/issue-local-compile-fails-on-ubuntu/47033/8 "2019-06-24T21:39:12Z")

</div>

hey @m_m thanks for the quick reply - awesome, that section is exactly what I was envisioning 👍
