Problem building firmware V1.11.0

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.