All of lore.kernel.org
 help / color / mirror / Atom feed
* Duplicated error messages
@ 2011-06-02 13:50 Gary Thomas
  2011-06-02 14:17 ` Chris Larson
  0 siblings, 1 reply; 4+ messages in thread
From: Gary Thomas @ 2011-06-02 13:50 UTC (permalink / raw)
  To: Poky Project

[-- Attachment #1: Type: text/plain, Size: 1101 bytes --]

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.

-- 
------------------------------------------------------------
Gary Thomas                 |  Consulting for the
MLB Associates              |    Embedded world
------------------------------------------------------------

[-- Attachment #2: log.do_populate_sysroot --]
[-- Type: text/plain, Size: 3492 bytes --]

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' failed

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Duplicated error messages
  2011-06-02 13:50 Duplicated error messages Gary Thomas
@ 2011-06-02 14:17 ` Chris Larson
  2011-06-02 14:22   ` Gary Thomas
  0 siblings, 1 reply; 4+ messages in thread
From: Chris Larson @ 2011-06-02 14:17 UTC (permalink / raw)
  To: Gary Thomas; +Cc: Poky Project

On Thu, Jun 2, 2011 at 6:50 AM, Gary Thomas <gary@mlbassoc.com> wrote:
> 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

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.
-- 
Christopher Larson
clarson at kergoth dot com
Founder - BitBake, OpenEmbedded, OpenZaurus
Maintainer - Tslib
Senior Software Engineer, Mentor Graphics


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Duplicated error messages
  2011-06-02 14:17 ` Chris Larson
@ 2011-06-02 14:22   ` Gary Thomas
  2011-06-02 14:32     ` Chris Larson
  0 siblings, 1 reply; 4+ messages in thread
From: Gary Thomas @ 2011-06-02 14:22 UTC (permalink / raw)
  To: Chris Larson; +Cc: Poky Project

On 06/02/2011 08:17 AM, Chris Larson wrote:
> On Thu, Jun 2, 2011 at 6:50 AM, Gary Thomas<gary@mlbassoc.com>  wrote:
>> 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
>
> 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.

-- 
------------------------------------------------------------
Gary Thomas                 |  Consulting for the
MLB Associates              |    Embedded world
------------------------------------------------------------


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Duplicated error messages
  2011-06-02 14:22   ` Gary Thomas
@ 2011-06-02 14:32     ` Chris Larson
  0 siblings, 0 replies; 4+ messages in thread
From: Chris Larson @ 2011-06-02 14:32 UTC (permalink / raw)
  To: Gary Thomas; +Cc: Poky Project

On Thu, Jun 2, 2011 at 7:22 AM, Gary Thomas <gary@mlbassoc.com> wrote:
>> 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.
-- 
Christopher Larson
clarson at kergoth dot com
Founder - BitBake, OpenEmbedded, OpenZaurus
Maintainer - Tslib
Senior Software Engineer, Mentor Graphics


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2011-06-02 14:32 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-06-02 13:50 Duplicated error messages Gary Thomas
2011-06-02 14:17 ` Chris Larson
2011-06-02 14:22   ` Gary Thomas
2011-06-02 14:32     ` Chris Larson

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.