ArduPilot / ardupilot

ArduPlane, ArduCopter, ArduRover, ArduSub source
http://ardupilot.org/
GNU General Public License v3.0
10.99k stars 17.53k forks source link

Bootloader compile fail, uavcangen.py error #9006

Closed ghost closed 5 years ago

ghost commented 6 years ago

IF YOU DON'T REMOVE THESE FOUR LINES, THEN YOUR REPORT WILL BE CLOSED AUTOMATICALLY Questions and user problems should be directed at the forum (http://discuss.ardupilot.org) Please be very sure you have found a bug when opening this issue If there was a previous discussion in the forum, link to it

Bug report

Issue details Fresh clone the latest master ardupilot, configure and compile Bootloader, fail in uavcangen.py.: list index out of range Build failed Traceback (most recent call last): File "/home/gary/ardupilot/modules/waf/waflib/Task.py", line 286, in process ret = self.run() File "Tools/ardupilotwaf/uavcangen.py", line 24, in run input_dir = os.path.dirname(self.inputs[0].abspath()) IndexError: list index out of range

Version copter 3.6

Platform [ ] All [ ] AntennaTracker [ x ] Copter [ ] Plane [ ] Rover [ ] Submarine

Airframe type Y6

Hardware type Pixhawk

Logs gary@gary-vm: $ git clone https://github.com/ArduPilot/ardupilot.git Cloning into 'ardupilot'... remote: Counting objects: 227051, done. remote: Compressing objects: 100% (7/7), done. remote: Total 227051 (delta 0), reused 2 (delta 0), pack-reused 227044 Receiving objects: 100% (227051/227051), 107.18 MiB | 1.52 MiB/s, done. Resolving deltas: 100% (166781/166781), done. Checking connectivity... done. gary@gary-vm: $ git submodule init fatal: Not a git repository (or any of the parent directories): .git gary@gary-vm: $ cd ardupilot/ gary@gary-vm: /ardupilot$ git submodule init Submodule 'modules/ChibiOS' (git://github.com/ArduPilot/ChibiOS.git) registered for path 'modules/ChibiOS' Submodule 'modules/PX4Firmware' (git://github.com/ArduPilot/PX4Firmware.git) registered for path 'modules/PX4Firmware' Submodule 'modules/PX4NuttX' (git://github.com/ArduPilot/PX4NuttX.git) registered for path 'modules/PX4NuttX' Submodule 'modules/gbenchmark' (git://github.com/google/benchmark.git) registered for path 'modules/gbenchmark' Submodule 'gtest' (git://github.com/ArduPilot/googletest) registered for path 'modules/gtest' Submodule 'modules/mavlink' (git://github.com/ArduPilot/mavlink) registered for path 'modules/mavlink' Submodule 'modules/uavcan' (git://github.com/ArduPilot/uavcan.git) registered for path 'modules/uavcan' Submodule 'modules/waf' (git://github.com/ArduPilot/waf.git) registered for path 'modules/waf' gary@gary-vm: /ardupilot$ git submodule update Cloning into 'modules/ChibiOS'... remote: Counting objects: 129116, done. remote: Compressing objects: 100% (789/789), done. remote: Total 129116 (delta 1225), reused 1342 (delta 1024), pack-reused 127287 Receiving objects: 100% (129116/129116), 63.31 MiB | 2.65 MiB/s, done. Resolving deltas: 100% (100484/100484), done. Checking connectivity... done. Submodule path 'modules/ChibiOS': checked out 'c77e7465374c6888dc3bb3b4b55789af5980cbeb' Cloning into 'modules/PX4Firmware'... remote: Counting objects: 173831, done. remote: Total 173831 (delta 0), reused 0 (delta 0), pack-reused 173831 Receiving objects: 100% (173831/173831), 73.62 MiB | 2.97 MiB/s, done. Resolving deltas: 100% (129528/129528), done. Checking connectivity... done. Submodule path 'modules/PX4Firmware': checked out '1e7ed30b1710b55f8a7509800187d51e63bb2143' Cloning into 'modules/PX4NuttX'... remote: Counting objects: 125811, done. remote: Compressing objects: 100% (2612/2612), done. remote: Total 125811 (delta 16039), reused 14066 (delta 14066), pack-reused 109133 Receiving objects: 100% (125811/125811), 30.67 MiB | 3.00 MiB/s, done. Resolving deltas: 100% (102729/102729), done. Checking connectivity... done. Submodule path 'modules/PX4NuttX': checked out '1472b16c36e37312b722fbe4540e48b39abfa23a' Cloning into 'modules/gbenchmark'... remote: Counting objects: 4601, done. remote: Compressing objects: 100% (17/17), done. remote: Total 4601 (delta 7), reused 11 (delta 5), pack-reused 4577 Receiving objects: 100% (4601/4601), 1.45 MiB | 1.11 MiB/s, done. Resolving deltas: 100% (2996/2996), done. Checking connectivity... done. Submodule path 'modules/gbenchmark': checked out '006d23ccca1375a973b7fae0cc351cedb41b812a' Cloning into 'modules/gtest'... remote: Counting objects: 7141, done. remote: Total 7141 (delta 0), reused 0 (delta 0), pack-reused 7141 Receiving objects: 100% (7141/7141), 2.42 MiB | 1.04 MiB/s, done. Resolving deltas: 100% (5325/5325), done. Checking connectivity... done. Submodule path 'modules/gtest': checked out 'c99458533a9b4c743ed51537e25989ea55944908' Cloning into 'modules/mavlink'... remote: Counting objects: 15283, done. remote: Total 15283 (delta 0), reused 0 (delta 0), pack-reused 15283 Receiving objects: 100% (15283/15283), 6.08 MiB | 2.13 MiB/s, done. Resolving deltas: 100% (10111/10111), done. Checking connectivity... done. Submodule path 'modules/mavlink': checked out '36432124a99db4302d0518e236fae4a57499793c' Cloning into 'modules/uavcan'... remote: Counting objects: 17458, done. remote: Compressing objects: 100% (10/10), done. remote: Total 17458 (delta 0), reused 4 (delta 0), pack-reused 17447 Receiving objects: 100% (17458/17458), 2.79 MiB | 1.26 MiB/s, done. Resolving deltas: 100% (11752/11752), done. Checking connectivity... done. Submodule path 'modules/uavcan': checked out '70df64480a7512fbbb85b442234dbd9b3bdae548' Cloning into 'modules/waf'... remote: Counting objects: 17156, done. remote: Compressing objects: 100% (9/9), done. remote: Total 17156 (delta 3), reused 3 (delta 2), pack-reused 17145 Receiving objects: 100% (17156/17156), 5.17 MiB | 1.61 MiB/s, done. Resolving deltas: 100% (12119/12119), done. Checking connectivity... done. Submodule path 'modules/waf': checked out '1537281d4f481eb801c2a7778250f371220f3971' gary@gary-vm: /ardupilot$ ./waf list_boards CUAVv5 CubeBlack CubeYellow F4BY KakuteF4 KakuteF7 MatekF405 MatekF405-Wing OMNIBUSF7V2 PH4-mini Pixhawk4 Pixracer aero aerofc-v1 airbotf4 bbbmini bebop bhat blue crazyflie2 cube-red dark disco edge erleboard erlebrain2 f405-min f427-min f767-min fmuv2 fmuv3 fmuv4 fmuv4-beta fmuv5 linux mRoX21 mindpx-v2 mini-pix navio navio2 ocpoc_zynq omnibusf4pro pocket px4-v1 px4-v2 px4-v3 px4-v4 px4-v4pro pxf pxfmini revo-mini rst_zynq sitl skyviper-f412 skyviper-f412-rev1 skyviper-v2450 skyviper-v2450-px4 sparky2 zynq 'list_boards' finished successfully (0.002s) gary@gary-vm: /ardupilot$ ./waf configure --board px4-v4 --bootloader Setting top to : /home/gary/ardupilot Setting out to : /home/gary/ardupilot/build Autoconfiguration : enabled Setting board to : px4-v4 Checking for program 'arm-none-eabi-ar' : /opt/gcc-arm-none-eabi-4_9-2015q3/bin/arm-none-eabi-ar Using toolchain : arm-none-eabi Checking for 'g++' (C++ compiler) : /opt/gcc-arm-none-eabi-4_9-2015q3/bin/arm-none-eabi-g++ Checking for 'gcc' (C compiler) : /opt/gcc-arm-none-eabi-4_9-2015q3/bin/arm-none-eabi-gcc Checking for c flags '-MMD' : yes Checking for cxx flags '-MMD' : yes Checking for HAVE_CMATH_ISFINITE : no Checking for HAVE_CMATH_ISINF : no Checking for HAVE_CMATH_ISNAN : no Checking for NEED_CMATH_ISFINITE_STD_NAMESPACE : no Checking for NEED_CMATH_ISINF_STD_NAMESPACE : no Checking for NEED_CMATH_ISNAN_STD_NAMESPACE : no Checking for header endian.h : not found Checking for header byteswap.h : not found Checking for program 'cmake' : /usr/bin/cmake Checking cmake version : 3.5.1 Checking for program 'ninja, ninja-build' : not found Checking for program 'make' : /usr/bin/make Checking for program 'python' : /usr/bin/python Checking for python version >= 2.7.0 : 2.7.12 Checking for program 'python' : /usr/bin/python Checking for python version >= 2.7.0 : 2.7.12 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-4_9-2015q3/bin/arm-none-eabi-size Benchmarks : disabled Unit tests : disabled Checking for program 'rsync' : /usr/bin/rsync 'configure' finished successfully (1.259s) gary@gary-vm: /ardupilot$ ./waf bootloader Waf: Entering directory `/home/gary/ardupilot/build/px4-v4' [1/4] Running Submodule update: PX4Firmware [3/4] Running Submodule update: uavcan [4/4] Running Submodule update: mavlink Submodule 'pymavlink' (git://github.com/ArduPilot/pymavlink.git) registered for path 'pymavlink' Submodule path 'modules/mavlink/pymavlink': checked out 'f55377066e5f5dba2c63b7a5d116454b1b0ce303'

Cloning into 'pymavlink'...

Submodule 'dsdl' (https://github.com/UAVCAN/dsdl) registered for path 'dsdl' Submodule 'libuavcan/dsdl_compiler/pyuavcan' (https://github.com/UAVCAN/pyuavcan) registered for path 'libuavcan/dsdl_compiler/pyuavcan' Submodule path 'modules/uavcan/dsdl': checked out 'e96bd6f227cd3b3a487d6070eb044cba12338549' Submodule path 'modules/uavcan/libuavcan/dsdl_compiler/pyuavcan': checked out 'c58477a644d20ccf95a20c151f3a0402f271c3b8' Submodule 'dsdl' (https://github.com/UAVCAN/dsdl) registered for path 'dsdl' Submodule path 'modules/uavcan/libuavcan/dsdl_compiler/pyuavcan/dsdl': checked out 'fd12483ddd4e58242d61d74a163e7aeaa1e0f466'

Cloning into 'dsdl'... Cloning into 'libuavcan/dsdl_compiler/pyuavcan'... Cloning into 'dsdl'...

Submodule 'Tools/gencpp' (https://github.com/ros/gencpp.git) registered for path 'Tools/gencpp' Submodule 'Tools/genmsg' (https://github.com/ros/genmsg.git) registered for path 'Tools/genmsg' Submodule 'mavlink/include/mavlink/v1.0' (git://github.com/mavlink/c_library.git) registered for path 'mavlink/include/mavlink/v1.0' Submodule 'src/lib/DriverFramework' (https://github.com/PX4/DriverFramework.git) registered for path 'src/lib/DriverFramework' Submodule 'src/lib/ecl' (https://github.com/PX4/ecl.git) registered for path 'src/lib/ecl' Submodule 'src/lib/matrix' (https://github.com/PX4/Matrix.git) registered for path 'src/lib/matrix' Submodule 'src/modules/uavcan/libuavcan' (git://github.com/UAVCAN/libuavcan.git) registered for path 'src/modules/uavcan/libuavcan' Submodule path 'modules/PX4Firmware/Tools/gencpp': checked out '26a86f04bcec0018af6652b3ddd3f680e6e3fa2a' Submodule path 'modules/PX4Firmware/Tools/genmsg': checked out '72f0383f0e6a489214c51802ae12d6e271b1e454' Submodule path 'modules/PX4Firmware/mavlink/include/mavlink/v1.0': checked out 'bf251caef3dbf610e5152115a2d81e00e54ab7e7' Submodule path 'modules/PX4Firmware/src/lib/DriverFramework': checked out 'd6ef668f4564e1c158910c52df7d71114bd2ca4e' Submodule 'cmake_hexagon' (https://github.com/ATLFlight/cmake_hexagon.git) registered for path 'cmake/cmake_hexagon' Submodule 'dspal' (https://github.com/PX4/dspal) registered for path 'dspal' Submodule path 'modules/PX4Firmware/src/lib/DriverFramework/cmake/cmake_hexagon': checked out 'ba681fcd0d4c5ac95636dd8e9d8536dbd81beabd' Submodule path 'modules/PX4Firmware/src/lib/DriverFramework/dspal': checked out '8f39699c6b79447f32f0714629da790bbf271aa5' Submodule 'test/dspal_tester/cmake_hexagon' (https://github.com/ATLFlight/cmake_hexagon.git) registered for path 'test/dspal_tester/cmake_hexagon' Submodule path 'modules/PX4Firmware/src/lib/DriverFramework/dspal/test/dspal_tester/cmake_hexagon': checked out 'ba681fcd0d4c5ac95636dd8e9d8536dbd81beabd' Submodule path 'modules/PX4Firmware/src/lib/ecl': checked out 'f86ef3478219b4b1c31e17b8f308df4b69eda2f7' Submodule 'matrix' (https://github.com/PX4/Matrix) registered for path 'matrix' Submodule path 'modules/PX4Firmware/src/lib/ecl/matrix': checked out '95e3d7d6ce5274d9b7fec76c0093dc5eaa381abf' Submodule path 'modules/PX4Firmware/src/lib/matrix': checked out '07fba8322a16cb2dac47e6a8ac7d21ec346313ff' Submodule path 'modules/PX4Firmware/src/modules/uavcan/libuavcan': checked out '702f6f05608885d3be993edb01394212bd2dade1' Submodule 'dsdl' (https://github.com/UAVCAN/dsdl) registered for path 'dsdl' Submodule 'libuavcan/dsdl_compiler/pyuavcan' (https://github.com/UAVCAN/pyuavcan) registered for path 'libuavcan/dsdl_compiler/pyuavcan' Submodule path 'modules/PX4Firmware/src/modules/uavcan/libuavcan/dsdl': checked out '9804a3e6972825586be252ce08dd899f44994b14' Submodule path 'modules/PX4Firmware/src/modules/uavcan/libuavcan/libuavcan/dsdl_compiler/pyuavcan': checked out 'c58477a644d20ccf95a20c151f3a0402f271c3b8' Submodule 'dsdl' (https://github.com/UAVCAN/dsdl) registered for path 'dsdl' Submodule path 'modules/PX4Firmware/src/modules/uavcan/libuavcan/libuavcan/dsdl_compiler/pyuavcan/dsdl': checked out 'fd12483ddd4e58242d61d74a163e7aeaa1e0f466'

Cloning into 'Tools/gencpp'... Cloning into 'Tools/genmsg'... Cloning into 'mavlink/include/mavlink/v1.0'... Cloning into 'src/lib/DriverFramework'... Cloning into 'cmake/cmake_hexagon'... Cloning into 'dspal'... Cloning into 'test/dspal_tester/cmake_hexagon'... Cloning into 'src/lib/ecl'... Cloning into 'matrix'... Cloning into 'src/lib/matrix'... Cloning into 'src/modules/uavcan/libuavcan'... Cloning into 'dsdl'... Cloning into 'libuavcan/dsdl_compiler/pyuavcan'... Cloning into 'dsdl'...

[ 5/14] Running uavcangen [ 6/14] Creating build/px4-v4/ap_version.h [ 7/14] CMake Configure px4 [ 8/14] PX4: Copying rc.APM to px4-extra-files/ROMFS/init.d/rc.APM Waf: Leaving directory `/home/gary/ardupilot/build/px4-v4' Build failed Traceback (most recent call last): File "/home/gary/ardupilot/modules/waf/waflib/Task.py", line 286, in process ret = self.run() File "Tools/ardupilotwaf/uavcangen.py", line 24, in run input_dir = os.path.dirname(self.inputs[0].abspath()) IndexError: list index out of range

gary@gary-vm: /ardupilot$ ./waf bootloader Waf: Entering directory `/home/gary/ardupilot/build/px4-v4' [ 5/14] 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 [ 6/14] Creating build/px4-v4/ap_version.h [ 7/14] CMake Configure px4 [ 8/14] PX4: Copying rc.APM to px4-extra-files/ROMFS/init.d/rc.APM [ 9/14] PX4: Copying rc.error to px4-extra-files/ROMFS/init.d/rc.error [10/14] PX4: Copying rcS to px4-extra-files/ROMFS/init.d/rcS [11/14] PX4: Copying startup to px4-extra-files/ROMFS/tones/startup [12/14] PX4: Copying px4fmuv4_bl.bin to px4-extra-files/ROMFS/bootloader/fmu_bl.bin -- nuttx-px4fmu-v4-apm -- could not find gdbtui -- could not find ddd -- could not find gdbtui -- could not find ddd -- The ASM compiler identification is GNU -- Found assembler: /opt/gcc-arm-none-eabi-4_9-2015q3/bin/arm-none-eabi-gcc -- Found PythonInterp: /usr/bin/python (found version "2.7.12") -- GIT_DESC = 1e7ed30b1710b55f8a7509800187d51e63bb2143 -- Configuring done -- Generating done -- Build files have been written to: /home/gary/ardupilot/build/px4-v4/modules/PX4Firmware INCLUDE_DIRS=/home/gary/ardupilot/modules/PX4Firmware/src;/home/gary/ardupilot/build/px4-v4/modules/PX4Firmware;/home/gary/ardupilot/build/px4-v4/modules/PX4Firmware/src;/home/gary/ardupilot/modules/PX4Firmware/src/modules;/home/gary/ardupilot/modules/PX4Firmware/src/include;/home/gary/ardupilot/modules/PX4Firmware/src/lib;/home/gary/ardupilot/modules/PX4Firmware/src/platforms;/home/gary/ardupilot/modules/PX4Firmware/src/drivers/boards/px4fmu-v4;/home/gary/ardupilot/build/px4-v4/modules/PX4Firmware;/home/gary/ardupilot/build/px4-v4/modules/PX4Firmware/src/modules/px4_messages;/home/gary/ardupilot/build/px4-v4/modules/PX4Firmware/src/modules;/home/gary/ardupilot/modules/PX4Firmware/mavlink/include/mavlink;/home/gary/ardupilot/modules/PX4Firmware/src/lib/DriverFramework/framework/include;src/lib/matrix;/home/gary/ardupilot/build/px4-v4/modules/PX4Firmware/px4fmu-v4/NuttX/nuttx-export/include;/home/gary/ardupilot/build/px4-v4/modules/PX4Firmware/px4fmu-v4/NuttX/nuttx-export/include/cxx;/home/gary/ardupilot/build/px4-v4/modules/PX4Firmware/px4fmu-v4/NuttX/nuttx-export/arch/chip;/home/gary/ardupilot/build/px4-v4/modules/PX4Firmware/px4fmu-v4/NuttX/nuttx-export/arch/common ADDING DRIVERS

[13/14] CMake Build px4 msg_gen Scanning dependencies of target git_genmsg [ 33%] Generating git_init_Tools_genmsg.stamp [ 33%] Built target git_genmsg Scanning dependencies of target git_gencpp [ 33%] Generating git_init_Tools_gencpp.stamp [ 33%] Built target git_gencpp Scanning dependencies of target msg_gen [ 66%] Generating uORB topic multi headers for nuttx [100%] Generating uORB topic headers [100%] Built target msg_gen [14/14] CMake Build px4 prebuild_targets Scanning dependencies of target nuttx_patch_px4fmu-v4 [ 0%] Built target nuttx_patch_px4fmu-v4 Scanning dependencies of target nuttx_copy_px4fmu-v4 [ 0%] Generating nuttx_copy_px4fmu-v4.stamp [ 0%] Built target nuttx_copy_px4fmu-v4 Scanning dependencies of target nuttx_export_px4fmu-v4 [ 0%] Generating px4fmu-v4.export Configuring NuttX for px4fmu-v4 Exporting NuttX for px4fmu-v4 [100%] Generating nuttx_export_px4fmu-v4.stamp [100%] Built target nuttx_export_px4fmu-v4 Scanning dependencies of target prebuild_targets [100%] Built target prebuild_targets sem_timedwait.c: In function 'sem_timedwait':

[15/86] Compiling libraries/AP_HAL/Device.cpp [16/86] Compiling libraries/AP_HAL/HAL.cpp [17/86] Compiling libraries/AP_HAL/Scheduler.cpp [18/86] Compiling libraries/AP_HAL/Util.cpp [19/86] Compiling libraries/AP_HAL/utility/BetterStream.cpp [20/86] Compiling libraries/AP_HAL/utility/RCOutput_Tap.cpp [21/86] Compiling libraries/AP_HAL/utility/RCOutput_Tap_Linux.cpp [22/86] Compiling libraries/AP_HAL/utility/RCOutput_Tap_Nuttx.cpp [23/86] Compiling libraries/AP_HAL/utility/RingBuffer.cpp [24/86] Compiling libraries/AP_HAL/utility/Socket.cpp [25/86] Compiling libraries/AP_HAL/utility/dsm.cpp [26/86] Compiling libraries/AP_HAL/utility/ftoa_engine.cpp [27/86] Compiling libraries/AP_HAL/utility/getopt_cpp.cpp [28/86] Compiling libraries/AP_HAL/utility/print_vprintf.cpp [29/86] Compiling libraries/AP_HAL/utility/srxl.cpp [30/86] Compiling libraries/AP_HAL/utility/st24.cpp [31/86] Compiling libraries/AP_HAL/utility/sumd.cpp [32/86] Compiling libraries/AP_HAL/utility/utoa_invert.cpp [33/86] Compiling libraries/AP_UAVCAN/AP_UAVCAN.cpp [34/86] Compiling modules/uavcan/libuavcan/src/driver/uc_can.cpp [35/86] Compiling modules/uavcan/libuavcan/src/marshal/uc_bit_array_copy.cpp **In file included from ../../libraries/AP_SerialManager/AP_SerialManager.h:27:0, from ../../libraries/AP_GPS/AP_GPS.h:24, from ../../libraries/AP_UAVCAN/AP_UAVCAN.h:12, from ../../libraries/AP_UAVCAN/AP_UAVCAN.cpp:12: ../../libraries/GCS_MAVLink/GCS_MAVLink.h:30:56: fatal error: include/mavlink/v2.0/ardupilotmega/version.h: No such file or directory

include "include/mavlink/v2.0/ardupilotmega/version.h"

                                                    ^

compilation terminated.**

[36/86] Compiling modules/uavcan/libuavcan/src/marshal/uc_bit_stream.cpp [37/86] Compiling modules/uavcan/libuavcan/src/marshal/uc_float_spec.cpp [38/86] Compiling modules/uavcan/libuavcan/src/marshal/uc_scalar_codec.cpp [39/86] Compiling modules/uavcan/libuavcan/src/node/uc_generic_publisher.cpp [40/86] Compiling modules/uavcan/libuavcan/src/node/uc_generic_subscriber.cpp [41/86] Compiling modules/uavcan/libuavcan/src/node/uc_global_data_type_registry.cpp [42/86] Compiling modules/uavcan/libuavcan/src/node/uc_scheduler.cpp [43/86] Compiling modules/uavcan/libuavcan/src/node/uc_service_client.cpp [44/86] Compiling modules/uavcan/libuavcan/src/node/uc_timer.cpp [45/86] Compiling modules/uavcan/libuavcan/src/protocol/uc_dynamic_node_id_client.cpp [46/86] Compiling modules/uavcan/libuavcan/src/protocol/uc_node_status_provider.cpp [47/86] Compiling modules/uavcan/libuavcan/src/transport/uc_can_acceptance_filter_configurator.cpp [48/86] Compiling modules/uavcan/libuavcan/src/transport/uc_can_io.cpp [49/86] Compiling modules/uavcan/libuavcan/src/transport/uc_crc.cpp [50/86] Compiling modules/uavcan/libuavcan/src/transport/uc_dispatcher.cpp [51/86] Compiling modules/uavcan/libuavcan/src/transport/uc_frame.cpp [52/86] Compiling modules/uavcan/libuavcan/src/transport/uc_outgoing_transfer_registry.cpp [53/86] Compiling modules/uavcan/libuavcan/src/transport/uc_transfer.cpp [54/86] Compiling modules/uavcan/libuavcan/src/transport/uc_transfer_buffer.cpp [55/86] Compiling modules/uavcan/libuavcan/src/transport/uc_transfer_listener.cpp [56/86] Compiling modules/uavcan/libuavcan/src/transport/uc_transfer_receiver.cpp [57/86] Compiling modules/uavcan/libuavcan/src/transport/uc_transfer_sender.cpp [58/86] Compiling modules/uavcan/libuavcan/src/uc_data_type.cpp [59/86] Compiling modules/uavcan/libuavcan/src/uc_dynamic_memory.cpp [60/86] Compiling modules/uavcan/libuavcan/src/uc_error.cpp [61/86] Compiling libraries/AP_HAL_PX4/AnalogIn.cpp [62/86] Compiling libraries/AP_HAL_PX4/CAN.cpp [63/86] Compiling libraries/AP_HAL_PX4/Device.cpp [64/86] Compiling libraries/AP_HAL_PX4/GPIO.cpp [65/86] Compiling libraries/AP_HAL_PX4/I2CDevice.cpp [66/86] Compiling libraries/AP_HAL_PX4/NSHShellStream.cpp [67/86] Compiling libraries/AP_HAL_PX4/RCInput.cpp [68/86] Compiling libraries/AP_HAL_PX4/RCOutput.cpp [69/86] Compiling libraries/AP_HAL_PX4/SPIDevice.cpp [70/86] Compiling libraries/AP_HAL_PX4/Scheduler.cpp [71/86] Compiling libraries/AP_HAL_PX4/Semaphores.cpp [72/86] Compiling libraries/AP_HAL_PX4/UARTDriver.cpp [73/86] Compiling libraries/AP_HAL_PX4/Util.cpp [74/86] Compiling libraries/AP_HAL_PX4/px4_param.cpp [75/86] Compiling libraries/AP_HAL_PX4/system.cpp [76/86] Compiling libraries/AP_HAL_PX4/HAL_PX4_Class.cpp [77/86] Compiling libraries/AP_HAL_PX4/Storage.cpp [78/86] Compiling Tools/AP_Bootloader/AP_Bootloader.cpp [79/86] Compiling Tools/AP_Bootloader/bl_protocol.cpp [80/86] Compiling Tools/AP_Bootloader/support.cpp [81/86] CMake Configure px4 Waf: Leaving directory `/home/gary/ardupilot/build/px4-v4' Build failed -> task in 'objs/AP_UAVCAN' failed (exit status 1): {task 139966228417344: cxx AP_UAVCAN.cpp -> AP_UAVCAN.cpp.0.o} /opt/gcc-arm-none-eabi-4_9-2015q3/bin/arm-none-eabi-g++ -DCONFIG_ARCH_BOARD_PX4FMU_V4 -DSTDC_FORMAT_MACROS -DPX4_NUTTX -D__DF_NUTTX -g -fno-exceptions -fno-rtti -std=gnu++0x -fno-threadsafe-statics -DCONFIG_WCHAR_BUILTIN -DCUSTOM_FILE_IO -Wall -Werror -Wextra -Wno-sign-compare -Wfloat-equal -Wpointer-arith -Wmissing-declarations -Wno-unused-parameter -Werror=format-security -Werror=array-bounds -Wfatal-errors -Werror=unused-variable -Werror=reorder -Werror=uninitialized -Werror=init-self -Wframe-larger-than=1024 -Werror=unused-but-set-variable -Wformat=1 -Wdouble-promotion -Werror=double-promotion -Wno-missing-field-initializers -Os -fno-strict-aliasing -fomit-frame-pointer -funsafe-math-optimizations -ffunction-sections -fdata-sections -fno-strength-reduce -fno-builtin-printf -fvisibility=hidden -include visibility.h -mcpu=cortex-m4 -mthumb -march=armv7e-m -mfpu=fpv4-sp-d16 -mfloat-abi=hard -nodefaultlibs -nostdlib -std=gnu++11 -fdata-sections -ffunction-sections -fno-exceptions -fsigned-char -Wall -Wextra -Wformat -Wshadow -Wpointer-arith -Wcast-align -Wundef -Wno-unused-parameter -Wno-missing-field-initializers -Wno-reorder -Wno-redundant-decls -Wno-unknown-pragmas -Werror=format-security -Werror=array-bounds -Werror=uninitialized -Werror=init-self -Werror=switch -Werror=sign-compare -Wfatal-errors -Wno-trigraphs -Werror=unused-but-set-variable -Wno-error=cast-align -Wlogical-op -Wframe-larger-than=1300 -fsingle-precision-constant -Wno-attributes -Wno-error=double-promotion -Wno-error=missing-declarations -Wno-error=float-equal -Wno-error=undef -Wno-error=cpp -MMD -include ap_config.h -Imodules/uavcan/libuavcan/include/dsdlc_generated -I. -I../../libraries -I../../libraries/AP_Common/missing -I../../modules/uavcan/libuavcan/include -I../../modules/PX4Firmware/src -Imodules/PX4Firmware -Imodules/PX4Firmware/src -I../../modules/PX4Firmware/src/modules -I../../modules/PX4Firmware/src/include -I../../modules/PX4Firmware/src/lib -I../../modules/PX4Firmware/src/platforms -I../../modules/PX4Firmware/src/drivers/boards/px4fmu-v4 -Imodules/PX4Firmware/src/modules/px4_messages -Imodules/PX4Firmware/src/modules -I../../modules/PX4Firmware/mavlink/include/mavlink -I../../modules/PX4Firmware/src/lib/DriverFramework/framework/include -Isrc/lib/matrix -I../../src/lib/matrix -Imodules/PX4Firmware/px4fmu-v4/NuttX/nuttx-export/include -Imodules/PX4Firmware/px4fmu-v4/NuttX/nuttx-export/include/cxx -Imodules/PX4Firmware/px4fmu-v4/NuttX/nuttx-export/arch/chip -Imodules/PX4Firmware/px4fmu-v4/NuttX/nuttx-export/arch/common -DSKETCHBOOK="/home/gary/ardupilot" -DCONFIG_HAL_BOARD=HAL_BOARD_PX4 -DHAVE_OCLOEXEC=0 -DHAVE_STD_NULLPTR_T=0 -DUAVCAN_CPP_VERSION=UAVCAN_CPP03 -DUAVCAN_NO_ASSERTIONS=1 -DUAVCAN_NULLPTR=nullptr ../../libraries/AP_UAVCAN/AP_UAVCAN.cpp -c -olibraries/AP_UAVCAN/AP_UAVCAN.cpp.0.o gary@gary-vm:~/ardupilot$

ghost commented 6 years ago

If run ./waf bootloader again, will show error:

In file included from ../../libraries/AP_SerialManager/AP_SerialManager.h:27:0, from ../../libraries/AP_GPS/AP_GPS.h:24, from ../../libraries/AP_UAVCAN/AP_UAVCAN.h:12, from ../../libraries/AP_UAVCAN/AP_UAVCAN.cpp:12: ../../libraries/GCS_MAVLink/GCS_MAVLink.h:30:56: fatal error: include/mavlink/v2.0/ardupilotmega/version.h: No such file or directory

include "include/mavlink/v2.0/ardupilotmega/version.h"

^ compilation terminated.

khancyr commented 5 years ago

this is working now. Closing

ghost commented 5 years ago

I'm having the same issue. How did you solve it?

thanks