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

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

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

1,109件の閲覧回数
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 件の賞賛
返信
4 返答(返信)

1,082件の閲覧回数
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 件の賞賛
返信

1,076件の閲覧回数
andymo
Contributor I
May I ask what version is needed and can you provide it to us
0 件の賞賛
返信

1,062件の閲覧回数
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 件の賞賛
返信

956件の閲覧回数
andymo
Contributor I
0 件の賞賛
返信