GNU GCC Arm and OSX

Get the precompiled toolchain here

Download and extract folder, copy to /usr/local/.
Update link to /usr/local/arm-gcc (ln -s /usr/local/gcc-arm-none-eabi-{version} /usr/local/arm-gcc)

Once only: Add gcc-arm to path:
Edit /etc/paths.d/60-arm-gcc
/usr/local/arm-gcc/bin

Also add man paths
Edit /etc/manpaths.d/60-arm-gcc
/usr/local/arm-gcc/share/doc/gcc-arm-none-eabi/man

A bit of a ‘bug’ in os x is path_helper (run from /etc/profile) doesn’t set MANPATH if it’s not already defined. So A quick hack is to add the following lines in /etc/profile:

MANPATH=
export MANPATH

So the complete file looks like:

# System-wide .profile for sh(1)
MANPATH=
export MANPATH

if [ -x /usr/libexec/path_helper ]; then
eval `/usr/libexec/path_helper -s`
fi

if [ "${BASH-no}" != "no" ]; then
[ -r /etc/bashrc ] && . /etc/bashrc
fi

Then all man paths defined in /etc/manpaths.d will be set

Leave a Reply