[oe] Mac OS X & redhat-lsb

Brett McMillian brett.mcmillian at crossfieldtech.com
Fri Nov 25 18:52:56 UTC 2011


Hello,

I'm somewhat new to OpenEmbedded.  I've been working with the the Freescale SDKs 
under Fedora 12, but now I'm trying to get it working under Mac OS X (10.7.2). 
 Using Fink and Fink Commander, I've installed all the necessary packages to 
install the SDKs (all the ones recommended in the wiki and in rhel5-oe.sh except 
redhat-lsb) and am now trying to run bitbake.
 
Here are the steps I have run successfully so far.
1) ./scripts/rhel5-oe.sh
2) Edited the first line of ./scripts/create-config.py to read:
#!/usr/bin/python2.7
3) ./scripts/create-config.py --config-file=fsl-p1022ds/sample-create-config.ini 
--features="native-development" -j 4 -t 2
4) source build_p1022ds_release/bitbake.rc
4) bitbake devel-image

This results in the following error:
bash-3.2$ bitbake devel-image
NOTE: <type 'exceptions.ValueError'>:dictionary update sequence element #0 has 
length 1; 2 is required while evaluating:
${@get_lsb_data(d)['Distributor ID']}
NOTE: <type 'exceptions.ValueError'>:dictionary update sequence element #0 has 
length 1; 2 is required while evaluating:
bc-native bzip2-native cvs-native diffstat-native patch-native 
perl-native-runtime python-native-runtime svn-native texinfo-native 
util-linux-native  ${@build_distro_assume(d)}
Command execution failed: Traceback (most recent call last):
  File 
"/Users/brett/Documents/QorIQ_SDK-20110709-systembuilder/scripts/bitbake/lib/bb/command.py",
 line 85, in runAsyncCommand
    self.cooker.updateCache()
  File 
"/Users/brett/Documents/QorIQ_SDK-20110709-systembuilder/scripts/bitbake/lib/bb/cooker.py",
 line 814, in updateCache
    ignore = bb.data.getVar("ASSUME_PROVIDED", self.configuration.data, 1) or ""
  File 
"/Users/brett/Documents/QorIQ_SDK-20110709-systembuilder/scripts/bitbake/lib/bb/data.py",
 line 100, in getVar
    return d.getVar(var,exp)
  File 
"/Users/brett/Documents/QorIQ_SDK-20110709-systembuilder/scripts/bitbake/lib/bb/data_smart.py",
 line 165, in getVar
    return self.expand(value,var)
  File 
"/Users/brett/Documents/QorIQ_SDK-20110709-systembuilder/scripts/bitbake/lib/bb/data_smart.py",
 line 83, in expand
    s = __expand_python_regexp__.sub(python_sub, s)
  File 
"/Users/brett/Documents/QorIQ_SDK-20110709-systembuilder/scripts/bitbake/lib/bb/data_smart.py",
 line 69, in python_sub
    s = utils.better_eval(codeobj, {"d": self})
  File 
"/Users/brett/Documents/QorIQ_SDK-20110709-systembuilder/scripts/bitbake/lib/bb/utils.py",
 line 360, in better_eval
    return eval(source, _context, locals)
  File "ASSUME_PROVIDED", line 1, in <module>
  File "hostvendor.inc", line 2, in build_distro_assume
  File 
"/Users/brett/Documents/QorIQ_SDK-20110709-systembuilder/scripts/bitbake/lib/bb/data_smart.py",
 line 165, in getVar
    return self.expand(value,var)
  File 
"/Users/brett/Documents/QorIQ_SDK-20110709-systembuilder/scripts/bitbake/lib/bb/data_smart.py",
 line 83, in expand
    s = __expand_python_regexp__.sub(python_sub, s)
  File 
"/Users/brett/Documents/QorIQ_SDK-20110709-systembuilder/scripts/bitbake/lib/bb/data_smart.py",
 line 69, in python_sub
    s = utils.better_eval(codeobj, {"d": self})
  File 
"/Users/brett/Documents/QorIQ_SDK-20110709-systembuilder/scripts/bitbake/lib/bb/utils.py",
 line 360, in better_eval
    return eval(source, _context, locals)
  File "BUILD_DISTRO", line 1, in <module>
  File "hostvendor.inc", line 4, in get_lsb_data
  File "hostvendor.inc", line 8, in _get_lsb_data
ValueError: dictionary update sequence element #0 has length 1; 2 is required


I believe this error is caused by the fact that redhat-lsb is not install in Mac 
OS X.  Does anyone have a workaround for this problem?  Perhaps a script that 
uses uname instead of lsb or perhaps a method to get lsb working under OS X? It 
seems like I'm really close to getting OE working under OS X, but this last 
problem is preventing me from moving forward.

Thanks,
Brett


More information about the Openembedded-devel mailing list