Skip to contentSkip to conversation

work-shared not being correctly shared

DISCUSSION Phil Blundell 4 participants 6 messages Sep 24, 2012 – Oct 1, 2012

lore
Share & tools
lore
#0 lore raw

Since updating to the latest versions of bitbake and oe-core I'm experiencing some sort of conflict to do with the gcc sources in tmp/work-shared.

What seems to be happening is that all the different recipes which share that source directory are using different stamp values for do_unpack. So, for example, I can do:

$ bitbake -f -c unpack gcc-cross
[ source unpacks ]
$ ls -l tmp-eglibc/stamps/work-shared/gcc-4.7.2-r13.do_unpack*
-rw-rw-r-- 1 pb pb 0 2012-09-24 15:37
tmp-eglibc/stamps/work-shared/gcc-4.7.2-r13.do_unpack.ea6dd89ddae3dcc205848b41ce0251cd
$ bitbake -f -c unpack gcc-cross
[ nothing happens ]
$ bitbake -f -c unpack gcc-cross
[ still nothing happens ]
$ bitbake -f -c unpack gcc-runtime
[ source unpacks again ]
$ ls -l tmp-eglibc/stamps/work-shared/gcc-4.7.2-r13.do_unpack*
-rw-rw-r-- 1 pb pb 0 2012-09-24 15:42
tmp-eglibc/stamps/work-shared/gcc-4.7.2-r13.do_unpack.e677db6d46e8c0c6109b02302aa477d0
$ bitbake -f -c unpack gcc-runtime
[ nothing happens ]

Worse, if I set BB_NUMBER_THREADS to some high number, I seem to end up with multiple competing tasks all trying to unpack in parallel and the build never makes any real forward progress.

Does anybody have any insight into what is going wrong here and how I should debug it?

thanks

p.

#1 lore raw
Quoted 25 lines · Phil Blundell

Since updating to the latest versions of bitbake and oe-core I'm experiencing some sort of conflict to do with the gcc sources in tmp/work-shared.

What seems to be happening is that all the different recipes which share that source directory are using different stamp values for do_unpack. So, for example, I can do:

$ bitbake -f -c unpack gcc-cross
[ source unpacks ]
$ ls -l tmp-eglibc/stamps/work-shared/gcc-4.7.2-r13.do_unpack*
-rw-rw-r-- 1 pb pb 0 2012-09-24 15:37
tmp-eglibc/stamps/work-shared/gcc-4.7.2-r13.do_unpack.ea6dd89ddae3dcc205848b41ce0251cd
$ bitbake -f -c unpack gcc-cross
[ nothing happens ]
$ bitbake -f -c unpack gcc-cross
[ still nothing happens ]
$ bitbake -f -c unpack gcc-runtime
[ source unpacks again ]
$ ls -l tmp-eglibc/stamps/work-shared/gcc-4.7.2-r13.do_unpack*
-rw-rw-r-- 1 pb pb 0 2012-09-24 15:42
tmp-eglibc/stamps/work-shared/gcc-4.7.2-r13.do_unpack.e677db6d46e8c0c6109b02302aa477d0
$ bitbake -f -c unpack gcc-runtime
[ nothing happens ]
Quoted 7 lines

Worse, if I set BB_NUMBER_THREADS to some high number, I seem to end up with multiple competing tasks all trying to unpack in parallel and the build never makes any real forward progress.

Does anybody have any insight into what is going wrong here and how I should debug it?

Yes, I am seeing something similar with do_patch happening twice on the work-shared area, I talked with Richard a bit ago about it, and I am digging into the siginfo files, you can use bitbake-sigdiff to see what sigs are changed causing it unpack twice (or in my case patch twice).

Sau!

Quoted 12 lines

thanks

p.

_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core

#2 lore raw
Quoted 4 lines · Saul Wold

Yes, I am seeing something similar with do_patch happening twice on the work-shared area, I talked with Richard a bit ago about it, and I am digging into the siginfo files, you can use bitbake-sigdiff to see what sigs are changed causing it unpack twice (or in my case patch twice).

Ah, right, it seems to be rm_old_work that's causing the problem. I'll disable that for now and figure out how to fix it later.

Thanks

p.

#3 lore raw
Quoted 8 lines · Phil Blundell
Quoted 4 lines · Saul Wold

Yes, I am seeing something similar with do_patch happening twice on the work-shared area, I talked with Richard a bit ago about it, and I am digging into the siginfo files, you can use bitbake-sigdiff to see what sigs are changed causing it unpack twice (or in my case patch twice).

Ah, right, it seems to be rm_old_work that's causing the problem. I'll disable that for now and figure out how to fix it later.

That was already discussed few weeks ago, you should be able to find it in archive.

Cheers,

Signature · 1 line
Martin 'JaMa' Jansa     jabber: [email protected]
#4 lore raw
Quoted 7 lines · Martin Jansa
Quoted 6 lines · Phil Blundell
Quoted 4 lines · Saul Wold

Yes, I am seeing something similar with do_patch happening twice on the work-shared area, I talked with Richard a bit ago about it, and I am digging into the siginfo files, you can use bitbake-sigdiff to see what sigs are changed causing it unpack twice (or in my case patch twice).

Quoted 5 lines
Quoted 2 lines

Ah, right, it seems to be rm_old_work that's causing the problem. I'll disable that for now and figure out how to fix it later.

That was already discussed few weeks ago, you should be able to find it in archive.

I found this thread:

http://lists.linuxtogo.org/pipermail/openembedded-core/2012-July/026185.html

but there didn't appear to be any clear conclusion about what the right fix for the problem was. Does anybody have any further insight into that?

p.

#5 lore raw
Quoted 14 lines · Phil Blundell
Quoted 7 lines · Martin Jansa
Quoted 6 lines · Phil Blundell
Quoted 4 lines · Saul Wold

Yes, I am seeing something similar with do_patch happening twice on the work-shared area, I talked with Richard a bit ago about it, and I am digging into the siginfo files, you can use bitbake-sigdiff to see what sigs are changed causing it unpack twice (or in my case patch twice).

Quoted 5 lines
Quoted 2 lines

Ah, right, it seems to be rm_old_work that's causing the problem. I'll disable that for now and figure out how to fix it later.

That was already discussed few weeks ago, you should be able to find it in archive.

Quoted 7 lines

I found this thread:

http://lists.linuxtogo.org/pipermail/openembedded-core/2012-July/026185.html

but there didn't appear to be any clear conclusion about what the right fix for the problem was. Does anybody have any further insight into that?

The issue is that rm_old_work references PN in its task definition. gcc's shared work directory assumes it can get the same sstate checksums for fetch/unpack/patch which is broken by:

addtask rm_old_works before do_unpack

The trick would seem to be to change do_unpack for do_configure which is how others worked around it.

Not a perfect fix but equally not annoying enough to lose lots of sleep over.

Cheers,

Richard