[yocto] Debugging Yocto Project build failures

Paul Barker pbarker at toganlabs.com
Wed Aug 16 02:48:39 PDT 2017


On Thu, Aug 10, 2017 at 1:36 PM, Never Read <dsjnews at hotmail.co.uk> wrote:
> Hi,
>
>
>
> I am trying to build a yocto project for a particular platform and get a
> compile error after about 45 minutes or so.
>
>
>
> The error is reported as a do_compile error when trying to compile a source
> file for jq-1.5-r0 (JSON stream filter as far as I know). It reports that
> the file main.c could not be found. I have checked the particular directory
> an can see that it is in fact present.
>
>
>
> My question is as follows.
>
>
>
> Instead of running make to try and debug the problem (which takes ages to
> reach the point of error), is there a way to use do_compile to manually
> compile/build this one item?
>
>
>
> I have tried running make in projects directory (where its Makefile is
> located) but this does not work because perhaps it is first necessary to
> setup the build environment first.
>
> It appears that it needs x86_64-poky-linux-gcc to do the compile and on
> searching for this file there are about 8 or 9 versions/copies of this file,
> none of which are on the current path.
>
>
>
> If this is the case how would I go about doing this?
>

You should be able to run "bitbake <recipe> -c devshell" to get a
development shell for that recipe with the PATH set up. See
http://www.yoctoproject.org/docs/2.3.1/mega-manual/mega-manual.html#platdev-appdev-devshell.

Cheers,

-- 
Paul Barker
Togán Labs Ltd



More information about the yocto mailing list