[oe] [PATCH] icecc: base fix for cross and native builds

Roman I Khimov roman at khimov.ru
Fri Feb 13 06:52:46 UTC 2009


Koen Kooi:
> On 12-02-09 16:28, Leon Woestenberg wrote:
> > On Thu, Feb 12, 2009 at 3:27 PM, Roman I Khimov<roman at khimov.ru>  wrote:
> >> There are severe problems with icecc builds currently in OE.
> >> Cross-compiler tarball created wrong, PATH set incorrectly, etc.
> >
> > Excellent!
> >
> > It's probably a little-used class, but if we get it to work more
> > robustly, we can make more noise about it.
> >
> > I will try to do some tests here over the next few weeks with your
> > patch, time permitting.
>
> Once icecc works we should have a chat with the suse buildservice
> people. PARALLEL_MAKE = "-j256", here we come :)

I'm running it with "-j14" there and combined with bitbake parallel task 
execution it just rocks, the only slowdowns are blacklisted packages like 
gcc and glibc.

So, if anyone cares enough to commit? ;)

The most severe problem left after this patch is parallel tarball creation, 
which I'm not sure how to fix better. An obvious solution is some kind of 
file lock but from what I see, the best way to do it is via pathutils 
module which is not standard.

Another approach could be just reducing the race window, fixing 
create-icecc-env.sh to write to temporary file and then move it to its 
place. Maybe that would be enough.

Another approach could be some kind of IPC locks between running threads, 
but I don't know enough on how bitbake runs its parallel tasks and whether 
it's possible or not.

Another approach could be moving tarball creation to packages and then use 
standard dependency features of bitbake, making native things depend on 
native tarball and cross on cross. Not sure how to do it in details.

-- 
                            Roman
 http://roman.khimov.ru
mailto: roman at khimov.ru
gpg --keyserver hkp://subkeys.pgp.net --recv-keys 0xE5E055C3
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.openembedded.org/pipermail/openembedded-devel/attachments/20090213/967a6e89/attachment-0002.sig>


More information about the Openembedded-devel mailing list