summaryrefslogtreecommitdiffstats
path: root/bitbake
diff options
context:
space:
mode:
authorChris Laplante <chris.laplante@agilent.com>2020-07-27 19:21:23 -0400
committerRichard Purdie <richard.purdie@linuxfoundation.org>2020-07-29 10:13:02 +0100
commitd50a04c3042e4f29f832c64237d44a5f3c9bc549 (patch)
treefda7bf0d141105045ee2242c884ad36fc7ef1ee4 /bitbake
parent1739fee6338a445e4254893bc2bcac64e151949d (diff)
downloadpoky-d50a04c3042e4f29f832c64237d44a5f3c9bc549.tar.gz
bitbake: build: print traceback if progress handler can't be created
Before: ERROR: expat-native-2.2.9-r0 do_compile: 'NoneType' object has no attribute 'get' ERROR: Logfile of failure stored in: /home/laplante/repos/oe-core/build/tmp-glibc/work/x86_64-linux/expat-native/2.2.9-r0/temp/log.do_compile.90289 Log data follows: | ERROR: 'NoneType' object has no attribute 'get' ERROR: Task (virtual:native:/home/laplante/repos/oe-core/meta/recipes-core/expat/expat_2.2.9.bb:do_compile) failed with exit code '1' After: ERROR: expat-native-2.2.9-r0 do_configure: Failed to create progress handler ERROR: expat-native-2.2.9-r0 do_configure: Traceback (most recent call last): File "/home/laplante/repos/oe-core/bitbake/lib/bb/build.py", line 400, in exec_func_shell logfile = create_progress_handler(func, progress, logfile, d) File "/home/laplante/repos/oe-core/bitbake/lib/bb/build.py", line 344, in create_progress_handler cls_obj = functools.reduce(resolve, cls.split("."), bb.utils._context) File "/home/laplante/repos/oe-core/bitbake/lib/bb/build.py", line 343, in resolve return x.get(y) AttributeError: 'NoneType' object has no attribute 'get' ERROR: expat-native-2.2.9-r0 do_configure: 'NoneType' object has no attribute 'get' ERROR: Logfile of failure stored in: /home/laplante/repos/oe-core/build/tmp-glibc/work/x86_64-linux/expat-native/2.2.9-r0/temp/log.do_configure.22982 ERROR: Task (virtual:native:/home/laplante/repos/oe-core/meta/recipes-core/expat/expat_2.2.9.bb:do_configure) failed with exit code '1' (Bitbake rev: ba0472a672eacbbbb2295252a0d2056d3399c6a9) Signed-off-by: Chris Laplante <chris.laplante@agilent.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake')
-rw-r--r--bitbake/lib/bb/build.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/bitbake/lib/bb/build.py b/bitbake/lib/bb/build.py
index 23b6ee455f..cb2e75b145 100644
--- a/bitbake/lib/bb/build.py
+++ b/bitbake/lib/bb/build.py
@@ -398,7 +398,13 @@ exit $ret
398 398
399 progress = d.getVarFlag(func, 'progress') 399 progress = d.getVarFlag(func, 'progress')
400 if progress: 400 if progress:
401 logfile = create_progress_handler(func, progress, logfile, d) 401 try:
402 logfile = create_progress_handler(func, progress, logfile, d)
403 except:
404 from traceback import format_exc
405 logger.error("Failed to create progress handler")
406 logger.error(format_exc())
407 raise
402 408
403 fifobuffer = bytearray() 409 fifobuffer = bytearray()
404 def readfifo(data): 410 def readfifo(data):