All of lore.kernel.org
 help / color / mirror / Atom feed
From: Gary Thomas <gary@mlbassoc.com>
To: Chris Tapp <opensource@keylevel.com>
Cc: "yocto@yoctoproject.org" <yocto@yoctoproject.org>
Subject: Re: do_compile() isn't run when building
Date: Fri, 18 Feb 2011 17:30:01 -0700	[thread overview]
Message-ID: <4D5F0F09.5000503@mlbassoc.com> (raw)
In-Reply-To: <63A706D0-7DED-4FFB-B10F-83ECE0C85509@keylevel.com>

On 02/18/2011 05:04 PM, Chris Tapp wrote:
> On 18 Feb 2011, at 09:42, Cui, Dexuan wrote:
>
>> Chris Tapp wrote:
>>> I've created a simple recipe based on an example from the Poky
>>> Reference manual (I've added a license to get it to build):
>> The code looks ok.
>>
>>> However, if I 'bitbake test' the code isn't compiled:
>>>
>>> NOTE: Running setscene task 178 of 276 (/home/chris/poky-dev/meta/
>>> recipes-keylevel/test/test_0.1.0.bb:do_populate_sysroot_setscene)
>>> NOTE: Running setscene task 179 of 276 (/home/chris/poky-dev/meta/
>>> recipes-keylevel/test/test_0.1.0.bb:do_package_setscene)
>>> NOTE: package test-0.1.0-r0: task do_populate_sysroot_setscene:
>>> Started NOTE: package test-0.1.0-r0: task do_package_setscene: Started
>>> NOTE: package test-0.1.0-r0: task do_populate_sysroot_setscene:
>>> Succeeded
>>> NOTE: Running setscene task 180 of 276 (/home/chris/poky-dev/meta/
>>> recipes-keylevel/test/test_0.1.0.bb:do_populate_lic_setscene)
>>> NOTE: package test-0.1.0-r0: task do_package_setscene: Succeeded
>>> NOTE: package test-0.1.0-r0: task do_populate_lic_setscene: Started
>>> NOTE: Running setscene task 181 of 276 (/home/chris/poky-dev/meta/
>>> recipes-keylevel/test/test_0.1.0.bb:do_package_write_ipk_setscene)
>>> NOTE: package test-0.1.0-r0: task do_populate_lic_setscene: Succeeded
>>> NOTE: package test-0.1.0-r0: task do_package_write_ipk_setscene:
>>> Started NOTE: package test-0.1.0-r0: task
>>> do_package_write_ipk_setscene: Succeeded
>>> NOTE: Executing RunQueue Tasks
>>> NOTE: Running noexec task 828 of 829 (ID: 9,
>>> /home/chris/poky-dev/meta/ recipes-keylevel/test/test_0.1.0.bb,
>>> do_package_write)
>>> NOTE: Running noexec task 829 of 829 (ID: 4,
>>> /home/chris/poky-dev/meta/ recipes-keylevel/test/test_0.1.0.bb,
>>> do_build)
>>>
>>>
>>> Why doesn't the code get built?
>> Is this the complete log?
>> I don't find any tasks(e.g., do_fetch, do_unpack, do_install...) that should be there. This is odd.
>
> Yes, that's the complete log ! I thought it was odd too.
>
>> Maybe you can try "bitbake -c cleanall test; bitbake test" to see if any change?
>
> That does work, but it seems as if 'make clean' quite often (though not always) doesn't do enough.

This is probably happening because of the shared state info which
is cached for successfully built packages.  bitbake clean does not
(possibly can not) remove that.

If you want to run clean on a recipe (and not change the recipe per se)
you'll need to clean the state info as well.  I normally do this by hand
like this (for your package named test):
   % bitbake test -c clean
   % rm sstate-cache/sstate-test*

Note: there is a bitbake action 'cleanall' which I think tries to clean
up everything it possibly can, including state info, but I've not had
perfect luck with it, hence my choice to do this manually.

-- 
------------------------------------------------------------
Gary Thomas                 |  Consulting for the
MLB Associates              |    Embedded world
------------------------------------------------------------


      reply	other threads:[~2011-02-19  0:30 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-02-18  9:06 do_compile() isn't run when building Chris Tapp
2011-02-18  9:42 ` Cui, Dexuan
2011-02-19  0:04   ` Chris Tapp
2011-02-19  0:30     ` Gary Thomas [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4D5F0F09.5000503@mlbassoc.com \
    --to=gary@mlbassoc.com \
    --cc=opensource@keylevel.com \
    --cc=yocto@yoctoproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.