I wish to build default firmware without any extras. Just like one I can download from arducopter firmware downloads.
I fetched code with
git clone --branch Copter-4.5.7 --single-branch https://github.com/ArduPilot/ardupilot.git
./waf configure --board omnibusf4
Setting top to : /Users/user/my/py/mavlink/ardu/ardupilot
Setting out to : /Users/user/my/py/mavlink/ardu/ardupilot/build
Autoconfiguration : enabled
Checking for program 'python' : /opt/miniconda3/bin/python3
Checking for python version >= 3.6.9 : 3.12.2
Setting board to : omnibusf4
Using toolchain : arm-none-eabi
Checking for 'g++' (C++ compiler) : /opt/homebrew/bin/arm-none-eabi-g++
Checking for 'gcc' (C compiler) : /opt/homebrew/bin/arm-none-eabi-gcc
Checking for c flags '-MMD' : yes
Checking for cxx flags '-MMD' : yes
CXX Compiler : g++ 15.1.0
Checking for program 'make' : /usr/bin/make
Checking for program 'arm-none-eabi-objcopy' : /opt/homebrew/bin/arm-none-eabi-objcopy
Including /Users/user/my/py/mavlink/ardu/ardupilot/libraries/AP_HAL_ChibiOS/hwdef/omnibusf4pro/hwdef.dat
Including /Users/user/my/py/mavlink/ardu/ardupilot/libraries/AP_HAL_ChibiOS/hwdef/include/save_some_flash.inc
Including /Users/user/my/py/mavlink/ardu/ardupilot/libraries/AP_HAL_ChibiOS/hwdef/include/minimize_fpv_osd.inc
Including /Users/user/my/py/mavlink/ardu/ardupilot/libraries/AP_HAL_ChibiOS/hwdef/include/minimize_common.inc
Removing HAL_MSP_GPS_ENABLED
Removing APJ_BOARD_ID
Removing PC8
Removing PC9
Setup for MCU STM32F405xx
No default parameter file found
Writing hwdef setup in /Users/user/my/py/mavlink/ardu/ardupilot/build/omnibusf4/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=1002
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 : no
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 : no
Checking for HAVE_CMATH_ISINF : no
Checking for HAVE_CMATH_ISNAN : no
Checking for NEED_CMATH_ISFINITE_STD_NAMESPACE : no
Checking for NEED_CMATH_ISINF_STD_NAMESPACE : no
Checking for NEED_CMATH_ISNAN_STD_NAMESPACE : no
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 : /Users/user/my/py/mavlink/ardu/ardupilot/modules/DroneCAN/dronecan_dsdlc/dronecan_dsdlc.py
Source is git repository : yes
Update submodules : yes
Checking for program 'git' : /opt/homebrew/bin/git
Gtest : STM32 boards currently don't support compiling gtest
Checking for program 'arm-none-eabi-size' : /opt/homebrew/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' : /usr/bin/rsync
'configure' finished successfully (1.535s)
./waf copter
.....
and I get
/opt/homebrew/Cellar/arm-none-eabi-gcc/15.1.0/lib/gcc/arm-none-eabi/15.1.0/include/stdint.h:11:16: fatal error: stdint.h: No such file or directory
11 | # include_next <stdint.h>
| ^~~~~~~~~~
compilation terminated.
make: *** [modules/ChibiOS/obj/osal.o] Error 1
make: *** [modules/ChibiOS/obj/nullstreams.o] Error 1
make: *** [modules/ChibiOS/obj/chprintf.o] Error 1
I wonder if issue is that I use mac and may be I should try it on linux? or I have to select some options and where should I get it?