Unable to configure CubeBlack using 'waf' build

I get the following error:

ubuntu@ubuntu:~/ardupilot$ ./waf configure --board CubeBlack
Setting top to : /home/ubuntu/ardupilot
Setting out to : /home/ubuntu/ardupilot/build
Autoconfiguration : enabled
Setting board to : CubeBlack
Using toolchain : arm-none-eabi
Checking for ‘g++’ (C++ compiler) : not found
Checking for ‘clang++’ (C++ compiler) : Command [’/usr/lib/ccache/arm-none-eabi-gcc’, ‘–print-sysroot’] returned 1

Please help!!!

You have run the setup script?

https://ardupilot.org/dev/docs/building-setup-linux.html#install-some-required-packages

Hello Peter
Thank you for responding to my post. Yes, I have run the script. Interestingly, I can run ‘./waf configure --board aero’. I cannot run anything that require ‘arm-non-eabi’. Any thoughts?
Regards
Rokon

Looks like the setup is not working for some reason, you will have to follow the manual steps.

https://ardupilot.org/dev/docs/building-setup-linux.html#compiler

Thank you for the link.

Peter, I followed the steps, but no luck. I attaching the paths:
ubuntu@ubuntu:~/ardupilot$ ./waf configure --board CubeBlack
Setting top to : /home/ubuntu/ardupilot
Setting out to : /home/ubuntu/ardupilot/build
Autoconfiguration : enabled
Setting board to : CubeBlack
Using toolchain : arm-none-eabi
Checking for ‘g++’ (C++ compiler) : not found
Checking for ‘clang++’ (C++ compiler) : Command [’/usr/lib/ccache/arm-none-eabi-gcc’, ‘–print-sysroot’] returned 1

ubuntu@ubuntu:~/ardupilot$ echo $PATH
/opt/ros/melodic/bin:/usr/lib/ccache:/home/ubuntu/ardupilot/Tools/autotest:/opt/gcc-arm-none-eabi-6-2017-q2-update/bin:/home/ubuntu/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/usr/lib/ccache/gcc-arm-none-eabi-7-2017-q4-major/bin

Any help would be appreciated.

I also get the same problem in ubuntu 1804 on jetson xavier nx.

ubuntu@AIROS-NX:~/tools/ardupilot$ ./waf configure --board pixhawk1
Setting top to                           : /home/ubuntu/tools/ardupilot
Setting out to                           : /home/ubuntu/tools/ardupilot/build
Autoconfiguration                        : enabled
Setting board to                         : Pixhawk1
Using toolchain                          : arm-none-eabi
Checking for 'g++' (C++ compiler)        : not found
Checking for 'clang++' (C++ compiler)    : Command ['/usr/lib/ccache/arm-none-eabi-gcc', '--print-sysroot'] returned 1

And I fixed it based on this answer.

ubuntu@AIROS-NX:/usr/lib/ccache$ ll
total 32
drwxr-xr-x   2 root root  4096 6月   1 16:38 ./
drwxr-xr-x 149 root root 12288 6月   1 16:08 ../
lrwxrwxrwx   1 root root    16 5月  31 19:17 aarch64-linux-gnu-g++ -> ../../bin/ccache*
lrwxrwxrwx   1 root root    16 5月  31 19:17 aarch64-linux-gnu-g++-7 -> ../../bin/ccache*
lrwxrwxrwx   1 root root    16 5月  31 19:17 aarch64-linux-gnu-gcc -> ../../bin/ccache*
lrwxrwxrwx   1 root root    16 6月   1 11:55 aarch64-linux-gnu-gcc-10 -> ../../bin/ccache*
lrwxrwxrwx   1 root root    16 5月  31 19:17 aarch64-linux-gnu-gcc-7 -> ../../bin/ccache*
lrwxrwxrwx   1 root root    16 5月  31 19:17 arm-linux-gnueabihf-g++ -> ../../bin/ccache*
lrwxrwxrwx   1 root root    16 5月  31 19:17 arm-linux-gnueabihf-g++-7 -> ../../bin/ccache*
lrwxrwxrwx   1 root root    16 5月  31 19:17 arm-linux-gnueabihf-gcc -> ../../bin/ccache*
lrwxrwxrwx   1 root root    16 5月  31 19:17 arm-linux-gnueabihf-gcc-7 -> ../../bin/ccache*
lrwxrwxrwx   1 root root    67 6月   1 16:38 arm-none-eabi-g++ -> /usr/share/gcc-arm-none-eabi-10-2020-q4-major/bin/arm-none-eabi-g++*
lrwxrwxrwx   1 root root    67 6月   1 16:38 arm-none-eabi-gcc -> /usr/share/gcc-arm-none-eabi-10-2020-q4-major/bin/arm-none-eabi-gcc*
lrwxrwxrwx   1 root root    67 6月   1 16:38 arm-none-eabi-gdb -> /usr/share/gcc-arm-none-eabi-10-2020-q4-major/bin/arm-none-eabi-gdb*
lrwxrwxrwx   1 root root    68 6月   1 16:37 arm-none-eabi-size -> /usr/share/gcc-arm-none-eabi-10-2020-q4-major/bin/arm-none-eabi-size*
lrwxrwxrwx   1 root root    16 5月  31 19:17 avr-g++ -> ../../bin/ccache*
lrwxrwxrwx   1 root root    16 5月  31 19:17 avr-gcc -> ../../bin/ccache*
lrwxrwxrwx   1 root root    16 5月  31 19:17 avr-gcc-5.4.0 -> ../../bin/ccache*
lrwxrwxrwx   1 root root    16 5月  31 19:17 c++ -> ../../bin/ccache*
lrwxrwxrwx   1 root root    16 5月  31 19:17 c89-gcc -> ../../bin/ccache*
lrwxrwxrwx   1 root root    16 5月  31 19:17 c99-gcc -> ../../bin/ccache*
lrwxrwxrwx   1 root root    16 5月  31 19:17 cc -> ../../bin/ccache*
lrwxrwxrwx   1 root root    16 5月  31 19:17 g++ -> ../../bin/ccache*
lrwxrwxrwx   1 root root    16 5月  31 19:17 g++-7 -> ../../bin/ccache*
lrwxrwxrwx   1 root root    16 5月  31 19:17 gcc -> ../../bin/ccache*
lrwxrwxrwx   1 root root    16 6月   1 11:55 gcc-10 -> ../../bin/ccache*
lrwxrwxrwx   1 root root    16 5月  31 19:17 gcc-7 -> ../../bin/ccache*

It seem to finish successfully the configure .

ubuntu@AIROS-NX:~/tools/ardupilot$ ./waf configure --board pixhawk1
Setting top to                           : /home/ubuntu/tools/ardupilot
Setting out to                           : /home/ubuntu/tools/ardupilot/build
Autoconfiguration                        : enabled
Setting board to                         : Pixhawk1
Using toolchain                          : arm-none-eabi
Checking for 'g++' (C++ compiler)        : /usr/lib/ccache/arm-none-eabi-g++
Checking for 'gcc' (C compiler)          : /usr/lib/ccache/arm-none-eabi-gcc
Checking for c flags '-MMD'              : yes
Checking for cxx flags '-MMD'            : yes
CXX Compiler                             : g++ 10.2.1
Checking for program 'make'              : /usr/bin/make
Checking for program 'arm-none-eabi-objcopy' : /opt/gcc-arm-none-eabi-6-2017-q2-update/bin/arm-no                                                                                                        ne-eabi-objcopy
Including /home/ubuntu/tools/ardupilot/libraries/AP_HAL_ChibiOS/hwdef/fmuv3/hwdef.dat
Setup for MCU STM32F427xx
Writing hwdef setup in /home/ubuntu/tools/ardupilot/build/Pixhawk1/hwdef.h
Writing DMA map
Generating ldscript.ld
No default parameter file found
Checking for env.py
env set HAL_NUM_CAN_IFACES=2
env set BOARD_FLASH_SIZE=2048
env set PROCESS_STACK=0x1C00
env set APJ_BOARD_TYPE=STM32F427xx
env set PERIPH_FW=0
env set USBID=0x1209/0x5741
env set MAIN_STACK=0x600
env set APJ_BOARD_ID=9
env set CORTEX=cortex-m4
env set FLASH_TOTAL=2080768
env set FLASH_RESERVE_START_KB=16
env set CHIBIOS_BUILD_FLAGS=USE_FATFS=yes MCU=cortex-m4 ENV_UDEFS=-DCHPRINTF_USE_FLOAT=1 CHIBIOS_                                                                                                        PLATFORM_MK=os/hal/ports/STM32/STM32F4xx/platform.mk CHIBIOS_STARTUP_MK=os/common/startup/ARMCMx/                                                                                                        compilers/GCC/mk/startup_stm32f4xx.mk
env set CPU_FLAGS=['-mcpu=cortex-m4', '-mfpu=fpv4-sp-d16', '-mfloat-abi=hard', '-DARM_MATH_CM4',                                                                                                         '-u_printf_float']
env set IOMCU_FW=0
env set WITH_FATFS=1
Enabling ChibiOS asserts                     : no
Enabling malloc guard                        : no
Enabling ChibiOS thread statistics           : no
Enabling -Werror                             : no
Checking for intelhex module:                : OK
Checking for HAVE_CMATH_ISFINITE             : yes
Checking for HAVE_CMATH_ISINF                : yes
Checking for HAVE_CMATH_ISNAN                : yes
Checking for NEED_CMATH_ISFINITE_STD_NAMESPACE : yes
Checking for NEED_CMATH_ISINF_STD_NAMESPACE    : yes
Checking for NEED_CMATH_ISNAN_STD_NAMESPACE    : yes
Checking for header endian.h                   : not found
Checking for header byteswap.h                 : not found
Checking for HAVE_MEMRCHR                      : no
Checking for program 'python'                  : /usr/bin/python
Checking for python version >= 2.7.0           : 2.7.17
Checking for program 'python'                  : /usr/bin/python
Checking for python version >= 2.7.0           : 2.7.17
Source is git repository                       : yes
Update submodules                              : yes
Checking for program 'git'                     : /usr/bin/git
Gtest                                          : STM32 boards currently don't support compiling g                                                                                                        test
Checking for program 'arm-none-eabi-size'      : /usr/lib/ccache/arm-none-eabi-size
Benchmarks                                     : disabled
Unit tests                                     : disabled
Scripting                                      : enabled
Scripting runtime checks                       : enabled
Debug build                                    : disabled
Checking for program 'rsync'                   : /usr/bin/rsync
'configure' finished successfully (3.090s)