Arducopter win10 eclipse build error (mavlink.h] Error 1. mavgen: failed)

Hello,

I’ve been using 3DR Solo + greencube H/W combination.
The last time I successfully built & downloaded ArduCopter master was 3 months ago.
(win10 Eclipse - px4-v3 option)
Today I connected github and updated my local ardupilot folder and did “git submodule update”.
But I failed building ArduCopter with this message.

21:21:40 **** Build of configuration Default for project ardupilot ****
make px4-v3
// BUILDROOT=/e/Dev/ardupilot/Build.ArduCopter HAL_BOARD=HAL_BOARD_PX4 HAL_BOARD_SUBTYPE= TOOLCHAIN=NATIVE EXTRAFLAGS=-DGIT_VERSION=“833bc4e7” -I/e/Dev/ardupilot/libraries/AP_Common/missing -DMAVLINK_PROTOCOL_VERSION=2 -DNUTTX_GIT_VERSION=“1472b16c” -DPX4_GIT_VERSION=“8ca93fbd” -DUAVCAN=1 -D__STDC_FORMAT_MACROS -DHAVE_STD_NULLPTR_T=0 -DHAVE_ENDIAN_H=0 -DHAVE_BYTESWAP_H=0 -DHAVE_OCLOEXEC=0 -I/e/Dev/ardupilot/Build.ArduCopter/libraries/GCS_MAVLink/include/mavlink -I/e/Dev/ardupilot/modules/uavcan/libuavcan/include -I/e/Dev/ardupilot/modules/uavcan/libuavcan/include/dsdlc_generated
Checking modules
echo “Generating MAVLink headers…”
Generating MAVLink headers…
#goto mavlink module directory and run the most recent generator script
echo “Generating C code using mavgen.py located at” /e/Dev/ardupilot/modules/mavlink/
Generating C code using mavgen.py located at /e/Dev/ardupilot/modules/mavlink/
PYTHONPATH=/e/Dev/ardupilot/modules/mavlink/ python /e/Dev/ardupilot/modules/mavlink//pymavlink/tools/mavgen.py --lang=C --wire-protocol=2.0 --output=/e/Dev/ardupilot/Build.ArduCopter/libraries/GCS_MAVLink/include/mavlink/v2.0 /e/Dev/ardupilot/modules/mavlink/message_definitions/v1.0/ardupilotmega.xml; if [ $? -le 0 -o $? -gt 128 ]; then echo “mavgen: success”; exit 0; else echo “mavgen: failed”; exit 1; fi
Validating e:/Dev/ardupilot/modules/mavlink/message_definitions/v1.0/ardupilotmega.xml
Traceback (most recent call last):
Parsing e:/Dev/ardupilot/modules/mavlink/message_definitions/v1.0/ardupilotmega.xml
File “e:/Dev/ardupilot/modules/mavlink/pymavlink/tools/mavgen.py”, line 30, in
Note: message DATA64 is longer than 64 bytes long (74 bytes), which can cause fragmentation since many radio modems use 64 bytes as maximum air transfer unit.
Note: message DATA96 is longer than 64 bytes long (106 bytes), which can cause fragmentation since many radio modems use 64 bytes as maximum air transfer unit.
mavgen.mavgen(args, args.definitions)
File “e:\Dev\ardupilot\modules\mavlink\pymavlink\generator\mavgen.py”, line 96, in mavgen
Note: message REMOTE_LOG_DATA_BLOCK is longer than 64 bytes long (214 bytes), which can cause fragmentation since many radio modems use 64 bytes as maximum air transfer unit.
if not mavgen_validate(fname):
Note: message DEVICE_OP_READ_REPLY is longer than 64 bytes long (143 bytes), which can cause fragmentation since many radio modems use 64 bytes as maximum air transfer unit.
File “e:\Dev\ardupilot\modules\mavlink\pymavlink\generator\mavgen.py”, line 59, in mavgen_validate
xmlschema.assertValid(xmldocument)
File “lxml.etree.pyx”, line 3374, in lxml.etree._Validator.assertValid (src\lxml\lxml.etree.c:166442)
Note: message DEVICE_OP_WRITE is longer than 64 bytes long (187 bytes), which can cause fragmentation since many radio modems use 64 bytes as maximum air transfer unit.
lxml.etree.DocumentInvalid: Element ‘wip’: This element is not expected. Expected is one of ( description, param )., line 1486
Validating e:/Dev/ardupilot/modules/mavlink/message_definitions/v1.0\common.xml
make: *** [/e/Dev/ardupilot/Build.ArduCopter/libraries/GCS_MAVLink/include/mavlink/v2.0/ardupilotmega/mavlink.h] Error 1
mavgen: failed

21:22:25 Build Finished (took 45s.215ms)

Can somebody teach me where to start? @.@
Thanks for reading this.

I deleted the project folder and re-downloaded it (cloned again),
and now building starts normally.
Maybe my files were corrupted or something…?

The problem was on that line. You had an old pymavlink

Thank you, amilcarlucas.