bitbake toolchain is not working- getting compilation error

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

bitbake toolchain is not working- getting compilation error

3,684 Views
Subhani7
Contributor II

bitbaketoolchain is not working- getting compilation error.

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/labuser/NEERAJ/LLDP/LINUX/target/yocto/bui
mp/work/x86_64-nativesdk-fslsdk-linux/nativesdk-qemu/6.2.0-r0/qemu-6.2.0'
CmdError('quilt --quiltrc /home/labuser/NEERAJ/LLDP/LINUX/target/yocto/build_lx2160ardb-rev2/tmp/work/x86_64-nativesdk-fslsdk-linux/nativesdk-qemu/6.2.0-r0/recipe-sysroot-native/etc/quiltrc p
plying 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)

we have not done any changes with respect to base .

Regards
Subhani


0 Kudos
Reply
10 Replies

3,638 Views
yipingwang
NXP TechSupport
NXP TechSupport

Please use the attached recipes folder to replace your original qemu recipes folder poky/meta/recipes-devtools/qemu/

0 Kudos
Reply

3,611 Views
Subhani7
Contributor II

Still getting the same error after replacing the qemu 

can you please help on this 

labuser@testing:~/LLDP12/LINUX/target/yocto/build_lx2160ardb-rev2/tmp/work/lx2160ardb_rev2-fsl-linux/fsl-image-networking/1.0-r0/rootfs/mnt$ bitbake meta-toolchain
Loading cache: 100% |###########################################################################################################################################################| Time: 0:00:02Loaded 4812 entries from dependency cache.
Parsing recipes: 100% |#########################################################################################################################################################| Time: 0:00:01Parsing of 3240 .bb files complete (3231 cached, 9 parsed). 4819 targets, 597 skipped, 9 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies

Build Configuration:
BB_VERSION = "2.0.0"
BUILD_SYS = "x86_64-linux"
NATIVELSBSTRING = "universal"
TARGET_SYS = "aarch64-fsl-linux"
MACHINE = "lx2160ardb-rev2"
DISTRO = "fsl-qoriq-distro"
DISTRO_VERSION = "4.0.4"
TUNE_FEATURES = "aarch64"
TARGET_FPU = ""
meta
meta-poky
meta-yocto-bsp = "HEAD:24a3f7b3648185e33133f5d96b184a6cb6524f3d"
meta-oe
meta-multimedia
meta-python
meta-networking
meta-gnome
meta-filesystems
meta-webserver
meta-perl = "HEAD:744a4b6eda88b9a9ca1cf0df6e18be384d9054e3"
meta-virtualization = "HEAD:9482648daf0bb42ff3475e7892542cf99f3b8d48"
meta-cloud-services = "HEAD:12efde8056a004e8d3a337edb2728d05edbc383b"
meta-security = "HEAD:c79262a30bd385f5dbb009ef8704a1a01644528e"
meta-freescale = "HEAD:c82d4634e7aba8bc0de73ce1dfc997b630051571"
meta-freescale-distro = "HEAD:d5bbb487b2816dfc74984a78b67f7361ce404253"
meta-qoriq = "HEAD:afaef5e29b0d5cb8a0f59c62bf9cbd44140b041e"
meta-asf
meta-qualcom
meta-stack = "<unknown>:<unknown>"
meta-nxp-desktop = "HEAD:5f5bfd21c445eaa2d963d4b606d9ef56078eab8f"

Initialising tasks: 100% |######################################################################################################################################################| Time: 0:00:07Sstate summary: Wanted 521 Local 0 Mirrors 0 Missed 521 Current 367 (0% match, 41% complete)
NOTE: Executing Tasks
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/labuser/LLDP12/LINUX/target/yocto/build_lx2160ardb-rev2/tmp/work/x86_64-nativesdk-fslsdk-linux/nativesdk-qemu/6.2.0-r0/qemu-6.2.0'
CmdError('quilt --quiltrc /home/labuser/LLDP12/LINUX/target/yocto/build_lx2160ardb-rev2/tmp/work/x86_64-nativesdk-fslsdk-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/labuser/LLDP12/LINUX/target/yocto/build_lx2160ardb-rev2/tmp/work/x86_64-nativesdk-fslsdk-linux/nativesdk-qemu/6.2.0-r0/temp/log.do_patch.193081
ERROR: Task (virtual:nativesdk:/home/labuser/LLDP12/LINUX/target/yocto/sources/poky/meta/recipes-devtools/qemu/qemu_6.2.0.bb:do_patch) failed with exit code '1'


Regards
Subhani

0 Kudos
Reply

3,597 Views
yipingwang
NXP TechSupport
NXP TechSupport

Please run the following command first.

$ bitbake nativesdk-qemu -c cleansstate

0 Kudos
Reply

3,587 Views
Subhani7
Contributor II

labuser@root:~/NEERAJ/LLDP/LINUX/target/yocto/sources/poky/meta/recipes-devtools/qemu$ bitbake nativesdk-qemu -c cleansstate
Loading cache: 100% |###########################################################################################################################################################| Time: 0:00:00
Loaded 4803 entries from dependency cache.
Parsing recipes: 100% |#########################################################################################################################################################| Time: 0:00:00
Parsing of 3226 .bb files complete (3224 cached, 2 parsed). 4805 targets, 599 skipped, 9 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies

Build Configuration:
BB_VERSION = "2.0.0"
BUILD_SYS = "x86_64-linux"
NATIVELSBSTRING = "universal"
TARGET_SYS = "aarch64-fsl-linux"
MACHINE = "lx2160ardb-rev2"
DISTRO = "fsl-qoriq-distro"
DISTRO_VERSION = "4.0.4"
TUNE_FEATURES = "aarch64"
TARGET_FPU = ""
meta
meta-poky
meta-yocto-bsp = "HEAD:24a3f7b3648185e33133f5d96b184a6cb6524f3d"
meta-oe
meta-multimedia
meta-python
meta-networking
meta-gnome
meta-filesystems
meta-webserver
meta-perl = "HEAD:744a4b6eda88b9a9ca1cf0df6e18be384d9054e3"
meta-virtualization = "HEAD:9482648daf0bb42ff3475e7892542cf99f3b8d48"
meta-cloud-services = "HEAD:12efde8056a004e8d3a337edb2728d05edbc383b"
meta-security = "HEAD:c79262a30bd385f5dbb009ef8704a1a01644528e"
meta-freescale = "HEAD:c82d4634e7aba8bc0de73ce1dfc997b630051571"
meta-freescale-distro = "HEAD:d5bbb487b2816dfc74984a78b67f7361ce404253"
meta-qoriq = "HEAD:afaef5e29b0d5cb8a0f59c62bf9cbd44140b041e"

meta-qualcom
meta-nokia
workspace = "<unknown>:<unknown>"
meta-nxp-desktop = "HEAD:5f5bfd21c445eaa2d963d4b606d9ef56078eab8f"

Initialising tasks: 100% |######################################################################################################################################################| Time: 0:00:03Sstate summary: Wanted 0 Local 0 Mirrors 0 Missed 0 Current 0 (0% match, 0% complete)
NOTE: No setscene tasks
NOTE: Executing Tasks
NOTE: Tasks Summary: Attempted 2 tasks of which 0 didn't need to be rerun and all succeeded.
labuser@root:~/NEERAJ/LLDP/LINUX/target/yocto/sources/poky/meta/recipes-devtools/qemu$ bitbake meta-toolchain
Loading cache: 100% |###########################################################################################################################################################| Time: 0:00:00Loaded 4803 entries from dependency cache.
Parsing recipes: 100% |#########################################################################################################################################################| Time: 0:00:00Parsing of 3226 .bb files complete (3224 cached, 2 parsed). 4805 targets, 599 skipped, 9 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies

Build Configuration:
BB_VERSION = "2.0.0"
BUILD_SYS = "x86_64-linux"
NATIVELSBSTRING = "universal"
TARGET_SYS = "aarch64-fsl-linux"
MACHINE = "lx2160ardb-rev2"
DISTRO = "fsl-qoriq-distro"
DISTRO_VERSION = "4.0.4"
TUNE_FEATURES = "aarch64"
TARGET_FPU = ""
meta
meta-poky
meta-yocto-bsp = "HEAD:24a3f7b3648185e33133f5d96b184a6cb6524f3d"
meta-oe
meta-multimedia
meta-python
meta-networking
meta-gnome
meta-filesystems
meta-webserver
meta-perl = "HEAD:744a4b6eda88b9a9ca1cf0df6e18be384d9054e3"

meta-perl = "HEAD:744a4b6eda88b9a9ca1cf0df6e18be384d9054e3"
meta-virtualization = "HEAD:9482648daf0bb42ff3475e7892542cf99f3b8d48"
meta-cloud-services = "HEAD:12efde8056a004e8d3a337edb2728d05edbc383b"
meta-security = "HEAD:c79262a30bd385f5dbb009ef8704a1a01644528e"
meta-freescale = "HEAD:c82d4634e7aba8bc0de73ce1dfc997b630051571"
meta-freescale-distro = "HEAD:d5bbb487b2816dfc74984a78b67f7361ce404253"
meta-qoriq = "HEAD:afaef5e29b0d5cb8a0f59c62bf9cbd44140b041e"
meta-qualcom
meta-nokia
workspace = "<unknown>:<unknown>"
meta-nxp-desktop = "HEAD:5f5bfd21c445eaa2d963d4b606d9ef56078eab8f"

Initialising tasks: 100% |######################################################################################################################################################| Time: 0:00:27Sstate summary: Wanted 347 Local 160 Mirrors 0 Missed 187 Current 541 (46% match, 78% complete)
NOTE: Executing Tasks
WARNING: QA Issue: qemu-native: native/nativesdk class is not inherited last, this can result in unexpected behaviour. Classes inherited after native/nativesdk: ptest.bbclass pkgconfig.bbclass [native-last]
WARNING: QA Issue: qemu-native: native/nativesdk class is not inherited last, this can result in unexpected behaviour. Classes inherited after native/nativesdk: ptest.bbclass pkgconfig.bbclass [native-last]
WARNING: QA Issue: qemu-native: native/nativesdk class is not inherited last, this can result in unexpected behaviour. Classes inherited after native/nativesdk: ptest.bbclass pkgconfig.bbclass [native-last]
WARNING: QA Issue: qemu-native: native/nativesdk class is not inherited last, this can result in unexpected behaviour. Classes inherited after native/nativesdk: ptest.bbclass pkgconfig.bbclass [native-last]
WARNING: QA Issue: qemu-native: native/nativesdk class is not inherited last, this can result in unexpected behaviour. Classes inherited after native/nativesdk: ptest.bbclass pkgconfig.bbclass [native-last]
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/labuser/NEERAJ/LLDP/LINUX/target/yocto/build_lx2160ardb-rev2/tmp/work/x86_64-nativesdk-fslsdk-linux/nativesdk-qemu/6.2.0-r0/qemu-6.2.0'
CmdError('quilt --quiltrc /home/labuser/NEERAJ/LLDP/LINUX/target/yocto/build_lx2160ardb-rev2/tmp/work/x86_64-nativesdk-fslsdk-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).

Still same issue.

 

0 Kudos
Reply

3,566 Views
yipingwang
NXP TechSupport
NXP TechSupport

In sources/meta-nxp-desktop/conf/layer.conf, please add the following.

PREFERRED_PROVIDER_qemu = "qemu"
PREFERRED_VERSION_qemu-native = "4.2.1"
PREFERRED_VERSION_qemu = "4.2.1"
PREFERRED_VERSION_nativesdk-qemu = "4.2.1"

0 Kudos
Reply

3,551 Views
Subhani7
Contributor II

Hi wang ,

Thanks for the solution, the compilation went through for some extent.

But now i am facing the below erros.

Please fine the attachment for log failure. 

0 Kudos
Reply

3,546 Views
yipingwang
NXP TechSupport
NXP TechSupport

Please address your new problem in a new thread.

0 Kudos
Reply

3,544 Views
Subhani7
Contributor II

It's not a new problem, 

It's continuation of the same

 

0 Kudos
Reply

3,542 Views
yipingwang
NXP TechSupport
NXP TechSupport
  1. Please go to folder sources/meta-nxp-desktop and apply the attached patch.

$ patch -p1 < 0001-Fix-nativesdk-pseudo-compile-problem.patch

 

  1. Please execute the following commands to generate toolchain.

$ bitbake fsl-toolchain

0 Kudos
Reply

3,645 Views
Subhani7
Contributor II

Any Update on this issue ?

 

0 Kudos
Reply
An error has occurred when reading existing sub-variable "Language_PG_Configuration"; see cause exception! The type of the containing value was: extended_hash+string (lithium.coreapi.webui.template.models.NamedValueByNameTemplateModel wrapped into f.e.b.StringModel) ---- FTL stack trace ("~" means nesting-related): - Failed at: #assign redirect_lingo_page_url = web... [in template "language_macro_header.ftl" at line 173, column 1] - Reached through: #include "language_macro_header.ftl" [in template "Language_translator_Dashboard" at line 3, column 1] ----