<?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>1464</bug_id>
          
          <creation_ts>2011-09-09 01:04:40 +0000</creation_ts>
          <short_desc>multiple bitbake processes sharing some global data</short_desc>
          <delta_ts>2011-11-10 04:22:32 +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>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.2</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Martin Jansa">Martin.Jansa</reporter>
          <assigned_to name="Richard Purdie">richard.purdie</assigned_to>
          <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>16111</commentid>
    <comment_count>0</comment_count>
    <who name="Martin Jansa">Martin.Jansa</who>
    <bug_when>2011-09-09 01:04:40 +0000</bug_when>
    <thetext>Hi, with older bitbake and openembedded it was possible to keep image build running and start another bitbake process (ie to resolve fetch issue of some recipe and it worked OK even with different MACHINE/DISTRO for each process).

Now it fails like this:

1st term: bitbake -k core-image-core
Now when I try to execute another bitbake process
2nd term: bitbake -c fetch -b /OE/shr-core/meta-openembedded/meta-oe/recipes-devtools/klibc/klibc_1.5.25.bb

then image build on 1st terminal fails like this:

NOTE: Running task 4609 of 5278 (ID: 4347, /OE/shr-core/openembedded-core/meta/recipes-devtools/gcc/gcc_4.6.bb, do_compile)
NOTE: package gcc-4.6.1+svnr175454-r12: task do_compile: Started
ERROR: Execution of event handler &apos;run_buildstats&apos; failed
Traceback (most recent call last):
  File &quot;run_buildstats(e)&quot;, line 86, in run_buildstats(e=&lt;bb.build.TaskSucceeded object at 0xbcd1f10&gt;)
  File &quot;buildstats.bbclass&quot;, line 5, in write_task_data(status=&apos;passed&apos;, logfile=&apos;/OE/shr-core/tmp/buildstats/klibc-spitz/201109090954/gcc-runtime-4.6.1+svnr175454-r12/do_package&apos;, dev=&apos;md4&apos;, e=&lt;bb.build.TaskSucceeded object at 0xbcd1f10&gt;)
IOError: [Errno 2] No such file or directory: &apos;/OE/shr-core/tmp/buildstats/klibc-spitz/201109090954/gcc-runtime-4.6.1+svnr175454-r12/do_package&apos;

Or some other weird error.

If you cannot run multiple bitbake processes by design then it would be great if 2nd bitbake checks that another bitbake process is already executed and fails to start.

I haven&apos;t tried it with different users, but if it fails also with different users then it would make bitbake hard to use on some multiuser build machine.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>16121</commentid>
    <comment_count>1</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2011-09-09 06:25:01 +0000</bug_when>
    <thetext>You shouldn&apos;t be running more than one copy of bitbake within a given build directory. We need to add some locking to prevent that.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>17175</commentid>
    <comment_count>2</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2011-11-10 04:22:32 +0000</bug_when>
    <thetext>Fixed in master with http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=eda0ed901532ceb55bcf24bbde2c40a0d8759b69</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>