http://bugs.openembedded.org/show_bug.cgi?id=2427
Summary: Bitbake Error On first run
Product: BitBake
Version: 1.8.x
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: BitBake
AssignedTo: [email protected]
ReportedBy: [EMAIL PROTECTED]
QAContact: [EMAIL PROTECTED]
Hi I am getting the following error from bitbake 1.8.2:
ERROR: Error in executing:
ERROR: Exception:exceptions.UnboundLocalError Message:local variable 'bb'
referenced before assignment
ERROR: Printing the environment of the function
ERROR: 0001:def __anonfunc():
ERROR: 0002: import exceptions
ERROR: 0003: need_host = bb.data.getVar('COMPATIBLE_HOST', d, 1)
ERROR: 0004: if need_host:
ERROR: 0005: import re
ERROR: 0006: this_host = bb.data.getVar('HOST_SYS', d, 1)
ERROR: 0007: if not re.match(need_host, this_host):
With traceback:
Traceback (most recent call last):
File "/usr/bin/bitbake", line 117, in ?
main()
File "/usr/bin/bitbake", line 113, in main
cooker.cook()
File "/var/lib/python-support/python2.4/bb/cooker.py", line 494, in cook
self.updateCache()
File "/var/lib/python-support/python2.4/bb/cooker.py", line 469, in
updateCach
e
self.parse_bbfiles(filelist, masked, self.myProgressCallback)
File "/var/lib/python-support/python2.4/bb/cooker.py", line 598, in
parse_bbfi
les
def parse_bbfiles(self, filelist, masked, progressCallback = None):
File "/var/lib/python-support/python2.4/bb/cooker.py", line 640, in
parse_bbfi
les
raise
File "/var/lib/python-support/python2.4/bb/cooker.py", line 607, in
parse_bbfi
les
fromCache, skip = self.bb_cache.loadData(f, self.configuration.data)
File "/var/lib/python-support/python2.4/bb/cache.py", line 150, in loadData
bb_data, skipped = self.load_bbfile(fn, cfgData)
File "/var/lib/python-support/python2.4/bb/cache.py", line 371, in
load_bbfile
raise
File "/var/lib/python-support/python2.4/bb/cache.py", line 363, in
load_bbfile
bb_data = parse.handle(bbfile, bb_data) # read .bb data
File "/var/lib/python-support/python2.4/bb/parse/__init__.py", line 71, in
han
dle
return h['handle'](fn, data, include)
File "/var/lib/python-support/python2.4/bb/parse/parse_py/BBHandler.py", line
164, in handle
raise
File "/var/lib/python-support/python2.4/bb/parse/parse_py/BBHandler.py", line
158, in handle
build.exec_func("__anonfunc", d)
File "/var/lib/python-support/python2.4/bb/build.py", line 98, in exec_func
exec_func_python(func, d)
File "/var/lib/python-support/python2.4/bb/build.py", line 117, in
exec_func_p
ython
utils.better_exec(comp,g,tmp, bb.data.getVar('FILE',d,1))
File "/var/lib/python-support/python2.4/bb/utils.py", line 162, in
better_exec
_print_trace( text.split('\n'), line )
File "/var/lib/python-support/python2.4/bb/utils.py", line 108, in
_print_trac
e
bb.msg.error(bb.msg.domain.Util, "Printing the environment of the
function")
File "/var/lib/python-support/python2.4/bb/msg.py", line 108, in error
std_error(msg)
File "/var/lib/python-support/python2.4/bb/msg.py", line 130, in std_error
bb.event.fire(MsgError(msg, None))
File "/var/lib/python-support/python2.4/bb/event.py", line 67, in fire
if tmpHandler(event) == Handled:
File "tmpHandler(e)", line 3, in tmpHandler
It does this on all the bbfiles in the packages directory.
I have attached my local.conf and my BBPATH is :
=>> echo $BBPATH
/home/lindenle/src/open_embedded/build:/home/lindenle/src/open_embedded/org.openembedded.dev
--
Configure bugmail: http://bugs.openembedded.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
Bitbake-dev mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/bitbake-dev