Build fails /bin/sh: Control: command not found

Hi
I am trying to build using waf on mac os monterey
I configured it as ./waf configure --board CubeOrange
when calling ./waf bin
it fails with this output

Waf: Entering directory `/Users/macbook/Documents/Development/Flight Control stuff/ardupilot/build/CubeOrange’

Checking for env.py

env added OPTIMIZE=-O2

env added BUILD_ABIN=True

env added ENABLE_DFU_BOOT=1

env added WITH_FATFS=1

env added WITH_NETWORKING=False

env added PROCESS_STACK=0x1C00

env added MAIN_STACK=0x600

env added IOMCU_FW=0

env added PERIPH_FW=0

env added HAL_NUM_CAN_IFACES=2

env added HAL_CANFD_SUPPORTED=8

env added BOARD_FLASH_SIZE=2048

env added EXT_FLASH_SIZE_MB=0

env added INT_FLASH_PRIMARY=False

env added ENABLE_CRASHDUMP=True

env appended APP_RAM_START=None

env appended CPU_FLAGS=[‘-mcpu=cortex-m7’, ‘-mfpu=fpv5-d16’, ‘-mfloat-abi=hard’, ‘-DARM_MATH_CM7’, ‘-u_printf_float’]

env added CORTEX=cortex-m7

env added APJ_BOARD_ID=140

env added APJ_BOARD_TYPE=STM32H743xx

env added USBID=0x2dae/0x1016

env added FLASH_RESERVE_START_KB=128

env added EXT_FLASH_RESERVE_START_KB=0

env added FLASH_TOTAL=1966080

env added HAS_EXTERNAL_FLASH_SECTIONS=0

env added DEFAULT_PARAMETERS=/Users/macbook/Documents/Development/Flight Control stuff/ardupilot/build/CubeOrange/processed_defaults.parm

env added CHIBIOS_BUILD_FLAGS=USE_FATFS=yes USE_LWIP=no CHIBIOS_STARTUP_MK=os/common/startup/ARMCMx/compilers/GCC/mk/startup_stm32h7xx.mk CHIBIOS_PLATFORM_MK=os/hal/ports/STM32/STM32H7xx/platform.mk MCU=cortex-m7 ENV_UDEFS=-DCHPRINTF_USE_FLOAT=1

Padded 20 bytes for bootloader.bin to 17856

Embedding file bootloader.bin:/Users/macbook/Documents/Development/Flight Control stuff/ardupilot/Tools/bootloaders/CubeOrange_bl.bin

Embedding file hwdef.dat:/Users/macbook/Documents/Development/Flight Control stuff/ardupilot/build/CubeOrange/hw.dat

Embedding file io_firmware.bin:Tools/IO_Firmware/iofirmware_highpolh.bin

Embedding file io_firmware_dshot.bin:Tools/IO_Firmware/iofirmware_dshot_highpolh.bin

[ 4/11] Creating build/CubeOrange/modules/ChibiOS/include_dirs

[10/11] Processing /Users/macbook/Documents/Development/Flight Control stuff/ardupilot/build/CubeOrange/libraries/AP_Scripting/lua_generated_bindings.cpp,/Users/macbook/Documents/Development/Flight Control stuff/ardupilot/build/CubeOrange/libraries/AP_Scripting/lua_generated_bindings.h: libraries/AP_Scripting/generator/description/bindings.desc build/CubeOrange/gen-bindings → build/CubeOrange/libraries/AP_Scripting/lua_generated_bindings.cpp build/CubeOrange/libraries/AP_Scripting/lua_generated_bindings.h

/bin/sh: Control: command not found

Waf: Leaving directory `/Users/macbook/Documents/Development/Flight Control stuff/ardupilot/build/CubeOrange’

Build failed

→ task in ‘/Users/macbook/Documents/Development/Flight Control stuff/ardupilot/build/CubeOrange/modules/ChibiOS/include_dirs’ failed (exit status 127):

{task 4369671536: /Users/macbook/Documents/Development/Flight Control stuff/ardupilot/build/CubeOrange/modules/ChibiOS/include_dirs → include_dirs}

(run with -v to display more information)

I used git checkout Copter-4.1 to a branch where I have a new problem:

uavcangen returned 1 error code

I noticed that I can build for sitl when the arm toolchain not using.
so I managed it by removing all the arm toolchains and mapped the .waf to the most recent arm toolchain
another important thing was that i Checked out to the latest stable Ardupilot release.
every thing is ok now