<?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>14298</bug_id>
          
          <creation_ts>2021-03-11 10:45:48 +0000</creation_ts>
          <short_desc>[Poky] Running bitbake in debug mode fails due to TypeError</short_desc>
          <delta_ts>2021-04-15 13:33:18 +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>3.3 M4</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>richard.neill</reporter>
          <assigned_to name="Richard Purdie">richard.purdie</assigned_to>
          <cc>kouheiaoki</cc>
    
    <cc>poky.bs.watcher</cc>
    
    <cc>poky.watcher</cc>
    
    <cc>randy.macleod</cc>
    
    <cc>richard.neill</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>89562</commentid>
    <comment_count>0</comment_count>
    <who name="">richard.neill</who>
    <bug_when>2021-03-11 10:45:48 +0000</bug_when>
    <thetext>On poky master branch (commit aafa7a3f3a), if I pass &apos;--debug&apos; when building with bitbake, the build fails due to many unhandled python TypeError exceptions from the debug logging code.

The bug exists on master but does not occur on gatesgarth

To reproduce the bug:

&gt; ./build$ bitbake core-image-minimal &apos;--debug&apos;

This results in:

&gt; ./build$ bitbake core-image-minimal &apos;--debug&apos;
&gt; ...
&gt; Traceback (most recent call last):
&gt;   File &quot;/home/username/workspace/poky/bitbake/lib/bb/ui/knotty.py&quot;, line 660, in main
&gt;     event.msg = event.fn + &apos;: &apos; + event.msg
&gt; TypeError: can only concatenate str (not &quot;int&quot;) to str
&gt; ... (repeated many times)
&gt; ./build$

If I do not pass &apos;--debug&apos; to bitbake, the build completes as normal.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>89943</commentid>
    <comment_count>1</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2021-04-15 13:33:18 +0000</bug_when>
    <thetext>http://git.yoctoproject.org/cgit.cgi/poky/commit/bitbake?id=a9098e642367a775c60dbb677cbf041eaf53cf83</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>