* BitBake errors when building core-image-minimal
@ 2013-09-04 12:21 Thomas Page
2013-09-04 16:39 ` JC
2013-09-04 16:51 ` Gary Thomas
0 siblings, 2 replies; 3+ messages in thread
From: Thomas Page @ 2013-09-04 12:21 UTC (permalink / raw)
To: yocto
Hi
Having installed the Yocto required packages and created a git branch of
the project in a new installation of Ubuntu 12.04 LTS I have tried
building the core-image-minimal image but continually have the process
fail. Having gone through the installation process several times not I
simply cannot seem to get this solved.
i must add that after a fresh install of the yocto project and set up of
my host i find that Bitbake will not execute on first attempt and must
be installed. I do not remember this having to be done in my previous
use of the Yocto Project to successfully build an image.
The error i get is as follows:
tpage@ubuntu:~/poky/batmel$ bitbake core-image-minimal
Traceback (most recent call last):
File "/usr/bin/bitbake", line 234, in <module>
ret = main()
File "/usr/bin/bitbake", line 197, in main
server = ProcessServer(server_channel, event_queue, configuration)
File "/usr/lib/pymodules/python2.7/bb/server/process.py", line 78, in
__init__
self.cooker = BBCooker(configuration, self.register_idle_function)
File "/usr/lib/pymodules/python2.7/bb/cooker.py", line 76, in __init__
self.parseConfigurationFiles(self.configuration.file)
File "/usr/lib/pymodules/python2.7/bb/cooker.py", line 510, in
parseConfigurationFiles
data = _parse(os.path.join("conf", "bitbake.conf"), data)
TypeError: getVar() takes exactly 3 arguments (2 given)
ERROR: Error evaluating
'${TARGET_OS}:${TRANSLATED_TARGET_ARCH}:build-${BUILD_OS}:pn-${PN}:${MACHINEOVERRIDES}:${DISTROOVERRIDES}:${CLASSOVERRIDE}:forcevariable'
Traceback (most recent call last):
File "/usr/lib/pymodules/python2.7/bb/data_smart.py", line 116, in
expandWithRefs
s = __expand_var_regexp__.sub(varparse.var_sub, s)
File "/usr/lib/pymodules/python2.7/bb/data_smart.py", line 60, in var_sub
var = self.d.getVar(key, 1)
File "/usr/lib/pymodules/python2.7/bb/data_smart.py", line 260, in getVar
return self.expand(value, var)
File "/usr/lib/pymodules/python2.7/bb/data_smart.py", line 132, in expand
return self.expandWithRefs(s, varname).value
File "/usr/lib/pymodules/python2.7/bb/data_smart.py", line 117, in
expandWithRefs
s = __expand_python_regexp__.sub(varparse.python_sub, s)
TypeError: getVar() takes exactly 3 arguments (2 given)
ERROR: Error evaluating
'${@bb.parse.BBHandler.vars_from_file(d.getVar('FILE'),d)[0] or
'defaultpkgname'}'
Traceback (most recent call last):
File "/usr/lib/pymodules/python2.7/bb/data_smart.py", line 117, in
expandWithRefs
s = __expand_python_regexp__.sub(varparse.python_sub, s)
File "/usr/lib/pymodules/python2.7/bb/data_smart.py", line 76, in
python_sub
value = utils.better_eval(codeobj, DataContext(self.d))
File "/usr/lib/pymodules/python2.7/bb/utils.py", line 387, in better_eval
return eval(source, _context, locals)
File "PN", line 1, in <module>
TypeError: getVar() takes exactly 3 arguments (2 given)
Any feedback will be appreciated even as to where I should look for the
problem
Thomas
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: BitBake errors when building core-image-minimal
2013-09-04 12:21 BitBake errors when building core-image-minimal Thomas Page
@ 2013-09-04 16:39 ` JC
2013-09-04 16:51 ` Gary Thomas
1 sibling, 0 replies; 3+ messages in thread
From: JC @ 2013-09-04 16:39 UTC (permalink / raw)
To: yocto
On 04/09/2013 14:21, Thomas Page wrote:
> Hi
>
> Having installed the Yocto required packages and created a git branch
> of the project in a new installation of Ubuntu 12.04 LTS I have tried
> building the core-image-minimal image but continually have the process
> fail. Having gone through the installation process several times not I
> simply cannot seem to get this solved.
>
> i must add that after a fresh install of the yocto project and set up
> of my host i find that Bitbake will not execute on first attempt and
> must be installed. I do not remember this having to be done in my
> previous use of the Yocto Project to successfully build an image.
>
> The error i get is as follows:
>
> tpage@ubuntu:~/poky/batmel$ bitbake core-image-minimal
> Traceback (most recent call last):
> File "/usr/bin/bitbake", line 234, in <module>
> ret = main()
> File "/usr/bin/bitbake", line 197, in main
> server = ProcessServer(server_channel, event_queue, configuration)
> File "/usr/lib/pymodules/python2.7/bb/server/process.py", line 78,
> in __init__
> self.cooker = BBCooker(configuration, self.register_idle_function)
> File "/usr/lib/pymodules/python2.7/bb/cooker.py", line 76, in __init__
> self.parseConfigurationFiles(self.configuration.file)
> File "/usr/lib/pymodules/python2.7/bb/cooker.py", line 510, in
> parseConfigurationFiles
> data = _parse(os.path.join("conf", "bitbake.conf"), data)
> TypeError: getVar() takes exactly 3 arguments (2 given)
> ERROR: Error evaluating
> '${TARGET_OS}:${TRANSLATED_TARGET_ARCH}:build-${BUILD_OS}:pn-${PN}:${MACHINEOVERRIDES}:${DISTROOVERRIDES}:${CLASSOVERRIDE}:forcevariable'
> Traceback (most recent call last):
> File "/usr/lib/pymodules/python2.7/bb/data_smart.py", line 116, in
> expandWithRefs
> s = __expand_var_regexp__.sub(varparse.var_sub, s)
> File "/usr/lib/pymodules/python2.7/bb/data_smart.py", line 60, in
> var_sub
> var = self.d.getVar(key, 1)
> File "/usr/lib/pymodules/python2.7/bb/data_smart.py", line 260, in
> getVar
> return self.expand(value, var)
> File "/usr/lib/pymodules/python2.7/bb/data_smart.py", line 132, in
> expand
> return self.expandWithRefs(s, varname).value
> File "/usr/lib/pymodules/python2.7/bb/data_smart.py", line 117, in
> expandWithRefs
> s = __expand_python_regexp__.sub(varparse.python_sub, s)
> TypeError: getVar() takes exactly 3 arguments (2 given)
>
> ERROR: Error evaluating
> '${@bb.parse.BBHandler.vars_from_file(d.getVar('FILE'),d)[0] or
> 'defaultpkgname'}'
> Traceback (most recent call last):
> File "/usr/lib/pymodules/python2.7/bb/data_smart.py", line 117, in
> expandWithRefs
> s = __expand_python_regexp__.sub(varparse.python_sub, s)
> File "/usr/lib/pymodules/python2.7/bb/data_smart.py", line 76, in
> python_sub
> value = utils.better_eval(codeobj, DataContext(self.d))
> File "/usr/lib/pymodules/python2.7/bb/utils.py", line 387, in
> better_eval
> return eval(source, _context, locals)
> File "PN", line 1, in <module>
> TypeError: getVar() takes exactly 3 arguments (2 given)
>
> Any feedback will be appreciated even as to where I should look for
> the problem
>
Hi Thomas
Make sure you installed all the required packages in ubuntu.
Try running with -DDD to have additional feedback or input to the list
Regards
Jay
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: BitBake errors when building core-image-minimal
2013-09-04 12:21 BitBake errors when building core-image-minimal Thomas Page
2013-09-04 16:39 ` JC
@ 2013-09-04 16:51 ` Gary Thomas
1 sibling, 0 replies; 3+ messages in thread
From: Gary Thomas @ 2013-09-04 16:51 UTC (permalink / raw)
To: yocto
On 2013-09-04 06:21, Thomas Page wrote:
> Hi
>
> Having installed the Yocto required packages and created a git branch of the project in a new installation of Ubuntu 12.04 LTS I have tried building the core-image-minimal image
> but continually have the process fail. Having gone through the installation process several times not I simply cannot seem to get this solved.
>
> i must add that after a fresh install of the yocto project and set up of my host i find that Bitbake will not execute on first attempt and must be installed. I do not remember this
> having to be done in my previous use of the Yocto Project to successfully build an image.
>
> The error i get is as follows:
>
> tpage@ubuntu:~/poky/batmel$ bitbake core-image-minimal
> Traceback (most recent call last):
> File "/usr/bin/bitbake", line 234, in <module>
> ret = main()
> File "/usr/bin/bitbake", line 197, in main
> server = ProcessServer(server_channel, event_queue, configuration)
> File "/usr/lib/pymodules/python2.7/bb/server/process.py", line 78, in __init__
> self.cooker = BBCooker(configuration, self.register_idle_function)
> File "/usr/lib/pymodules/python2.7/bb/cooker.py", line 76, in __init__
> self.parseConfigurationFiles(self.configuration.file)
> File "/usr/lib/pymodules/python2.7/bb/cooker.py", line 510, in parseConfigurationFiles
> data = _parse(os.path.join("conf", "bitbake.conf"), data)
> TypeError: getVar() takes exactly 3 arguments (2 given)
> ERROR: Error evaluating '${TARGET_OS}:${TRANSLATED_TARGET_ARCH}:build-${BUILD_OS}:pn-${PN}:${MACHINEOVERRIDES}:${DISTROOVERRIDES}:${CLASSOVERRIDE}:forcevariable'
> Traceback (most recent call last):
> File "/usr/lib/pymodules/python2.7/bb/data_smart.py", line 116, in expandWithRefs
> s = __expand_var_regexp__.sub(varparse.var_sub, s)
> File "/usr/lib/pymodules/python2.7/bb/data_smart.py", line 60, in var_sub
> var = self.d.getVar(key, 1)
> File "/usr/lib/pymodules/python2.7/bb/data_smart.py", line 260, in getVar
> return self.expand(value, var)
> File "/usr/lib/pymodules/python2.7/bb/data_smart.py", line 132, in expand
> return self.expandWithRefs(s, varname).value
> File "/usr/lib/pymodules/python2.7/bb/data_smart.py", line 117, in expandWithRefs
> s = __expand_python_regexp__.sub(varparse.python_sub, s)
> TypeError: getVar() takes exactly 3 arguments (2 given)
>
> ERROR: Error evaluating '${@bb.parse.BBHandler.vars_from_file(d.getVar('FILE'),d)[0] or 'defaultpkgname'}'
> Traceback (most recent call last):
> File "/usr/lib/pymodules/python2.7/bb/data_smart.py", line 117, in expandWithRefs
> s = __expand_python_regexp__.sub(varparse.python_sub, s)
> File "/usr/lib/pymodules/python2.7/bb/data_smart.py", line 76, in python_sub
> value = utils.better_eval(codeobj, DataContext(self.d))
> File "/usr/lib/pymodules/python2.7/bb/utils.py", line 387, in better_eval
> return eval(source, _context, locals)
> File "PN", line 1, in <module>
> TypeError: getVar() takes exactly 3 arguments (2 given)
>
> Any feedback will be appreciated even as to where I should look for the problem
How did you start this project? It looks to me like your bitbake/Yocto
environment hasn't been set up completely.
These steps can get you started:
% . <YOCTO>/oe-init-build-env my_yocto_build
This will create a build tree called `pwd`/my_yocto_build. You can put the name
of any directory here. After the above step, your shell will change to that directory.
Now, edit 'conf/local.conf' to match your needs. Then you can build your image:
% bitbake core-image-minimal
Please try exactly these steps and see if it helps.
--
------------------------------------------------------------
Gary Thomas | Consulting for the
MLB Associates | Embedded world
------------------------------------------------------------
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2013-09-04 16:51 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-09-04 12:21 BitBake errors when building core-image-minimal Thomas Page
2013-09-04 16:39 ` JC
2013-09-04 16:51 ` Gary Thomas
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.