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?
We don’t see problem to build R17 yocto source:

here says you need to install some tools:

This is the tool I have installed:

yes, we are able to build yocto of R16.0.1 without any errors. (I just checked once again)
I did not do any changes to the source that I download and I just run the build image_bin

how about just type “make” to build it?

make also gives the same result.
can you give me link of source which you tested

I download from here:
https://source.sierrawireless.com/resources/airprime/software/wp76xx/wp76xx-firmware-release-17-components/#sthash.v5GllkUS.dpbs

Link:
https://downloads.sierrawireless.com/_upload/wp76/Release17/Legato-Dist-Source-mdm9x28-SWI9X07Y_03.01.07.00.tar.bz2

wget https://downloads.sierrawireless.com/_upload/wp76/Release17/Legato-Dist-Source-mdm9x28-SWI9X07Y_03.01.07.00.tar.bz2
sync
tar -xvf Legato-Dist-Source-mdm9x28-SWI9X07Y_03.01.07.00.tar.bz2
sync
cd yocto/
ls
make image_bin

We ended with the same result. failed at "mdm9x28-image-minimal.bb:do_image ".

ERROR: Logfile of failure stored in: /home/vaz/WP76/R17/newdir/yocto/build_bin/tmp/work/swi_mdm9x28_wp-poky-linux-gnueabi/mdm9x28-image-minimal/1.0-r0.0/temp/log.do_image.24395
ERROR: Task (/home/vaz/WP76/R17/newdir/yocto/meta-swi/meta-swi-mdm9x28/recipes-core/images/mdm9x28-image-minimal.bb:do_image) failed with exit code ‘1’

Did you check what error message is in the log files?
BTW, I am using Ubuntu 16 64-bit PC to build the yocto image

I’m using Ubuntu 18.04. the same machines used to build R16 Version.

look like a config conflict it got occurred during the SDK generation
also, I see some of the images has been generated,

/yocto/build_bin/tmp/deploy/images/swi-mdm9x28-wp$ ls -la
total 7600
drwxr-xr-x 2 vaz vaz 4096 Jul 4 12:54 .
drwxr-xr-x 3 vaz vaz 4096 Jul 4 12:49 …
-rw-r–r-- 1 vaz vaz 599336 Jul 4 12:49 appsboot.mbn
-rwxr-xr-x 1 vaz vaz 595928 Jul 4 12:49 appsboot.mbn.unsigned
-rw-r–r-- 1 vaz vaz 599336 Jul 4 12:49 appsboot_rw.mbn
-rwxr-xr-x 1 vaz vaz 595984 Jul 4 12:49 appsboot_rw.mbn.unsigned
-rw-r–r-- 1 vaz vaz 37 Jul 4 12:49 lk.version
-rw-r–r-- 1 vaz vaz 5491160 Jul 4 12:54 zImage

yoctobuild_bintmpdeployimagesswi-md.txt (520 Bytes)

Found the below error in a
log.do_image.26228.txt (5.8 KB)
run.do_generate_version_file.26228.txt (29.3 KB)
log file .
File: ‘/home/vaz/WP76/R17/newdir/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/newdir/yocto/build_bin/tmp/work/swi_mdm9x28_wp-poky-linux-gnueabi/mdm9x28-image-minimal/1.0-r0.0/temp/run.do_generate_version_file.26228’ failed with exit code 128

DEBUG: Python function do_image finished

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