<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>2979</bug_id>
          
          <creation_ts>2012-08-21 13:46:40 +0000</creation_ts>
          <short_desc>sourcing toolchain variables impacts on bitbake</short_desc>
          <delta_ts>2012-10-10 06:57:22 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>BitBake</product>
          <component>bitbake</component>
          <version>1.3</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>VERIFIED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard>Patch out for review</status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.3</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Laurentiu Serban">laurentiu.serban</reporter>
          <assigned_to name="Richard Purdie">richard.purdie</assigned_to>
          <cc>david.nystrom</cc>
    
    <cc>liang.li2</cc>
    
    <cc>poky.adt.watcher</cc>
    
    <cc>poky.bs.watcher</cc>
    
    <cc>poky.watcher</cc>
    
    <cc>sgw</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>---</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>24275</commentid>
    <comment_count>0</comment_count>
    <who name="Laurentiu Serban">laurentiu.serban</who>
    <bug_when>2012-08-21 13:46:40 +0000</bug_when>
    <thetext>After sourcing environment-setup-x86_64-poky-linux or environment setup for other architectures and trying to run bitbake the error below is displayed.

lserban@lserban-Vostro-460:~/work/master_/build$ bitbake meta-toolchain-sdk
Traceback (most recent call last):
  File &quot;&lt;string&gt;&quot;, line 1, in &lt;module&gt;
ImportError: No module named distutils.version
Traceback (most recent call last):
  File &quot;&lt;string&gt;&quot;, line 1, in &lt;module&gt;
ImportError: No module named distutils.version
Traceback (most recent call last):
  File &quot;/home/lserban/work/master_/bitbake/bin//bitbake&quot;, line 30, in &lt;module&gt;
    import optparse
ImportError: No module named optparse
Pseudo is not present but is required, building this first before the main build
Traceback (most recent call last):
  File &quot;/home/lserban/work/master_/bitbake/bin/bitbake&quot;, line 30, in &lt;module&gt;
    import optparse
ImportError: No module named optparse</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>24278</commentid>
    <comment_count>1</comment_count>
    <who name="Jessica">jessica.zhang</who>
    <bug_when>2012-08-21 13:53:43 +0000</bug_when>
    <thetext>So after you source the environment-setup and before you run bitbake, did you do source oe-init-bitbake? environment-setup suppose to change your environment for the cross development needs.  But agreed that bitbake shouldn&apos;t endup with Traceback.  So it&apos;s more of a bitbake bug than an ADT bug</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>24284</commentid>
    <comment_count>2</comment_count>
    <who name="Laurentiu Serban">laurentiu.serban</who>
    <bug_when>2012-08-21 14:35:46 +0000</bug_when>
    <thetext>Hello Jessica,
Yes, I did run source oe-init-build-env.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>24314</commentid>
    <comment_count>3</comment_count>
    <who name="liang li">liang.li2</who>
    <bug_when>2012-08-22 06:54:03 +0000</bug_when>
    <thetext>FYI:
the same error met only under these steps:
source /opt/poky/1.2+snapshot/environment-setup-x86_64-poky-linux
source /path_to_git/oe-init-build-env builddir
bitbake meta-toolchain-sdk 

but when run &quot;bitbake&quot;,only &quot;source /path_to_git/oe-init-build-env builddir&quot; is needed,after that run &quot;bitbake meta-toolchain-sdk&quot;,no such error,below is the output:

bitbake meta-toolchain-sdk
Pseudo is not present but is required, building this first before the main build
Loading cache: 100% |###########################################| ETA:  00:00:00
Loaded 1125 entries from dependency cache.

Build Configuration:
BB_VERSION        = &quot;1.15.3&quot;
TARGET_ARCH       = &quot;i586&quot;
TARGET_OS         = &quot;linux&quot;
MACHINE           = &quot;qemux86&quot;
DISTRO            = &quot;poky&quot;
DISTRO_VERSION    = &quot;1.2+snapshot-20120822&quot;
TUNE_FEATURES     = &quot;m32 i586&quot;
TARGET_FPU        = &quot;&quot;
meta              
meta-yocto        = &quot;master:603f6c631e9454d10517599e229943f2b26d08a5&quot;

NOTE: Resolving any missing task queue dependencies
NOTE: Preparing runqueue
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
......</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>24315</commentid>
    <comment_count>4</comment_count>
    <who name="David Nyström">david.nystrom</who>
    <bug_when>2012-08-22 07:02:25 +0000</bug_when>
    <thetext>I can confirm this on 1.2 as well.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>26057</commentid>
    <comment_count>5</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2012-10-02 16:32:03 +0000</bug_when>
    <thetext>Fixed in master: http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=32cc952460de203f3e5db2646861de2ecc951d66</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>26455</commentid>
    <comment_count>6</comment_count>
    <who name="liang li">liang.li2</who>
    <bug_when>2012-10-10 06:57:22 +0000</bug_when>
    <thetext>after below steps:
source /opt/poky/1.2+snapshot/environment-setup-...
source /path_to_git/oe-init-build-env builddir

reminding messages found below:
Error: The OE SDK/ADT was detected as already being present in this shell environment. Please use a clean shell when sourcing this environment script.

and can not run &quot;bitbake&quot; command.
git info:86c9aa8081f107420cd3763d0566d779daddc2b1
git branch:poky/danny</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>