Hello everyone,
I’ve got an issue compiling copter sitl just recently after updating my mac m1 to Sonoma 14.4.
Before that like 1-2 months ago it successfully compiled the same codebase and there wasn’t any issue.
The following error is shown in console
Build failed
-> task in 'bin/arducopter' failed (exit status 1):
{task 4362910992: cxxprogram AP_Arming.cpp.50.o,AP_ExternalControl_Copter.cpp.50.o,AP_Rally.cpp.50.o,AP_State.cpp.50.o,Attitude.cpp.50.o,Copter.cpp.50.o,GCS_Copter.cpp.50.o,GCS_Mavlink.cpp.50.o,Log.cpp.50.o,Parameters.cpp.50.o,RC_Channel.cpp.50.o,UserCode.cpp.50.o,UserParameters.cpp.50.o,afs_copter.cpp.50.o,autoyaw.cpp.50.o,avoidance.cpp.50.o,avoidance_adsb.cpp.50.o,baro_ground_effect.cpp.50.o,commands.cpp.50.o,compassmot.cpp.50.o,crash_check.cpp.50.o,ekf_check.cpp.50.o,esc_calibration.cpp.50.o,events.cpp.50.o,failsafe.cpp.50.o,fence.cpp.50.o,heli.cpp.50.o,inertia.cpp.50.o,land_detector.cpp.50.o,landing_gear.cpp.50.o,mode.cpp.50.o,mode_acro.cpp.50.o,mode_acro_heli.cpp.50.o,mode_althold.cpp.50.o,mode_auto.cpp.50.o,mode_autorotate.cpp.50.o,mode_autotune.cpp.50.o,mode_avoid_adsb.cpp.50.o,mode_brake.cpp.50.o,mode_circle.cpp.50.o,mode_drift.cpp.50.o,mode_flip.cpp.50.o,mode_flowhold.cpp.50.o,mode_follow.cpp.50.o,mode_guided.cpp.50.o,mode_guided_nogps.cpp.50.o,mode_land.cpp.50.o,mode_loiter.cpp.50.o,mode_poshold.cpp.50.o,mode_rtl.cpp.50.o,mode_smart_rtl.cpp.50.o,mode_sport.cpp.50.o,mode_stabilize.cpp.50.o,mode_stabilize_heli.cpp.50.o,mode_systemid.cpp.50.o,mode_throw.cpp.50.o,mode_turtle.cpp.50.o,mode_zigzag.cpp.50.o,motor_test.cpp.50.o,motors.cpp.50.o,navigation.cpp.50.o,precision_landing.cpp.50.o,radio.cpp.50.o,sensors.cpp.50.o,standby.cpp.50.o,surface_tracking.cpp.50.o,system.cpp.50.o,takeoff.cpp.50.o,takeoff_check.cpp.50.o,terrain.cpp.50.o,toy_mode.cpp.50.o,tuning.cpp.50.o -> arducopter}
:
{task 4362910992: cxxprogram AP_Arming.cpp.50.o,AP_ExternalControl_Copter.cpp.50.o,AP_Rally.cpp.50.o,AP_State.cpp.50.o,Attitude.cpp.50.o,Copter.cpp.50.o,GCS_Copter.cpp.50.o,GCS_Mavlink.cpp.50.o,Log.cpp.50.o,Parameters.cpp.50.o,RC_Channel.cpp.50.o,UserCode.cpp.50.o,UserParameters.cpp.50.o,afs_copter.cpp.50.o,autoyaw.cpp.50.o,avoidance.cpp.50.o,avoidance_adsb.cpp.50.o,baro_ground_effect.cpp.50.o,commands.cpp.50.o,compassmot.cpp.50.o,crash_check.cpp.50.o,ekf_check.cpp.50.o,esc_calibration.cpp.50.o,events.cpp.50.o,failsafe.cpp.50.o,fence.cpp.50.o,heli.cpp.50.o,inertia.cpp.50.o,land_detector.cpp.50.o,landing_gear.cpp.50.o,mode.cpp.50.o,mode_acro.cpp.50.o,mode_acro_heli.cpp.50.o,mode_althold.cpp.50.o,mode_auto.cpp.50.o,mode_autorotate.cpp.50.o,mode_autotune.cpp.50.o,mode_avoid_adsb.cpp.50.o,mode_brake.cpp.50.o,mode_circle.cpp.50.o,mode_drift.cpp.50.o,mode_flip.cpp.50.o,mode_flowhold.cpp.50.o,mode_follow.cpp.50.o,mode_guided.cpp.50.o,mode_guided_nogps.cpp.50.o,mode_land.cpp.50.o,mode_loiter.cpp.50.o,mode_poshold.cpp.50.o,mode_rtl.cpp.50.o,mode_smart_rtl.cpp.50.o,mode_sport.cpp.50.o,mode_stabilize.cpp.50.o,mode_stabilize_heli.cpp.50.o,mode_systemid.cpp.50.o,mode_throw.cpp.50.o,mode_turtle.cpp.50.o,mode_zigzag.cpp.50.o,motor_test.cpp.50.o,motors.cpp.50.o,navigation.cpp.50.o,precision_landing.cpp.50.o,radio.cpp.50.o,sensors.cpp.50.o,standby.cpp.50.o,surface_tracking.cpp.50.o,system.cpp.50.o,takeoff.cpp.50.o,takeoff_check.cpp.50.o,terrain.cpp.50.o,toy_mode.cpp.50.o,tuning.cpp.50.o -> arducopter}
['/usr/bin/clang++', '-Wl,-dead_strip', '-pthread', 'ArduCopter/AP_Arming.cpp.50.o', 'ArduCopter/AP_ExternalControl_Copter.cpp.50.o', 'ArduCopter/AP_Rally.cpp.50.o', 'ArduCopter/AP_State.cpp.50.o', 'ArduCopter/Attitude.cpp.50.o', 'ArduCopter/Copter.cpp.50.o', 'ArduCopter/GCS_Copter.cpp.50.o', 'ArduCopter/GCS_Mavlink.cpp.50.o', 'ArduCopter/Log.cpp.50.o', 'ArduCopter/Parameters.cpp.50.o', 'ArduCopter/RC_Channel.cpp.50.o', 'ArduCopter/UserCode.cpp.50.o', 'ArduCopter/UserParameters.cpp.50.o', 'ArduCopter/afs_copter.cpp.50.o', 'ArduCopter/autoyaw.cpp.50.o', 'ArduCopter/avoidance.cpp.50.o', 'ArduCopter/avoidance_adsb.cpp.50.o', 'ArduCopter/baro_ground_effect.cpp.50.o', 'ArduCopter/commands.cpp.50.o', 'ArduCopter/compassmot.cpp.50.o', 'ArduCopter/crash_check.cpp.50.o', 'ArduCopter/ekf_check.cpp.50.o', 'ArduCopter/esc_calibration.cpp.50.o', 'ArduCopter/events.cpp.50.o', 'ArduCopter/failsafe.cpp.50.o', 'ArduCopter/fence.cpp.50.o', 'ArduCopter/heli.cpp.50.o', 'ArduCopter/inertia.cpp.50.o', 'ArduCopter/land_detector.cpp.50.o', 'ArduCopter/landing_gear.cpp.50.o', 'ArduCopter/mode.cpp.50.o', 'ArduCopter/mode_acro.cpp.50.o', 'ArduCopter/mode_acro_heli.cpp.50.o', 'ArduCopter/mode_althold.cpp.50.o', 'ArduCopter/mode_auto.cpp.50.o', 'ArduCopter/mode_autorotate.cpp.50.o', 'ArduCopter/mode_autotune.cpp.50.o', 'ArduCopter/mode_avoid_adsb.cpp.50.o', 'ArduCopter/mode_brake.cpp.50.o', 'ArduCopter/mode_circle.cpp.50.o', 'ArduCopter/mode_drift.cpp.50.o', 'ArduCopter/mode_flip.cpp.50.o', 'ArduCopter/mode_flowhold.cpp.50.o', 'ArduCopter/mode_follow.cpp.50.o', 'ArduCopter/mode_guided.cpp.50.o', 'ArduCopter/mode_guided_nogps.cpp.50.o', 'ArduCopter/mode_land.cpp.50.o', 'ArduCopter/mode_loiter.cpp.50.o', 'ArduCopter/mode_poshold.cpp.50.o', 'ArduCopter/mode_rtl.cpp.50.o', 'ArduCopter/mode_smart_rtl.cpp.50.o', 'ArduCopter/mode_sport.cpp.50.o', 'ArduCopter/mode_stabilize.cpp.50.o', 'ArduCopter/mode_stabilize_heli.cpp.50.o', 'ArduCopter/mode_systemid.cpp.50.o', 'ArduCopter/mode_throw.cpp.50.o', 'ArduCopter/mode_turtle.cpp.50.o', 'ArduCopter/mode_zigzag.cpp.50.o', 'ArduCopter/motor_test.cpp.50.o', 'ArduCopter/motors.cpp.50.o', 'ArduCopter/navigation.cpp.50.o', 'ArduCopter/precision_landing.cpp.50.o', 'ArduCopter/radio.cpp.50.o', 'ArduCopter/sensors.cpp.50.o', 'ArduCopter/standby.cpp.50.o', 'ArduCopter/surface_tracking.cpp.50.o', 'ArduCopter/system.cpp.50.o', 'ArduCopter/takeoff.cpp.50.o', 'ArduCopter/takeoff_check.cpp.50.o', 'ArduCopter/terrain.cpp.50.o', 'ArduCopter/toy_mode.cpp.50.o', 'ArduCopter/tuning.cpp.50.o', '-obin/arducopter', '-Llib', '-lArduCopter_libs', '-lm']
as well would be useful to know that failure happens only on latest step of compile
[1305/1305] Linking build/sitl/bin/arducopter
13:59:56 runner ['/usr/bin/clang++', '-Wl,-dead_strip', '-pthread', 'ArduCopter/AP_Arming.cpp.50.o', 'ArduCopter/AP_ExternalControl_Copter.cpp.50.o', 'ArduCopter/AP_Rally.cpp.50.o', 'ArduCopter/AP_State.cpp.50.o', 'ArduCopter/Attitude.cpp.50.o', 'ArduCopter/Copter.cpp.50.o', 'ArduCopter/GCS_Copter.cpp.50.o', 'ArduCopter/GCS_Mavlink.cpp.50.o', 'ArduCopter/Log.cpp.50.o', 'ArduCopter/Parameters.cpp.50.o', 'ArduCopter/RC_Channel.cpp.50.o', 'ArduCopter/UserCode.cpp.50.o', 'ArduCopter/UserParameters.cpp.50.o', 'ArduCopter/afs_copter.cpp.50.o', 'ArduCopter/autoyaw.cpp.50.o', 'ArduCopter/avoidance.cpp.50.o', 'ArduCopter/avoidance_adsb.cpp.50.o', 'ArduCopter/baro_ground_effect.cpp.50.o', 'ArduCopter/commands.cpp.50.o', 'ArduCopter/compassmot.cpp.50.o', 'ArduCopter/crash_check.cpp.50.o', 'ArduCopter/ekf_check.cpp.50.o', 'ArduCopter/esc_calibration.cpp.50.o', 'ArduCopter/events.cpp.50.o', 'ArduCopter/failsafe.cpp.50.o', 'ArduCopter/fence.cpp.50.o', 'ArduCopter/heli.cpp.50.o', 'ArduCopter/inertia.cpp.50.o', 'ArduCopter/land_detector.cpp.50.o', 'ArduCopter/landing_gear.cpp.50.o', 'ArduCopter/mode.cpp.50.o', 'ArduCopter/mode_acro.cpp.50.o', 'ArduCopter/mode_acro_heli.cpp.50.o', 'ArduCopter/mode_althold.cpp.50.o', 'ArduCopter/mode_auto.cpp.50.o', 'ArduCopter/mode_autorotate.cpp.50.o', 'ArduCopter/mode_autotune.cpp.50.o', 'ArduCopter/mode_avoid_adsb.cpp.50.o', 'ArduCopter/mode_brake.cpp.50.o', 'ArduCopter/mode_circle.cpp.50.o', 'ArduCopter/mode_drift.cpp.50.o', 'ArduCopter/mode_flip.cpp.50.o', 'ArduCopter/mode_flowhold.cpp.50.o', 'ArduCopter/mode_follow.cpp.50.o', 'ArduCopter/mode_guided.cpp.50.o', 'ArduCopter/mode_guided_nogps.cpp.50.o', 'ArduCopter/mode_land.cpp.50.o', 'ArduCopter/mode_loiter.cpp.50.o', 'ArduCopter/mode_poshold.cpp.50.o', 'ArduCopter/mode_rtl.cpp.50.o', 'ArduCopter/mode_smart_rtl.cpp.50.o', 'ArduCopter/mode_sport.cpp.50.o', 'ArduCopter/mode_stabilize.cpp.50.o', 'ArduCopter/mode_stabilize_heli.cpp.50.o', 'ArduCopter/mode_systemid.cpp.50.o', 'ArduCopter/mode_throw.cpp.50.o', 'ArduCopter/mode_turtle.cpp.50.o', 'ArduCopter/mode_zigzag.cpp.50.o', 'ArduCopter/motor_test.cpp.50.o', 'ArduCopter/motors.cpp.50.o', 'ArduCopter/navigation.cpp.50.o', 'ArduCopter/precision_landing.cpp.50.o', 'ArduCopter/radio.cpp.50.o', 'ArduCopter/sensors.cpp.50.o', 'ArduCopter/standby.cpp.50.o', 'ArduCopter/surface_tracking.cpp.50.o', 'ArduCopter/system.cpp.50.o', 'ArduCopter/takeoff.cpp.50.o', 'ArduCopter/takeoff_check.cpp.50.o', 'ArduCopter/terrain.cpp.50.o', 'ArduCopter/toy_mode.cpp.50.o', 'ArduCopter/tuning.cpp.50.o', '-obin/arducopter', '-Llib', '-lArduCopter_libs', '-lm']
ld: building fixups: pointer not aligned at __ZN12AP_FWVersion5fwverE+0x34 from /Users/r.koval/code/ardupilot/build/sitl/ArduCopter/Copter.cpp.50.o
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Meanwhile when I compile some other board, everything is finished without failure.
Any help is appreciated.
Thanks!