Skip to contentSkip to conversation

sstate status

DISCUSSION Paul Eggleton 3 participants 9 messages Dec 8, 2010

lore
Share & tools
lore
#0 lore raw
Quoted 7 lines · On Wednesday 08 December 2010 11:41:22 you wrote:

Do we still need those variable whitelisting changes? Based on original branch you pushed (basically RP's branch rebased on master imo), I think it basically works at least for a single recipe build though above weird issue exists for image build.

Of course we need keep some bitbake specific variables in whitelist, such as DATE, TIME and several others you added in last commit.

Aren't many of those variables still exposed via preserved_envvars_list()?

Quoted 2 lines

On the other hand, did you observe my issue on this new push? I want to understand its root cause, which is really funny.

I have to admit I didn't look closely enough to be sure - I was mainly testing between two different build machines which don't share the same native arch, so the native packages were rebuilt anyway. I'm starting a fresh build now with my new branch to see if I can reproduce your results.

Cheers,
Paul

#1 lore raw
Quoted 4 lines · On Wednesday 08 December 2010 14:02:15 Paul Eggleton wrote:

I have to admit I didn't look closely enough to be sure - I was mainly testing between two different build machines which don't share the same native arch, so the native packages were rebuilt anyway. I'm starting a fresh build now with my new branch to see if I can reproduce your results.

FYI my build just finished and it's definitely rebuilding a whole bunch of packages (and not just native ones). More concerningly it seems to have rebuilt git-native and the hash has actually changed, although bitbake-diffsigs doesn't seem to be able to tell me what is different other than the hash itself.

Cheers,
Paul

#2 lore raw
Quoted 9 lines

From: Paul Eggleton [mailto:[email protected]]
Sent: Wednesday, December 08, 2010 10:06 PM

Quoted 4 lines · On Wednesday 08 December 2010 14:02:15 Paul Eggleton wrote:

I have to admit I didn't look closely enough to be sure - I was mainly testing between two different build machines which don't share the same native arch, so the native packages were rebuilt anyway. I'm starting a fresh build now with my new branch to see if I can reproduce your results.

Quoted 5 lines

FYI my build just finished and it's definitely rebuilding a whole bunch of packages (and not just native ones). More concerningly it seems to have rebuilt git-native and the hash has actually changed, although bitbake-diffsigs doesn't seem to be able to tell me what is different other than the hash itself.

It's a little different from my case, though I also observed lots of packages rebuilt besides native ones. How did you check the hash has been changed? In my case git-native simply overrides sstate package with same checksum.

Also I found that git-native.do_populate_setsecene is not scheduled at all, which may be the reason for the rebuilt, but I haven't got the cause.

Thanks
Kevin

#5 lore raw
In reply to Paul Eggleton
Quoted 7 lines · Paul Eggleton
Quoted 4 lines · On Wednesday 08 December 2010 14:02:15 Paul Eggleton wrote:

I have to admit I didn't look closely enough to be sure - I was mainly testing between two different build machines which don't share the same native arch, so the native packages were rebuilt anyway. I'm starting a fresh build now with my new branch to see if I can reproduce your results.

FYI my build just finished and it's definitely rebuilding a whole bunch of packages (and not just native ones). More concerningly it seems to have rebuilt git-native and the hash has actually changed, although bitbake-diffsigs doesn't seem to be able to tell me what is different other than the hash itself.

I'm running my own experiments on this branch. It seems that something more fundamental is broken. I first ran
% bitbake poky-image-minimal
which seemed to go OK although the resulting image.tar.bz2 looks surprisingly empty. I've not investigated this fully.

Then in the same tree, nothing else touched, I ran
% bitbake poky-image-sato
which generated a ton of messages like these:
NOTE: package task-base-1.0-r69: task do_populate_sysroot_setscene: Started
NOTE: Staging package /tmp/sstate_testing/sstate-cache/sstate-task-base-qemuarm-poky-linux-gnueabi-1.0-r69-armv5te-1-f2de7ef77366ff6028dbbf54a0206318_populate-sysroot.tgz does not
exist
NOTE: package task-base-1.0-r69: task do_package_setscene: Started
NOTE: Staging package /tmp/sstate_testing/sstate-cache/sstate-task-base-qemuarm-poky-linux-gnueabi-1.0-r69-armv5te-1-82eff67eab7faa49e63393c34ce384dd_package.tgz does not exist
etc. I also have seen that if I abort this build, there are
literally hundreds of setscene tasks pending...

I've put the logs at
http://www.mlbassoc.com/poky/poky-image-minimal-from-paule-branch
http://www.mlbassoc.com/poky/poky-image-sato-from-paule-branch

Query: what sort of machine do you use for this testing? I have a Core-2 quad @2.4GHz with 3GB of RAM and it takes me around 5 hours to make a full test.

Signature · 4 lines
------------------------------------------------------------
Gary Thomas                 |  Consulting for the
MLB Associates              |    Embedded world
------------------------------------------------------------
#3 lore raw
In reply to Tian, Kevin
Quoted 2 lines · Kevin

It's a little different from my case, though I also observed lots of packages rebuilt besides native ones.

This is what I saw as well.

Quoted 2 lines

How did you check the hash has been changed? In my case git-native simply overrides sstate package with same checksum.

I hacked together a shell script that looks for .siginfo files with the same package/arch/task but a different hash; if it finds these then it uses bitbake-diffsigs to compare them.

As for the sstate packages being overwritten, I assume this is happening in my case as I can see the packages being rebuilt in the bitbake output.

Quoted 2 lines

Also I found that git-native.do_populate_setsecene is not scheduled at all, which may be the reason for the rebuilt, but I haven't got the cause.

Hmm, then it could be unrelated to the general problem.

You didn't see this behaviour with your tk/sstate branch I presume?

Cheers,
Paul

#4 lore raw
Quoted 18 lines

From: Paul Eggleton [mailto:[email protected]]
Sent: Wednesday, December 08, 2010 10:50 PM

Quoted 2 lines · Kevin

It's a little different from my case, though I also observed lots of packages rebuilt besides native ones.

This is what I saw as well.

Quoted 2 lines

How did you check the hash has been changed? In my case git-native simply overrides sstate package with same checksum.

I hacked together a shell script that looks for .siginfo files with the same package/arch/task but a different hash; if it finds these then it uses bitbake-diffsigs to compare them.

As for the sstate packages being overwritten, I assume this is happening in my case as I can see the packages being rebuilt in the bitbake output.

Quoted 7 lines
Quoted 2 lines

Also I found that git-native.do_populate_setsecene is not scheduled at all, which may be the reason for the rebuilt, but I haven't got the cause.

Hmm, then it could be unrelated to the general problem.

You didn't see this behaviour with your tk/sstate branch I presume?

I think so. I just observed this behavior after my vacation last week. But it may also come from other changes, not exactly from sstate related ones imo. There're some bitbake changes in the middle I think.

Thanks
Kevin

#6 lore raw
In reply to Gary Thomas
Quoted 27 lines · Gary Thomas
Quoted 8 lines · Paul Eggleton
Quoted 4 lines · On Wednesday 08 December 2010 14:02:15 Paul Eggleton wrote:

I have to admit I didn't look closely enough to be sure - I was mainly testing between two different build machines which don't share the same native arch, so the native packages were rebuilt anyway. I'm starting a fresh build now with my new branch to see if I can reproduce your results.

FYI my build just finished and it's definitely rebuilding a whole bunch of packages (and not just native ones). More concerningly it seems to have rebuilt git-native and the hash has actually changed, although bitbake-diffsigs doesn't seem to be able to tell me what is different other than the hash itself.

I'm running my own experiments on this branch. It seems that something more fundamental is broken. I first ran
% bitbake poky-image-minimal
which seemed to go OK although the resulting image.tar.bz2 looks surprisingly empty. I've not investigated this fully.

Then in the same tree, nothing else touched, I ran
% bitbake poky-image-sato
which generated a ton of messages like these:
NOTE: package task-base-1.0-r69: task do_populate_sysroot_setscene: Started
NOTE: Staging package /tmp/sstate_testing/sstate-cache/sstate-task-base-qemuarm-poky-linux-gnueabi-1.0-r69-armv5te-1-f2de7ef77366ff6028dbbf54a0206318_populate-sysroot.tgz does not exist
NOTE: package task-base-1.0-r69: task do_package_setscene: Started
NOTE: Staging package /tmp/sstate_testing/sstate-cache/sstate-task-base-qemuarm-poky-linux-gnueabi-1.0-r69-armv5te-1-82eff67eab7faa49e63393c34ce384dd_package.tgz does not exist etc. I also have seen that if I abort this build, there are
literally hundreds of setscene tasks pending...

Quoted 3 lines

I've put the logs at
http://www.mlbassoc.com/poky/poky-image-minimal-from-paule-branch
http://www.mlbassoc.com/poky/poky-image-sato-from-paule-branch

BTW you'll notice that the second build failed (it wasn't done when I posted this originally):

NOTE: package portmap-6.0-r7: task do_install: Started
ERROR: Task failed: ('function do_install failed', '/tmp/sstate_testing/tmp/work/armv5te-poky-linux-gnueabi/portmap-6.0-r7/temp/log.do_install.26036')
ERROR: Logfile of failure stored in: /tmp/sstate_testing/tmp/work/armv5te-poky-linux-gnueabi/portmap-6.0-r7/temp/log.do_install.26036 Log data follows:

| NOTE: make -e MAKEFLAGS= install DESTDIR=/tmp/sstate_testing/tmp/work/armv5te-poky-linux-gnueabi/portmap-6.0-r7/image
| install -o root -g root -m 0755 portmap /tmp/sstate_testing/tmp/work/armv5te-poky-linux-gnueabi/portmap-6.0-r7/image/sbin
| install: cannot change ownership of `/tmp/sstate_testing/tmp/work/armv5te-poky-linux-gnueabi/portmap-6.0-r7/image/sbin/portmap': Operation not permitted
| make: *** [install] Error 1
| FATAL: oe_runmake failed
| ERROR: Task failed: ('function do_install failed', '/tmp/sstate_testing/tmp/work/armv5te-poky-linux-gnueabi/portmap-6.0-r7/temp/log.do_install.26036')

NOTE: package portmap-6.0-r7: task do_install: Failed

My build host is Fedora 13 with SELinux disabled.

Quoted 4 lines

Query: what sort of machine do you use for this testing? I have a Core-2 quad @2.4GHz with 3GB of RAM and it takes me around 5 hours to make a full test.

Signature · 4 lines
------------------------------------------------------------
Gary Thomas                 |  Consulting for the
MLB Associates              |    Embedded world
------------------------------------------------------------
#7 lore raw
In reply to Gary Thomas
Quoted 3 lines · On Wednesday 08 December 2010 14:41:11 you wrote:

Query: what sort of machine do you use for this testing? I have a Core-2 quad @2.4GHz with 3GB of RAM and it takes me around 5 hours to make a full test.

Well, it depends on what you use as a "full test". For most of my testing I just use poky-image-minimal, although I really ought to be doing poky-image-sato or something a bit more substantial on a regular basis. poky-image-minimal takes about 25 mins on my build machine (a Core i7 870 with 6GB RAM).

Cheers,
Paul

#8 lore raw
Quoted 2 lines · On Wednesday 08 December 2010 15:55:57 Paul Eggleton wrote:

poky-image-minimal takes about 25 mins on my build machine (a Core i7 870 with 6GB RAM).

Actually that is somewhat of an underestimation. "time bitbake poky-image-minimal" tells me it actually takes about 57 minutes.

Cheers,
Paul