All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jack Mitchell <ml@communistcode.co.uk>
To: yocto@yoctoproject.org
Subject: Re: Help diagnosing a build failure involving ncurses, gettext, and eglibc
Date: Thu, 03 Nov 2011 09:36:24 +0000	[thread overview]
Message-ID: <4EB26098.20204@communistcode.co.uk> (raw)
In-Reply-To: <4EB224EB.4040804@linux.intel.com>

On 03/11/2011 05:21, Darren Hart wrote:
>
> On 11/02/2011 10:16 PM, McClintock Matthew-B29882 wrote:
>> On Thu, Nov 3, 2011 at 12:12 AM, Darren Hart<dvhart@linux.intel.com>  wrote:
>>> I came up with the following to ensure I have a log of every bitbake
>>> command I run along with some useful stats. Feel free to use it or flame it:
>>>
>>>
>>> #!/bin/bash
>>> TIMESTAMP=$(date -u "+%Y%m%d%H%M%S")
>>> LOG=$(mktemp --suffix=".log" bb-$TIMESTAMP-XXX)
>>> if [ -z "$LOG" ]; then
>>>         echo "ERROR: failed to create log file"
>>>         exit 1
>>> fi
>>>
>>> (
>>>         echo "Start: $TIMESTAMP"
>>>         echo "========================================"
>>>         /usr/bin/time 2>&1 -v bitbake $@
>>>         echo "========================================"
>>>         echo "End: $(date -u '+%Y%m%d%H%M%S')"
>>> ) | tee $LOG
>>>
>>> echo "Logfile: $LOG"
>> It would be nice if we had this as a selectable option in the bitbake
>> wrapper somehow and it saved off logs to tmp/bitbake/logs/ or
>> something appropriate.
> I was having similar thoughts just after having pressed send :)
>
> Given how annoying it is to not have the log when you forget to capture
> it, I think this might actually make a reasonable default. The important
> bits are of course already recorded in
> tmp/blah/blah/blah/temp/log.blah.PID... but the above serves almost like
> an index into the individual files. I'm all for logging it by default -
> as well as collecting summary stats. I don't know if the above is the
> best way to go about it - but a functional equivalent would be nice.
>
> For all I know something like this already exists and I just haven't
> stumbled upon it yet.
>

I agree, something which actually logs what you are doing and how it was 
done rather than just the output/error logging we have at the moment 
would be a great addition. It would make it much easier to track errors 
and help pin down bugs - especially if you have taken a long winded 
route to get to a particular point.


  reply	other threads:[~2011-11-03  9:36 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-11-03  0:53 Help diagnosing a build failure involving ncurses, gettext, and eglibc Darren Hart
2011-11-03  5:12 ` Darren Hart
2011-11-03  5:16   ` McClintock Matthew-B29882
2011-11-03  5:21     ` Darren Hart
2011-11-03  9:36       ` Jack Mitchell [this message]
2011-11-03 18:47         ` Joshua Lock
2011-11-17 21:40           ` Darren Hart

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=4EB26098.20204@communistcode.co.uk \
    --to=ml@communistcode.co.uk \
    --cc=yocto@yoctoproject.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 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.