[yocto] Help diagnosing a build failure involving ncurses, gettext, and eglibc

Darren Hart dvhart at linux.intel.com
Wed Nov 2 22:12:48 PDT 2011


On 11/02/2011 05:53 PM, Darren Hart wrote:
...
> I tried to capture my complete log, but screen froze on me while trying
> to paste the buffer into a log :( So besides writing a bitbake wrapper
> to ensure I record ALL my bitbake sessions for reference,

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"


-- 
Darren Hart
Intel Open Source Technology Center
Yocto Project - Linux Kernel



More information about the yocto mailing list