../../libraries/AP_NavEKF2/AP_NavEKF2_MagFusion.cpp: In member function ‘void NavEKF2_core::FuseMagnetometer()’:
../../libraries/AP_NavEKF2/AP_NavEKF2_MagFusion.cpp:681:44: error: ‘H_MAG[16]’ may be used uninitialized in this function [-Werror=maybe-uninitialized]
681 | KH[i][j] = Kfusion[i] * H_MAG[j];
| ~~~~~~~^
compilation terminated due to -Wfatal-errors.
cc1plus: some warnings being treated as errors
Waf: Leaving directory `/home/toni/.cache/yay/ardupilot-copter-sitl/src/ardupilot-Copter-4.0.3/build/sitl'
Build failed
-> task in 'objs/AP_NavEKF2' failed with exit status 1 (run with -v to display more information)
==> ERROR: A failure occurred in build().
Aborting...
error making: ardupilot-copter-sitl
Actually it is already discussed here and have patched here. But version 4.0.7 doesn't have this patch so patching at PKGBUILD is required
Actually it is already discussed here and have patched here. But version 4.0.7 doesn't have this patch so patching at PKGBUILD is required