Skip to contentSkip to conversation

make explosion while building attr

DISCUSSION Cliff Brake 2 participants 4 messages Feb 25, 2010 – May 8, 2010

lore
Share & tools
lore
#1 lore raw

For the record, this is caused by setting the TOPDIR env variable manually, and white listing TOPDIR for bitbake. I modified the recipes to clear this variable:

http://cgit.openembedded.org/cgit.cgi/openembedded/commit/?id=b9788810a898534c6bf417c84b1babeff07ea508
http://cgit.openembedded.org/cgit.cgi/openembedded/commit/?id=531a874848130d8a746d2337f62ed2358f43f086

It would be really nice to be able to rename TOPDIR in bitbake to something like BB_TOPDIR, so we don't run into this problem. Perhaps it is not necessary to whitelist TOPDIR to get BB to use it -- guess I need to try that as well.

Thanks,
Cliff

Quoted 16 lines · Cliff Brake

Has anyone seen anything like this:

http://bec-systems.com/oe/attr_make_explosion.txt

setup:
org.openembedded.dev
beagleboard machine
64-bit Ubuntu workstation
PARALLEL_MAKE = "-j 4"
BB_NUMBER_THREADS = "4"

It runs my workstation out of memory and is downright annoying!

Thanks,
Cliff

#2 lore raw
Quoted 4 lines · Cliff Brake

It would be really nice to be able to rename TOPDIR in bitbake to something like BB_TOPDIR, so we don't run into this problem.  Perhaps it is not necessary to whitelist TOPDIR to get BB to use it -- guess I need to try that as well.

It looks like the TOPDIR env variable does not need to be white-listed in order for BB to use it, so that is the correct solution.

Cliff

#3 lore raw
Quoted 8 lines · Cliff Brake
Quoted 4 lines · Cliff Brake

It would be really nice to be able to rename TOPDIR in bitbake to something like BB_TOPDIR, so we don't run into this problem. Perhaps it is not necessary to whitelist TOPDIR to get BB to use it -- guess I need to try that as well.

It looks like the TOPDIR env variable does not need to be white-listed in order for BB to use it, so that is the correct solution.

The issue is, all whitelisted variables get re-exported (flagged as 'export' in the metadata). So a variable which already exists in the metadata and is *not* exported gets forcibly exported if you whitelist it. I've gotten bit by this in the past, and I suspect we'll want to revert the bitbake change to re-export whitelisted variables.

Signature · 5 lines
Christopher Larson
clarson at kergoth dot com
Founder - BitBake, OpenEmbedded, OpenZaurus
Maintainer - Tslib
Senior Software Engineer, Mentor Graphics