[yocto] hello world recipe failing at do_patch.
Paul Eggleton
paul.eggleton at linux.intel.com
Tue May 2 14:12:20 PDT 2017
Hi Arun,
On Tuesday, 2 May 2017 6:14:28 PM NZST Arun Kumar wrote:
> Here is the error log:
>
>
//------------------------------------------------------------------------------------------------------------
>
> Loaded 1475 entries from dependency cache.
> NOTE: Resolving any missing task queue dependencies
>
> Build Configuration:
> BB_VERSION = "1.33.4"
> BUILD_SYS = "x86_64-linux"
> NATIVELSBSTRING = "universal"
> TARGET_SYS = "arm-poky-linux-gnueabi"
> MACHINE = "beaglebone"
> DISTRO = "poky"
> DISTRO_VERSION = "2.2+snapshot-20170502"
> TUNE_FEATURES = "arm armv7a vfp neon callconvention-hard cortexa8"
> TARGET_FPU = "hard"
> meta
> meta-poky
> meta-yocto-bsp = "master:1fa1a7f174593e41b8bcf6c2f19565d6da44e991"
> meta-ti = "master:8e18871135c62add6ebbeb6424c5a72eac0a66d4"
> meta-helloworld = "<unknown>:<unknown>"
>
> Initialising tasks: 100%
> |
########################################################################################################################################################################################|
> Time: 0:00:01
> 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/beagle/yocto/poky/meta/classes/staging.bbclass', lineno:
> 592, function: extend_recipe_sysroot
> 0588: dest = newmanifest[l]
> 0589: if l.endswith("/"):
> 0590: staging_copydir(l, targetdir, dest,
> seendirs)
> 0591: continue
> *** 0592: staging_copyfile(l, targetdir, dest,
> postinsts, seendirs)
> 0593:
> 0594: for f in fixme:
> 0595: if f == '':
> 0596: staging_processfixme(fixme[f], recipesysroot,
> recipesysroot, recipesysrootnative, d)
> File: '/home/beagle/yocto/poky/meta/classes/staging.bbclass', lineno:
> 233, function: staging_copyfile
> 0229: os.symlink(linkto, dest)
> 0230: #bb.warn(c)
> 0231: else:
> 0232: try:
> *** 0233: os.link(c, dest)
> 0234: except OSError as err:
> 0235: if err.errno == errno.EXDEV:
> 0236: bb.utils.copyfile(c, dest)
> 0237: else:
> Exception: FileExistsError: [Errno 17] File exists:
> '/home/beagle/yocto/tmp/sysroots-components/x86_64/quilt-native/etc/quiltrc'
> ->
> '/home/beagle/yocto/tmp/work/x86_64-linux/texinfo-dummy-native/1.0-r0/
recipe-sysroot-native/etc/quiltrc'
>
> ERROR: texinfo-dummy-native-1.0-r0 do_patch: Function failed:
> extend_recipe_sysroot
> ERROR: Logfile of failure stored in:
> /home/beagle/yocto/tmp/work/x86_64-linux/texinfo-dummy-native/1.0-r0/temp/
log.do_patch.1026
> ERROR: Task
> (/home/beagle/yocto/poky/meta/recipes-extended/texinfo-dummy-native/texinfo-
dummy-native.bb:do_patch)
> failed with exit code '1'
> ERROR: gnu-config-native-20150728+gitAUTOINC+b576fa87c1-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/beagle/yocto/poky/meta/classes/staging.bbclass', lineno:
> 592, function: extend_recipe_sysroot
> 0588: dest = newmanifest[l]
> 0589: if l.endswith("/"):
> 0590: staging_copydir(l, targetdir, dest,
> seendirs)
> 0591: continue
> *** 0592: staging_copyfile(l, targetdir, dest,
> postinsts, seendirs)
> 0593:
> 0594: for f in fixme:
> 0595: if f == '':
> 0596: staging_processfixme(fixme[f], recipesysroot,
> recipesysroot, recipesysrootnative, d)
> File: '/home/beagle/yocto/poky/meta/classes/staging.bbclass', lineno:
> 233, function: staging_copyfile
> 0229: os.symlink(linkto, dest)
> 0230: #bb.warn(c)
> 0231: else:
> 0232: try:
> *** 0233: os.link(c, dest)
> 0234: except OSError as err:
> 0235: if err.errno == errno.EXDEV:
> 0236: bb.utils.copyfile(c, dest)
> 0237: else:
> Exception: FileExistsError: [Errno 17] File exists:
> '/home/beagle/yocto/tmp/sysroots-components/x86_64/quilt-native/etc/quiltrc'
> ->
> '/home/beagle/yocto/tmp/work/x86_64-linux/gnu-config-native/
20150728+gitAUTOINC+b576fa87c1-r0/recipe-sysroot-native/etc/quiltrc'
Just to work out how this happened, did you interrupt the build previously
(e.g. with Ctrl+C) ?
In any event you should be able to run the following to clear the issue and
then re-run your build command:
bitbake -c clean quilt-native gnu-config-native
Richard, do we plan to add some kind of mitigation for this? I thought I'd
filed a bug already but I can't seem to find it.
Cheers,
Paul
--
Paul Eggleton
Intel Open Source Technology Centre
More information about the yocto
mailing list