px4/pixhawk, couldn't solve the compile error

Hello,
I try to compile and apload Arducopter v3.1.5 to px4/pixhawk.
Along the step of this site >> dev.ardupilot.com/wiki/building-px4-with-make/

Step6, I type and execution command “make px4” using “px4 toolthain console”.
But, happened the following error :
make[3]: *** [Build.ArduCopter/ArduCopter.cpp.o] Error1
make[3]: Leaving directory '/c/workPX4/PX4Firmware/Build/px4fmu-v1_APM.build/c/workPX4/AC3.1.5

make[2]: *** [/c/workPX4/PX4Firmware/Build/px4fmu-v1_APM.build//c/workPX4/AC3.1.5/module/pre.o] Error 2
make[2]: Leaving directory '/c/workPX4/PX4Firmware/Build/px4fmu-v1_APM.build’
make[1]: Leaving directory '/c/workPX4/AC3.1.5’
make: *** [px4-v1] Error 2

–Directory is–
/c/workPX4/PX4Firmware
/c/workPX4/PX4NuttX
/c/workPX4/AC3.1.5/ArduCopter

I searched same or similar question on the web-site, did not find anything become the answer.
For example, found this topic in this forum, I couldn’t solve my question.
viewtopic.php?f=69&t=6827

Why happened this error?
I want to know how to solve the error.
OR, Are there other ways to compile?
Plaese help me.

thank you.

Just went through this issue myself. It was pretty frustrating. Hopefully I can help.

When I downloaded the autopilot, PX4Firmware, and PX4NuttX (step 1) it turns out I got different and incompatible versions of each. Rather than downloading the master branch, download everything at the ArduCopter 3.2 release. Then do a make clean and you should be good to go.