[OE-core] Tell me your build error message annoyances!

Phil Blundell pb at pbcl.net
Thu Jun 9 11:02:10 UTC 2011


On Tue, 2011-05-31 at 15:26 -0700, Scott Garman wrote:
> I'd like to collect some feedback on error messages while building that 
> you find confusing/annoying/unhelpful. I'm going to be working on trying 
> to improve the situation and would like to hear from you about what 
> could be more helpful.

Here's another one which, although perhaps slightly off-topic for your
current effort, still seems to fall into all three of the categories you
mentioned :-)

After I made a typo (mismatched quotes) in one of my recipes, my next
bitbake run printed:

Loading cache: 100% |#####################################################################################################################################################| ETA:  00:00:00
Loaded 1323 entries from dependency cache.
NOTE: Error expanding variable do_configure                                                                                                                               | ETA:  --:--:--
ERROR: Command execution failed: Traceback (most recent call last):#############################                                                                          | ETA:  00:00:00
  File "/home/pb/oe/bitbake/lib/bb/command.py", line 99, in runAsyncCommand
    self.cooker.updateCache()
  File "/home/pb/oe/bitbake/lib/bb/cooker.py", line 871, in updateCache
    if not self.parser.parse_next():
  File "/home/pb/oe/bitbake/lib/bb/cooker.py", line 1120, in parse_next
    self.shutdown(clean=False)
  File "/home/pb/oe/bitbake/lib/bb/cooker.py", line 1102, in shutdown
    bb.codeparser.parser_cache_save(self.cfgdata)
  File "/home/pb/oe/bitbake/lib/bb/codeparser.py", line 77, in parser_cache_save
    data, version = p.load()
EOFError

So, this is (a) confusing, because "EOFError" doesn't yield much
information about the actual cause of the problem; (b) unhelpful, since
it doesn't mention which line of the file (or even which recipe) was to
blame; and (c) annoying, for the usual reasons to do with python
traceback.

Somewhat worse, even after I fixed the typo, any subsequent attempt to
run bitbake would just result in:

Loading cache: 100% |#####################################################################################################################################################| ETA:  00:00:00
Loaded 1323 entries from dependency cache.
Traceback (most recent call last):                                                                                                                                        | ETA:  --:--:--
  File "/usr/lib/python2.6/multiprocessing/util.py", line 235, in _run_finalizers
    finalizer()
  File "/usr/lib/python2.6/multiprocessing/util.py", line 174, in __call__
    res = self._callback(*self._args, **self._kwargs)
  File "/home/pb/oe/bitbake/lib/bb/codeparser.py", line 77, in parser_cache_save
    data, version = p.load()
EOFError

(repeated about 10 times)

I deleted tmp/cache/* and that seemed to fix the problem.

p.






More information about the Openembedded-core mailing list