Error compiling the firmware for Pixhawk6X-ODID

When compiling the firmware for Pixhawk6X-ODID using ‘./waf copter,’ I encountered the following error and don’t know how to resolve it.

dronecangen returned l error code/home/acnpro/ardupilot/build/Pixhawk6X-0DIDWaf: Leaving directoryBuild failed-> task in'dronecan' failed(exit status 1):{task 139912919357072: dronecangen .github,ardupilot,com,cuav,dronecan,mppt,tests,uavcan -> ?(run with -v to display more information
dronecangen returnedl error codeC/home/acnpro/ardupilot/build/Pixhawk6X-0DCalling ant_glob on build foldersID) is dangerous: add quiet=Trueremove=FalseCalling ant_glob on build folders (/home/acnpro/ardupilot/build/pixhawk6X-0DID) is dangerous: add quiet=Trueremove=FalseCalling ant_glob on build folders (/home/acnpro/ardupilot/build/Pixhawk6X-0DID) is dangerous: add quiet=True  remove=FalseCalling ant_glob on build folders (/home/acnpro/ardupilot/build/Pixhawk6X-0DID) is dangerous: add quiet=True  remove=FalseCalling ant_glob on build folders (/home/acnpro/ardupilot/build/Pixhawk6X-0DID) is dangerous: add quiet=Trueremove=FalseCalling ant_glob on build folders (/home/acnpro/ardupilot/build/pixhawk6X-0DID) is dangerous: add quiet=True  remove=FalseWaf: Leaving directory/home/acnpro/ardupilot/build/pixhawk6X-ODID
Build failed-> task in'dronecan' failed (exit status 1):{task 139917679385888: dronecangen .github,ardupilot,com,cuav,dronecan,mppt,tests,uavcan -> 3
dronecangen .github,ardupilot,com,cuav,dronectask 139917679385888:an,mppt,tests,uavcan -> 

Hi.
I’ve got same error, when i try:

./waf configure --board MatekH743-bdshot
./waf copter

Then i got this error:

dronecangen returned 1 error code
Waf: Leaving directory `/home/vboxadmin/ardupilot/build/MatekH743-bdshot'
Build failed
 -> task in 'dronecan' failed (exit status 1): 
	{task 139797825314864: dronecangen .github,ardupilot,com,cuav,dronecan,mppt,tests,uavcan -> }
 (run with -v to display more information)

Try running ./Tools/gittools/submodule-sync.sh and then waf clean

Thank you. I will try soon.

Hi @andyp1per
I’ll do what you say, but this don’t help.
I use Ubuntu on VirtualBox.

Waf: Leaving directory `/home/vboxadmin/ardupilot/build/MatekH743-bdshot’

Build failed

→ task in ‘dronecan’ failed (exit status 1):

{task 140460964559920: dronecangen .github,ardupilot,com,cuav,dronecan,mppt,tests,uavcan → }

(run with -v to display more information)

Do you have all the appropriate python tools installed?

This yes: Tools/environment_install/install-prereqs-ubuntu.sh -y

Or i need something else?

Should all be good - not sure what the problem is

I try this anoter time an now all works. Thank you.

1 Like

Because the early environments is Ubuntu22.04,the python is 3.10. when I try to change Ubuntu18.04 ,this problem is resolved.

you sure for that 18.04 not working for me