<?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>5390</bug_id>
          
          <creation_ts>2013-10-28 11:20:15 +0000</creation_ts>
          <short_desc>linux-yocto_3.10.bb do_populate_sysroot_setscene fails and retriggers a re-run of most tasks</short_desc>
          <delta_ts>2013-12-05 16:00:45 +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>OE-Core</product>
          <component>kernel</component>
          <version>1.6</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.5.1</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Stefan Stanacar">sstncr</reporter>
          <assigned_to name="Bruce Ashfield">bruce.ashfield</assigned_to>
          <cc>bruce.ashfield</cc>
    
    <cc>richard.purdie</cc>
    
    <cc>tom.zanussi</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>38197</commentid>
    <comment_count>0</comment_count>
    <who name="Stefan Stanacar">sstncr</who>
    <bug_when>2013-10-28 11:20:15 +0000</bug_when>
    <thetext>Lately I&apos;ve been getting this warning: (which I&apos;ve completely ignored until I noticed that almost all tasks get re-run instead of being used from sstate):

WARNING: Setscene task 95 (/mnt/back/yocto/poky/meta/recipes-kernel/linux/linux-yocto_3.10.bb, do_populate_sysroot_setscene) failed with exit code &apos;1&apos; - real task will be run instead


Log shows:

DEBUG: Shell function sstate_unpack_package finished
DEBUG: Staging files from /mnt/back/yocto/poky/build/tmp/work/qemux86_64-poky-linux/linux-yocto/3.10.11+gitAUTOINC+452f0679ea_3f6c8243ed-r0/sysroot-destdir to /mnt/back/yocto/poky/build/tmp/sysroots/qemux86-64
DEBUG: Executing shell function kernelscripts_sstate_postinst
NOTE: make scripts
make: x86_64-poky-linux-gcc: Command not found
  HOSTCC  scripts/basic/fixdep
  HOSTCC  scripts/kconfig/conf.o
  SHIPPED scripts/kconfig/zconf.tab.c
  SHIPPED scripts/kconfig/zconf.lex.c
  SHIPPED scripts/kconfig/zconf.hash.c
  HOSTCC  scripts/kconfig/zconf.tab.o
  HOSTLD  scripts/kconfig/conf
scripts/kconfig/conf --silentoldconfig Kconfig
make: x86_64-poky-linux-gcc: Command not found
  CC      scripts/mod/empty.o
/bin/sh: x86_64-poky-linux-gcc: command not found
make[2]: *** [scripts/mod/empty.o] Error 127
make[1]: *** [scripts/mod] Error 2
make: *** [scripts] Error 2
ERROR: oe_runmake failed
WARNING: /mnt/back/yocto/poky/build/tmp/work/qemux86_64-poky-linux/linux-yocto/3.10.11+gitAUTOINC+452f0679ea_3f6c8243ed-r0/temp/run.kernelscripts_sstate_postinst.21098:1 exit 1 from
  [ &quot;populate_sysroot_setscene&quot; = &quot;populate_sysroot&quot; -o &quot;populate_sysroot_setscene&quot; = &quot;populate_sysroot_setscene&quot; ]
DEBUG: Python function do_populate_sysroot_setscene finished

There&apos;s something horribly broken here.

Build Configuration:
BB_VERSION        = &quot;1.21.0&quot;
BUILD_SYS         = &quot;x86_64-linux&quot;
NATIVELSBSTRING   = &quot;Fedora-19&quot;
TARGET_SYS        = &quot;x86_64-poky-linux&quot;
MACHINE           = &quot;qemux86-64&quot;
DISTRO            = &quot;poky&quot;
DISTRO_VERSION    = &quot;1.5+snapshot-20131028&quot;
TUNE_FEATURES     = &quot;m64&quot;
TARGET_FPU        = &quot;&quot;
meta              
meta-yocto        
meta-yocto-bsp    = &quot;master:78b91ab23d9856525fc7ac1bb8da2975382813bf&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>38198</commentid>
    <comment_count>1</comment_count>
    <who name="Darren Hart">dvhart</who>
    <bug_when>2013-10-28 11:24:26 +0000</bug_when>
    <thetext>What was the bitbake target here?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>38204</commentid>
    <comment_count>2</comment_count>
    <who name="Bruce Ashfield">bruce.ashfield</who>
    <bug_when>2013-10-28 12:23:28 +0000</bug_when>
    <thetext>This is likely due to the modpost / scripts re-creation that I did just recently. Clearly
the compiler isn&apos;t available in all cases, which is caused the problem.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>38205</commentid>
    <comment_count>3</comment_count>
    <who name="Stefan Stanacar">sstncr</who>
    <bug_when>2013-10-28 12:43:41 +0000</bug_when>
    <thetext>Ooups sorry about that, target was core-image-sato.
Just to be sure it wasn&apos;t something with my build dir/sstate I did:
bitbake virtual/kernel -ccleansstate &amp;&amp; bitbake virtual-kernel &amp;&amp; rm -rf tmp/ &amp;&amp; bitbake core-image-sato and I got the same thing.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>38275</commentid>
    <comment_count>4</comment_count>
    <who name="Bruce Ashfield">bruce.ashfield</who>
    <bug_when>2013-10-29 18:02:29 +0000</bug_when>
    <thetext>(In reply to comment #3)
&gt; Ooups sorry about that, target was core-image-sato.
&gt; Just to be sure it wasn&apos;t something with my build dir/sstate I did:
&gt; bitbake virtual/kernel -ccleansstate &amp;&amp; bitbake virtual-kernel &amp;&amp; rm -rf
&gt; tmp/ &amp;&amp; bitbake core-image-sato and I got the same thing.

Which exactly log are you seeing the error ? I just built and rebuilt my qemux86-64 kernel and image
here and I&apos;m not seeing message/error in my logs.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>38276</commentid>
    <comment_count>5</comment_count>
    <who name="Bruce Ashfield">bruce.ashfield</who>
    <bug_when>2013-10-29 18:02:55 +0000</bug_when>
    <thetext>sending bug back for exact location of the log file.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>38295</commentid>
    <comment_count>6</comment_count>
    <who name="Stefan Stanacar">sstncr</who>
    <bug_when>2013-10-30 10:04:40 +0000</bug_when>
    <thetext>The warning shows up on bitbake&apos;s output.
The log I pasted is from (in my case):
tmp/work/qemux86_64-poky-linux/linux-yocto/3.10.11+gitAUTOINC+452f0679ea_3f6c8243ed-r0/temp/log.do_populate_sysroot_setscene</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>38301</commentid>
    <comment_count>7</comment_count>
    <who name="Bruce Ashfield">bruce.ashfield</who>
    <bug_when>2013-10-30 12:31:35 +0000</bug_when>
    <thetext>(In reply to comment #6)
&gt; The warning shows up on bitbake&apos;s output.
&gt; The log I pasted is from (in my case):
&gt; tmp/work/qemux86_64-poky-linux/linux-yocto/3.10.
&gt; 11+gitAUTOINC+452f0679ea_3f6c8243ed-r0/temp/log.do_populate_sysroot_setscene

I&apos;m definitely not seeing this  .. I would have noticed it in my output. So clearly, there&apos;s still
something different between our configurations.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>38304</commentid>
    <comment_count>8</comment_count>
    <who name="Stefan Stanacar">sstncr</who>
    <bug_when>2013-10-30 13:16:36 +0000</bug_when>
    <thetext>Hmm, is there anything else you need, besides what&apos;s in the first comment?
The contents of the log file don&apos;t appear in the output, only the WARNING
Also AB has the same warning message:

WARNING: Setscene task 168 (/home/pokybuild/yocto-autobuilder/yocto-slave/nightly-arm/build/meta/recipes-kernel/linux/linux-yocto_3.10.bb, do_populate_sysroot_setscene) failed with exit code &apos;1&apos; - real task will be run instead

Build Configuration:
BB_VERSION        = &quot;1.21.0&quot;
BUILD_SYS         = &quot;x86_64-linux&quot;
NATIVELSBSTRING   = &quot;Fedora-19&quot;
TARGET_SYS        = &quot;arm-poky-linux-gnueabi&quot;
MACHINE           = &quot;qemuarm&quot;
DISTRO            = &quot;poky&quot;
DISTRO_VERSION    = &quot;1.5+snapshot-20131030&quot;
TUNE_FEATURES     = &quot;armv5 thumb dsp&quot;
TARGET_FPU        = &quot;soft&quot;
meta              
meta-yocto        
meta-yocto-bsp    = &quot;stage/master_under_test:121c8d23a9322e3a8d1c36e25f8fa56f9ab08033&quot;
meta-qt3          = &quot;master:b73552fb998fd30a01dbee5a172e432a16078222&quot;


http://autobuilder.yoctoproject.org:8011/builders/nightly-arm/builds/333/steps/Building%20Images/logs/stdio</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>39227</commentid>
    <comment_count>9</comment_count>
    <who name="Stefan Stanacar">sstncr</who>
    <bug_when>2013-12-04 14:33:24 +0000</bug_when>
    <thetext>This seems to be fixed now in 1.6_M1.rc1 ( c51730aaa91066cfb51ad6ec2920fb4f9d9ea94c )
I think http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=3f5e982107ce464ebc24ff4698f1e1863417427c was the commit that fixed it (with other commits before).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>39251</commentid>
    <comment_count>10</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2013-12-05 16:00:45 +0000</bug_when>
    <thetext>This was resolved in master as Stefan mentions.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>