PX4 autopilot support package build failure
3 次查看(过去 30 天)
显示 更早的评论
When I build the firmware with pixhawk1, errors are shown like below.
I don't know why these errors are happened.. Is there anybody who experienced the same error?
SUBMODULEUPDATESTART
fatal: 源� � �μ냼媛 �꾨떃�덈떎: /mnt/c/mypx4/Firmware/.git/modules/Tools/jMAVSim/modules/jMAVlib
Unable to find current revision in submodule path 'Tools/jMAVSim/jMAVlib'
fatal: 源� � �μ냼媛 �꾨떃�덈떎: /mnt/c/mypx4/Firmware/.git/modules/Tools/sitl_gazebo/modules/external/OpticalFlow
Unable to find current revision in submodule path 'Tools/sitl_gazebo/external/OpticalFlow'
fatal: 源� � �μ냼媛 �꾨떃�덈떎: /mnt/c/mypx4/Firmware/.git/modules/src/lib/DriverFramework/modules/dspal
Unable to find current revision in submodule path 'src/lib/DriverFramework/dspal'
fatal: 源� � �μ냼媛 �꾨떃�덈떎: /mnt/c/mypx4/Firmware/.git/modules/src/modules/uavcan/libuavcan/modules/dsdl
Unable to find current revision in submodule path 'src/modules/uavcan/libuavcan/dsdl'
Failed to recurse into submodule path 'Tools/jMAVSim'
Failed to recurse into submodule path 'Tools/sitl_gazebo'
Failed to recurse into submodule path 'src/lib/DriverFramework'
Failed to recurse into submodule path 'src/modules/uavcan/libuavcan'
SUBMODULEUPDATEEND
ninja: Entering directory `/cygdrive/c/mypx4/Firmware/build/posix_sitl_default'
[0/1] Re-running CMake...
-- PX4 VERSION: v1.8.0
-- CONFIG: posix_sitl_default
-- Build Type: RelWithDebInfo
-- C compiler: cc (GCC) 9.3.0
-- C++ compiler: c++ (GCC) 9.3.0
-- PX4 ECL: Very lightweight Estimation & Control Library v0.9.0-553-g1a11068
-- Configuring done
-- Generating done
-- Build files have been written to: /cygdrive/c/mypx4/Firmware/build/posix_sitl_default
[1/607] Building CXX object msg/CMakeFiles/uorb_msgs.dir/topics_sources/uORBTopics.cpp.o
[2/607] Building CXX object msg/CMakeFiles/uorb_msgs.dir/topics_sources/actuator_armed.cpp.o
[3/607] Building CXX object msg/CMakeFiles/uorb_msgs.dir/topics_sources/actuator_controls.cpp.o
[4/607] Building CXX object msg/CMakeFiles/uorb_msgs.dir/topics_sources/actuator_direct.cpp.o
[5/607] Building CXX object msg/CMakeFiles/uorb_msgs.dir/topics_sources/actuator_outputs.cpp.o
[6/607] Building CXX object msg/CMakeFiles/uorb_msgs.dir/topics_sources/adc_report.cpp.o
[7/607] Building CXX object msg/CMakeFiles/uorb_msgs.dir/topics_sources/airspeed.cpp.o
[8/607] Building CXX object msg/CMakeFiles/uorb_msgs.dir/topics_sources/battery_status.cpp.o
[9/607] Building CXX object msg/CMakeFiles/uorb_msgs.dir/topics_sources/att_pos_mocap.cpp.o
[10/607] Building CXX object msg/CMakeFiles/uorb_msgs.dir/topics_sources/camera_capture.cpp.o
[11/607] Building CXX object msg/CMakeFiles/uorb_msgs.dir/topics_sources/collision_report.cpp.o
[12/607] Building CXX object msg/CMakeFiles/uorb_msgs.dir/topics_sources/camera_trigger.cpp.o
[13/607] Building CXX object msg/CMakeFiles/uorb_msgs.dir/topics_sources/commander_state.cpp.o
[14/607] Building CXX object msg/CMakeFiles/uorb_msgs.dir/topics_sources/cpuload.cpp.o
[15/607] Building CXX object msg/CMakeFiles/uorb_msgs.dir/topics_sources/debug_key_value.cpp.o
[16/607] Building CXX object msg/CMakeFiles/uorb_msgs.dir/topics_sources/debug_value.cpp.o
[17/607] Building CXX object msg/CMakeFiles/uorb_msgs.dir/topics_sources/debug_vect.cpp.o
[18/607] Building CXX object msg/CMakeFiles/uorb_msgs.dir/topics_sources/differential_pressure.cpp.o
[19/607] Building CXX object msg/CMakeFiles/uorb_msgs.dir/topics_sources/distance_sensor.cpp.o
[20/607] Building CXX object msg/CMakeFiles/uorb_msgs.dir/topics_sources/ekf2_innovations.cpp.o
[21/607] Building CXX object msg/CMakeFiles/uorb_msgs.dir/topics_sources/ekf2_timestamps.cpp.o
[22/607] Building CXX object msg/CMakeFiles/uorb_msgs.dir/topics_sources/esc_report.cpp.o
[23/607] Building CXX object msg/CMakeFiles/uorb_msgs.dir/topics_sources/esc_status.cpp.o
[24/607] Building CXX object msg/CMakeFiles/uorb_msgs.dir/topics_sources/follow_target.cpp.o
[25/607] Building CXX object msg/CMakeFiles/uorb_msgs.dir/topics_sources/fw_pos_ctrl_status.cpp.o
[26/607] Building CXX object msg/CMakeFiles/uorb_msgs.dir/topics_sources/estimator_status.cpp.o
[27/607] Building CXX object msg/CMakeFiles/uorb_msgs.dir/topics_sources/geofence_result.cpp.o
[28/607] Building CXX object msg/CMakeFiles/uorb_msgs.dir/topics_sources/gps_dump.cpp.o
[29/607] Building CXX object msg/CMakeFiles/uorb_msgs.dir/topics_sources/gps_inject_data.cpp.o
[30/607] Building CXX object msg/CMakeFiles/uorb_msgs.dir/topics_sources/home_position.cpp.o
[31/607] Building CXX object msg/CMakeFiles/uorb_msgs.dir/topics_sources/input_rc.cpp.o
[32/607] Building CXX object msg/CMakeFiles/uorb_msgs.dir/topics_sources/iridiumsbd_status.cpp.o
[33/607] Building CXX object msg/CMakeFiles/uorb_msgs.dir/topics_sources/irlock_report.cpp.o
[34/607] Building CXX object msg/CMakeFiles/uorb_msgs.dir/topics_sources/landing_target_innovations.cpp.o
[35/607] Building CXX object msg/CMakeFiles/uorb_msgs.dir/topics_sources/landing_target_pose.cpp.o
[36/607] Building CXX object msg/CMakeFiles/uorb_msgs.dir/topics_sources/led_control.cpp.o
[37/607] Building CXX object msg/CMakeFiles/uorb_msgs.dir/topics_sources/log_message.cpp.o
[38/607] Building CXX object msg/CMakeFiles/uorb_msgs.dir/topics_sources/manual_control_setpoint.cpp.o
[39/607] Building CXX object msg/CMakeFiles/uorb_msgs.dir/topics_sources/mission.cpp.o
[40/607] Building CXX object msg/CMakeFiles/uorb_msgs.dir/topics_sources/mavlink_log.cpp.o
[41/607] Building CXX object msg/CMakeFiles/uorb_msgs.dir/topics_sources/mission_result.cpp.o
[42/607] Building CXX object msg/CMakeFiles/uorb_msgs.dir/topics_sources/mount_orientation.cpp.o
[43/607] Building CXX object msg/CMakeFiles/uorb_msgs.dir/topics_sources/multirotor_motor_limits.cpp.o
[44/607] Building CXX object msg/CMakeFiles/uorb_msgs.dir/topics_sources/offboard_control_mode.cpp.o
[45/607] Building CXX object msg/CMakeFiles/uorb_msgs.dir/topics_sources/obstacle_distance.cpp.o
[46/607] Building CXX object msg/CMakeFiles/uorb_msgs.dir/topics_sources/optical_flow.cpp.o
[47/607] Building CXX object msg/CMakeFiles/uorb_msgs.dir/topics_sources/parameter_update.cpp.o
[48/607] Building CXX object msg/CMakeFiles/uorb_msgs.dir/topics_sources/ping.cpp.o
[49/607] Building CXX object msg/CMakeFiles/uorb_msgs.dir/topics_sources/position_setpoint.cpp.o
[50/607] Building CXX object msg/CMakeFiles/uorb_msgs.dir/topics_sources/position_setpoint_triplet.cpp.o
[51/607] Building CXX object msg/CMakeFiles/uorb_msgs.dir/topics_sources/power_button_state.cpp.o
[52/607] Building CXX object msg/CMakeFiles/uorb_msgs.dir/topics_sources/pwm_input.cpp.o
[53/607] Building CXX object msg/CMakeFiles/uorb_msgs.dir/topics_sources/rate_ctrl_status.cpp.o
[54/607] Building CXX object msg/CMakeFiles/uorb_msgs.dir/topics_sources/qshell_req.cpp.o
[55/607] Building CXX object msg/CMakeFiles/uorb_msgs.dir/topics_sources/rc_channels.cpp.o
[56/607] Building CXX object msg/CMakeFiles/uorb_msgs.dir/topics_sources/rc_parameter_map.cpp.o
[57/607] Building CXX object msg/CMakeFiles/uorb_msgs.dir/topics_sources/safety.cpp.o
[58/607] Building CXX object msg/CMakeFiles/uorb_msgs.dir/topics_sources/satellite_info.cpp.o
[59/607] Building CXX object msg/CMakeFiles/uorb_msgs.dir/topics_sources/sensor_accel.cpp.o
[60/607] Building CXX object msg/CMakeFiles/uorb_msgs.dir/topics_sources/sensor_baro.cpp.o
[61/607] Building CXX object msg/CMakeFiles/uorb_msgs.dir/topics_sources/sensor_bias.cpp.o
[62/607] Building CXX object msg/CMakeFiles/uorb_msgs.dir/topics_sources/sensor_combined.cpp.o
[63/607] Building CXX object msg/CMakeFiles/uorb_msgs.dir/topics_sources/sensor_correction.cpp.o
[64/607] Building CXX object msg/CMakeFiles/uorb_msgs.dir/topics_sources/sensor_gyro.cpp.o
[65/607] Building CXX object msg/CMakeFiles/uorb_msgs.dir/topics_sources/sensor_mag.cpp.o
[66/607] Building CXX object msg/CMakeFiles/uorb_msgs.dir/topics_sources/sensor_preflight.cpp.o
[67/607] Building CXX object msg/CMakeFiles/uorb_msgs.dir/topics_sources/sensor_selection.cpp.o
[68/607] Building CXX object msg/CMakeFiles/uorb_msgs.dir/topics_sources/servorail_status.cpp.o
[69/607] Building CXX object msg/CMakeFiles/uorb_msgs.dir/topics_sources/subsystem_info.cpp.o
[70/607] Building CXX object msg/CMakeFiles/uorb_msgs.dir/topics_sources/tecs_status.cpp.o
[71/607] Building CXX object msg/CMakeFiles/uorb_msgs.dir/topics_sources/system_power.cpp.o
[72/607] Building CXX object msg/CMakeFiles/uorb_msgs.dir/topics_sources/task_stack_info.cpp.o
[73/607] Building CXX object msg/CMakeFiles/uorb_msgs.dir/topics_sources/telemetry_status.cpp.o
[74/607] Building CXX object msg/CMakeFiles/uorb_msgs.dir/topics_sources/test_motor.cpp.o
[75/607] Building CXX object msg/CMakeFiles/uorb_msgs.dir/topics_sources/timesync_status.cpp.o
[76/607] Building CXX object msg/CMakeFiles/uorb_msgs.dir/topics_sources/transponder_report.cpp.o
[77/607] Building CXX object msg/CMakeFiles/uorb_msgs.dir/topics_sources/uavcan_parameter_request.cpp.o
[78/607] Building CXX object msg/CMakeFiles/uorb_msgs.dir/topics_sources/tune_control.cpp.o
[79/607] Building CXX object msg/CMakeFiles/uorb_msgs.dir/topics_sources/uavcan_parameter_value.cpp.o
[80/607] Building CXX object msg/CMakeFiles/uorb_msgs.dir/topics_sources/ulog_stream_ack.cpp.o
[81/607] Building CXX object msg/CMakeFiles/uorb_msgs.dir/topics_sources/vehicle_air_data.cpp.o
[82/607] Building CXX object msg/CMakeFiles/uorb_msgs.dir/topics_sources/ulog_stream.cpp.o
[83/607] Building CXX object msg/CMakeFiles/uorb_msgs.dir/topics_sources/vehicle_attitude.cpp.o
[84/607] Building CXX object msg/CMakeFiles/uorb_msgs.dir/topics_sources/vehicle_attitude_setpoint.cpp.o
[85/607] Building CXX object msg/CMakeFiles/uorb_msgs.dir/topics_sources/vehicle_command.cpp.o
[86/607] Building CXX object msg/CMakeFiles/uorb_msgs.dir/topics_sources/vehicle_command_ack.cpp.o
[87/607] Building CXX object msg/CMakeFiles/uorb_msgs.dir/topics_sources/vehicle_gps_position.cpp.o
[88/607] Building CXX object msg/CMakeFiles/uorb_msgs.dir/topics_sources/vehicle_control_mode.cpp.o
[89/607] Building CXX object msg/CMakeFiles/uorb_msgs.dir/topics_sources/vehicle_global_position.cpp.o
[90/607] Building CXX object msg/CMakeFiles/uorb_msgs.dir/topics_sources/vehicle_land_detected.cpp.o
[91/607] Building CXX object msg/CMakeFiles/uorb_msgs.dir/topics_sources/vehicle_local_position.cpp.o
[92/607] Building CXX object msg/CMakeFiles/uorb_msgs.dir/topics_sources/vehicle_local_position_setpoint.cpp.o
[93/607] Building CXX object msg/CMakeFiles/uorb_msgs.dir/topics_sources/vehicle_magnetometer.cpp.o
[94/607] Building CXX object msg/CMakeFiles/uorb_msgs.dir/topics_sources/vehicle_rates_setpoint.cpp.o
[95/607] Linking CXX static library src/lib/ecl/airdata/libecl_airdata.a
[96/607] Building CXX object msg/CMakeFiles/uorb_msgs.dir/topics_sources/vehicle_roi.cpp.o
[97/607] Building CXX object msg/CMakeFiles/uorb_msgs.dir/topics_sources/vtol_vehicle_status.cpp.o
[98/607] Building CXX object msg/CMakeFiles/uorb_msgs.dir/topics_sources/vehicle_status.cpp.o
[99/607] Building CXX object msg/CMakeFiles/uorb_msgs.dir/topics_sources/vehicle_status_flags.cpp.o
[100/607] Building CXX object msg/CMakeFiles/uorb_msgs.dir/topics_sources/wind_estimate.cpp.o
[101/607] Building CXX object src/lib/ecl/geo_lookup/CMakeFiles/ecl_geo_lookup.dir/geo_mag_declination.cpp.o
[102/607] Building CXX object src/lib/ecl/attitude_fw/CMakeFiles/ecl_attitude_fw.dir/ecl_yaw_controller.cpp.o
[103/607] Building CXX object src/lib/ecl/attitude_fw/CMakeFiles/ecl_attitude_fw.dir/ecl_wheel_controller.cpp.o
[104/607] Building CXX object src/lib/ecl/validation/CMakeFiles/ecl_validation.dir/data_validator.cpp.o
[105/607] Linking CXX static library msg/libuorb_msgs.a
[106/607] Building CXX object src/lib/mixer/CMakeFiles/mixer.dir/mixer.cpp.o
[107/607] Linking CXX static library src/lib/ecl/geo_lookup/libecl_geo_lookup.a
[108/607] Building CXX object src/lib/ecl/validation/CMakeFiles/ecl_validation.dir/data_validator_group.cpp.o
[109/607] Building CXX object src/lib/ecl/geo/CMakeFiles/ecl_geo.dir/geo.cpp.o
[110/607] Linking CXX static library src/lib/ecl/attitude_fw/libecl_attitude_fw.a
[111/607] Building CXX object src/lib/ecl/tecs/CMakeFiles/ecl_tecs.dir/tecs.cpp.o
[112/607] Building CXX object src/lib/ecl/l1/CMakeFiles/ecl_l1.dir/ecl_l1_pos_controller.cpp.o
[113/607] Building C object src/lib/mixer/CMakeFiles/mixer.dir/mixer_load.c.o
FAILED: src/lib/mixer/CMakeFiles/mixer.dir/mixer_load.c.o
/usr/bin/cc -DCONFIG_ARCH_BOARD_SITL -D_GNU_SOURCE -D__PX4_CYGWIN -D__PX4_POSIX -D__STDC_FORMAT_MACROS -D__USE_LINUX_IOCTL_DEFS -Dnoreturn_function="__attribute__((noreturn))" -I. -Isrc -Isrc/lib -Isrc/modules -I../../src -I../../src/drivers/boards/sitl -I../../src/include -I../../src/lib -I../../src/lib/DriverFramework/framework/include -I../../src/lib/matrix -I../../src/modules -I../../src/platforms -I../../platforms/posix/include -Iexternal/Install/include -Isrc/lib/mixer -g -std=gnu99 -fno-common -Wall -Warray-bounds -Wdisabled-optimization -Werror -Wextra -Wfatal-errors -Wfloat-equal -Wformat-security -Winit-self -Wlogical-op -Wmissing-declarations -Wmissing-field-initializers -Wpointer-arith -Wshadow -Wuninitialized -Wunknown-pragmas -Wunused-variable -Wno-implicit-fallthrough -Wno-unused-parameter -Wunused-but-set-variable -Wformat=1 -Wdouble-promotion -Wbad-function-cast -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -fvisibility=hidden -include visibility.h -fno-strict-aliasing -fomit-frame-pointer -fno-math-errno -funsafe-math-optimizations -ffunction-sections -fdata-sections -fno-strength-reduce -fno-builtin-printf -fdiagnostics-color=always -O2 -g -DNDEBUG -U __CUSTOM_FILE_IO__ -std=gnu99 -MD -MT src/lib/mixer/CMakeFiles/mixer.dir/mixer_load.c.o -MF src/lib/mixer/CMakeFiles/mixer.dir/mixer_load.c.o.d -o src/lib/mixer/CMakeFiles/mixer.dir/mixer_load.c.o -c ../../src/lib/mixer/mixer_load.c
In file included from ../../src/lib/mixer/mixer_load.c:43:
../../src/lib/mixer/mixer_load.c: In function �쁫oad_mixer_file��:
../../src/lib/mixer/mixer_load.c:74:42: error: array subscript has type �쁟har�� [-Werror=char-subscripts]
74 | if ((strlen(line) < 2) || !isupper(line[0]) || (line[1] != ':')) {
| ~~~~^~~
compilation terminated due to -Wfatal-errors.
cc1: all warnings being treated as errors
[114/607] Linking CXX static library src/lib/ecl/validation/libecl_validation.a
[115/607] Linking CXX static library src/lib/ecl/geo/libecl_geo.a
[116/607] Linking CXX static library src/lib/ecl/tecs/libecl_tecs.a
[117/607] Building CXX object src/lib/mixer/CMakeFiles/mixer.dir/mixer_helicopter.cpp.o
[118/607] Building CXX object src/lib/mixer/CMakeFiles/mixer.dir/mixer_group.cpp.o
[119/607] Building CXX object src/lib/mixer/CMakeFiles/mixer.dir/mixer_multirotor.cpp.o
[120/607] Building CXX object src/lib/mixer/CMakeFiles/mixer.dir/mixer_simple.cpp.o
[121/607] Building C object src/lib/perf/CMakeFiles/perf.dir/perf_counter.c.o
[122/607] Building CXX object src/lib/rc/CMakeFiles/rc.dir/st24.cpp.o
ninja: build stopped: subcommand failed.
0 个评论
回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!