[BeagleBoard/Angstrom] Can't Compile the kernel, buildhistory_get_imageinfo error

Hello All,

I’m trying to build linux kernel for Beagleboard using angstrom.
I follow the different tutorial I can found around.
I can compile nano using:
bitbake nano.

However, I cannot compile virtual/kernel.

I always fall in the following error case.

WARNING: /home/florian/oe/setup-scripts/sources/meta-openembedded/meta-oe/recipes-connectivity/gateone/gateone_git.bb: it is recommended to set SYSTEMD_PACKAGES as -systemd
NOTE: angstrom DOES NOT support libiconv because the eglibc provided iconv library is used ETA: 00:00:08
NOTE: angstrom DOES NOT support libiconv because the eglibc provided iconv library is used
NOTE: Error expanding variable buildhistory_get_imageinfo############################# | ETA: 00:00:04
NOTE: Error expanding variable buildhistory_get_imageinfo
NOTE: Error expanding variable buildhistory_get_imageinfo
ERROR: Failure expanding variable buildhistory_get_imageinfo, expression was # List the files in the image, but exclude date/time etc.

This awk script is somewhat messy, but handles where the size is not printed for device files under pseudo

( cd /home/florian/oe/setup-scripts/build/tmp-angstrom_2010_x-eglibc/work/beagleboard-angstrom-linux-gnueabi/core-image-sato-dev-1.0-r0/rootfs && find . -ls | awk ‘{ if ( $7 ~ /[0-9]/ ) printf “%s %10-s %10-s %10s %s %s %s\n”, $3, $5, $6, $7, $11, $12, $13 ; else printf “%s %10-s %10-s %10s %s %s %s\n”, $3, $5, $6, 0, $10, $11, $12 }’ | sort -k5 > /home/florian/oe/setup-scripts/build/tmp-angstrom_2010_x-eglibc/buildhistory/images/beagleboard/eglibc/core-image-sato-dev/files-in-image.txt )

Record some machine-readable meta-information about the image

echo -n > /home/florian/oe/setup-scripts/build/tmp-angstrom_2010_x-eglibc/buildhistory/images/beagleboard/eglibc/core-image-sato-dev/image-info.txt
cat >> /home/florian/oe/setup-scripts/build/tmp-angstrom_2010_x-eglibc/buildhistory/images/beagleboard/eglibc/core-image-sato-dev/image-info.txt <<END
${@buildhistory_get_imagevars(d)}
END
imagesize=du -ks /home/florian/oe/setup-scripts/build/tmp-angstrom_2010_x-eglibc/work/beagleboard-angstrom-linux-gnueabi/core-image-sato-dev-1.0-r0/rootfs | awk '{ print $1 }'
echo “IMAGESIZE = $imagesize” >> /home/florian/oe/setup-scripts/build/tmp-angstrom_2010_x-eglibc/buildhistory/images/beagleboard/eglibc/core-image-sato-dev/image-info.txt

Add some configuration information

echo “beagleboard: core-image-sato-dev configured for angstrom v2012.03-core” > /home/florian/oe/setup-scripts/build/tmp-angstrom_2010_x-eglibc/buildhistory/images/beagleboard/eglibc/core-image-sato-dev/build-id

cat >> /home/florian/oe/setup-scripts/build/tmp-angstrom_2010_x-eglibc/buildhistory/images/beagleboard/eglibc/core-image-sato-dev/build-id <<END
${@buildhistory_get_layers(d)}
END
which triggered exception OSError: [Errno 12] Cannot allocate memory
ERROR: Command execution failed: Exited with 1

Summary: There were 6 WARNING messages shown.
Summary: There were 2 ERROR messages shown, returning a non-zero exit code.

How can I debug from here?
is the error inside the BB recipies or inside the parser?

thanks for your help.

i have the same problem…

$ bitbake virtual/kernel -c menuconfig


NOTE: Running task 190 of 395 (ID: 204, virtual:native:/home/gia/Desktop/oe/openembedded/recipes/gmp/gmp_5.0.1.bb, do_qa_configure)
ERROR: fork failed: 12 (Cannot allocate memory)

In my case I haven’t enough ram allocated