On 13/01/14 21:37, tibor somogyi wrote:
> Hello Koen,
> 
> Many thanks for the help... now I understand what "sourcing" means - and I 
> tried it, and sourcing is worked fine ( at least, it did not result in an 
> error ). Unfortunatly, the build did not work... here is my log ( with C/C++ 
> style comments  ):
> 
> ------------
> user@ubuntu:/home/tibor/beagle/setup-scripts$ ls                              
> // just to show what is n my folder
> conf  environment-angstrom-v2013.06  oebb.sh  README  scripts  sources
> user@ubuntu:/home/tibor/beagle/setup-scripts$ source 
> environment-angstrom-v2013.06            // here is the source command - it 
> seems to work
> user@ubuntu:/home/tibor/beagle/setup-scripts$ sudo MACHINE=beagleboard 
> bitbake virtual/kernel // this is the build which fails...

Also, don't use sudo. You will probably have to delete the whole
setup-scripts directory and start again due to breaking the permissions
by already trying to use sudo with bitbake.

> 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${@bb.utils.contains("TUNE_FEATURES",
>  "thumb", ":thumb", "", d)}${@bb.utils.contains("TUNE_FEATURES", 
> "no-thumb-interwork", ":thumb-interwork", "", d)}'
> 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)                       
> // and the error is: ....
> 
> user@ubuntu:/home/tibor/beagle/setup-scripts$
> -----------------
> 
> Could you give me a hint about what's wrong, please ?
> 
> Cheers
> 
> Tibor
> 
> 
> 
> -----Original Message-----
> From: angstrom-distro-devel-boun...@linuxtogo.org 
> [mailto:angstrom-distro-devel-boun...@linuxtogo.org] On Behalf Of Koen Kooi
> Sent: Monday, January 13, 2014 8:51 PM
> To: Discussion of the angstrom distribution development
> Subject: Re: [Angstrom-devel] building Angstrom for BeagleBone Black
> 
> 
> Op 13 jan. 2014, om 20:05 heeft tibor somogyi <somog...@slb.com> het volgende 
> geschreven:
> 
>> Hello,
>>
>> Thank you for the advice. Following your suggestion, I got the README... and 
>> I have a question: could you tell me what does it mean "source the 
>> environment file" in the quote below, please ?
>>
>>
>> "To start a build of the kernel, source the environment file and do:
>>
>>      $ . environment-angstrom-v2013.06
>>      $ MACHINE=beagleboard bitbake virtual/kernel"
> 
> 'source' means using the shell source method (the period '.') to read the 
> config file into the environment. If you use bash as your shell you can also 
> do 'source environment-angstrom-v2013.06'
> 
> regards,
> 
> Koen
> 
> 
>>
>> Thanks and regards
>>
>> Tibor
>>
>>
>> -----Original Message-----
>> From: angstrom-distro-devel-boun...@linuxtogo.org 
>> [mailto:angstrom-distro-devel-boun...@linuxtogo.org] On Behalf Of Koen Kooi
>> Sent: Friday, January 10, 2014 9:17 PM
>> To: Discussion of the angstrom distribution development
>> Subject: Re: [Angstrom-devel] building Angstrom for BeagleBone Black
>>
>>
>> Op 10 jan. 2014, om 20:34 heeft tibor somogyi <somog...@slb.com> het 
>> volgende geschreven:
>>
>>> Hello,
>>>
>>> I am trying to build an image for the BeagleBone Black on my Ubuntu virtual 
>>> machine ( ubuntu-12.04.3-desktop-i386.iso ) running under vmware on a 
>>> Windows 7 PC.
>>>
>>> Essentially I am following the steps as described by M. Derek Molloy at 
>>> http://derekmolloy.ie/building-angstrom-for-beaglebone-from-source/ - and 
>>> have successfully went through almost all steps - except of the last one, 
>>> invoking bitbake.
>>
>> Please don't follow random website on the internet, stick to the README 
>> provided with the scripts: 
>> https://github.com/angstrom-distribution/setup-scripts



-- 
  Jack Mitchell (j...@embed.me.uk)
  Embedded Systems Engineer
  Cambridgeshire, UK
  http://www.embed.me.uk
-- 

_______________________________________________
Angstrom-distro-devel mailing list
Angstrom-distro-devel@linuxtogo.org
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/angstrom-distro-devel

Reply via email to