<?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>9407</bug_id>
          
          <creation_ts>2016-04-07 07:26:36 +0000</creation_ts>
          <short_desc>bitbake reports log_check warning without stating in which log/recipe the problem occurred</short_desc>
          <delta_ts>2016-10-17 17:19: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>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.2 M1</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Heinz Wrobel">Heinz.Wrobel</reporter>
          <assigned_to name="Heinz Wrobel">Heinz.Wrobel</assigned_to>
          <cc>bluelightning</cc>
    
    <cc>leonardo.sandoval.gonzalez</cc>
    
    <cc>poky.bs.watcher</cc>
    
    <cc>poky.watcher</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>60880</commentid>
    <comment_count>0</comment_count>
    <who name="Heinz Wrobel">Heinz.Wrobel</who>
    <bug_when>2016-04-07 07:26:36 +0000</bug_when>
    <thetext>I am playing with adding packages in a monster rootfs. Bitbake tries to be helpful when putting together the rootfs and tells me:

WARNING: log_check: There is a warn message in the logfile
WARNING: log_check: Matched keyword: [warn]
… and an additional line about the warning.

It does NOT tell me however which logfile or even which recipe caused that warning, so I have to manually grep through my whole work directory to figure out which recipe caused the warning. This seems to be a totally useless extra step.

bitbake SHOULD tell me in which recipe and logfile the warning occurred so that I don&apos;t have to grep through Gigabytes to find the issue.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>62189</commentid>
    <comment_count>1</comment_count>
    <who name="Humberto Ibarra">humberto.ibarra.lopez</who>
    <bug_when>2016-05-13 16:28:44 +0000</bug_when>
    <thetext>The warning messages shown are a start but definitely need something more to locate exactly where the problem is and to test a fix correctly. Right now I am not entirely sure what to run to reproduce this.

Need a bigger output of this command, the configuration for this image and the packages added. Any logs for this that you can attach are welcomed too.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>62204</commentid>
    <comment_count>2</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2016-05-13 23:12:35 +0000</bug_when>
    <thetext>You haven&apos;t specified which version you&apos;re using, but I&apos;d guess it&apos;s an older version before we added the recipe and task name to every warning/error message printed, so that part should be solved. In any event, you will find this definitely comes from the do_rootfs log of the image you&apos;re building (though I guess you may possibly be building more than one image at once).

For Humberto&apos;s benefit - I am working on tidying up the log_check double warning issue under bug 8223; I do have a set of patches for that already.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>62554</commentid>
    <comment_count>3</comment_count>
    <who name="Heinz Wrobel">Heinz.Wrobel</who>
    <bug_when>2016-06-01 05:23:45 +0000</bug_when>
    <thetext>The problem was observed in an NXP/Freescale version of a poky 1.8.1 setup per poky/meta-yocto/conf/distro/poky.conf

The offending log message is generated in _log_check_warn() in poky/meta/lib/oe/rootfs.py.

The problem is that it tells you that &quot;something&quot; happened, but doesn&apos;t give you any indication which package caused it or how to figure out which package caused it. it doesn#t even tell you which logfile caused it.

I see it has been fixed in a poky 2.0 setup.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>62558</commentid>
    <comment_count>4</comment_count>
    <who name="Leonardo Sandoval Gonzalez">leonardo.sandoval.gonzalez</who>
    <bug_when>2016-06-01 14:45:08 +0000</bug_when>
    <thetext>(In reply to comment #3)
 
&gt; I see it has been fixed in a poky 2.0 setup.

Good news. In case you know the commit ID that fixed it, please include it in a comment.

Leo</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>