Issue setting up ardupilot/ArduCopter?

I’m new to pi and navio and having issues with the make navio command. any help would be great thanks.

pi@navio-rpi ~/ardupilot/ArduCopter $ make navio
// BUILDROOT=/tmp/ArduCopter.build HAL_BOARD=HAL_BOARD_LINUX HAL_BOARD_SUBTYPE=HAL_BOARD_SUBTYPE_LINUX_NAVIO TOOLCHAIN=RPI EXTRAFLAGS=-DGIT_VERSION=“0615d7a0”
%% control_rtl.o
cc1plus: error: unrecognized command line option ‘-std=gnu++11’
…/mk/build_rules.mk:11: recipe for target ‘/tmp/ArduCopter.build/control_rtl.o’ failed
make: *** [/tmp/ArduCopter.build/control_rtl.o] Error 1

Too old gcc. You need version with C++11 support.

@Gavan_Murphy

You can update gcc using these instructions.

But I would recommend to set up a cross compiler, it is much faster and flexible.