[SOLVED] Arm-none-eabi-gcc not found when building firmware on Linux

Hello everyone!

I have been working on po-util recently, and I am encountering a very frustrating bug on Ubuntu / Mint. Arm-none-eabi-gcc is not being found, and I am having trouble adding it to $PATH.

Here is the output when trying to build firmware on my VPS (Ubuntu 16.04.1):

nrobinson@ubuntu-2gb-nyc2-01:~$ po photon build po-util/build-test/
photon selected.
Already on 'latest'
Building firmware for Production Photon, platform ID: 6, product ID: 6
/bin/sh: 1: /home/nrobinson/bin/gcc-arm-embedded/gcc-arm-none-eabi-4_9-2015q3/bin/arm-none-eabi-gcc: not found
/home/nrobinson/github/firmware/build/arm-tools.mk:43: *** "ARM gcc version 4.8.4 or later required, but found ".  Stop.
build/recurse.mk:11: recipe for target 'communication' failed
make: *** [communication] Error 2
nrobinson@ubuntu-2gb-nyc2-01:~$ 

Whenever I try to run arm-none-eabi-gcc manually by just running:

/home/nrobinson/bin/gcc-arm-embedded/gcc-arm-none-eabi-4_9-2015q3/bin/arm-none-eabi-gcc

I get the error:

-bash: /home/nrobinson/bin/gcc-arm-embedded/gcc-arm-none-eabi-4_9-2015q3/bin/arm-none-eabi-gcc: No such file or directory

Which I find really weird, because the file does exist.

My code can be found here: https://github.com/nrobinson2000/po-util/blob/master/po-util.sh

Strangely, My CI that I am using (Circle CI) does not have this problem. https://circleci.com/gh/nrobinson2000/po-util/tree/master

EDIT: After reinstalling po-util on Mint, I am no longer having the problem I have on my Ubuntu VPS.

UPDATE:
I now make it so that po-util creates symlinks in /usr/local/bin so it doesn’t have to append $PATH, but I am still having this problem on my Ubuntu VPS. It is also worth noting that I have this problem when using Travis CI.

UPDATE:
I am no longer having this problem on Travis CI! :grinning:
I just had to fix my .travis.yml

Travis is having this problem again, so I have disabled it.

I found out what the problem is. It’s because the 32 bit libraries are not installed. The solution is on this thread. Po-util: a Toolchain Installer / Helper for Linux and OSX