<?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>2846</bug_id>
          
          <creation_ts>2012-07-27 08:24:53 +0000</creation_ts>
          <short_desc>cleansstate failing - possibly due to nfs</short_desc>
          <delta_ts>2012-09-28 08:59:27 +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>unspecified</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 M4</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Jack Mitchell">jack</reporter>
          <assigned_to name="Richard Purdie">richard.purdie</assigned_to>
          <cc>andreea.b.proca</cc>
    
    <cc>jessica.zhang</cc>
    
    <cc>poky.bs.watcher</cc>
    
    <cc>poky.watcher</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>23562</commentid>
    <comment_count>0</comment_count>
    <who name="Jack Mitchell">jack</who>
    <bug_when>2012-07-27 08:24:53 +0000</bug_when>
    <thetext>Clean Shared State fails with the following error message.

[build@yoctoBuilder build]$ bitbake -c cleansstate bison-native
Loading cache: 100% |#################################################################################| ETA:  00:00:00
Loaded 1138 entries from dependency cache.
WARNING: Host distribution could not be determined; you may possibly experience unexpected failures. It is recommended that you use a tested distribution.

Build Configuration:
BB_VERSION        = &quot;1.15.3&quot;
TARGET_ARCH       = &quot;arm&quot;
TARGET_OS         = &quot;linux-gnueabi&quot;
MACHINE           = &quot;qemuarm&quot;
DISTRO            = &quot;poky&quot;
DISTRO_VERSION    = &quot;1.2+snapshot-20120727&quot;
TUNE_FEATURES     = &quot;armv5 dsp thumb arm926ejs&quot;
TARGET_FPU        = &quot;soft&quot;
meta              
meta-yocto        = &quot;master:fb53d69d9c726e6a663ea276cc440676e20f8326&quot;

NOTE: Resolving any missing task queue dependencies
NOTE: Preparing runqueue
NOTE: Executing RunQueue Tasks
NOTE: Running task 1 of 2 (ID: 0, virtual:native:/mnt/storage/yoctoBuilds/poky-vanilla.git/meta/recipes-devtools/bison/bison_2.5.bb, do_clean)
NOTE: package bison-native-2.5-r2: task do_clean: Started
ERROR: Error executing a python function in /mnt/storage/yoctoBuilds/poky-vanilla.git/meta/recipes-devtools/bison/bison_2.5.bb:
OSError: [Errno 39] Directory not empty: &apos;/mnt/storage/yoctoBuilds/poky-vanilla.git/build/tmp/work/x86_64-linux/bison-native-2.5-r2/temp&apos;

ERROR: The stack trace of python calls that resulted in this exception/failure was:
ERROR:   File &quot;do_clean&quot;, line 16, in &lt;module&gt;
ERROR: 
ERROR:   File &quot;do_clean&quot;, line 6, in do_clean
ERROR: 
ERROR:   File &quot;/mnt/storage/yoctoBuilds/poky-vanilla.git/meta/lib/oe/path.py&quot;, line 94, in remove
ERROR:     shutil.rmtree(name)
ERROR: 
ERROR:   File &quot;/usr/lib/python2.7/shutil.py&quot;, line 245, in rmtree
ERROR:     rmtree(fullname, ignore_errors, onerror)
ERROR: 
ERROR:   File &quot;/usr/lib/python2.7/shutil.py&quot;, line 254, in rmtree
ERROR:     onerror(os.rmdir, path, sys.exc_info())
ERROR: 
ERROR:   File &quot;/usr/lib/python2.7/shutil.py&quot;, line 252, in rmtree
ERROR:     os.rmdir(path)
ERROR: 
ERROR: The code that was being executed was:
ERROR:      0012:    for f in (d.getVar(&apos;CLEANFUNCS&apos;, True) or &apos;&apos;).split():
ERROR:      0013:        bb.build.exec_func(f, d)
ERROR:      0014:
ERROR:      0015:
ERROR:  *** 0016:do_clean(d)
ERROR:      0017:
ERROR: (file: &apos;do_clean&apos;, lineno: 16, function: &lt;module&gt;)
ERROR:      0002:def do_clean(d):
ERROR:      0003:    &quot;&quot;&quot;clear the build and temp directories&quot;&quot;&quot;
ERROR:      0004:    dir = d.expand(&quot;/mnt/storage/yoctoBuilds/poky-vanilla.git/build/tmp/work/x86_64-linux/bison-native-2.5-r2&quot;)
ERROR:      0005:    bb.note(&quot;Removing &quot; + dir)
ERROR:  *** 0006:    oe.path.remove(dir)
ERROR:      0007:
ERROR:      0008:    dir = &quot;%s.*&quot; % bb.data.expand(d.getVar(&apos;STAMP&apos;), d)
ERROR:      0009:    bb.note(&quot;Removing &quot; + dir)
ERROR:      0010:    oe.path.remove(dir)
ERROR: (file: &apos;do_clean&apos;, lineno: 6, function: do_clean)
ERROR: Function failed: do_clean
NOTE: package bison-native-2.5-r2: task do_clean: Failed
ERROR: Task 0 (virtual:native:/mnt/storage/yoctoBuilds/poky-vanilla.git/meta/recipes-devtools/bison/bison_2.5.bb, do_clean) failed with exit code &apos;1&apos;
NOTE: Tasks Summary: Attempted 1 tasks of which 0 didn&apos;t need to be rerun and 1 failed.
ERROR: An uncaught exception occured in runqueue, please see the failure below:

Summary: 1 task failed:
  virtual:native:/mnt/storage/yoctoBuilds/poky-vanilla.git/meta/recipes-devtools/bison/bison_2.5.bb, do_clean
Summary: There was 1 WARNING message shown.
Summary: There were 38 ERROR messages shown, returning a non-zero exit code.
[build@yoctoBuilder build]$ 

The drive is mounted as an NFS share and has the correct permissions for reading/writing. RP mentioned (as I understood it) that it looks like a race condition with building log files in temp, and then not being able to remove them in time before the python rmdir equivalent gets called.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>24170</commentid>
    <comment_count>1</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2012-08-18 16:55:17 +0000</bug_when>
    <thetext>Fixed in master: http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=61ed74a72524b7f18fe7e48d5ae7f1f6b5756919</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>25894</commentid>
    <comment_count>2</comment_count>
    <who name="Andreea Brandusa Proca">andreea.b.proca</who>
    <bug_when>2012-09-28 08:59:27 +0000</bug_when>
    <thetext>Verified in commit: 718eb85806e080d0b165344b272e531ef19421eb.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>