AnsweredAssumed Answered

error in compiling  yocto Ubuntu 12.04

Question asked by long zhao on Jun 27, 2016
Latest reply on Aug 28, 2016 by long zhao

Dear ;

i am sorry to truble you,I am a newbie,when i compilering  a core image :  $bitbake fsl-image-machine-test

ubuntu:12.04

the version:3.14.28-1.0

here is my Installation documentation:

A)

  1.

  $ mkdir ~/bin (this step may not be needed if the bin folder already exists)

  $ git clone https://gerrit-google.tuna.tsinghua.edu.cn/git-repo

  $ cp git-repo/repo ~/bin/repo

  $ chmod a+x ~/bin/repo

  2. export PATH=~/bin:$PATH

B)

$ git config --global user.name "zhaolong"

$ git config --global user.email "home_zhaolong@outlook.com"

$ git config --list

$ mkdir fsl-release-bsp

$ cd fsl-release-bsp

$ repo init -u git://git.freescale.com/imx/fsl-arm-yocto-bsp.git -b imx-3.14.52-1.1.0_ga --repo-url=https://gerrit-google.tuna.tsinghua.edu.cn/git-repo

$ repo sync

C)

MACHINE=imx6qsabresd source fsl-setup-release.sh -b imx6qsabresd-fb -e fb

bitbake fsl-image-machine-test

 

there is the following error while running ;

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)

 

Thanks;

zhaolong;

Outcomes