Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Yocto: oe_runmake failed, error in do_compile from bitbake image

Tags:

yocto

bitbake

I'm building yocto image and a newbie for this. I'm having an error when I type bitbake piflo command (piflo is my image name) like shown figure below:

oe_runmake failed with do_compile

It says ERROR: batctl-2017.1-r0 do_compile: oe_runmake failed and also says pkg-config not found. from makefile.

I found some solutions from web and tried, but it gave me same error as figure above. It was building OK but after getting new batctl and batman-adv it fails building.

Does anybody have an idea for this? Please help me out here.

If needs more information or code, I will EDIT.

Thanks in advance.

like image 890
paulc1111 Avatar asked Jun 23 '17 04:06

paulc1111


2 Answers

Sounds like a broken package. First things first, try cleaning it and rebuilding

bitbake -c cleanall batctl  
bitbake -c cleanall batman-adv  
bitbake batman-adv  
bitbake batctl

Also, do you actually need those packages? If not just remove them by adding to your local.conf

IMAGE_INSTALL_remove = " batctl batman-adv "
like image 81
metamorphling Avatar answered Nov 16 '22 16:11

metamorphling


Yes, like you just found out, you need to add pkg-config to your recipe's DEPENDS.

In earlier OpenEmbedded (Yocto) it often worked out anyway, as some other recipe had pkg-config in its DEPENDS. However, from the Pyro release, each recipe gets it's own sysroot; thus, you have to explicitly add everything that the recipe needs to it's DEPENDS. This is done to improve determinism in the builds.

like image 39
Anders Avatar answered Nov 16 '22 15:11

Anders