Build Error following Wiki


I am following the development directions posted here and then the build directions here

I have tried configuring different boards, created new ardupilot local directories from git with no luck. All I have run is the board configure for my pixhawk 4 and then ./waf copter.

This my error, any help is appreciated

as: unrecognized option ‘–64’

Waf: Leaving directory `/home/mitch/autopilot/ardupilot/build/Pixhawk4’
Build failed
-> task in ‘/home/mitch/autopilot/ardupilot/build/Pixhawk4/gen-bindings’ failed (exit status 1):
{task 140045786813264: /home/mitch/autopilot/ardupilot/build/Pixhawk4/gen-bindings main.c -> gen-bindings}
{task 140045786813264: /home/mitch/autopilot/ardupilot/build/Pixhawk4/gen-bindings main.c -> gen-bindings}
’ gcc -std=c99 -Wno-error=missing-field-initializers -Wall -Werror -Wextra -o gen-bindings …/…/libraries/AP_Scripting/generator/src/main.c ’

Good day, which version of Ubuntu are you using?

Hi Dave,

It is a fresh install of 20.04.01 LTS, this was my next fault finding move.


I have a new fresh install of 20.04.01 and have run the installation process again. My new error is

ccache: error: Could not find compiler “arm-none-eabi-g++” in PATH

my current $PATH is


Any different thoughts on where I am going wrong?

Just try re install the gcc arm or you can use the previous Ubuntu 18.04.

I am facing this same error, was someone able to fix this?