error while doing bitbake nano

I am using Ubuntu 11 with Python 2.7.1

I am following this tutorial
http://www.angstrom-distribution.org/building-angstrom

When I try to build nano using "$bitbake nano" I get this error
message :

----------------------- ERROR MESSAGE -----------------------------
NOTE: Psyco JIT Compiler (http://psyco.sf.net) not available. Install
it to increase performance.
Loading cache: 100% |
###########################################################################|
ETA: 00:00:00
Loaded 1798 entries from dependency cache.
ERROR: Error evaluating '$
{@base_conditional("ONLINE_PACKAGE_MANAGEMENT", "none", "", "$
{PREFERRED_PROVIDER_virtual/update-alternatives}", d)}'
Traceback (most recent call last):
  File "/home/prashant/openembedded/setup-scripts/sources/bitbake/lib/
bb/data_smart.py", line 117, in expandWithRefs
    s = __expand_python_regexp__.sub(varparse.python_sub, s)
  File "/home/prashant/openembedded/setup-scripts/sources/bitbake/lib/
bb/data_smart.py", line 69, in python_sub
    codeobj = compile(code.strip(), self.varname or "<expansion>",
"eval")
  File "DISTRO_UPDATE_ALTERNATIVES", line 1
    base_conditional("ONLINE_PACKAGE_MANAGEMENT", "none", "", "$
{PREFERRED_PROVIDER_virtual/update-alternatives

^
SyntaxError: EOL while scanning string literal

ERROR: Error evaluating ' base-files base-passwd
busybox ${@base_contains("MACHINE_FEATURES", "keyboard",
"keymaps", "", d)} modutils-initscripts netbase $
{DISTRO_UPDATE_ALTERNATIVES} $
{MACHINE_ESSENTIAL_EXTRA_RDEPENDS} '
Traceback (most recent call last):
  File "/home/prashant/openembedded/setup-scripts/sources/bitbake/lib/
bb/data_smart.py", line 116, in expandWithRefs
    s = __expand_var_regexp__.sub(varparse.var_sub, s)
  File "/home/prashant/openembedded/setup-scripts/sources/bitbake/lib/
bb/data_smart.py", line 60, in var_sub
    var = self.d.getVar(key, 1)
  File "/home/prashant/openembedded/setup-scripts/sources/bitbake/lib/
bb/data_smart.py", line 260, in getVar
    return self.expand(value, var)
  File "/home/prashant/openembedded/setup-scripts/sources/bitbake/lib/
bb/data_smart.py", line 132, in expand
    return self.expandWithRefs(s, varname).value
  File "/home/prashant/openembedded/setup-scripts/sources/bitbake/lib/
bb/data_smart.py", line 117, in expandWithRefs
    s = __expand_python_regexp__.sub(varparse.python_sub, s)
  File "DISTRO_UPDATE_ALTERNATIVES", line 1
    base_conditional("ONLINE_PACKAGE_MANAGEMENT", "none", "", "$
{PREFERRED_PROVIDER_virtual/update-alternatives

^
SyntaxError: EOL while scanning string literal

ERROR: Error parsing /home/prashant/openembedded/setup-scripts/sources/
openembedded/recipes/tasks/task-boot.bb: EOL while scanning string
literal (DISTRO_UPDATE_ALTERNATIVES, line 1)
ERROR: Command execution failed: Exited with 1

I am using Ubuntu 11 with Python 2.7.1

I am following this tutorial
http://www.angstrom-distribution.org/building-angstrom

When I try to build nano using "$bitbake nano" I get this error
message :

Looks like the build environment is not set up properly.

Did you run this command before you started bitbake?
   % . ~/.oe/environment-2008
or alternatively
   % MACHINE=beagleboard ./oebb.sh bitbake nano

If this is not it, more data will help:
   * Your build host, e.g. Ubuntu 11.04, etc
   * git version of each of the repositories
     % for i in . sources/*;do echo "$i: " `cd $i;git log | head -1 | awk '{print $2}'`; done
     .: c714eecb0ed532f70cde435c05e420809d59a534
     sources/bitbake: 2d723edf1e695c11f5e1be636450fb351e2ee30e
     sources/openembedded: 072a48632b8f7e0bd3a76b07da14929667f31d64

Dear Gary,

Looks like the build environment is not set up properly.

Did you run this command before you started bitbake?
% . ~/.oe/environment-2008
or alternatively
% MACHINE=beagleboard ./oebb.sh bitbake nano

Yes I did that.

If this is not it, more data will help:
* Your build host, e.g. Ubuntu 11.04, etc

I am using Mint 11 Linux - 32bit version (based on Ubuntu) and using
custom kernel version 3.0.2

* git version of each of the repositories
% for i in . sources/*;do echo "$i: " `cd $i;git log | head -1 | awk
'{print $2}'`; done
.: c714eecb0ed532f70cde435c05e420809d59a534
sources/bitbake: 2d723edf1e695c11f5e1be636450fb351e2ee30e
sources/openembedded: 072a48632b8f7e0bd3a76b07da14929667f31d64

I am using the latest git version.

.: c714eecb0ed532f70cde435c05e420809d59a534
sources/bitbake: 2d723edf1e695c11f5e1be636450fb351e2ee30e
sources/openembedded: 9e9d8ef5eaf8371e44190de73129a1b1a9e791da

Hope this helps.

Regards.

Hi,

In your conf file, if doesn’t exist add this line

SRCPV = “${@bb.fetch.get_srcrev(d)}”

then it should be ok.

Or

You should use bitbake 1.12.0, it is more stable.
Go to the git directory and just write that

git checkout 1.12.0

Good Luck :slight_smile:

2011/8/28 Prashant Shah <pshah.mumbai@gmail.com>

Hi,

I don't see this revision in the tree. Can you send a few of the
recent log entries?
   % git log | head -32

Hi,

Hi,

Hi,