Servers by jDrones

Build fails on eclipse with cygwin (windows 10)

( DragonWars) #1

08:05:45 **** Build of configuration Default for project ardupilot ****
“c:\cygwin64\bin\python2.7” waf --targets bin/arducopter
Waf: Entering directory `/cygdrive/c/tmp/ardupilot/build/fmuv3’
Embedding file io_firmware.bin:Tools/IO_Firmware/fmuv2_IO.bin
Embedding file bootloader.bin:/cygdrive/c/tmp/ardupilot/Tools/bootloaders/fmuv3_bl.bin
Checking for env.py
env added APJ_BOARD_TYPE=STM32F427xx
env added APJ_BOARD_ID=9
env added HAL_WITH_UAVCAN=1
env added FLASH_RESERVE_START_KB=16
env added CHIBIOS_BUILD_FLAGS=USE_FATFS=yes CHIBIOS_PLATFORM_MK=os/hal/ports/STM32/STM32F4xx/platform.mk CHIBIOS_STARTUP_MK=os/common/startup/ARMCMx/compilers/GCC/mk/startup_stm32f4xx.mk
[5/6] 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/6] Linking build/fmuv3/modules/ChibiOS/libch.a
Compiler failure
Traceback (most recent call last):
File “/cygdrive/c/tmp/ardupilot/modules/uavcan/libuavcan/dsdl_compiler/libuavcan_dsdlc”, line 61, in
dsdlc_run(args.source_dir, args.incdir, args.outdir)
File “/cygdrive/c/tmp/ardupilot/modules/uavcan/libuavcan/dsdl_compiler/libuavcan_dsdl_compiler/init.py”, line 62, in run
run_generator(types, output_dir)
File “/cygdrive/c/tmp/ardupilot/modules/uavcan/libuavcan/dsdl_compiler/libuavcan_dsdl_compiler/init.py”, line 111, in run_generator
die(ex)
File “/cygdrive/c/tmp/ardupilot/modules/uavcan/libuavcan/dsdl_compiler/libuavcan_dsdl_compiler/init.py”, line 89, in die
raise DsdlCompilerException(str(text))
DsdlCompilerException: line 16, col 17: invalid syntax (, line 1)
line 16, col 17: invalid syntax (, line 1)

uavcangen returned 1 error code
[1/97] ChibiOS: Compiling crt0_v7m.S
[2/97] ChibiOS: Compiling chcoreasm_v7m.S
C:\Program Files (x86)\GNU Tools ARM Embedded\6 2017-q2-update\bin\arm-none-eabi-ar.exe: creating modules/ChibiOS/libch.a

[3/97] ChibiOS: Compiling crt1.c
[4/97] ChibiOS: Compiling vectors.c
[5/97] ChibiOS: Compiling chsys.c
[6/97] ChibiOS: Compiling chdebug.c
[7/97] ChibiOS: Compiling chtrace.c
[8/97] ChibiOS: Compiling chvt.c
[9/97] ChibiOS: Compiling chschd.c
[10/97] ChibiOS: Compiling chthreads.c
[11/97] ChibiOS: Compiling chtm.c
[12/97] ChibiOS: Compiling chstats.c
[13/97] ChibiOS: Compiling chregistry.c
[14/97] ChibiOS: Compiling chsem.c
[15/97] ChibiOS: Compiling chmtx.c
[16/97] ChibiOS: Compiling chcond.c
[17/97] ChibiOS: Compiling chevents.c
[18/97] ChibiOS: Compiling chmsg.c
[19/97] ChibiOS: Compiling chdynamic.c
[20/97] ChibiOS: Compiling chmboxes.c
[21/97] ChibiOS: Compiling chmemcore.c
[22/97] ChibiOS: Compiling chheap.c
[23/97] ChibiOS: Compiling chmempools.c
[24/97] ChibiOS: Compiling chcore.c
[25/97] ChibiOS: Compiling chcore_v7m.c
[26/97] ChibiOS: Compiling osal.c
[27/97] ChibiOS: Compiling hal.c
[28/97] ChibiOS: Compiling hal_buffers.c
[29/97] ChibiOS: Compiling hal_queues.c
[30/97] ChibiOS: Compiling hal_mmcsd.c
[31/97] ChibiOS: Compiling hal_adc.c
[32/97] ChibiOS: Compiling hal_can.c
[33/97] ChibiOS: Compiling hal_dac.c
[34/97] ChibiOS: Compiling hal_ext.c
[35/97] ChibiOS: Compiling hal_gpt.c
[36/97] ChibiOS: Compiling hal_i2c.c
[37/97] ChibiOS: Compiling hal_i2s.c
[38/97] ChibiOS: Compiling hal_icu.c
[39/97] ChibiOS: Compiling hal_eicu.c
[40/97] ChibiOS: Compiling hal_mac.c
[41/97] ChibiOS: Compiling hal_mmc_spi.c
[42/97] ChibiOS: Compiling hal_pal.c
[43/97] ChibiOS: Compiling hal_pwm.c
[44/97] ChibiOS: Compiling hal_qspi.c
[45/97] ChibiOS: Compiling hal_rtc.c
[46/97] ChibiOS: Compiling hal_sdc.c
[47/97] ChibiOS: Compiling hal_serial.c
[48/97] ChibiOS: Compiling hal_serial_usb.c
[49/97] ChibiOS: Compiling hal_spi.c
[50/97] ChibiOS: Compiling hal_st.c
[51/97] ChibiOS: Compiling hal_uart.c
[52/97] ChibiOS: Compiling hal_usb.c
[53/97] ChibiOS: Compiling hal_wdg.c
[54/97] ChibiOS: Compiling nvic.c
[55/97] ChibiOS: Compiling hal_lld.c
[56/97] ChibiOS: Compiling hal_ext_lld_isr.c
[57/97] ChibiOS: Compiling hal_adc_lld.c
[58/97] ChibiOS: Compiling hal_can_lld.c
[59/97] ChibiOS: Compiling hal_dac_lld.c
[60/97] ChibiOS: Compiling stm32_dma.c
[61/97] ChibiOS: Compiling hal_ext_lld.c
[62/97] ChibiOS: Compiling hal_pal_lld.c
[63/97] ChibiOS: Compiling hal_i2c_lld.c
[64/97] ChibiOS: Compiling hal_mac_lld.c
[65/97] ChibiOS: Compiling hal_usb_lld.c
[66/97] ChibiOS: Compiling hal_qspi_lld.c
[67/97] ChibiOS: Compiling hal_rtc_lld.c
[68/97] ChibiOS: Compiling hal_i2s_lld.c
[69/97] ChibiOS: Compiling hal_spi_lld.c
[70/97] ChibiOS: Compiling hal_sdc_lld.c
[71/97] ChibiOS: Compiling hal_st_lld.c
[72/97] ChibiOS: Compiling hal_gpt_lld.c
[73/97] ChibiOS: Compiling hal_icu_lld.c
[74/97] ChibiOS: Compiling hal_pwm_lld.c
[75/97] ChibiOS: Compiling hal_eicu_lld.c
[76/97] ChibiOS: Compiling hal_serial_lld.c
[77/97] ChibiOS: Compiling hal_uart_lld.c
[78/97] ChibiOS: Compiling hal_wdg_lld.c
[79/97] ChibiOS: Compiling chprintf.c
[80/97] ChibiOS: Compiling memstreams.c
[81/97] ChibiOS: Compiling nullstreams.c
[82/97] ChibiOS: Compiling fatfs_diskio.c
[83/97] ChibiOS: Compiling fatfs_syscall.c
[84/97] ChibiOS: Compiling ff.c
[85/97] ChibiOS: Compiling unicode.c
[86/97] ChibiOS: Compiling stubs.c
[87/97] ChibiOS: Compiling board.c
[88/97] ChibiOS: Compiling usbcfg.c
[89/97] ChibiOS: Compiling flash.c
[90/97] ChibiOS: Compiling malloc.c
[91/97] ChibiOS: Compiling stdio.c
[92/97] ChibiOS: Compiling hrt.c
[93/97] ChibiOS: Compiling stm32_util.c
[94/97] ChibiOS: Compiling bouncebuffer.c
[95/97] ChibiOS: Compiling posix.c
[96/97] ChibiOS: Compiling ch.cpp
[97/97] ChibiOS: Compiling syscalls_cpp.cpp

ChibiOS: Done!

Waf: Leaving directory `/cygdrive/c/tmp/ardupilot/build/fmuv3’
Traceback (most recent call last):
File “/cygdrive/c/tmp/ardupilot/modules/waf/waflib/Scripting.py”, line 165, in waf_entry_point
run_commands()
File “/cygdrive/c/tmp/ardupilot/modules/waf/waflib/Scripting.py”, line 266, in run_commands
ctx = run_command(cmd_name)
File “/cygdrive/c/tmp/ardupilot/modules/waf/waflib/Scripting.py”, line 250, in run_command
ctx.execute()
File “/cygdrive/c/tmp/ardupilot/modules/waf/waflib/Scripting.py”, line 616, in execute
return execute_method(self)
File “/cygdrive/c/tmp/ardupilot/modules/waf/waflib/Build.py”, line 255, in execute
self.execute_build()
File “/cygdrive/c/tmp/ardupilot/modules/waf/waflib/Build.py”, line 275, in execute_build
self.compile()
File “/cygdrive/c/tmp/ardupilot/modules/waf/waflib/Build.py”, line 377, in compile
raise Errors.BuildError(self.producer.error)
File “/cygdrive/c/tmp/ardupilot/modules/waf/waflib/Errors.py”, line 45, in init
WafError.init(self, self.format_error())
File “/cygdrive/c/tmp/ardupilot/modules/waf/waflib/Errors.py”, line 51, in format_error
txt = tsk.format_error()
File “/cygdrive/c/tmp/ardupilot/modules/waf/waflib/Task.py”, line 415, in format_error
txt = cmd
NameError: global name ‘cmd’ is not defined
“c:/cygwin64/bin/python2.7 waf --targets bin/arducopter” terminated with exit code 1. Build might be incomplete.

08:07:07 Build Finished. 0 errors, 0 warnings. (took 1m:22s.551ms)