Unable to install toolchain for pixhawk on OSX 10.9.1

Trying to follow the instructions to get the toolchain built on OSX from this wiki:

pixhawk.ethz.ch/px4/dev/toolcha … lation_mac
Similar instructions here: dev.ardupilot.com/wiki/building- … ke-on-mac/

The ‘brew install gcc-arm-none-eabi’ fails:

==> ./build-prerequisites.sh
==> Building the toolchain…
==> ./build-toolchain.sh
mv -f .deps/elf.Tpo .deps/elf.Plo
make[3]: *** [all-recursive] Error 1
make[2]: *** [all] Error 2
make[1]: *** [all-bfd] Error 2
make: *** [all] Error 2

Looks like the issue is known for a month, but not fixed (see github.com/PX4/homebrew-px4/issues/3 ). I hate this brew stuff, as its deletes the build dir on failure and I can’t (yet) find out how to stop the happening - so all we get is the error message and nothing to debug sigh. Anyone know how to manually build the brew, or shed any light on the failure?

Does Lorenz use this forum? Not sure if this should be over on the px4-users list, or here?

Rick

Ok, I manually built the bottle and had to change every occurance of ‘ERROR_ON_WARN=yes’ to no in each configure. ie. I did:

find src -name configure -print | xargs grep “ERROR_ON_WARN=yes”

and replaced those. That allowed the build-toolchain.sh to complete, and I could then build the firmware with that toolchain.