Duplicated error messages
I just ran 'bitbake core-image-minimal' on a new machine, running a fresh install of Fedora 15. I got some errors at the start about missing pieces, but the build carried on:
ERROR: Poky's config sanity checker detected a potential misconfiguration.
Either fix the cause of this error or at your own risk disable the checker (see sanity.conf). Following is the list of potential problems / advisories:
Please install following missing utilities: help2man,texi2html,hg,chrpath
Fair enough, I'll install those. As I said, the build carried on, but failed with a pretty useless error, log attached. Notice how every line is duplicated, plus there is not enough information to tell what file caused the error of 'No such file or directory'
Note: this was on Poky master 484c4e73245c93a08413cd204513bf5c5698b994, updated this morning.
Signature · 4 lines
------------------------------------------------------------ Gary Thomas | Consulting for the MLB Associates | Embedded world ------------------------------------------------------------
ERROR: Error executing a python function in /home/local/my-poky/meta/recipes-devtools/quilt/quilt-native_0.48.bb:
OSError: [Errno 2] No such file or directory
ERROR: Error executing a python function in /home/local/my-poky/meta/recipes-devtools/quilt/quilt-native_0.48.bb:
OSError: [Errno 2] No such file or directory
ERROR: The stack trace of python calls that resulted in this exception/failure was:
ERROR: The stack trace of python calls that resulted in this exception/failure was:
ERROR: File "relocatable_binaries_preprocess", line 6, in <module>
ERROR: File "relocatable_binaries_preprocess", line 6, in <module>
ERROR:
ERROR:
ERROR: File "relocatable_binaries_preprocess", line 3, in relocatable_binaries_preprocess
ERROR: File "relocatable_binaries_preprocess", line 3, in relocatable_binaries_preprocess
ERROR:
ERROR:
ERROR: File "relocatable.bbclass", line 7, in rpath_replace
ERROR: File "relocatable.bbclass", line 7, in rpath_replace
ERROR:
ERROR:
ERROR: File "relocatable.bbclass", line 36, in process_dir
ERROR: File "relocatable.bbclass", line 36, in process_dir
ERROR:
ERROR:
ERROR: File "/usr/lib/python2.7/subprocess.py", line 672, in __init__
ERROR: File "/usr/lib/python2.7/subprocess.py", line 672, in __init__
ERROR: errread, errwrite)
ERROR: errread, errwrite)
ERROR:
ERROR:
ERROR: File "/usr/lib/python2.7/subprocess.py", line 1202, in _execute_child
ERROR: File "/usr/lib/python2.7/subprocess.py", line 1202, in _execute_child
ERROR: raise child_exception
ERROR: raise child_exception
ERROR:
ERROR:
ERROR: The code that was being executed was:
ERROR: The code that was being executed was:
ERROR: 0002:def relocatable_binaries_preprocess(d):
ERROR: 0002:def relocatable_binaries_preprocess(d):
ERROR: 0003: rpath_replace(bb.data.expand('/home/local/p60_test/tmp-eglibc/work/i686-linux/quilt-native-0.48-r0/sysroot-destdir/', d), d)
ERROR: 0003: rpath_replace(bb.data.expand('/home/local/p60_test/tmp-eglibc/work/i686-linux/quilt-native-0.48-r0/sysroot-destdir/', d), d)
ERROR: 0004:
ERROR: 0004:
ERROR: 0005:
ERROR: 0005:
ERROR: *** 0006:relocatable_binaries_preprocess(d)
ERROR: *** 0006:relocatable_binaries_preprocess(d)
ERROR: 0007:
ERROR: 0007:
ERROR: (file: 'relocatable_binaries_preprocess', lineno: 6, function: <module>)
ERROR: (file: 'relocatable_binaries_preprocess', lineno: 6, function: <module>)
ERROR: 0001:
ERROR: 0001:
ERROR: 0002:def relocatable_binaries_preprocess(d):
ERROR: 0002:def relocatable_binaries_preprocess(d):
ERROR: *** 0003: rpath_replace(bb.data.expand('/home/local/p60_test/tmp-eglibc/work/i686-linux/quilt-native-0.48-r0/sysroot-destdir/', d), d)
ERROR: *** 0003: rpath_replace(bb.data.expand('/home/local/p60_test/tmp-eglibc/work/i686-linux/quilt-native-0.48-r0/sysroot-destdir/', d), d)
ERROR: 0004:
ERROR: 0004:
ERROR: 0005:
ERROR: 0005:
ERROR: 0006:relocatable_binaries_preprocess(d)
ERROR: 0006:relocatable_binaries_preprocess(d)
ERROR: 0007:
ERROR: 0007:
ERROR: (file: 'relocatable_binaries_preprocess', lineno: 3, function: relocatable_binaries_preprocess)
ERROR: (file: 'relocatable_binaries_preprocess', lineno: 3, function: relocatable_binaries_preprocess)
ERROR: Function 'relocatable_binaries_preprocess' failed
ERROR: Function 'relocatable_binaries_preprocess' failedQuoted 9 lines · Gary Thomas
I just ran 'bitbake core-image-minimal' on a new machine, running a fresh install of
Fedora 15. I got some errors at the start about missing pieces, but the build carried on:
ERROR: Poky's config sanity checker detected a potential misconfiguration. Either fix the cause of this error or at your own risk disable the checker (see sanity.conf).
Following is the list of potential problems / advisories:
Quoted 3 lines
Please install following missing utilities: help2man,texi2html,hg,chrpath
Fair enough, I'll install those. As I said, the build carried on, but
This is my fault -- at least, the continuing on is. As a part of working on improving the exception handling in bitbake, the behavior of exceptions in event handlers was changed. We should likely change it back for the SystemExit case, or add a more explicit method for event handlers to communicate with bitbake proper. Sorry about that.
Signature · 5 lines
Christopher Larson clarson at kergoth dot com Founder - BitBake, OpenEmbedded, OpenZaurus Maintainer - Tslib Senior Software Engineer, Mentor Graphics
Quoted 12 lines · Chris Larson
Quoted 11 lines · Gary Thomas
I just ran 'bitbake core-image-minimal' on a new machine, running a fresh install of
Fedora 15. I got some errors at the start about missing pieces, but the build carried on:
ERROR: Poky's config sanity checker detected a potential misconfiguration.
Either fix the cause of this error or at your own risk disable the
checker (see sanity.conf).
Following is the list of potential problems / advisories:Please install following missing utilities: help2man,texi2html,hg,chrpath
Quoted 7 lines
Quoted 1 line
Fair enough, I'll install those. As I said, the build carried on, but
This is my fault -- at least, the continuing on is. As a part of working on improving the exception handling in bitbake, the behavior of exceptions in event handlers was changed. We should likely change it back for the SystemExit case, or add a more explicit method for event handlers to communicate with bitbake proper. Sorry about that.
Thanks. Even if this is not the desired behaviour (bitbake used to just quit at the start when this happened), it is pointing out two other problems; the duplicated error messages (I'd look for why this happens, but I really wouldn't know where to start) and the less than helpful Python traceback.
Signature · 4 lines
------------------------------------------------------------ Gary Thomas | Consulting for the MLB Associates | Embedded world ------------------------------------------------------------
Quoted 11 lines · Gary Thomas
Quoted 5 lines
This is my fault -- at least, the continuing on is. As a part of working on improving the exception handling in bitbake, the behavior of exceptions in event handlers was changed. We should likely change it back for the SystemExit case, or add a more explicit method for event handlers to communicate with bitbake proper. Sorry about that.
Thanks. Even if this is not the desired behaviour (bitbake used to just quit
at the start when this happened), it is pointing out two other problems; the duplicated error messages (I'd look for why this happens, but I really wouldn't know where to start) and the less than helpful Python traceback.
Indeed, regardless those should go on the ever growing list of ugly error message issues :) I suspect at least some of the error duplications which have been reported are caused by the fact that python tasks both emit their messages directly to the user (not the case for shell tasks, obviously), and to their log file, and the log file is then shown to the user on failure. For the python case, either the task shouldn't be able to output directly to the user, or we shouldn't show their log on failure, I suspect.
Signature · 5 lines
Christopher Larson clarson at kergoth dot com Founder - BitBake, OpenEmbedded, OpenZaurus Maintainer - Tslib Senior Software Engineer, Mentor Graphics