Hello, im trying to build the base firmware in branch V1.11.0 for pixhawk 4 using βmake px4_fmu-v5_defaultβ and the following error is displayed:
~/PX4-Autopilot$ make px4_fmu-v5_default
β PX4 version: v1.11.0-1-ge6a7aaafb2
β PX4 config file: /home/victor/PX4-Autopilot/boards/px4/fmu-v5/default.cmake
β PX4 config: px4_fmu-v5_default
β PX4 platform: nuttx
β cmake build type: MinSizeRel
β The CXX compiler identification is GNU 9.3.1
β The C compiler identification is GNU 9.3.1
β The ASM compiler identification is GNU
β Found assembler: /opt/gcc-arm-none-eabi-9-2020-q2-update/bin/arm-none-eabi-gcc
β Detecting CXX compiler ABI info
β Detecting CXX compiler ABI info - done
β Check for working CXX compiler: /opt/gcc-arm-none-eabi-9-2020-q2-update/bin/arm-none-eabi-g++ - skipped
β Detecting CXX compile features
β Detecting CXX compile features - done
β Detecting C compiler ABI info
β Detecting C compiler ABI info - done
β Check for working C compiler: /opt/gcc-arm-none-eabi-9-2020-q2-update/bin/arm-none-eabi-gcc - skipped
β Detecting C compile features
β Detecting C compile features - done
β Enabling double FP precision hardware instructions
β ccache enabled (export CCACHE_DISABLE=1 to disable)
β Found PythonInterp: /usr/bin/python3 (found suitable version β3.6.9β, minimum required is β3β)
β build type is MinSizeRel
β PX4 ECL: Very lightweight Estimation & Control Library v1.9.0-rc1-399-gec93490
β Building and including px4_io-v2_default
CMake Deprecation Warning at src/drivers/uavcan/libuavcan/CMakeLists.txt:5 (cmake_minimum_required):
Compatibility with CMake < 2.8.12 will be removed from a future version of
CMake.
Update the VERSION argument value or use a β¦ suffix to tell
CMake that the project does not need compatibility with older versions.
CMake Deprecation Warning at src/drivers/uavcan/libuavcan/libuavcan/CMakeLists.txt:5 (cmake_minimum_required):
Compatibility with CMake < 2.8.12 will be removed from a future version of
CMake.
Update the VERSION argument value or use a β¦ suffix to tell
CMake that the project does not need compatibility with older versions.
β Found PythonInterp: /usr/bin/python3 (found version β3.6.9β)
β Using C++11
β Release build type: MinSizeRel
β ROMFS: px4fmu_common
β ROMFS: Adding rc.board_defaults
β ROMFS: Adding rc.board_sensors
β ROMFS: Adding rc.board_mavlink
β Found SVD:
β Configuring done
β Generating done
β Build files have been written to: /home/victor/PX4-Autopilot/build/px4_fmu-v5_default
[0/1379] git submodule platforms/nuttx/NuttX/nuttx
[2/1379] git submodule platforms/nuttx/NuttX/apps
[8/1379] git submodule src/lib/ecl
[14/1379] git submodule src/drivers/gps/devices
[15/1379] git submodule src/drivers/uavcan/libuavcan
[21/1379] git submodule mavlink/include/mavlink/v2.0
[329/1379] Generating apps/libapps.a, apps/platform/.built
AR (add): libapps.a nsh_init.c.home.victor.PX4-Autopilot.build.px4_fmu-v5_default.NuttX.apps.nshlib.o nsh_parse.c.home.victor.PX4-Autopilot.build.px4_fmu-v5_default.NuttX.apps.nshlib.o nsh_console.c.home.victor.PX4-Autopilot.build.px4_fmu-v5_default.NuttX.apps.nshlib.o nsh_script.c.home.victor.PX4-Autopilot.build.px4_fmu-v5_default.NuttX.apps.nshlib.o nsh_system.c.home.victor.PX4-Autopilot.build.px4_fmu-v5_default.NuttX.apps.nshlib.o nsh_command.c.home.victor.PX4-Autopilot.build.px4_fmu-v5_default.NuttX.apps.nshlib.o nsh_fscmds.c.home.victor.PX4-Autopilot.build.px4_fmu-v5_default.NuttX.apps.nshlib.o nsh_ddcmd.c.home.victor.PX4-Autopilot.build.px4_fmu-v5_default.NuttX.apps.nshlib.o nsh_proccmds.c.home.victor.PX4-Autopilot.build.px4_fmu-v5_default.NuttX.apps.nshlib.o nsh_mmcmds.c.home.victor.PX4-Autopilot.build.px4_fmu-v5_default.NuttX.apps.nshlib.o nsh_timcmds.c.home.victor.PX4-Autopilot.build.px4_fmu-v5_default.NuttX.apps.nshlib.o nsh_envcmds.c.home.victor.PX4-Autopilot.build.px4_fmu-v5_default.NuttX.apps.nshlib.o nsh_syscmds.c.home.victor.PX4-Autopilot.build.px4_fmu-v5_default.NuttX.apps.nshlib.o nsh_dbgcmds.c.home.victor.PX4-Autopilot.build.px4_fmu-v5_default.NuttX.apps.nshlib.o nsh_session.c.home.victor.PX4-Autopilot.build.px4_fmu-v5_default.NuttX.apps.nshlib.o nsh_fsutils.c.home.victor.PX4-Autopilot.build.px4_fmu-v5_default.NuttX.apps.nshlib.o nsh_builtin.c.home.victor.PX4-Autopilot.build.px4_fmu-v5_default.NuttX.apps.nshlib.o nsh_vars.c.home.victor.PX4-Autopilot.build.px4_fmu-v5_default.NuttX.apps.nshlib.o nsh_romfsetc.c.home.victor.PX4-Autopilot.build.px4_fmu-v5_default.NuttX.apps.nshlib.o nsh_mntcmds.c.home.victor.PX4-Autopilot.build.px4_fmu-v5_default.NuttX.apps.nshlib.o nsh_consolemain.c.home.victor.PX4-Autopilot.build.px4_fmu-v5_default.NuttX.apps.nshlib.o nsh_test.c.home.victor.PX4-Autopilot.build.px4_fmu-v5_default.NuttX.apps.nshlib.o nsh_usbconsole.c.home.victor.PX4-Autopilot.build.px4_fmu-v5_default.NuttX.apps.nshlib.o
AR (add): libapps.a builtin_list.c.home.victor.PX4-Autopilot.build.px4_fmu-v5_default.NuttX.apps.builtin.o exec_builtin.c.home.victor.PX4-Autopilot.build.px4_fmu-v5_default.NuttX.apps.builtin.o
AR (add): libapps.a readline.c.home.victor.PX4-Autopilot.build.px4_fmu-v5_default.NuttX.apps.system.readline.o readline_common.c.home.victor.PX4-Autopilot.build.px4_fmu-v5_default.NuttX.apps.system.readline.o
AR (add): libapps.a nsh_main.c.home.victor.PX4-Autopilot.build.px4_fmu-v5_default.NuttX.apps.system.nsh.o sh_main.c.home.victor.PX4-Autopilot.build.px4_fmu-v5_default.NuttX.apps.system.nsh.o
AR (add): libapps.a cdcacm_main.c.home.victor.PX4-Autopilot.build.px4_fmu-v5_default.NuttX.apps.system.cdcacm.o
AR (add): libapps.a mkfatfs.c.home.victor.PX4-Autopilot.build.px4_fmu-v5_default.NuttX.apps.fsutils.mkfatfs.o configfat.c.home.victor.PX4-Autopilot.build.px4_fmu-v5_default.NuttX.apps.fsutils.mkfatfs.o writefat.c.home.victor.PX4-Autopilot.build.px4_fmu-v5_default.NuttX.apps.fsutils.mkfatfs.o
AR (add): libapps.a dummy.c.home.victor.PX4-Autopilot.build.px4_fmu-v5_default.NuttX.apps.platform.o
[331/1379] Performing configure step for βpx4io_firmwareβ
β PX4 version: v1.11.0-1-ge6a7aaafb2
β PX4 config file: /home/victor/PX4-Autopilot/boards/px4/io-v2/default.cmake
β PX4 config: px4_io-v2_default
β PX4 platform: nuttx
β cmake build type: MinSizeRel
β The CXX compiler identification is GNU 9.3.1
β The C compiler identification is GNU 9.3.1
β The ASM compiler identification is GNU
β Found assembler: /opt/gcc-arm-none-eabi-9-2020-q2-update/bin/arm-none-eabi-gcc
β Detecting CXX compiler ABI info
β Detecting CXX compiler ABI info - done
β Check for working CXX compiler: /opt/gcc-arm-none-eabi-9-2020-q2-update/bin/arm-none-eabi-g++ - skipped
β Detecting CXX compile features
β Detecting CXX compile features - done
β Detecting C compiler ABI info
β Detecting C compiler ABI info - done
β Check for working C compiler: /opt/gcc-arm-none-eabi-9-2020-q2-update/bin/arm-none-eabi-gcc - skipped
β Detecting C compile features
β Detecting C compile features - done
β ccache enabled (export CCACHE_DISABLE=1 to disable)
β Found PythonInterp: /usr/bin/python3 (found suitable version β3.6.9β, minimum required is β3β)
β build type is MinSizeRel
β PX4 ECL: Very lightweight Estimation & Control Library v1.9.0-rc1-399-gec93490
β Configuring done
β Generating done
β Build files have been written to: /home/victor/PX4-Autopilot/build/px4_fmu-v5_default/external/Build/px4io_firmware
[331/1379] Performing build step for βpx4io_firmwareβ
[0/222] git submodule platforms/nuttx/NuttX/nuttx
[2/222] git submodule platforms/nuttx/NuttX/apps
[15/222] Generating nuttx/include/nuttx/config.h, nuttx/include/nuttx/version.h
FAILED: NuttX/nuttx/include/nuttx/config.h NuttX/nuttx/include/nuttx/version.h /home/victor/PX4-Autopilot/build/px4_fmu-v5_default/external/Build/px4io_firmware/NuttX/nuttx/include/nuttx/config.h /home/victor/PX4-Autopilot/build/px4_fmu-v5_default/external/Build/px4io_firmware/NuttX/nuttx/include/nuttx/version.h
cd /home/victor/PX4-Autopilot/build/px4_fmu-v5_default/external/Build/px4io_firmware/NuttX/nuttx && make --quiet --no-print-directory CONFIG_ARCH_BOARD_CUSTOM=y pass1dep > nuttx_context.log
fatal: not a git repository: /home/victor/PX4-Autopilot/build/px4_fmu-v5_default/external/Build/px4io_firmware/NuttX/nuttx/β¦/β¦/β¦/β¦/.git/modules/platforms/nuttx/NuttX/nuttx
fatal: not a git repository: /home/victor/PX4-Autopilot/build/px4_fmu-v5_default/external/Build/px4io_firmware/NuttX/nuttx/β¦/β¦/β¦/β¦/.git/modules/platforms/nuttx/NuttX/nuttx
make[1]: *** [/home/victor/PX4-Autopilot/build/px4_fmu-v5_default/external/Build/px4io_firmware/NuttX/nuttx/.version] Error 5
ninja: build stopped: subcommand failed.
[334/1379] Generating nuttx/arch/arm/src/libarch.a
FAILED: external/Stamp/px4io_firmware/px4io_firmware-build /home/victor/PX4-Autopilot/build/px4_fmu-v5_default/external/Stamp/px4io_firmware/px4io_firmware-build
cd /home/victor/PX4-Autopilot/build/px4_fmu-v5_default/external/Build/px4io_firmware && /usr/bin/cmake --build .
[336/1379] Generating nuttx/libs/libc/libc.a
ninja: build stopped: subcommand failed.
Makefile:217: recipe for target βpx4_fmu-v5_defaultβ failed
make: *** [px4_fmu-v5_default] Error 1
I have tried make clean, make distclean and similar commands shared in other topics of similar nature with no success i re - cloned the repo in a new folder with no luck but, the command does work in the master branch any suggestion? i have not editing the firmware either but the problem with the version.h of nuttx Persist.
Thanks in advance.