@willn running into an error trying to run Docker directly, initially couldn’t run because “groupadd: GID ‘20’ already exists” so I’ve manually changed the group id but then I run into an issue later through the build.
Command
docker run --rm -v $(pwd):/yocto/resin-board -v $(pwd)/shared-downloads:/yocto/shared-downloads -v $(pwd)/shared-sstate:/yocto/shared-sstate -e BUILDER_UID=$(id -u) -e BUILDER_GID=2000 --name yocto-build-raspberrypi3 --privileged resin/yocto-build-env /prepare-and-start.sh --log --machine "raspberrypi3" --shared-downloads /yocto/shared-downloads --shared-sstate /yocto/shared-sstate --rm-work
Error
ERROR: quilt-native-0.64-r0 do_populate_sysroot: Error executing a python function in exec_python_func() autogenerated:
The stack trace of python calls that resulted in this exception/failure was:
File: 'exec_python_func() autogenerated', lineno: 2, function: <module>
0001:
*** 0002:sstate_task_postfunc(d)
0003:
File: '/yocto/resin-board/build/../layers/poky/meta/classes/sstate.bbclass', lineno: 672, function: sstate_task_postfunc
0668:
0669:python sstate_task_postfunc () {
0670: shared_state = sstate_state_fromvars(d)
0671:
*** 0672: sstate_install(shared_state, d)
0673: for intercept in shared_state['interceptfuncs']:
0674: bb.build.exec_func(intercept, d, (d.getVar("WORKDIR", True),))
0675: omask = os.umask(0o002)
0676: if omask != 0o002:
File: '/yocto/resin-board/build/../layers/poky/meta/classes/sstate.bbclass', lineno: 276, function: sstate_install
0272:
0273: # Run the actual file install
0274: for state in ss['dirs']:
0275: if os.path.exists(state[1]):
*** 0276: oe.path.copyhardlinktree(state[1], state[2])
0277:
0278: for postinst in (d.getVar('SSTATEPOSTINSTFUNCS', True) or '').split():
0279: # All hooks should run in the SSTATE_INSTDIR
0280: bb.build.exec_func(postinst, d, (sstateinst,))
File: '/yocto/resin-board/build/../layers/poky/meta/lib/oe/path.py', lineno: 91, function: copyhardlinktree
0087: source = source + '%s/*' % src
0088: else:
0089: source = src
0090: cmd = 'cp -afl --preserve=xattr %s %s' % (source, dst)
*** 0091: subprocess.check_output(cmd, shell=True, stderr=subprocess.STDOUT)
0092: else:
0093: copytree(src, dst)
0094:
0095:def remove(path, recurse=True):
File: '/usr/lib/python3.5/subprocess.py', lineno: 626, function: check_output
0622: # empty string. That is maintained here for backwards compatibility.
0623: kwargs['input'] = '' if kwargs.get('universal_newlines', False) else b''
0624:
0625: return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
*** 0626: **kwargs).stdout
0627:
0628:
0629:class CompletedProcess(object):
0630: """A process that has finished running.
File: '/usr/lib/python3.5/subprocess.py', lineno: 708, function: run
0704: raise
0705: retcode = process.poll()
0706: if check and retcode:
0707: raise CalledProcessError(retcode, process.args,
*** 0708: output=stdout, stderr=stderr)
0709: return CompletedProcess(process.args, retcode, stdout, stderr)
0710:
0711:
0712:def list2cmdline(seq):
Exception: subprocess.CalledProcessError: Command 'cp -afl --preserve=xattr /yocto/resin-board/build/tmp/work/x86_64-linux/quilt-native/0.64-r0/sysroot-destdir/yocto/resin-board/build/tmp/sysroots/x86_64-linux/* /yocto/resin-board/build/tmp/sysroots/x86_64-linux' returned non-zero exit status 1
Subprocess output:
cp: cannot create hard link '/yocto/resin-board/build/tmp/sysroots/x86_64-linux/usr/share/quilt/compat/awk' to '/yocto/resin-board/build/tmp/work/x86_64-linux/quilt-native/0.64-r0/sysroot-destdir/yocto/resin-board/build/tmp/sysroots/x86_64-linux/usr/share/quilt/compat/awk': No such file or directory
ERROR: quilt-native-0.64-r0 do_populate_sysroot: Function failed: sstate_task_postfunc
ERROR: Logfile of failure stored in: /yocto/resin-board/build/tmp/work/x86_64-linux/quilt-native/0.64-r0/temp/log.do_populate_sysroot.1511
NOTE: recipe quilt-native-0.64-r0: task do_populate_sysroot: Failed
ERROR: Task (/yocto/resin-board/build/../layers/poky/meta/recipes-devtools/quilt/quilt-native_0.64.bb:do_populate_sysroot) failed with exit code '1'