W76XX , R17 build failed

Initialising tasks: 100% |########################################################################################################################################################################| Time: 0:00:03
Sstate summary: Wanted 10 Found 0 Missed 10 Current 1574 (0% match, 99% complete)
NOTE: Executing Tasks
ERROR: mdm9x28-image-minimal-1.0-r0.0 do_image: Error executing a python function in exec_func_python() autogenerated:

The stack trace of python calls that resulted in this exception/failure was:
File: ‘exec_func_python() autogenerated’, lineno: 2, function:
0001:
*** 0002:do_image(d)
0003:
File: ‘/home/vaz/WP76/R17/yocto/poky/meta/classes/image.bbclass’, lineno: 263, function: do_image
0259:
0260: d.setVarFlag(‘REPRODUCIBLE_TIMESTAMP_ROOTFS’, ‘export’, ‘1’)
0261: pre_process_cmds = d.getVar(“IMAGE_PREPROCESS_COMMAND”)
0262:
*** 0263: execute_pre_post_process(d, pre_process_cmds)
0264:}
0265:do_image[dirs] = “${TOPDIR}”
0266:do_image[umask] = “022”
0267:addtask do_image after do_rootfs
File: ‘/home/vaz/WP76/R17/yocto/poky/meta/lib/oe/utils.py’, lineno: 264, function: execute_pre_post_process
0260: for cmd in cmds.strip().split(‘;’):
0261: cmd = cmd.strip()
0262: if cmd != ‘’:
0263: bb.note(“Executing %s …” % cmd)
*** 0264: bb.build.exec_func(cmd, d)
0265:
0266:# For each item in items, call the function ‘target’ with item as the first
0267:# argument, extraargs as the other arguments and handle any exceptions in the
0268:# parent thread
File: ‘/home/vaz/WP76/R17/yocto/poky/bitbake/lib/bb/build.py’, lineno: 254, function: exec_func
0250: with bb.utils.fileslocked(lockfiles):
0251: if ispython:
0252: exec_func_python(func, d, runfile, cwd=adir)
0253: else:
*** 0254: exec_func_shell(func, d, runfile, cwd=adir)
0255:
0256: try:
0257: curcwd = os.getcwd()
0258: except:
File: ‘/home/vaz/WP76/R17/yocto/poky/bitbake/lib/bb/build.py’, lineno: 455, function: exec_func_shell
0451: with open(fifopath, ‘r+b’, buffering=0) as fifo:
0452: try:
0453: bb.debug(2, “Executing shell function %s” % func)
0454: with open(os.devnull, ‘r+’) as stdin, logfile:
*** 0455: bb.process.run(cmd, shell=False, stdin=stdin, log=logfile, extrafiles=[(fifo,readfifo)])
0456: finally:
0457: os.unlink(fifopath)
0458:
0459: bb.debug(2, “Shell function %s finished” % func)
File: ‘/home/vaz/WP76/R17/yocto/poky/bitbake/lib/bb/process.py’, lineno: 184, function: run
0180:
0181: if pipe.returncode != 0:
0182: if log:
0183: # Don’t duplicate the output in the exception if logging it
*** 0184: raise ExecutionError(cmd, pipe.returncode, None, None)
0185: raise ExecutionError(cmd, pipe.returncode, stdout, stderr)
0186: return stdout, stderr
Exception: bb.process.ExecutionError: Execution of ‘/home/vaz/WP76/R17/yocto/build_bin/tmp/work/swi_mdm9x28_wp-poky-linux-gnueabi/mdm9x28-image-minimal/1.0-r0.0/temp/run.do_generate_version_file.1562’ failed with exit code 128

ERROR: Logfile of failure stored in: /home/vaz/WP76/R17/yocto/build_bin/tmp/work/swi_mdm9x28_wp-poky-linux-gnueabi/mdm9x28-image-minimal/1.0-r0.0/temp/log.do_image.1562
ERROR: Task (/home/vaz/WP76/R17/yocto/meta-swi/meta-swi-mdm9x28/recipes-core/images/mdm9x28-image-minimal.bb:do_image) failed with exit code ‘1’
NOTE: Tasks Summary: Attempted 3857 tasks of which 3856 didn’t need to be rerun and 1 failed.

Summary: 1 task failed:
/home/vaz/WP76/R17/yocto/meta-swi/meta-swi-mdm9x28/recipes-core/images/mdm9x28-image-minimal.bb:do_image
Summary: There were 2 WARNING messages shown.

Did anyone face the same issue?

are you ok to build yocto of R16.0.1?

yes i could build R16.0.1 without any problem

You can try ubuntu16 where some other user and myself can build both R16 and R17

Try to look in details into logs, e.g /home/vaz/WP76/R17/yocto/build_bin/tmp/work/swi_mdm9x28_wp-poky-linux-gnueabi/mdm9x28-image-minimal/1.0-r0.0/temp/run.do_generate_version_file.1562

In my case, for several executions in a raw, there was complain do “git config --global --add safe.directory” some of Yocto subdirectories.

After that, clean build of Yocto (make clean; make) was successful.

Host environment Ubuntu 18.04.

Thanks, Slawek