DEBUG: Executing python function extend_recipe_sysroot
NOTE: Direct dependencies are ['TOPDIR/openembedded-core/meta/recipes-devtools/quilt/quilt-native_0.67.bb:do_populate_sysroot', 'virtual:native:TOPDIR/openembedded-core/meta/recipes-devtools/patch/patch_2.7.6.bb:do_populate_sysroot']
NOTE: Installed into sysroot: ['gettext-minimal-native', 'libtool-native', 'quilt-native', 'texinfo-dummy-native', 'patch-native', 'attr-native']
NOTE: Skipping as already exists in sysroot: []
DEBUG: sed -e 's:^[^/]*/:TOPDIR/tmp-glibc/work/core2-64-oe-linux/netns/0.5.3+git/recipe-sysroot-native/:g' TOPDIR/tmp-glibc/sysroots-components/x86_64/libtool-native/fixmepath TOPDIR/tmp-glibc/sysroots-components/x86_64/quilt-native/fixmepath | xargs sed -i -e 's:FIXMESTAGINGDIRTARGET:TOPDIR/tmp-glibc/work/core2-64-oe-linux/netns/0.5.3+git/recipe-sysroot:g; s:FIXMESTAGINGDIRHOST:TOPDIR/tmp-glibc/work/core2-64-oe-linux/netns/0.5.3+git/recipe-sysroot-native:g' -e 's:FIXME_PSEUDO_SYSROOT:TOPDIR/tmp-glibc/sysroots-components/x86_64/pseudo-native:g' -e 's:FIXME_HOSTTOOLS_DIR:TOPDIR/tmp-glibc/hosttools:g' -e 's:FIXME_PKGDATA_DIR:TOPDIR/tmp-glibc/pkgdata/qemux86-64:g' -e 's:FIXME_PSEUDO_LOCALSTATEDIR:TOPDIR/tmp-glibc/work/core2-64-oe-linux/netns/0.5.3+git/pseudo/:g' -e 's:FIXME_LOGFIFO:TOPDIR/tmp-glibc/work/core2-64-oe-linux/netns/0.5.3+git/temp/fifo.408472:g'
DEBUG: Python function extend_recipe_sysroot finished
DEBUG: Executing python function do_patch
DEBUG: Executing python function patch_do_patch
DEBUG: Searching for Makefile-force-rebuilding-all-packages-to-avoid-cgo.patch in paths:
    TOPDIR/meta-virtualization/recipes-networking/netns/netns-0.5.3+git/nodistro
    TOPDIR/meta-virtualization/recipes-networking/netns/netns/nodistro
    TOPDIR/meta-virtualization/recipes-networking/netns/files/nodistro
    TOPDIR/meta-virtualization/recipes-networking/netns/netns-0.5.3+git/qemux86-64
    TOPDIR/meta-virtualization/recipes-networking/netns/netns/qemux86-64
    TOPDIR/meta-virtualization/recipes-networking/netns/files/qemux86-64
    TOPDIR/meta-virtualization/recipes-networking/netns/netns-0.5.3+git/qemuall
    TOPDIR/meta-virtualization/recipes-networking/netns/netns/qemuall
    TOPDIR/meta-virtualization/recipes-networking/netns/files/qemuall
    TOPDIR/meta-virtualization/recipes-networking/netns/netns-0.5.3+git/x86-64
    TOPDIR/meta-virtualization/recipes-networking/netns/netns/x86-64
    TOPDIR/meta-virtualization/recipes-networking/netns/files/x86-64
    TOPDIR/meta-virtualization/recipes-networking/netns/netns-0.5.3+git/
    TOPDIR/meta-virtualization/recipes-networking/netns/netns/
    TOPDIR/meta-virtualization/recipes-networking/netns/files/
DEBUG: Using TOPDIR/meta-virtualization/recipes-networking/netns/files/Makefile-force-rebuilding-all-packages-to-avoid-cgo.patch for Makefile-force-rebuilding-all-packages-to-avoid-cgo.patch
NOTE: Applying patch 'Makefile-force-rebuilding-all-packages-to-avoid-cgo.patch' (meta-virtualization/recipes-networking/netns/files/Makefile-force-rebuilding-all-packages-to-avoid-cgo.patch)
ERROR: Applying patch 'Makefile-force-rebuilding-all-packages-to-avoid-cgo.patch' on target directory 'TOPDIR/tmp-glibc/work/core2-64-oe-linux/netns/0.5.3+git/git'
CmdError('quilt --quiltrc TOPDIR/tmp-glibc/work/core2-64-oe-linux/netns/0.5.3+git/recipe-sysroot-native/etc/quiltrc push', 0, "stdout: Applying patch Makefile-force-rebuilding-all-packages-to-avoid-cgo.patch
can't find file to patch at input line 47
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|From fa402247e9b24470648a366cfda1c9134660146a Mon Sep 17 00:00:00 2001
|From: Mark Asselstine <mark.asselstine@windriver.com>
|Date: Mon, 18 Mar 2019 14:04:16 -0400
|Subject: [PATCH] Makefile: force rebuilding all packages to avoid cgo
|
|We are running into an issue when attempting to build 'static',
|similar to what is described by
|
|https://plus.google.com/117192131596509381660/posts/eNnNePihYnK
|and
|https://github.com/golang/go/issues/9369
|
|In our case we can see that it manifests as a build error
|
|    cannot find package runtime/cgo (using -importcfg)
|    ...go/pkg/tool/linux_amd64/link: cannot open file : open : no such file or directory
|
|Although the descriptions of issue indicate that newer versions of GO,
|such as the version we are using, should not have this issue it is
|clear from the error that cgo is being referenced when it should be
|out of the picture.
|
|Interesting enough this issue only manifests when we are building on
|x86-64 and building for x86-64 which might indicate that GO might be
|finding -native packages and not -cross packages.
|
|This change works around the issue and will allow for the building of
|the 'static' make target, but at this time and until the issue is
|completely understood, it is recommended that the 'build' target is
|used.
|
|Upstream-Status: Inappropriate [only an issue with our builds]
|
|Signed-off-by: Mark Asselstine <mark.asselstine@windriver.com>
|
|Forward-ported to v0.5.3.
|
|Signed-off-by: Paul Barker <paul@betafive.co.uk>
|---
| basic.mk | 4 ++--
| 1 file changed, 2 insertions(+), 2 deletions(-)
|
|diff --git a/basic.mk b/basic.mk
|index 187dff3..76a8d93 100644
|--- a/src/import/basic.mk
|+++ b/src/import/basic.mk
--------------------------
No file to patch.  Skipping patch.
1 out of 1 hunk ignored
Patch Makefile-force-rebuilding-all-packages-to-avoid-cgo.patch does not apply (enforce with -f)

stderr: ")
DEBUG: Python function patch_do_patch finished
DEBUG: Python function do_patch finished

Error details

Submitted on:
23/05/24 14:20
Error type:
Recipe
Task:
do_patch
Recipe:
netns
Recipe version:
0.5.3+git-r0
Machine:
qemux86-64
Distro:
nodistro
Build system:
x86_64-linux
Target system:
x86_64-oe-linux
Host distro:
gentoo-2.15/gentoo-2.15
Branch:
jansa/master
Commit:
51c459a5f93c2b9ffe6ffc509818081eefded7a0
Build:
#184253
Submitter:
Martin.Jansa@gmail.com
Similar errors:
0
Open a bug