Bug 14298

Summary: [Poky] Running bitbake in debug mode fails due to TypeError
Product: [Build System, Metadata & Runtime] BitBake Reporter: richard.neill
Component: bitbakeAssignee: Richard Purdie <richard.purdie>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Medium+ CC: kouheiaoki, poky.bs.watcher, poky.watcher, randy.macleod, richard.neill
Version: unspecified   
Target Milestone: 3.3 M4   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)

Description richard.neill 2021-03-11 10:45:48 UTC
On poky master branch (commit aafa7a3f3a), if I pass '--debug' 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:

> ./build$ bitbake core-image-minimal '--debug'

This results in:

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

If I do not pass '--debug' to bitbake, the build completes as normal.