add_group: name git_submodules already present

Hello everyone, I’m new, please help me with this, I did everything step by step. Thank you.

(venv-ardupilot) samwidarr@penguin:~/ardupilot$ ./waf configure --board MatekF405-TE
Setting top to : /home/samwidarr/ardupilot
Setting out to : /home/samwidarr/ardupilot/build
Autoconfiguration : enabled
Checking for program ‘python’ : /home/samwidarr/venv-ardupilot/bin/python3
Checking for python version >= 3.6.9 : 3.11.2
Setting board to : MatekF405-TE
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 program ‘arm-none-eabi-nm’ : /opt/gcc-arm-none-eabi-10-2020-q4-major/bin/arm-none-eabi-nm
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-10-2020-q4-major/bin/arm-none-eabi-objcopy
Including /home/samwidarr/ardupilot/libraries/AP_HAL_ChibiOS/hwdef/include/minimize_fpv_osd.inc
Including /home/samwidarr/ardupilot/libraries/AP_HAL_ChibiOS/hwdef/include/minimize_common.inc
Removing HAL_MSP_GPS_ENABLED
Including /home/samwidarr/ardupilot/libraries/AP_HAL_ChibiOS/hwdef/include/no_bootloader_DFU.inc
Setup for MCU STM32F405xx
No default parameter file found
Writing hwdef setup in /home/samwidarr/ardupilot/build/MatekF405-TE/hwdef.h
Writing DMA map
Setting up as normal
No change in hwdef.h
Generating ldscript.ld
Checking for env.py
env set ENABLE_DFU_BOOT=0
env set WITH_FATFS=1
env set PROCESS_STACK=0x1C00
env set MAIN_STACK=0x600
env set IOMCU_FW=0
env set PERIPH_FW=0
env set BOARD_FLASH_SIZE=1024
env set EXT_FLASH_SIZE_MB=0
env set INT_FLASH_PRIMARY=False
env set ENABLE_CRASHDUMP=False
env set CPU_FLAGS=[‘-mcpu=cortex-m4’, ‘-mfpu=fpv4-sp-d16’, ‘-mfloat-abi=hard’, ‘-DARM_MATH_CM4’, ‘-u_printf_float’]
env set CORTEX=cortex-m4
env set APJ_BOARD_ID=1054
env set APJ_BOARD_TYPE=STM32F405xx
env set USBID=0x1209/0x5741
env set FLASH_RESERVE_START_KB=64
env set EXT_FLASH_RESERVE_START_KB=0
env set FLASH_TOTAL=983040
env set HAS_EXTERNAL_FLASH_SECTIONS=0
env set CHIBIOS_BUILD_FLAGS=USE_FATFS=yes CHIBIOS_STARTUP_MK=os/common/startup/ARMCMx/compilers/GCC/mk/startup_stm32f4xx.mk CHIBIOS_PLATFORM_MK=os/hal/ports/STM32/STM32F4xx/platform.mk MCU=cortex-m4 ENV_UDEFS=-DCHPRINTF_USE_FLOAT=1
Enabling ChibiOS asserts : no
Disabling Watchdog : no
Enabling malloc guard : no
Enabling ChibiOS thread statistics : no
Enabling -Werror : yes
Checking for intelhex module: : OK
Enabled OpenDroneID : no
Enabled firmware ID checking : no
GPS Debug Logging : no
Enabled custom controller : no
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
Configured VSCode Intellisense: : no
DC_DSDL compiler : /home/samwidarr/ardupilot/modules/DroneCAN/dronecan_dsdlc/dronecan_dsdlc.py
Source is git repository : yes
Update submodules : yes
Checking for program ‘git’ : /usr/bin/git
Gtest : STM32 boards currently don’t support compiling gtest
Checking for program ‘arm-none-eabi-size’ : /opt/gcc-arm-none-eabi-10-2020-q4-major/bin/arm-none-eabi-size
Benchmarks : disabled
Unit tests : disabled
Scripting : maybe
Scripting runtime checks : enabled
Debug build : disabled
Coverage build : disabled
Force 32-bit build : disabled
Checking for program ‘rsync’ : not found
Removing target_list file /home/samwidarr/ardupilot/build/MatekF405-TE/target_list
‘configure’ finished successfully (2.748s)
(venv-ardupilot) samwidarr@penguin:~/ardupilot$ ./waf plane
Waf: Entering directory `/home/samwidarr/ardupilot/build/MatekF405-TE’
Checking for env.py
env added ENABLE_DFU_BOOT=0
env added WITH_FATFS=1
env added PROCESS_STACK=0x1C00
env added MAIN_STACK=0x600
env added IOMCU_FW=0
env added PERIPH_FW=0
env added BOARD_FLASH_SIZE=1024
env added EXT_FLASH_SIZE_MB=0
env added INT_FLASH_PRIMARY=False
env added ENABLE_CRASHDUMP=False
env appended CPU_FLAGS=[‘-mcpu=cortex-m4’, ‘-mfpu=fpv4-sp-d16’, ‘-mfloat-abi=hard’, ‘-DARM_MATH_CM4’, ‘-u_printf_float’]
env added CORTEX=cortex-m4
env added APJ_BOARD_ID=1054
env added APJ_BOARD_TYPE=STM32F405xx
env added USBID=0x1209/0x5741
env added FLASH_RESERVE_START_KB=64
env added EXT_FLASH_RESERVE_START_KB=0
env added FLASH_TOTAL=983040
env added HAS_EXTERNAL_FLASH_SECTIONS=0
env added CHIBIOS_BUILD_FLAGS=USE_FATFS=yes CHIBIOS_STARTUP_MK=os/common/startup/ARMCMx/compilers/GCC/mk/startup_stm32f4xx.mk CHIBIOS_PLATFORM_MK=os/hal/ports/STM32/STM32F4xx/platform.mk MCU=cortex-m4 ENV_UDEFS=-DCHPRINTF_USE_FLOAT=1
Embedding file font0.bin:libraries/AP_OSD/fonts/font0.bin
Embedding file hwdef.dat:/home/samwidarr/ardupilot/build/MatekF405-TE/hw.dat
Checking for env.py
env added ENABLE_DFU_BOOT=0
env added WITH_FATFS=1
env added PROCESS_STACK=0x1C00
env added MAIN_STACK=0x600
env added IOMCU_FW=0
env added PERIPH_FW=0
env added BOARD_FLASH_SIZE=1024
env added EXT_FLASH_SIZE_MB=0
env added INT_FLASH_PRIMARY=False
env added ENABLE_CRASHDUMP=False
env appended CPU_FLAGS=[‘-mcpu=cortex-m4’, ‘-mfpu=fpv4-sp-d16’, ‘-mfloat-abi=hard’, ‘-DARM_MATH_CM4’, ‘-u_printf_float’]
env added CORTEX=cortex-m4
env added APJ_BOARD_ID=1054
env added APJ_BOARD_TYPE=STM32F405xx
env added USBID=0x1209/0x5741
env added FLASH_RESERVE_START_KB=64
env added EXT_FLASH_RESERVE_START_KB=0
env added FLASH_TOTAL=983040
env added HAS_EXTERNAL_FLASH_SECTIONS=0
env added CHIBIOS_BUILD_FLAGS=USE_FATFS=yes CHIBIOS_STARTUP_MK=os/common/startup/ARMCMx/compilers/GCC/mk/startup_stm32f4xx.mk CHIBIOS_PLATFORM_MK=os/hal/ports/STM32/STM32F4xx/platform.mk MCU=cortex-m4 ENV_UDEFS=-DCHPRINTF_USE_FLOAT=1
Embedding file font0.bin:libraries/AP_OSD/fonts/font0.bin
Embedding file hwdef.dat:/home/samwidarr/ardupilot/build/MatekF405-TE/hw.dat
add_group: name git_submodules already present
(venv-ardupilot) samwidarr@penguin:~/ardupilot$

I met the same thing and what I did is just delete the original repo and git clone again, with each step in Setting up the Build Environment (Linux/Ubuntu) — Dev documentation. I used “./waf configure --board=linux”.