Openembedded Devel Discussions
 help / color / mirror / Atom feed
From: Denys Dmytriyenko <denis@denix.org>
To: openembedded-devel@lists.openembedded.org
Subject: Re: [PATCH] bitbake.conf: don't append MACHINE_OVERRIDES to	OVERRIDES when it's empty
Date: Tue, 19 Oct 2010 15:24:58 -0400	[thread overview]
Message-ID: <20101019192458.GB6202@denix.org> (raw)
In-Reply-To: <131E5DFBE7373E4C8D813795A6AA7F0803110B3140@dlee06.ent.ti.com>

On Tue, Oct 19, 2010 at 02:18:25PM -0500, Maupin, Chase wrote:
> > > I saw this issue in my overlay of having a "::" in my OVERRIDES which
> > > caused my parsing to fail in angstrom.inc.  Applying this fix from
> > Martin
> > > resolves the parsing issue.  My OVERRIDES appear to be in the correct
> > order
> > > with this change:
> > 
> > Can you explain this?  "caused my parsing to fail" is not very useful
> > information.  What exactly failed?
> 
> Chris,
> 
> Sorry, I thought this was an understood issue.  I have put the error output 
> I got below.  Basically, when I got to line 509 of data.py the variables had 
> the following values:
> 
> vars = set(['__functions_', '_', '__functions__'])
> 
> var = '__functions__'
> 
> overrides = ['pn-angstrom', 'fail-fast', 'build-linux', 'arm', 'INVALID', 'angstrom-2008.1', '', 'am37x-evm', 'local']
>  
> o = ''
> 
> OVERRIDES = 'pn-angstrom:fail-fast:build-linux:arm:INVALID:angstrom-2008.1::am37x-evm:local'
> 
> The current override being evaluated was the '' one.
> 
> The line being evaluated in my overlay was USERDISTRO := "${DISTRO}" in my 
> copy of angstrom.inc

Chris,

FYI, the below "RuntimeError: Set changed size during iteration" exception 
happens in bitbake 1.8.18 but not the 1.10/mainline.

-- 
Denys

> The output from my build was:
> 
> a0271661@sdit-build01:~/projects/arago-multi-build$ bitbake helloworldTraceback (most recent call last):
>   File "/home/a0271661/projects/arago-multi-build/arago-bitbake/bin/bitbake", line 143, in <module>
>     main()
>   File "/home/a0271661/projects/arago-multi-build/arago-bitbake/bin/bitbake", line 123, in main
>     cooker.parseConfiguration()
>   File "/home/a0271661/projects/arago-multi-build/arago-bitbake/lib/bb/cooker.py", line 68, in parseConfiguration
>     self.parseConfigurationFile( os.path.join( "conf", "bitbake.conf" ) )
>   File "/home/a0271661/projects/arago-multi-build/arago-bitbake/lib/bb/cooker.py", line 390, in parseConfigurationFile
>     self.configuration.data = bb.parse.handle( afile, self.configuration.data )
>   File "/home/a0271661/projects/arago-multi-build/arago-bitbake/lib/bb/parse/__init__.py", line 75, in handle
>     return h['handle'](fn, data, include)
>   File "/home/a0271661/projects/arago-multi-build/arago-bitbake/lib/bb/parse/parse_py/ConfHandler.py", line 167, in handle
>     feeder(lineno, s, fn, data)
>   File "/home/a0271661/projects/arago-multi-build/arago-bitbake/lib/bb/parse/parse_py/ConfHandler.py", line 215, in feeder
>     include(fn, s, data, False)
>   File "/home/a0271661/projects/arago-multi-build/arago-bitbake/lib/bb/parse/parse_py/ConfHandler.py", line 114, in include
>     ret = handle(fn, data, True)
>   File "/home/a0271661/projects/arago-multi-build/arago-bitbake/lib/bb/parse/__init__.py", line 75, in handle
>     return h['handle'](fn, data, include)
>   File "/home/a0271661/projects/arago-multi-build/arago-bitbake/lib/bb/parse/parse_py/ConfHandler.py", line 167, in handle
>     feeder(lineno, s, fn, data)
>   File "/home/a0271661/projects/arago-multi-build/arago-bitbake/lib/bb/parse/parse_py/ConfHandler.py", line 221, in feeder
>     include(fn, s, data, "include required")
>   File "/home/a0271661/projects/arago-multi-build/arago-bitbake/lib/bb/parse/parse_py/ConfHandler.py", line 114, in include
>     ret = handle(fn, data, True)
>   File "/home/a0271661/projects/arago-multi-build/arago-bitbake/lib/bb/parse/__init__.py", line 75, in handle
>     return h['handle'](fn, data, include)
>   File "/home/a0271661/projects/arago-multi-build/arago-bitbake/lib/bb/parse/parse_py/BBHandler.py", line 175, in handle
>     feeder(lineno, s, fn, base_name, d)
>   File "/home/a0271661/projects/arago-multi-build/arago-bitbake/lib/bb/parse/parse_py/BBHandler.py", line 381, in feeder
>     return ConfHandler.feeder(lineno, s, fn, d)
>   File "/home/a0271661/projects/arago-multi-build/arago-bitbake/lib/bb/parse/parse_py/ConfHandler.py", line 192, in feeder
>     bb.data.update_data(e)
>   File "/home/a0271661/projects/arago-multi-build/arago-bitbake/lib/bb/data.py", line 509, in update_data
>     for var in vars:
> RuntimeError: Set changed size during iteration



  reply	other threads:[~2010-10-19 19:26 UTC|newest]

Thread overview: 36+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-10-15  3:36 [PATCH] Reverse the order of OVERRIDES Chris Larson
2010-10-15  4:07 ` Khem Raj
2010-10-15  6:56   ` Frans Meulenbroeks
2010-10-15 14:18   ` Tom Rini
2010-10-15 10:42 ` Koen Kooi
2010-10-15 14:12 ` Maupin, Chase
2010-10-15 15:17   ` Chris Larson
2010-10-15 15:29     ` Maupin, Chase
2010-10-15 15:41 ` [PATCH (v2)] " Chris Larson
2010-10-15 16:02   ` Maupin, Chase
2010-10-15 17:20   ` Khem Raj
2010-10-15 19:37   ` Koen Kooi
2010-10-15 19:44     ` Chris Larson
2010-11-10 14:26       ` Richard Purdie
2010-11-10 16:22         ` Otavio Salvador
2010-11-10 16:27           ` Tom Rini
2010-11-10 16:29         ` Tom Rini
2010-12-01 20:26           ` Maupin, Chase
2010-12-01 21:29             ` Chris Larson
2010-10-16 18:04 ` [PATCH] " Martin Jansa
2010-10-16 18:24   ` Chris Larson
2010-10-16 18:50     ` Martin Jansa
2010-10-16 19:35       ` Martin Jansa
2010-10-16 19:54         ` Martin Jansa
2010-10-16 19:24     ` [PATCH] bitbake.conf: don't append MACHINE_OVERRIDES to OVERRIDES when it's empty Martin Jansa
2010-10-19 19:05       ` Maupin, Chase
2010-10-19 19:09         ` Chris Larson
2010-10-19 19:18           ` Maupin, Chase
2010-10-19 19:24             ` Denys Dmytriyenko [this message]
2010-10-20 23:29               ` Denys Dmytriyenko
2010-10-20 23:34                 ` Chris Larson
2010-10-21  2:45                   ` Denys Dmytriyenko
2010-10-21  6:27                 ` Martin Jansa
2010-10-21 14:04                   ` Chris Larson
2010-10-19 19:24           ` Maupin, Chase
2010-10-16 19:32     ` [PATCH] bitbake.conf: reverse OVERRIDES order in FILESPATH definition Martin Jansa

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=20101019192458.GB6202@denix.org \
    --to=denis@denix.org \
    --cc=openembedded-devel@lists.openembedded.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox