acxz / pkgbuilds

PKGBUILDs for Arch Linux
25 stars 46 forks source link

[ardupilot-copter-sitl]error: ‘H_MAG[16]’ may be used uninitialized #109

Closed AchmadFathoni closed 2 years ago

AchmadFathoni commented 3 years ago
../../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

acxz commented 3 years ago

Keepin this open until the patch is removed

acxz commented 2 years ago

patch removed with: db4919f