Buil apm for ox4-v3 error woth "task in 'px4_msg_gen' failed (exit status 2)"

when I build apm for px4-v3, there’s an erroe said :

Build failed
-> task in ‘px4_msg_gen’ failed (exit status 2):
{task 7696552552080: cmake_build_task -> }
/usr/bin/cmake --build /home/apm/ardupilot/build/px4-v3/modules/PX4Firmware --target msg_gen

but when i build for fmuv3 it’s ok.
my environment is windows10 with cywin.
thank u!!!

Use WSL - it works much better for me that Cygwin and is much more reliable.