IMX8MP--Yocto构建sdk时出现的问题,nativesdk-qemu-6.2.0-r0 do_patch error,该如何解决?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

IMX8MP--Yocto构建sdk时出现的问题,nativesdk-qemu-6.2.0-r0 do_patch error,该如何解决?

602 Views
andymo
Contributor I

@dear NXP teams:

ERROR: nativesdk-qemu-6.2.0-r0 do_patch: Applying patch '0001-qemu-Reinstated-syscall-emulation-through-libc-via-c.patch' on target directory '/home/lyf/work/nxp-desktop/build-desktop/tmp/work/x86_64-nativesdk-fslbsp-linux/nativesdk-qemu/6.2.0-r0/qemu-6.2.0'
CmdError('quilt --quiltrc /home/lyf/work/nxp-desktop/build-desktop/tmp/work/x86_64-nativesdk-fslbsp-linux/nativesdk-qemu/6.2.0-r0/recipe-sysroot-native/etc/quiltrc push', 0, 'stdout: Applying patch 0001-qemu-Reinstated-syscall-emulation-through-libc-via-c.patch
patching file linux-user/main.c
Hunk #1 succeeded at 380 with fuzz 1 (offset 2 lines).
Hunk #2 succeeded at 460 (offset 16 lines).
patching file linux-user/qemu.h
Hunk #1 FAILED at 370.
1 out of 1 hunk FAILED -- rejects in file linux-user/qemu.h
patching file linux-user/syscall.c
Hunk #1 succeeded at 62 with fuzz 1 (offset 6 lines).
Hunk #2 succeeded at 143 with fuzz 2 (offset 30 lines).
Hunk #3 succeeded at 261 (offset 32 lines).
Hunk #4 succeeded at 433 with fuzz 2 (offset 42 lines).
Hunk #5 succeeded at 585 (offset -119 lines).
Hunk #6 FAILED at 778.
Hunk #7 succeeded at 771 (offset -86 lines).
Hunk #8 succeeded at 7027 (offset 699 lines).
1 out of 8 hunks FAILED -- rejects in file linux-user/syscall.c
Patch 0001-qemu-Reinstated-syscall-emulation-through-libc-via-c.patch does not apply (enforce with -f)

stderr: ')
ERROR: Logfile of failure stored in: /home/lyf/work/nxp-desktop/build-desktop/tmp/work/x86_64-nativesdk-fslbsp-linux/nativesdk-qemu/6.2.0-r0/temp/log.do_patch.2922897
ERROR: Task (virtual:nativesdk:/home/lyf/work/nxp-desktop/sources/poky/meta/recipes-devtools/qemu/qemu_6.2.0.bb:do_patch) failed with exit code '1'
NOTE: Tasks Summary: Attempted 5436 tasks of which 5403 didn't need to be rerun and 1 failed.

ummary: 1 task failed:
virtual:nativesdk:/home/lyf/work/nxp-desktop/sources/poky/meta/recipes-devtools/qemu/qemu_6.2.0.bb:do_patch
Summary: There was 1 ERROR message, returning a non-zero exit code.

0 Kudos
4 Replies

575 Views
Harvey021
NXP TechSupport
NXP TechSupport

Based on the error logs, seems the version required for the .patch doesn't match the BSP (or the recipe qemu) that you are building.

 

Regards

Harvey

0 Kudos

569 Views
andymo
Contributor I
May I ask what version is needed and can you provide it to us
0 Kudos

555 Views
Harvey021
NXP TechSupport
NXP TechSupport

Which Yocto BSP are you building? 

Network problem may also result in not completely and correctly downloading related patches, worthy of having a try to clean the recipe and fetch it. 

 

Regards

Harvey 

0 Kudos

449 Views
andymo
Contributor I
0 Kudos