yocto build toolchain error for nativesdk-qemu-7.2.0-r0 do_patch:

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

yocto build toolchain error for nativesdk-qemu-7.2.0-r0 do_patch:

1,425 次查看
sunannan
Contributor II

build log :

# ~/ bitbake imx-image-desktop -c populate_sdk

#~/

Loading cache: 100% |#########################################################################################################################################| Time: 0:00:01
Loaded 5368 entries from dependency cache.
Parsing recipes: 100% |#######################################################################################################################################| Time: 0:00:02
Parsing of 3491 .bb files complete (3489 cached, 2 parsed). 5370 targets, 515 skipped, 20 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies

Build Configuration:
BB_VERSION = "2.4.0"
BUILD_SYS = "x86_64-linux"
NATIVELSBSTRING = "universal"
TARGET_SYS = "aarch64-fsl-linux"
MACHINE = "imx8mpevk"
DISTRO = "imx-desktop-xwayland"
DISTRO_VERSION = "1.0"
TUNE_FEATURES = "aarch64 armv8a crc crypto"
TARGET_FPU = ""
meta
meta-poky = "HEAD:ddb298ce894482467d82699d223c5555baad6591"
meta-oe
meta-multimedia
meta-python = "HEAD:54b177f4acb3048d21a68f180fc183d0fdf47a94"
meta-freescale = "HEAD:39d8f0d5ee44aae9932923e9fe95b7f2838563af"
meta-freescale-3rdparty = "HEAD:48cc5dd42007d09295677bc8bc0377fe96b5b270"
meta-freescale-distro = "HEAD:a4efa17a9f6b25d8d9290dfee8275059d40b83df"
meta-bsp
meta-sdk
meta-ml
meta-v2x = "HEAD:64a864ab77de06a557afcb01e6dd4d21606e6948"
meta-nxp-demo-experience = "HEAD:ec9d5592dc6369622dc027ad456cadb844451226"
meta-arm
meta-arm-toolchain = "HEAD:0b5724266a8e559cac1724350c1ff2f9e6580326"
meta-chromium = "HEAD:e232c2e21b96dc092d9af8bea4b3a528e7a46dd6"
meta-clang = "HEAD:1e0af2f5bb797d7bb639c2ac03c1248cc8d00bc9"
meta-gnome
meta-networking
meta-filesystems = "HEAD:54b177f4acb3048d21a68f180fc183d0fdf47a94"
meta-qt6 = "HEAD:1406d0a85525a71fe5d7892d7f915404290a78ad"
meta-parsec
meta-tpm = "HEAD:d7db0a3bd1a8639df7570483f003ce00cbe274a2"
meta-virtualization = "HEAD:2bb4071ad372d4b5a092c872c0d42b261f757681"
meta-nxp-desktop = "HEAD:10ab40c6a6099716710d25269171b77c2140d793"

WARNING: /home/ubuntu22/work/imx-6.1.22-2.00/sources/meta-imx/meta-bsp/recipes-kernel/linux/linux-imx_6.1.bb:do_compile is tainted from a forced run | ETA: 0:00:01
Initialising tasks: 100% |####################################################################################################################################| Time: 0:00:04
Sstate summary: Wanted 401 Local 378 Mirrors 0 Missed 23 Current 2039 (94% match, 99% complete)
Removing 1 stale sstate objects for arch imx8mpevk: 100% |####################################################################################################| Time: 0:00:00
NOTE: Executing Tasks
ERROR: nativesdk-qemu-7.2.0-r0 do_patch: Applying patch '0001-qemu-Reinstated-syscall-emulation-through-libc-via-c.patch' on target directory '/home/ubuntu22/work/imx-6.1.22-2.00/build-desktop/tmp/work/x86_64-nativesdk-fslbsp-linux/nativesdk-qemu/7.2.0-r0/qemu-7.2.0'
CmdError('quilt --quiltrc /home/ubuntu22/work/imx-6.1.22-2.00/build-desktop/tmp/work/x86_64-nativesdk-fslbsp-linux/nativesdk-qemu/7.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 404 with fuzz 1 (offset 26 lines).
Hunk #2 succeeded at 484 (offset 40 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 145 with fuzz 2 (offset 32 lines).
Hunk #3 succeeded at 263 (offset 34 lines).
Hunk #4 succeeded at 476 with fuzz 2 (offset 85 lines).
Hunk #5 succeeded at 624 with fuzz 1 (offset -80 lines).
Hunk #6 FAILED at 778.
Hunk #7 succeeded at 810 (offset -47 lines).
Hunk #8 succeeded at 7207 (offset 879 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/ubuntu22/work/imx-6.1.22-2.00/build-desktop/tmp/work/x86_64-nativesdk-fslbsp-linux/nativesdk-qemu/7.2.0-r0/temp/log.do_patch.51722
ERROR: Task (virtual:nativesdk:/home/ubuntu22/work/imx-6.1.22-2.00/sources/poky/meta/recipes-devtools/qemu/qemu_7.2.0.bb:do_patch) failed with exit code '1'
NOTE: Tasks Summary: Attempted 6740 tasks of which 6732 didn't need to be rerun and 1 failed.

Summary: 1 task failed:
virtual:nativesdk:/home/ubuntu22/work/imx-6.1.22-2.00/sources/poky/meta/recipes-devtools/qemu/qemu_7.2.0.bb:do_patch
Summary: There was 1 WARNING message.
Summary: There was 1 ERROR message, returning a non-zero exit code.

0 项奖励
回复
3 回复数

1,061 次查看
andymo
Contributor I

请问如何添加-f,通过修改那个文件@Zhiming_Liu 

0 项奖励
回复

1,275 次查看
shun-int
Contributor I

Encountered the same problem, has it been resolved?

0 项奖励
回复

1,386 次查看
Zhiming_Liu
NXP TechSupport
NXP TechSupport

Hi @sunannan

Please try to add -f in your command or you can add patch content under development mode:

1.devtool modify nativesdk-qemu

2. Modify code 

0 项奖励
回复