Hi,
I have downloaded source code from freescale yocto project.while doing bitbake meta-toolchain i got this error.how to fix it?
susan@susan-VirtualBox:/fsl-release-bsp/build$ bitbake meta-toolchain
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)
Hello Susangrace Rapaka,
Would you please provide more details on whether you’re using the BSP Release or the Community BSP?
And also how are you setting up the bitbake environment? I would say there may be a problem with the configuration. Perhaps your machine is not setup up correctly on the local.conf file.
thank you,
Iam using fsl-bsp-release.kernel 3.10.i followed Freescale_Yocto_Project_User's_Guide.pdf
after downloading,
$ source setup-environment <build_dir>
$ MACHINE=imx6slevk source fsl-setup-release.sh -b <build dir> -e x11
i did bitbake core-image-minimal.i got some problems while doing this.i resolved and then it's completed successfully.
i flashed this image on sd card and my board booting is over.
after,i did bitbake meta-toolchain....then, i got this error.
Hello Susangrace Rapaka,
I'm curious on what problems you had when baking core-image-minimal. You should be able to build with no modifications as long as all the required packages are installed. I'm guessing maybe there were some packages missing.
Before doing a repo sync and then a cleanall to get to the starting state, please start a new terminal session and initialize the build using only the fsl-setup-release.sh. Please use a new build directory.
$ MACHINE=imx6slevk source fsl-setup-release.sh -b <a new build dir> -e x11
Then try with both the core-image-minimal and the meta-toolchain.
Once the build directory is created this way you should be able to start the environment again using the setup-environment scrip but never run both. The fsl-setup-release actually runs the setup-environment script with added configurarions.