[yocto] Build error after changing $TMPDIR

Hao Qian qian.hao.developer at gmail.com
Thu Aug 8 19:12:58 PDT 2019


Hi,

I'm trying to change the $TMPDIR on my project.

I tried to set tmp folder's position just besides to the "poky" folder,
with modification like below:

```
diff -u ../meta-poky/conf/local.conf.sample conf/local.conf
--- ../meta-poky/conf/local.conf.sample 2019-08-09 10:20:50.115183741 +0900
+++ conf/local.conf     2019-08-09 10:21:25.614121622 +0900
@@ -76,7 +76,7 @@
 #
 # The default is a tmp directory under TOPDIR.
 #
-#TMPDIR = "${TOPDIR}/tmp"
+TMPDIR = "${TOPDIR}/../../tmp"

 #
 # Default policy config
```

And actually, yocto does create the tmp folder to the position which I
expected:

```
$ ls
poky tmp
```

However, everytime when I try to build core-image-minimal, error occurs.

```
$ bitbake core-image-minimal

Loading cache: 100%
|########################################################################################################################################################################################################################################################################|
Time: 0:00:00
Loaded 1303 entries from dependency cache.
NOTE: Resolving any missing task queue dependencies

Build Configuration:
BB_VERSION           = "1.42.0"
BUILD_SYS            = "x86_64-linux"
NATIVELSBSTRING      = "universal"
TARGET_SYS           = "i586-poky-linux"
MACHINE              = "qemux86"
DISTRO               = "poky"
DISTRO_VERSION       = "2.7.1"
TUNE_FEATURES        = "m32 i586"
TARGET_FPU           = ""
meta
meta-poky
meta-yocto-bsp       = "warrior:01b8a8b54bc569e5ef3f5e6fc6abcee365ab25d9"

Initialising tasks: 100%
|###################################################################################################################################################################################################################################################################|
Time: 0:00:00
Sstate summary: Wanted 809 Found 0 Missed 809 Current 1 (0% match, 0%
complete)
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
ERROR: texinfo-dummy-native-1.0-r0 do_patch: 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:extend_recipe_sysroot(d)
     0003:
File:
'/home/hqian/source/yocto/generic/srv-2/poky/meta/classes/staging.bbclass',
lineno: 563, function: extend_recipe_sysroot
     0559:    bb.note("Installed into sysroot: %s" % str(msg_adding))
     0560:    bb.note("Skipping as already exists in sysroot: %s" %
str(msg_exists))
     0561:
     0562:    for f in fixme:
 *** 0563:        staging_processfixme(fixme[f], f, recipesysroot,
recipesysrootnative, d)
     0564:
     0565:    for p in postinsts:
     0566:        subprocess.check_output(p, shell=True,
stderr=subprocess.STDOUT)
     0567:
File:
'/home/hqian/source/yocto/generic/srv-2/poky/meta/classes/staging.bbclass',
lineno: 174, function: staging_processfixme
     0170:    for fixmevar in ['COMPONENTS_DIR', 'HOSTTOOLS_DIR',
'PKGDATA_DIR', 'PSEUDO_LOCALSTATEDIR', 'LOGFIFO']:
     0171:        fixme_path = d.getVar(fixmevar)
     0172:        cmd += " -e 's:FIXME_%s:%s:g'" % (fixmevar, fixme_path)
     0173:    bb.debug(2, cmd)
 *** 0174:    subprocess.check_output(cmd, shell=True,
stderr=subprocess.STDOUT)
     0175:
     0176:
     0177:def staging_populate_sysroot_dir(targetsysroot, nativesysroot,
native, d):
     0178:    import glob
File: '/usr/lib/python3.6/subprocess.py', lineno: 356, function:
check_output
     0352:        # empty string. That is maintained here for backwards
compatibility.
     0353:        kwargs['input'] = '' if kwargs.get('universal_newlines',
False) else b''
     0354:
     0355:    return run(*popenargs, stdout=PIPE, timeout=timeout,
check=True,
 *** 0356:               **kwargs).stdout
     0357:
     0358:
     0359:class CompletedProcess(object):
     0360:    """A process that has finished running.
File: '/usr/lib/python3.6/subprocess.py', lineno: 438, function: run
     0434:            raise
     0435:        retcode = process.poll()
     0436:        if check and retcode:
     0437:            raise CalledProcessError(retcode, process.args,
 *** 0438:                                     output=stdout, stderr=stderr)
     0439:    return CompletedProcess(process.args, retcode, stdout, stderr)
     0440:
     0441:
     0442:def list2cmdline(seq):
Exception: subprocess.CalledProcessError: Command 'sed -e
's:^[^/]*/:/home/hqian/source/yocto/generic/srv-2/poky/build/../../tmp/work/x86_64-linux/texinfo-dummy-native/1.0-r0/recipe-sysroot-native/:g'
/home/hqian/source/yocto/generic/srv-2/poky/build/../../tmp/sysroots-components/x86_64/quilt-native/fixmepath
| xargs sed -i -e
's:FIXMESTAGINGDIRTARGET:/home/hqian/source/yocto/generic/srv-2/poky/build/../../tmp/work/x86_64-linux/texinfo-dummy-native/1.0-r0/recipe-sysroot:g;
s:FIXMESTAGINGDIRHOST:/home/hqian/source/yocto/generic/srv-2/poky/build/../../tmp/work/x86_64-linux/texinfo-dummy-native/1.0-r0/recipe-sysroot-native:g'
-e
's:FIXME_COMPONENTS_DIR:/home/hqian/source/yocto/generic/srv-2/poky/build/../../tmp/sysroots-components:g'
-e
's:FIXME_HOSTTOOLS_DIR:/home/hqian/source/yocto/generic/srv-2/poky/build/../../tmp/hosttools:g'
-e
's:FIXME_PKGDATA_DIR:/home/hqian/source/yocto/generic/srv-2/poky/build/../../tmp/pkgdata/qemux86:g'
-e
's:FIXME_PSEUDO_LOCALSTATEDIR:/home/hqian/source/yocto/generic/srv-2/poky/build/../../tmp/work/x86_64-linux/texinfo-dummy-native/1.0-r0/pseudo/:g'
-e
's:FIXME_LOGFIFO:/home/hqian/source/yocto/generic/srv-2/poky/build/../../tmp/work/x86_64-linux/texinfo-dummy-native/1.0-r0/temp/fifo.7358:g''
returned non-zero exit status 123.

Subprocess output:
sed: can't read
/home/hqian/source/yocto/generic/srv-2/poky/build/../../tmp/work/x86_64-linux/texinfo-dummy-native/1.0-r0/recipe-sysroot-native/usr/share/quilt/scripts/edmail:
No such file or directory
sed: can't read
/home/hqian/source/yocto/generic/srv-2/poky/build/../../tmp/work/x86_64-linux/texinfo-dummy-native/1.0-r0/recipe-sysroot-native/usr/share/quilt/scripts/remove-trailing-ws:
No such file or directory
sed: can't read
/home/hqian/source/yocto/generic/srv-2/poky/build/../../tmp/work/x86_64-linux/texinfo-dummy-native/1.0-r0/recipe-sysroot-native/usr/share/quilt/scripts/patchfns:
No such file or directory
sed: can't read
/home/hqian/source/yocto/generic/srv-2/poky/build/../../tmp/work/x86_64-linux/texinfo-dummy-native/1.0-r0/recipe-sysroot-native/usr/share/quilt/scripts/backup-files:
No such file or directory
sed: can't read
/home/hqian/source/yocto/generic/srv-2/poky/build/../../tmp/work/x86_64-linux/texinfo-dummy-native/1.0-r0/recipe-sysroot-native/usr/share/quilt/mail:
No such file or directory
sed: can't read
/home/hqian/source/yocto/generic/srv-2/poky/build/../../tmp/work/x86_64-linux/texinfo-dummy-native/1.0-r0/recipe-sysroot-native/usr/bin/quilt:
No such file or directory
```

I'm sorry that maybe it's a stupid and easy question.
Does anyone know what the problem is, and how to fix it?

Thank you very much.

Best regards,

Qian
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20190809/5244e364/attachment-0001.html>


More information about the yocto mailing list