* Build error after changing $TMPDIR
@ 2019-08-09 2:12 Hao Qian
[not found] ` <09b388f2-7f3a-75d2-4399-84c99b09c0e4@windriver.com>
0 siblings, 1 reply; 2+ messages in thread
From: Hao Qian @ 2019-08-09 2:12 UTC (permalink / raw
To: yocto
[-- Attachment #1: Type: text/plain, Size: 7267 bytes --]
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
[-- Attachment #2: Type: text/html, Size: 8462 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Build error after changing $TMPDIR
[not found] ` <09b388f2-7f3a-75d2-4399-84c99b09c0e4@windriver.com>
@ 2019-08-09 6:20 ` Hao Qian
0 siblings, 0 replies; 2+ messages in thread
From: Hao Qian @ 2019-08-09 6:20 UTC (permalink / raw
To: ChenQi; +Cc: yocto
On Fri, Aug 9, 2019 at 12:15 PM ChenQi <Qi.Chen@windriver.com> wrote:
>
> No, it's not a stupid question.
>
> For now, setting TMPDIR like this does cause build error. More sanity check might be needed to error out directly in such case.
> You can just source the build directory to be some location you want.
> . oe-init-build-env /path/to/your/build/dir
>
> Or maybe you have some other specific needs?
>
> Regards,
> Chen Qi
OK, I see.
I will take your advice.
Thanks a lot, appreciate it.
Qian
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2019-08-09 6:20 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-08-09 2:12 Build error after changing $TMPDIR Hao Qian
[not found] ` <09b388f2-7f3a-75d2-4399-84c99b09c0e4@windriver.com>
2019-08-09 6:20 ` Hao Qian
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.