<?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>10438</bug_id>
          
          <creation_ts>2016-10-14 12:42:28 +0000</creation_ts>
          <short_desc>Possible to infinite loop eSDK creation</short_desc>
          <delta_ts>2017-12-06 17:12:28 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>6</classification_id>
          <classification>Yocto Project Subprojects</classification>
          <product>eSDK</product>
          <component>eSDK</component>
          <version>2.2</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>2.3</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ross Burton">ross.burton</reporter>
          <assigned_to name="Ross Burton">ross.burton</assigned_to>
          
          
          
          <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>67263</commentid>
    <comment_count>0</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2016-10-14 12:42:28 +0000</bug_when>
    <thetext>Say you have a layer that provides a class, and INHERIT+=&quot;thatclass&quot; in local.conf.

If you add the layer to SDK_LAYERS_EXCLUDE then oe-check-sstate will infinite loop silently.  Attaching a strace reveals the error message:

read(4, &quot;ERROR: ParseError in configuration INHERITs: Could not inherit file classes/crasher.bbclass\nERROR: ParseError in configuration INHERITs: Could not inherit file classes/crasher.bbclass\n&quot;, 52816218) = 184
read(4, &quot;ERROR: ParseError in configuration INHERITs: Could not inherit file classes/crasher.bbclass\nERROR: ParseError in configuration INHERITs: Could not inherit file classes/crasher.bbclass\n&quot;, 52816034) = 184
read(4, &quot;ERROR: ParseError in configuration INHERITs: Could not inherit file classes/crasher.bbclass\nERROR: ParseError in configuration INHERITs: Could not inherit file classes/crasher.bbclass\nERROR: ParseError in configuration INHERITs: Could not inherit file classes/crasher.bbclass\n&quot;, 52815850) = 276

In this case crasher.bbclass is in meta-ross, which I have to blacklist because it also contains a site.conf which breaks eSDK creation (I&apos;ll also file a bug for that).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>67319</commentid>
    <comment_count>1</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2016-10-18 03:13:42 +0000</bug_when>
    <thetext>I cannot reproduce this issue here. In my case meta-selftest is referred to in my bblayers.conf, so I added an (empty) broken.bbclass to meta-selftest then added the following to my local.conf:

------ snip ------
INHERIT += &quot;broken&quot;
SDK_LAYERS_EXCLUDE = &quot;/home/paul/poky/poky/meta-selftest&quot;
------ snip ------

When I ran bitbake -c populate_sdk_ext, I got this error:

------ snip ------
ERROR: core-image-minimal-1.0-r0 do_populate_sdk_ext: Failed to generate filtered task list for extensible SDK:

### Shell environment set up for builds. ###

You can now run &apos;bitbake &lt;target&gt;&apos;

Common targets are:
    core-image-minimal
    core-image-sato
    meta-toolchain
    meta-ide-support

You can also run generated qemu images with a command like &apos;runqemu qemux86&apos;
ERROR: bitbake failed:
ERROR: ParseError in configuration INHERITs: Could not inherit file classes/broken.bbclass
ERROR: core-image-minimal-1.0-r0 do_populate_sdk_ext: Function failed: copy_buildsystem
ERROR: Logfile of failure stored in: /home/paul/poky/poky/build/tmp/work/qemux86_64-poky-linux/core-image-minimal/1.0-r0/temp/log.do_populate_sdk_ext.31808
ERROR: Task (/home/paul/poky/poky/meta/recipes-core/images/core-image-minimal.bb:do_populate_sdk_ext) failed with exit code &apos;1&apos;
------ snip ------

I can only assume there must be something additional at work in your setup. Any ideas?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>68121</commentid>
    <comment_count>2</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2016-11-08 17:34:21 +0000</bug_when>
    <thetext>Good news is that I can&apos;t replicate either now, so some other fix must have resolved this.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>