Poky Build Error with bitbake [solved]

All design tool related questions: compiler, assembler, linker. Embedded programming questions: assembler, C code.

Moderator: nferre

bob_g
Posts: 2
Joined: Tue Feb 11, 2014 2:05 pm

Poky Build Error with bitbake [solved]

Tue Feb 11, 2014 5:02 pm

Hi,

I'm trying to build the build the Yocto/poky build for the sama5d35ek reference platform following the example in the Yocto project quick start and the Linux4sam/pokybuild examples.
linux4sam/bin/view/Linux4SAM/PokyBuild

I'm running under LinuxMint Maya (mate) 64 bit edition in a virtual box environment.

I have got as far as build the core minimal image, but get the following bitbake error.
Any suggestions welcome.

bob@7FM165J ~/poky/build-atmel $ 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_censored, 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)
Last edited by bob_g on Thu Feb 13, 2014 11:51 am, edited 1 time in total.
bob_g
Posts: 2
Joined: Tue Feb 11, 2014 2:05 pm

Re: Poky Build Error with bitbake

Thu Feb 13, 2014 11:49 am

<solved>
The problem is the documentation in linux4sam/bin/view/Linux4SAM/PokyBuild

in the section on which poky version to use subsitute

Code: Select all

git checkout dora-10.0.0.final -b mybranch

Return to “Development Tools”

Who is online

Users browsing this forum: Google [Bot] and 9 guests