I am running on a customized Yocto tree based off Poky krogoth and I think I have stumbled upon a bug in bb.

One of our recipes use EXTERNALSRC and EXTERNALSRC_BUILD, set from local.conf. When the recipe is built, two symlinks ${EXTERNALSRC}/oe-logs and ${EXTERNALSRC}/oe-workdir is created in the source tree.

If the build output tmp/ later is deleted, these two symlinks becomes dangling links. Re-running bitbake will cause it to fail. First it warns of this during parsing, and later it will crash bb (see below).

Removing these symlinks when deleting tmp/ ensures bitbake will not crash.

I suppose this is a bug?

Best regards,
Svein Seldal



(EXTERNALSRC="/srv/user/yocto/sp-core-image/src")

WARNING: Unable to get checksum for sp SRC_URI entry oe-logs: [Errno 2] No such file or directory: '/home/user/yocto/sp-core-image/src/oe-logs' WARNING: Unable to get checksum for sp SRC_URI entry oe-workdir: [Errno 2] No such file or directory: '/home/user/yocto/sp-core-image/src/oe-workdir'


ERROR: sp-99.8.0-r0 do_compile: Build of do_compile failed
ERROR: sp-99.8.0-r0 do_compile: Traceback (most recent call last):
File "/home/user/yocto/sp-core-image/src/poky/bitbake/lib/bb/build.py", line 567, in exec_task
    return _exec_task(fn, task, d, quieterr)
File "/home/user/yocto/sp-core-image/src/poky/bitbake/lib/bb/build.py", line 541, in _exec_task
    event.fire(TaskSucceeded(task, logfn, localdata), localdata)
File "/home/user/yocto/sp-core-image/src/poky/bitbake/lib/bb/event.py", line 171, in fire
    fire_class_handlers(event, d)
File "/home/user/yocto/sp-core-image/src/poky/bitbake/lib/bb/event.py", line 110, in fire_class_handlers
    execute_handler(name, handler, event, d)
File "/home/user/yocto/sp-core-image/src/poky/bitbake/lib/bb/event.py", line 82, in execute_handler
    ret = handler(event)
File "/home/user/yocto/sp-core-image/src/poky/meta/classes/sstate.bbclass", line 946, in sstate_eventhandler bb.siggen.dump_this_task(sstatepkg + '_' + taskname + ".tgz" ".siginfo", d) File "/home/user/yocto/sp-core-image/src/poky/bitbake/lib/bb/siggen.py", line 348, in dump_this_task bb.parse.siggen.dump_sigtask(fn, task, outfile, "customfile:" + referencestamp) File "/home/user/yocto/sp-core-image/src/poky/meta/lib/oe/sstatesig.py", line 182, in dump_sigtask super(bb.siggen.SignatureGeneratorBasicHash, self).dump_sigtask(fn, task, stampbase, runtime) File "/home/user/yocto/sp-core-image/src/poky/bitbake/lib/bb/siggen.py", line 303, in dump_sigtask
    computed_taskhash = calc_taskhash(data)
File "/home/user/yocto/sp-core-image/src/poky/bitbake/lib/bb/siggen.py", line 548, in calc_taskhash
    data = data + c[1]
TypeError: cannot concatenate 'str' and 'NoneType' objects
--
_______________________________________________
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto

Reply via email to