Bug 14298 - [Poky] Running bitbake in debug mode fails due to TypeError
Summary: [Poky] Running bitbake in debug mode fails due to TypeError
Status: RESOLVED FIXED
Alias: None
Product: BitBake
Classification: Build System, Metadata & Runtime
Component: bitbake (show other bugs)
Version: unspecified
Hardware: x86 Multiple
: Medium+ normal
Target Milestone: 3.3 M4
Assignee: Richard Purdie
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2021-03-11 10:45 UTC by richard.neill
Modified: 2021-04-15 13:33 UTC (History)
5 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.