Arducopter 3.6.12 compile fails on fmuv3

Hello! Annyeounghaseyo!

I’m having trouble compiling for ac 3.6.12 fmuv3 as shown below.
it only occurs on fmuv3.
fmuv2, fmuv4, or fmuv5 compiles perfect.

and There is no problem with the previous version ac 3.6.11 or the next version ac 4.0.0.

  • fmuv3
    sokcho@desktop:~$ clear
    sokcho@desktop:~$ cd ardupilot/
    sokcho@desktop:~/ardupilot$ git branch
  • (HEAD detached at Copter-3.6.12)
    master
    sokcho@desktop:~/ardupilot$ ./waf configure --board fmuv3
    Setting top to : /home/sokcho/ardupilot
    Setting out to : /home/sokcho/ardupilot/build
    Autoconfiguration : enabled
    Setting board to : fmuv3
    Checking for program ‘arm-none-eabi-ar’ : /opt/gcc-arm-none-eabi-6-2017-q2-update/bin/arm-none-eabi-ar
    Using toolchain : arm-none-eabi
    Checking for ‘g++’ (C++ compiler) : /opt/gcc-arm-none-eabi-6-2017-q2-update/bin/arm-none-eabi-g++
    Checking for ‘gcc’ (C compiler) : /opt/gcc-arm-none-eabi-6-2017-q2-update/bin/arm-none-eabi-gcc
    Checking for c flags ‘-MMD’ : yes
    Checking for cxx flags ‘-MMD’ : yes
    Checking for intelhex module: : disabled
    Checking for program ‘make’ : /usr/bin/make
    Checking for program ‘arm-none-eabi-objcopy’ : /opt/gcc-arm-none-eabi-6-2017-q2-update/bin/arm-none-eabi-objcopy
    Setup for MCU STM32F427xx
    Writing hwdef setup in /home/sokcho/ardupilot/build/fmuv3/hwdef.h
    Writing DMA map
    Generating ldscript.ld
    Checking for env.py
    env set APJ_BOARD_TYPE=STM32F427xx
    env set APJ_BOARD_ID=9
    env set HAL_WITH_UAVCAN=1
    env set FLASH_RESERVE_START_KB=16
    env set CHIBIOS_BUILD_FLAGS=USE_FATFS=yes CHIBIOS_PLATFORM_MK=os/hal/ports/STM32/STM32F4xx/platform.mk CHIBIOS_STARTUP_MK=os/common/startup/ARMCMx/compilers/GCC/mk/startup_stm32f4xx.mk
    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 program ‘python’ : /usr/bin/python
    Checking for python version >= 2.7.0 : 2.7.17
    Checking for program ‘python’ : /usr/bin/python
    Checking for python version >= 2.7.0 : 2.7.17
    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-6-2017-q2-update/bin/arm-none-eabi-size
    Benchmarks : disabled
    Unit tests : disabled
    Checking for program ‘rsync’ : /usr/bin/rsync
    ‘configure’ finished successfully (3.301s)
    sokcho@desktop:~/ardupilot$ ./waf copter
    Waf: Entering directory `/home/sokcho/ardupilot/build/fmuv3’
    Embedding file io_firmware.bin:Tools/IO_Firmware/fmuv2_IO.bin
    Embedding file bootloader.bin:/home/sokcho/ardupilot/Tools/bootloaders/fmuv3_bl.bin
    Checking for env.py
    env added APJ_BOARD_TYPE=STM32F427xx
    env added APJ_BOARD_ID=9
    env added HAL_WITH_UAVCAN=1
    env added FLASH_RESERVE_START_KB=16
    env added CHIBIOS_BUILD_FLAGS=USE_FATFS=yes CHIBIOS_PLATFORM_MK=os/hal/ports/STM32/STM32F4xx/platform.mk CHIBIOS_STARTUP_MK=os/common/startup/ARMCMx/compilers/GCC/mk/startup_stm32f4xx.mk
    [8/8] Linking build/fmuv3/modules/ChibiOS/libch.a
    [1/2] ChibiOS: Compiling chcoreasm_v7m.S
    [2/2] ChibiOS: Compiling crt1.c

make: *** No rule to make target ‘…/…/modules/ChibiOS/os/common/startup/ARMCMx/compilers/GCC/vectors.S’, needed by ‘modules/ChibiOS/obj/vectors.o’. Stop.
make: *** No rule to make target ‘…/…/modules/ChibiOS/os/common/startup/ARMCMx/compilers/GCC/vectors.S’, needed by ‘modules/ChibiOS/obj/vectors.o’. Stop.

Waf: Leaving directory `/home/sokcho/ardupilot/build/fmuv3’
Traceback (most recent call last):
File “/home/sokcho/ardupilot/modules/waf/waflib/Scripting.py”, line 165, in waf_entry_point
run_commands()
File “/home/sokcho/ardupilot/modules/waf/waflib/Scripting.py”, line 266, in run_commands
ctx = run_command(cmd_name)
File “/home/sokcho/ardupilot/modules/waf/waflib/Scripting.py”, line 250, in run_command
ctx.execute()
File “/home/sokcho/ardupilot/modules/waf/waflib/Scripting.py”, line 616, in execute
return execute_method(self)
File “/home/sokcho/ardupilot/modules/waf/waflib/Build.py”, line 255, in execute
self.execute_build()
File “/home/sokcho/ardupilot/modules/waf/waflib/Build.py”, line 275, in execute_build
self.compile()
File “/home/sokcho/ardupilot/modules/waf/waflib/Build.py”, line 377, in compile
raise Errors.BuildError(self.producer.error)
File “/home/sokcho/ardupilot/modules/waf/waflib/Errors.py”, line 45, in init
WafError.init(self, self.format_error())
File “/home/sokcho/ardupilot/modules/waf/waflib/Errors.py”, line 51, in format_error
txt = tsk.format_error()
File “/home/sokcho/ardupilot/modules/waf/waflib/Task.py”, line 415, in format_error
txt = cmd
NameError: global name ‘cmd’ is not defined
sokcho@desktop:~/ardupilot$

v2,v4

sokcho@desktop:~/ardupilot$ ./waf configure --board fmuv2
Setting top to : /home/sokcho/ardupilot
Setting out to : /home/sokcho/ardupilot/build
Autoconfiguration : enabled
Setting board to : fmuv2
Checking for program ‘arm-none-eabi-ar’ : /opt/gcc-arm-none-eabi-6-2017-q2-update/bin/arm-none-eabi-ar
Using toolchain : arm-none-eabi
Checking for ‘g++’ (C++ compiler) : /opt/gcc-arm-none-eabi-6-2017-q2-update/bin/arm-none-eabi-g++
Checking for ‘gcc’ (C compiler) : /opt/gcc-arm-none-eabi-6-2017-q2-update/bin/arm-none-eabi-gcc
Checking for c flags ‘-MMD’ : yes
Checking for cxx flags ‘-MMD’ : yes
Checking for intelhex module: : disabled
Checking for program ‘make’ : /usr/bin/make
Checking for program ‘arm-none-eabi-objcopy’ : /opt/gcc-arm-none-eabi-6-2017-q2-update/bin/arm-none-eabi-objcopy
Including /home/sokcho/ardupilot/libraries/AP_HAL_ChibiOS/hwdef/fmuv3/hwdef.dat
Setup for MCU STM32F427xx
Writing hwdef setup in /home/sokcho/ardupilot/build/fmuv2/hwdef.h
Writing DMA map
Generating ldscript.ld
Checking for env.py
env set APJ_BOARD_TYPE=STM32F427xx
env set APJ_BOARD_ID=9
env set HAL_WITH_UAVCAN=1
env set FLASH_RESERVE_START_KB=16
env set CHIBIOS_BUILD_FLAGS=USE_FATFS=yes CHIBIOS_PLATFORM_MK=os/hal/ports/STM32/STM32F4xx/platform.mk CHIBIOS_STARTUP_MK=os/common/startup/ARMCMx/compilers/GCC/mk/startup_stm32f4xx.mk
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 program ‘python’ : /usr/bin/python
Checking for python version >= 2.7.0 : 2.7.17
Checking for program ‘python’ : /usr/bin/python
Checking for python version >= 2.7.0 : 2.7.17
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-6-2017-q2-update/bin/arm-none-eabi-size
Benchmarks : disabled
Unit tests : disabled
Checking for program ‘rsync’ : /usr/bin/rsync
‘configure’ finished successfully (2.247s)
sokcho@desktop:~/ardupilot$ ./waf copter
Waf: Entering directory /home/sokcho/ardupilot/build/fmuv2' Embedding file io_firmware.bin:Tools/IO_Firmware/fmuv2_IO.bin Checking for env.py env added APJ_BOARD_TYPE=STM32F427xx env added APJ_BOARD_ID=9 env added HAL_WITH_UAVCAN=1 env added FLASH_RESERVE_START_KB=16 env added CHIBIOS_BUILD_FLAGS=USE_FATFS=yes CHIBIOS_PLATFORM_MK=os/hal/ports/STM32/STM32F4xx/platform.mk CHIBIOS_STARTUP_MK=os/common/startup/ARMCMx/compilers/GCC/mk/startup_stm32f4xx.mk [5/8] Creating build/fmuv2/ap_version.h [326/523] Compiling libraries/DataFlash/DFMessageWriter.cpp [458/523] Compiling ArduCopter/Copter.cpp [519/523] Compiling ArduCopter/version.cpp [521/523] Linking build/fmuv2/bin/arducopter [522/523] Generating bin/arducopter.bin [523/523] apj_gen build/fmuv2/bin/arducopter.bin Waf: Leaving directory /home/sokcho/ardupilot/build/fmuv2’

BUILD SUMMARY
Build directory: /home/sokcho/ardupilot/build/fmuv2
Target Text Data BSS Total

bin/arducopter 911344 3956 193296 1108596

Build commands will be stored in build/fmuv2/compile_commands.json
‘copter’ finished successfully (18.313s)
sokcho@desktop:~/ardupilot$ ./waf configure --board fmuv4
Setting top to : /home/sokcho/ardupilot
Setting out to : /home/sokcho/ardupilot/build
Autoconfiguration : enabled
Setting board to : fmuv4
Checking for program ‘arm-none-eabi-ar’ : /opt/gcc-arm-none-eabi-6-2017-q2-update/bin/arm-none-eabi-ar
Using toolchain : arm-none-eabi
Checking for ‘g++’ (C++ compiler) : /opt/gcc-arm-none-eabi-6-2017-q2-update/bin/arm-none-eabi-g++
Checking for ‘gcc’ (C compiler) : /opt/gcc-arm-none-eabi-6-2017-q2-update/bin/arm-none-eabi-gcc
Checking for c flags ‘-MMD’ : yes
Checking for cxx flags ‘-MMD’ : yes
Checking for intelhex module: : disabled
Checking for program ‘make’ : /usr/bin/make
Checking for program ‘arm-none-eabi-objcopy’ : /opt/gcc-arm-none-eabi-6-2017-q2-update/bin/arm-none-eabi-objcopy
Setup for MCU STM32F427xx
Writing hwdef setup in /home/sokcho/ardupilot/build/fmuv4/hwdef.h
Writing DMA map
Generating ldscript.ld
Checking for env.py
env set APJ_BOARD_TYPE=STM32F427xx
env set APJ_BOARD_ID=11
env set HAL_WITH_UAVCAN=1
env set FLASH_RESERVE_START_KB=16
env set CHIBIOS_BUILD_FLAGS=USE_FATFS=yes CHIBIOS_PLATFORM_MK=os/hal/ports/STM32/STM32F4xx/platform.mk CHIBIOS_STARTUP_MK=os/common/startup/ARMCMx/compilers/GCC/mk/startup_stm32f4xx.mk
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 program ‘python’ : /usr/bin/python
Checking for python version >= 2.7.0 : 2.7.17
Checking for program ‘python’ : /usr/bin/python
Checking for python version >= 2.7.0 : 2.7.17
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-6-2017-q2-update/bin/arm-none-eabi-size
Benchmarks : disabled
Unit tests : disabled
Checking for program ‘rsync’ : /usr/bin/rsync
‘configure’ finished successfully (2.197s)
sokcho@desktop:~/ardupilot$ ./waf copter
Waf: Entering directory /home/sokcho/ardupilot/build/fmuv4' Embedding file bootloader.bin:/home/sokcho/ardupilot/Tools/bootloaders/fmuv4_bl.bin Checking for env.py env added APJ_BOARD_TYPE=STM32F427xx env added APJ_BOARD_ID=11 env added HAL_WITH_UAVCAN=1 env added FLASH_RESERVE_START_KB=16 env added CHIBIOS_BUILD_FLAGS=USE_FATFS=yes CHIBIOS_PLATFORM_MK=os/hal/ports/STM32/STM32F4xx/platform.mk CHIBIOS_STARTUP_MK=os/common/startup/ARMCMx/compilers/GCC/mk/startup_stm32f4xx.mk [521/523] Linking build/fmuv4/bin/arducopter [522/523] Generating bin/arducopter.bin [523/523] apj_gen build/fmuv4/bin/arducopter.bin Waf: Leaving directory /home/sokcho/ardupilot/build/fmuv4’

BUILD SUMMARY
Build directory: /home/sokcho/ardupilot/build/fmuv4
Target Text Data BSS Total

bin/arducopter 941316 4052 193204 1138572

Build commands will be stored in build/fmuv4/compile_commands.json
‘copter’ finished successfully (12.829s)
sokcho@desktop:~/ardupilot$ ./waf configure --board fmuv5
Setting top to : /home/sokcho/ardupilot
Setting out to : /home/sokcho/ardupilot/build
Autoconfiguration : enabled
Setting board to : fmuv5
Checking for program ‘arm-none-eabi-ar’ : /opt/gcc-arm-none-eabi-6-2017-q2-update/bin/arm-none-eabi-ar
Using toolchain : arm-none-eabi
Checking for ‘g++’ (C++ compiler) : /opt/gcc-arm-none-eabi-6-2017-q2-update/bin/arm-none-eabi-g++
Checking for ‘gcc’ (C compiler) : /opt/gcc-arm-none-eabi-6-2017-q2-update/bin/arm-none-eabi-gcc
Checking for c flags ‘-MMD’ : yes
Checking for cxx flags ‘-MMD’ : yes
Checking for intelhex module: : disabled
Checking for program ‘make’ : /usr/bin/make
Checking for program ‘arm-none-eabi-objcopy’ : /opt/gcc-arm-none-eabi-6-2017-q2-update/bin/arm-none-eabi-objcopy
Setup for MCU STM32F767xx
Writing hwdef setup in /home/sokcho/ardupilot/build/fmuv5/hwdef.h
Writing DMA map
Generating ldscript.ld
Checking for env.py
env set APJ_BOARD_TYPE=STM32F767xx
env set APJ_BOARD_ID=50
env set HAL_WITH_UAVCAN=1
env set FLASH_RESERVE_START_KB=32
env set CHIBIOS_BUILD_FLAGS=USE_FATFS=yes CHIBIOS_PLATFORM_MK=os/hal/ports/STM32/STM32F7xx/platform.mk CHIBIOS_STARTUP_MK=os/common/startup/ARMCMx/compilers/GCC/mk/startup_stm32f7xx.mk
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 program ‘python’ : /usr/bin/python
Checking for python version >= 2.7.0 : 2.7.17
Checking for program ‘python’ : /usr/bin/python
Checking for python version >= 2.7.0 : 2.7.17
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-6-2017-q2-update/bin/arm-none-eabi-size
Benchmarks : disabled
Unit tests : disabled
Checking for program ‘rsync’ : /usr/bin/rsync
‘configure’ finished successfully (2.214s)
sokcho@desktop:~/ardupilot$ ./waf copter
Waf: Entering directory `/home/sokcho/ardupilot/build/fmuv5’
Embedding file io_firmware.bin:Tools/IO_Firmware/fmuv2_IO.bin
Embedding file bootloader.bin:/home/sokcho/ardupilot/Tools/bootloaders/fmuv5_bl.bin
Checking for env.py
env added APJ_BOARD_TYPE=STM32F767xx
env added APJ_BOARD_ID=50
env added HAL_WITH_UAVCAN=1
env added FLASH_RESERVE_START_KB=32
env added CHIBIOS_BUILD_FLAGS=USE_FATFS=yes CHIBIOS_PLATFORM_MK=os/hal/ports/STM32/STM32F7xx/platform.mk CHIBIOS_STARTUP_MK=os/common/startup/ARMCMx/compilers/GCC/mk/startup_stm32f7xx.mk
[3/8] Processing modules/mavlink/message_definitions/v1.0/ardupilotmega.xml
[4/8] Processing uavcangen: modules/uavcan/dsdl/uavcan/CoarseOrientation.uavcan modules/uavcan/dsdl/uavcan/Timestamp.uavcan modules/uavcan/dsdl/uavcan/equipment/actuator/1010.ArrayCommand.uavcan modules/uavcan/dsdl/uavcan/equipment/actuator/1011.Status.uavcan modules/uavcan/dsdl/uavcan/equipment/actuator/Command.uavcan modules/uavcan/dsdl/uavcan/equipment/ahrs/1000.Solution.uavcan modules/uavcan/dsdl/uavcan/equipment/ahrs/1001.MagneticFieldStrength.uavcan modules/uavcan/dsdl/uavcan/equipment/ahrs/1002.MagneticFieldStrength2.uavcan modules/uavcan/dsdl/uavcan/equipment/ahrs/1003.RawIMU.uavcan modules/uavcan/dsdl/uavcan/equipment/air_data/1020.TrueAirspeed.uavcan modules/uavcan/dsdl/uavcan/equipment/air_data/1021.IndicatedAirspeed.uavcan modules/uavcan/dsdl/uavcan/equipment/air_data/1025.AngleOfAttack.uavcan modules/uavcan/dsdl/uavcan/equipment/air_data/1026.Sideslip.uavcan modules/uavcan/dsdl/uavcan/equipment/air_data/1027.RawAirData.uavcan modules/uavcan/dsdl/uavcan/equipment/air_data/1028.StaticPressure.uavcan modules/uavcan/dsdl/uavcan/equipment/air_data/1029.StaticTemperature.uavcan modules/uavcan/dsdl/uavcan/equipment/camera_gimbal/1040.AngularCommand.uavcan modules/uavcan/dsdl/uavcan/equipment/camera_gimbal/1041.GEOPOICommand.uavcan modules/uavcan/dsdl/uavcan/equipment/camera_gimbal/1044.Status.uavcan modules/uavcan/dsdl/uavcan/equipment/camera_gimbal/Mode.uavcan modules/uavcan/dsdl/uavcan/equipment/device/1110.Temperature.uavcan modules/uavcan/dsdl/uavcan/equipment/esc/1030.RawCommand.uavcan modules/uavcan/dsdl/uavcan/equipment/esc/1031.RPMCommand.uavcan modules/uavcan/dsdl/uavcan/equipment/esc/1034.Status.uavcan modules/uavcan/dsdl/uavcan/equipment/gnss/1060.Fix.uavcan modules/uavcan/dsdl/uavcan/equipment/gnss/1061.Auxiliary.uavcan modules/uavcan/dsdl/uavcan/equipment/gnss/1062.RTCMStream.uavcan modules/uavcan/dsdl/uavcan/equipment/gnss/1063.Fix2.uavcan modules/uavcan/dsdl/uavcan/equipment/gnss/ECEFPositionVelocity.uavcan modules/uavcan/dsdl/uavcan/equipment/hardpoint/1070.Command.uavcan modules/uavcan/dsdl/uavcan/equipment/hardpoint/1071.Status.uavcan modules/uavcan/dsdl/uavcan/equipment/ice/1129.FuelTankStatus.uavcan modules/uavcan/dsdl/uavcan/equipment/ice/reciprocating/1120.Status.uavcan modules/uavcan/dsdl/uavcan/equipment/ice/reciprocating/CylinderStatus.uavcan modules/uavcan/dsdl/uavcan/equipment/indication/1080.BeepCommand.uavcan modules/uavcan/dsdl/uavcan/equipment/indication/1081.LightsCommand.uavcan modules/uavcan/dsdl/uavcan/equipment/indication/RGB565.uavcan modules/uavcan/dsdl/uavcan/equipment/indication/SingleLightCommand.uavcan modules/uavcan/dsdl/uavcan/equipment/power/1090.PrimaryPowerSupplyStatus.uavcan modules/uavcan/dsdl/uavcan/equipment/power/1091.CircuitStatus.uavcan modules/uavcan/dsdl/uavcan/equipment/power/1092.BatteryInfo.uavcan modules/uavcan/dsdl/uavcan/equipment/range_sensor/1050.Measurement.uavcan modules/uavcan/dsdl/uavcan/equipment/safety/1100.ArmingStatus.uavcan modules/uavcan/dsdl/uavcan/navigation/2000.GlobalNavigationSolution.uavcan modules/uavcan/dsdl/uavcan/protocol/1.GetNodeInfo.uavcan modules/uavcan/dsdl/uavcan/protocol/2.GetDataTypeInfo.uavcan modules/uavcan/dsdl/uavcan/protocol/341.NodeStatus.uavcan modules/uavcan/dsdl/uavcan/protocol/4.GetTransportStats.uavcan modules/uavcan/dsdl/uavcan/protocol/4.GlobalTimeSync.uavcan modules/uavcan/dsdl/uavcan/protocol/5.Panic.uavcan modules/uavcan/dsdl/uavcan/protocol/5.RestartNode.uavcan modules/uavcan/dsdl/uavcan/protocol/6.AccessCommandShell.uavcan modules/uavcan/dsdl/uavcan/protocol/CANIfaceStats.uavcan modules/uavcan/dsdl/uavcan/protocol/DataTypeKind.uavcan modules/uavcan/dsdl/uavcan/protocol/HardwareVersion.uavcan modules/uavcan/dsdl/uavcan/protocol/SoftwareVersion.uavcan modules/uavcan/dsdl/uavcan/protocol/debug/16370.KeyValue.uavcan modules/uavcan/dsdl/uavcan/protocol/debug/16383.LogMessage.uavcan modules/uavcan/dsdl/uavcan/protocol/debug/LogLevel.uavcan modules/uavcan/dsdl/uavcan/protocol/dynamic_node_id/1.Allocation.uavcan modules/uavcan/dsdl/uavcan/protocol/dynamic_node_id/server/30.AppendEntries.uavcan modules/uavcan/dsdl/uavcan/protocol/dynamic_node_id/server/31.RequestVote.uavcan modules/uavcan/dsdl/uavcan/protocol/dynamic_node_id/server/390.Discovery.uavcan modules/uavcan/dsdl/uavcan/protocol/dynamic_node_id/server/Entry.uavcan modules/uavcan/dsdl/uavcan/protocol/enumeration/15.Begin.uavcan modules/uavcan/dsdl/uavcan/protocol/enumeration/380.Indication.uavcan modules/uavcan/dsdl/uavcan/protocol/file/40.BeginFirmwareUpdate.uavcan modules/uavcan/dsdl/uavcan/protocol/file/45.GetInfo.uavcan modules/uavcan/dsdl/uavcan/protocol/file/46.GetDirectoryEntryInfo.uavcan modules/uavcan/dsdl/uavcan/protocol/file/47.Delete.uavcan modules/uavcan/dsdl/uavcan/protocol/file/48.Read.uavcan modules/uavcan/dsdl/uavcan/protocol/file/49.Write.uavcan modules/uavcan/dsdl/uavcan/protocol/file/EntryType.uavcan modules/uavcan/dsdl/uavcan/protocol/file/Error.uavcan modules/uavcan/dsdl/uavcan/protocol/file/Path.uavcan modules/uavcan/dsdl/uavcan/protocol/param/10.ExecuteOpcode.uavcan modules/uavcan/dsdl/uavcan/protocol/param/11.GetSet.uavcan modules/uavcan/dsdl/uavcan/protocol/param/Empty.uavcan modules/uavcan/dsdl/uavcan/protocol/param/NumericValue.uavcan modules/uavcan/dsdl/uavcan/protocol/param/Value.uavcan modules/uavcan/dsdl/uavcan/tunnel/2010.Broadcast.uavcan modules/uavcan/dsdl/uavcan/tunnel/63.Call.uavcan modules/uavcan/dsdl/uavcan/tunnel/Protocol.uavcan
[5/8] Creating build/fmuv5/ap_version.h
[6/8] Creating build/fmuv5/hwdef.h
[7/8] Creating build/fmuv5/modules/ChibiOS/include_dirs
Setup for MCU STM32F767xx
Writing hwdef setup in /home/sokcho/ardupilot/build/fmuv5/hwdef.h
Writing DMA map
Generating ldscript.ld

[8/8] Linking build/fmuv5/modules/ChibiOS/libch.a
Validating /home/sokcho/ardupilot/modules/mavlink/message_definitions/v1.0/ardupilotmega.xml
Parsing /home/sokcho/ardupilot/modules/mavlink/message_definitions/v1.0/ardupilotmega.xml
Note: message DATA64 is longer than 64 bytes long (74 bytes), which can cause fragmentation since many radio modems use 64 bytes as maximum air transfer unit.
Note: message DATA96 is longer than 64 bytes long (106 bytes), which can cause fragmentation since many radio modems use 64 bytes as maximum air transfer unit.
Note: message REMOTE_LOG_DATA_BLOCK is longer than 64 bytes long (214 bytes), which can cause fragmentation since many radio modems use 64 bytes as maximum air transfer unit.
Note: message DEVICE_OP_READ_REPLY is longer than 64 bytes long (143 bytes), which can cause fragmentation since many radio modems use 64 bytes as maximum air transfer unit.
Note: message DEVICE_OP_WRITE is longer than 64 bytes long (187 bytes), which can cause fragmentation since many radio modems use 64 bytes as maximum air transfer unit.
Validating /home/sokcho/ardupilot/modules/mavlink/message_definitions/v1.0/common.xml
Parsing /home/sokcho/ardupilot/modules/mavlink/message_definitions/v1.0/common.xml
Note: message GPS_STATUS is longer than 64 bytes long (109 bytes), which can cause fragmentation since many radio modems use 64 bytes as maximum air transfer unit.
Note: message ATTITUDE_QUATERNION_COV is longer than 64 bytes long (80 bytes), which can cause fragmentation since many radio modems use 64 bytes as maximum air transfer unit.
Note: message GLOBAL_POSITION_INT_COV is longer than 64 bytes long (189 bytes), which can cause fragmentation since many radio modems use 64 bytes as maximum air transfer unit.
Note: message LOCAL_POSITION_NED_COV is longer than 64 bytes long (233 bytes), which can cause fragmentation since many radio modems use 64 bytes as maximum air transfer unit.
Note: message HIL_ACTUATOR_CONTROLS is longer than 64 bytes long (89 bytes), which can cause fragmentation since many radio modems use 64 bytes as maximum air transfer unit.
Note: message GLOBAL_VISION_POSITION_ESTIMATE is longer than 64 bytes long (124 bytes), which can cause fragmentation since many radio modems use 64 bytes as maximum air transfer unit.
Note: message VISION_POSITION_ESTIMATE is longer than 64 bytes long (124 bytes), which can cause fragmentation since many radio modems use 64 bytes as maximum air transfer unit.
Note: message VICON_POSITION_ESTIMATE is longer than 64 bytes long (124 bytes), which can cause fragmentation since many radio modems use 64 bytes as maximum air transfer unit.
Note: message HIGHRES_IMU is longer than 64 bytes long (70 bytes), which can cause fragmentation since many radio modems use 64 bytes as maximum air transfer unit.
Note: message HIL_SENSOR is longer than 64 bytes long (72 bytes), which can cause fragmentation since many radio modems use 64 bytes as maximum air transfer unit.
Note: message SIM_STATE is longer than 64 bytes long (92 bytes), which can cause fragmentation since many radio modems use 64 bytes as maximum air transfer unit.
Note: message FILE_TRANSFER_PROTOCOL is longer than 64 bytes long (262 bytes), which can cause fragmentation since many radio modems use 64 bytes as maximum air transfer unit.
Note: message HIL_STATE_QUATERNION is longer than 64 bytes long (72 bytes), which can cause fragmentation since many radio modems use 64 bytes as maximum air transfer unit.
Note: message LOG_DATA is longer than 64 bytes long (105 bytes), which can cause fragmentation since many radio modems use 64 bytes as maximum air transfer unit.
Note: message GPS_INJECT_DATA is longer than 64 bytes long (121 bytes), which can cause fragmentation since many radio modems use 64 bytes as maximum air transfer unit.
Note: message SERIAL_CONTROL is longer than 64 bytes long (87 bytes), which can cause fragmentation since many radio modems use 64 bytes as maximum air transfer unit.
Note: message ENCAPSULATED_DATA is longer than 64 bytes long (263 bytes), which can cause fragmentation since many radio modems use 64 bytes as maximum air transfer unit.
Note: message ATT_POS_MOCAP is longer than 64 bytes long (128 bytes), which can cause fragmentation since many radio modems use 64 bytes as maximum air transfer unit.
Note: message RESOURCE_REQUEST is longer than 64 bytes long (251 bytes), which can cause fragmentation since many radio modems use 64 bytes as maximum air transfer unit.
Note: message FOLLOW_TARGET is longer than 64 bytes long (101 bytes), which can cause fragmentation since many radio modems use 64 bytes as maximum air transfer unit.
Note: message CONTROL_SYSTEM_STATE is longer than 64 bytes long (108 bytes), which can cause fragmentation since many radio modems use 64 bytes as maximum air transfer unit.
Note: message AUTOPILOT_VERSION is longer than 64 bytes long (86 bytes), which can cause fragmentation since many radio modems use 64 bytes as maximum air transfer unit.
Note: message LANDING_TARGET is longer than 64 bytes long (68 bytes), which can cause fragmentation since many radio modems use 64 bytes as maximum air transfer unit.
Note: message GPS_INPUT is longer than 64 bytes long (71 bytes), which can cause fragmentation since many radio modems use 64 bytes as maximum air transfer unit.
Note: message GPS_RTCM_DATA is longer than 64 bytes long (190 bytes), which can cause fragmentation since many radio modems use 64 bytes as maximum air transfer unit.
Note: message HOME_POSITION is longer than 64 bytes long (68 bytes), which can cause fragmentation since many radio modems use 64 bytes as maximum air transfer unit.
Note: message SET_HOME_POSITION is longer than 64 bytes long (69 bytes), which can cause fragmentation since many radio modems use 64 bytes as maximum air transfer unit.
Note: message V2_EXTENSION is longer than 64 bytes long (262 bytes), which can cause fragmentation since many radio modems use 64 bytes as maximum air transfer unit.
Note: message PLAY_TUNE is longer than 64 bytes long (240 bytes), which can cause fragmentation since many radio modems use 64 bytes as maximum air transfer unit.
Note: message CAMERA_INFORMATION is longer than 64 bytes long (94 bytes), which can cause fragmentation since many radio modems use 64 bytes as maximum air transfer unit.
Note: message CAMERA_IMAGE_CAPTURED is longer than 64 bytes long (263 bytes), which can cause fragmentation since many radio modems use 64 bytes as maximum air transfer unit.
Note: message LOGGING_DATA is longer than 64 bytes long (263 bytes), which can cause fragmentation since many radio modems use 64 bytes as maximum air transfer unit.
Note: message LOGGING_DATA_ACKED is longer than 64 bytes long (263 bytes), which can cause fragmentation since many radio modems use 64 bytes as maximum air transfer unit.
Note: message WIFI_CONFIG_AP is longer than 64 bytes long (104 bytes), which can cause fragmentation since many radio modems use 64 bytes as maximum air transfer unit.
Note: message UAVCAN_NODE_INFO is longer than 64 bytes long (124 bytes), which can cause fragmentation since many radio modems use 64 bytes as maximum air transfer unit.
Note: message OBSTACLE_DISTANCE is longer than 64 bytes long (166 bytes), which can cause fragmentation since many radio modems use 64 bytes as maximum air transfer unit.
Note: message ODOMETRY is longer than 64 bytes long (238 bytes), which can cause fragmentation since many radio modems use 64 bytes as maximum air transfer unit.
Validating /home/sokcho/ardupilot/modules/mavlink/message_definitions/v1.0/uAvionix.xml
Parsing /home/sokcho/ardupilot/modules/mavlink/message_definitions/v1.0/uAvionix.xml
Validating /home/sokcho/ardupilot/modules/mavlink/message_definitions/v1.0/icarous.xml
Parsing /home/sokcho/ardupilot/modules/mavlink/message_definitions/v1.0/icarous.xml
Merged enum MAV_CMD
Found 219 MAVLink message types in 4 XML files
Generating C implementation in directory /home/sokcho/ardupilot/build/fmuv5/libraries/GCS_MAVLink/include/mavlink/v2.0/ardupilotmega
Generating C implementation in directory /home/sokcho/ardupilot/build/fmuv5/libraries/GCS_MAVLink/include/mavlink/v2.0/common
Generating C implementation in directory /home/sokcho/ardupilot/build/fmuv5/libraries/GCS_MAVLink/include/mavlink/v2.0/uAvionix
Generating C implementation in directory /home/sokcho/ardupilot/build/fmuv5/libraries/GCS_MAVLink/include/mavlink/v2.0/icarous
Copying fixed headers for protocol 2.0 to /home/sokcho/ardupilot/build/fmuv5/libraries/GCS_MAVLink/include/mavlink/v2.0

[1/98] ChibiOS: Compiling crt0_v7m.S
[2/98] ChibiOS: Compiling chcoreasm_v7m.S
[3/98] ChibiOS: Compiling crt1.c
[4/98] ChibiOS: Compiling vectors.c
[5/98] ChibiOS: Compiling chsys.c
[6/98] ChibiOS: Compiling chdebug.c
[7/98] ChibiOS: Compiling chtrace.c
[8/98] ChibiOS: Compiling chvt.c
[9/98] ChibiOS: Compiling chschd.c
[10/98] ChibiOS: Compiling chthreads.c
[11/98] ChibiOS: Compiling chtm.c
[12/98] ChibiOS: Compiling chstats.c
[13/98] ChibiOS: Compiling chregistry.c
[14/98] ChibiOS: Compiling chsem.c
[15/98] ChibiOS: Compiling chmtx.c
[16/98] ChibiOS: Compiling chcond.c
[17/98] ChibiOS: Compiling chevents.c
[18/98] ChibiOS: Compiling chmsg.c
[19/98] ChibiOS: Compiling chdynamic.c
[20/98] ChibiOS: Compiling chmboxes.c
[21/98] ChibiOS: Compiling chmemcore.c
[22/98] ChibiOS: Compiling chheap.c
[23/98] ChibiOS: Compiling chmempools.c
[24/98] ChibiOS: Compiling chcore.c
[25/98] ChibiOS: Compiling chcore_v7m.c
[26/98] ChibiOS: Compiling osal.c
[27/98] ChibiOS: Compiling hal.c
[28/98] ChibiOS: Compiling hal_buffers.c
[29/98] ChibiOS: Compiling hal_queues.c
[30/98] ChibiOS: Compiling hal_mmcsd.c
[31/98] ChibiOS: Compiling hal_adc.c
[32/98] ChibiOS: Compiling hal_can.c
[33/98] ChibiOS: Compiling hal_dac.c
[34/98] ChibiOS: Compiling hal_ext.c
[35/98] ChibiOS: Compiling hal_gpt.c
[36/98] ChibiOS: Compiling hal_i2c.c
[37/98] ChibiOS: Compiling hal_i2s.c
[38/98] ChibiOS: Compiling hal_icu.c
[39/98] ChibiOS: Compiling hal_eicu.c
[40/98] ChibiOS: Compiling hal_mac.c
[41/98] ChibiOS: Compiling hal_mmc_spi.c
[42/98] ChibiOS: Compiling hal_pal.c
[43/98] ChibiOS: Compiling hal_pwm.c
[44/98] ChibiOS: Compiling hal_qspi.c
[45/98] ChibiOS: Compiling hal_rtc.c
[46/98] ChibiOS: Compiling hal_sdc.c
[47/98] ChibiOS: Compiling hal_serial.c
[48/98] ChibiOS: Compiling hal_serial_usb.c
[49/98] ChibiOS: Compiling hal_spi.c
[50/98] ChibiOS: Compiling hal_st.c
[51/98] ChibiOS: Compiling hal_uart.c
[52/98] ChibiOS: Compiling hal_usb.c
[53/98] ChibiOS: Compiling hal_wdg.c
[54/98] ChibiOS: Compiling nvic.c
[55/98] ChibiOS: Compiling hal_lld.c
[56/98] ChibiOS: Compiling hal_ext_lld_isr.c
[57/98] ChibiOS: Compiling hal_adc_lld.c
[58/98] ChibiOS: Compiling hal_can_lld.c
[59/98] ChibiOS: Compiling hal_dac_lld.c
[60/98] ChibiOS: Compiling stm32_dma.c
[61/98] ChibiOS: Compiling hal_ext_lld.c
[62/98] ChibiOS: Compiling hal_pal_lld.c
[63/98] ChibiOS: Compiling hal_i2c_lld.c
[64/98] ChibiOS: Compiling hal_mac_lld.c
[65/98] ChibiOS: Compiling hal_usb_lld.c
[66/98] ChibiOS: Compiling hal_qspi_lld.c
[67/98] ChibiOS: Compiling hal_rtc_lld.c
[68/98] ChibiOS: Compiling hal_i2s_lld.c
[69/98] ChibiOS: Compiling hal_spi_lld.c
[70/98] ChibiOS: Compiling hal_sdc_lld.c
[71/98] ChibiOS: Compiling hal_st_lld.c
[72/98] ChibiOS: Compiling hal_gpt_lld.c
[73/98] ChibiOS: Compiling hal_icu_lld.c
[74/98] ChibiOS: Compiling hal_pwm_lld.c
[75/98] ChibiOS: Compiling hal_eicu_lld.c
[76/98] ChibiOS: Compiling hal_serial_lld.c
[77/98] ChibiOS: Compiling hal_uart_lld.c
[78/98] ChibiOS: Compiling hal_wdg_lld.c
[79/98] ChibiOS: Compiling chprintf.c
[80/98] ChibiOS: Compiling memstreams.c
[81/98] ChibiOS: Compiling nullstreams.c
[82/98] ChibiOS: Compiling fatfs_diskio.c
[83/98] ChibiOS: Compiling fatfs_syscall.c
[84/98] ChibiOS: Compiling ff.c
[85/98] ChibiOS: Compiling unicode.c
[86/98] ChibiOS: Compiling stubs.c
[87/98] ChibiOS: Compiling board.c
[88/98] ChibiOS: Compiling usbcfg.c
[89/98] ChibiOS: Compiling flash.c
[90/98] ChibiOS: Compiling malloc.c
[91/98] ChibiOS: Compiling stdio.c
[92/98] ChibiOS: Compiling hrt.c
[93/98] ChibiOS: Compiling stm32_util.c
[94/98] ChibiOS: Compiling bouncebuffer.c
[95/98] ChibiOS: Compiling watchdog.c
[96/98] ChibiOS: Compiling posix.c
[97/98] ChibiOS: Compiling ch.cpp
[98/98] ChibiOS: Compiling syscalls_cpp.cpp

ChibiOS: Done!

arm-none-eabi-ar: creating modules/ChibiOS/libch.a

[ 9/523] Compiling libraries/AC_AttitudeControl/AC_AttitudeControl_Heli.cpp
[ 10/523] Compiling libraries/AC_AttitudeControl/AC_AttitudeControl_Multi.cpp

[520/523] Linking build/fmuv5/lib/libArduCopter_libs.a
[521/523] Linking build/fmuv5/bin/arducopter
[522/523] Generating bin/arducopter.bin
[523/523] apj_gen build/fmuv5/bin/arducopter.bin
Waf: Leaving directory `/home/sokcho/ardupilot/build/fmuv5’

BUILD SUMMARY
Build directory: /home/sokcho/ardupilot/build/fmuv5
Target Text Data BSS Total

bin/arducopter 973216 4356 389536 1367108

Build commands will be stored in build/fmuv5/compile_commands.json
‘copter’ finished successfully (4m9.998s)
sokcho@desktop:~/ardupilot$

Don’t build in a detached HEAD state. Check out the branch and update the submodules. And delete the old build directory with rm -rf build. You likely have a cached build for fmuv3 that is failing due to ChibiOS submodules being out of date.

1 Like

It was for exactly what your advice.
The problem was solved.
Thank you.