Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ERROR: Could not apply patches for common-pc-64 #302

Open
outbackdingo opened this issue Oct 27, 2021 · 1 comment
Open

ERROR: Could not apply patches for common-pc-64 #302

outbackdingo opened this issue Oct 27, 2021 · 1 comment

Comments

@outbackdingo
Copy link

almost there, not quite there??? did it build for you?

Initialising tasks: 100% |######################################################################################################################| Time: 0:00:03
Sstate summary: Wanted 1557 Local 0 Mirrors 0 Missed 1557 Current 0 (0% match, 0% complete)
NOTE: Executing Tasks
ERROR: linux-yocto-5.14.6+gitAUTOINC+11430e73de_7ae156be3b-r0 do_patch: Could not apply patches for common-pc-64.
ERROR: linux-yocto-5.14.6+gitAUTOINC+11430e73de_7ae156be3b-r0 do_patch: Patch failures can be resolved in the linux source directory /home/dingo/overc/build/tmp/work-shared/genericx86-64/kernel-source)
ERROR: linux-yocto-5.14.6+gitAUTOINC+11430e73de_7ae156be3b-r0 do_patch: ExecutionError('/home/dingo/overc/build/tmp/work/genericx86_64-overc-linux/linux-yocto/5.14.6+gitAUTOINC+11430e73de_7ae156be3b-r0/temp/run.do_patch.1350433', 1, None, None)
ERROR: Logfile of failure stored in: /home/dingo/overc/build/tmp/work/genericx86_64-overc-linux/linux-yocto/5.14.6+gitAUTOINC+11430e73de_7ae156be3b-r0/temp/log.do_patch.1350433
Log data follows:
| DEBUG: Executing python function extend_recipe_sysroot
| NOTE: Direct dependencies are ['/home/dingo/overc/poky/meta/recipes-kernel/kern-tools/kern-tools-native_git.bb:do_populate_sysroot', 'virtual:native:/home/dingo/overc/meta-virtualization/recipes-kernel/linux/yocto-cfg-fragments.bb:do_populate_sysroot', 'virtual:native:/home/dingo/overc/poky/meta/recipes-devtools/patch/patch_2.7.6.bb:do_populate_sysroot', '/home/dingo/overc/poky/meta/recipes-devtools/quilt/quilt-native_0.66.bb:do_populate_sysroot']
| NOTE: Installed into sysroot: ['patch-native', 'quilt-native', 'libtool-native', 'attr-native', 'texinfo-dummy-native', 'gettext-minimal-native']
| NOTE: Skipping as already exists in sysroot: ['kern-tools-native', 'yocto-cfg-fragments-native']
| DEBUG: sed -e 's:^[^/]*/:/home/dingo/overc/build/tmp/work/genericx86_64-overc-linux/linux-yocto/5.14.6+gitAUTOINC+11430e73de_7ae156be3b-r0/recipe-sysroot-native/:g' /home/dingo/overc/build/tmp/sysroots-components/x86_64/quilt-native/fixmepath /home/dingo/overc/build/tmp/sysroots-components/x86_64/libtool-native/fixmepath | xargs sed -i -e 's:FIXMESTAGINGDIRTARGET:/home/dingo/overc/build/tmp/work/genericx86_64-overc-linux/linux-yocto/5.14.6+gitAUTOINC+11430e73de_7ae156be3b-r0/recipe-sysroot:g; s:FIXMESTAGINGDIRHOST:/home/dingo/overc/build/tmp/work/genericx86_64-overc-linux/linux-yocto/5.14.6+gitAUTOINC+11430e73de_7ae156be3b-r0/recipe-sysroot-native:g' -e 's:FIXME_PSEUDO_SYSROOT:/home/dingo/overc/build/tmp/sysroots-components/x86_64/pseudo-native:g' -e 's:FIXME_HOSTTOOLS_DIR:/home/dingo/overc/build/tmp/hosttools:g' -e 's:FIXME_PKGDATA_DIR:/home/dingo/overc/build/tmp/pkgdata/genericx86-64:g' -e 's:FIXME_PSEUDO_LOCALSTATEDIR:/home/dingo/overc/build/tmp/work/genericx86_64-overc-linux/linux-yocto/5.14.6+gitAUTOINC+11430e73de_7ae156be3b-r0/pseudo/:g' -e 's:FIXME_LOGFIFO:/home/dingo/overc/build/tmp/work/genericx86_64-overc-linux/linux-yocto/5.14.6+gitAUTOINC+11430e73de_7ae156be3b-r0/temp/fifo.1350433:g'
| DEBUG: Python function extend_recipe_sysroot finished
| DEBUG: Executing shell function do_patch
| (1/2) 0001-Add-abililty-for-a-child-ADMIN-name-space-to-escape-.patch
| (2/2) 0002-CAP_ADMIN_NS-Only-pass-a-level-1-ns-if-inheritable-a.patch
| [INFO]: check of .kernel-meta//patches//./0002-CAP_ADMIN_NS-Only-pass-a-level-1-ns-if-inheritable-a.patch with "git am" did not pass, trying reduced context.
| [INFO]: Context reduced git-am of .kernel-meta//patches//./0002-CAP_ADMIN_NS-Only-pass-a-level-1-ns-if-inheritable-a.patch with "git am" did not work, trying "apply".
| error: patch failed: kernel/cred.c:372
| error: kernel/cred.c: patch does not apply
| [ERROR]: Application of .kernel-meta//patches//./0002-CAP_ADMIN_NS-Only-pass-a-level-1-ns-if-inheritable-a.patch failed.
| Patch needs to be refreshed. Sample resolution script:
| .git/rebase-apply/resolve_rejects
| ERROR: Could not apply patches for common-pc-64.
| ERROR: Patch failures can be resolved in the linux source directory /home/dingo/overc/build/tmp/work-shared/genericx86-64/kernel-source)
| WARNING: /home/dingo/overc/build/tmp/work/genericx86_64-overc-linux/linux-yocto/5.14.6+gitAUTOINC+11430e73de_7ae156be3b-r0/temp/run.do_patch.1350433:207 exit 1 from 'exit 1'
| WARNING: Backtrace (BB generated script):
| #1: bbfatal_log, /home/dingo/overc/build/tmp/work/genericx86_64-overc-linux/linux-yocto/5.14.6+gitAUTOINC+11430e73de_7ae156be3b-r0/temp/run.do_patch.1350433, line 207
| #2: do_patch, /home/dingo/overc/build/tmp/work/genericx86_64-overc-linux/linux-yocto/5.14.6+gitAUTOINC+11430e73de_7ae156be3b-r0/temp/run.do_patch.1350433, line 163
| #3: main, /home/dingo/overc/build/tmp/work/genericx86_64-overc-linux/linux-yocto/5.14.6+gitAUTOINC+11430e73de_7ae156be3b-r0/temp/run.do_patch.1350433, line 230
ERROR: Task (/home/dingo/overc/poky/meta/recipes-kernel/linux/linux-yocto_5.14.bb:do_patch) failed with exit code '1'
NOTE: Tasks Summary: Attempted 2207 tasks of which 0 didn't need to be rerun and 1 failed.

Summary: 1 task failed:
/home/dingo/overc/poky/meta/recipes-kernel/linux/linux-yocto_5.14.bb:do_patch
Summary: There were 3 WARNING messages shown.
Summary: There were 3 ERROR messages shown, returning a non-zero exit code.
❯ .git/rebase-apply/resolve_rejects
zsh: no such file or directory: .git/rebase-apply/resolve_rejects

@zeddii
Copy link
Contributor

zeddii commented Oct 27, 2021

I haven't done the kernel porting yet, I tried with 5.10 and it didn't quite work. So I'm having another try at 5.14 shortly.

You'll see where I made changes that you can build most of OverC with something like poky as the distro, since the essential/dom0 serve as good container base images, even if the namespace capability isn't there yet.

That's how my initial build updates were completed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants