linux-yocto: Remove debug-kernel.scc for riscv32 kernels
PATCH 1/1 linux-yocto: Remove debug-kernel.scc for riscv32 kernels
modpost fails to process the debug location lists for riscv32
| ERROR: modpost: vmlinux: local symbol '__asm_copy_to_user' was exported | ERROR: modpost: vmlinux: local symbol '__asm_copy_from_user' was exported | ERROR: modpost: vmlinux: local symbol '__clear_user' was exported | ERROR: modpost: vmlinux: local symbol 'xor_regs_2_' was exported | ERROR: modpost: vmlinux: local symbol 'xor_regs_3_' was exported | ERROR: modpost: vmlinux: local symbol 'xor_regs_4_' was exported | ERROR: modpost: vmlinux: local symbol 'xor_regs_5_' was exported | WARNING: modpost: vmlinux: section mismatch in reference: 0x1560 (section: __ex_table) -> .LASF464 (section: .debug_str) | ERROR: modpost: __ex_table+0x1560 references non-executable section '.debug_str'
poky adds features/debug/debug-kernel.scc via distro policy and hence the builds are failing for qemuriscv32 on AB. While this should be fixed in kernel build system or tools, this makes us proceed until then
--- meta/recipes-kernel/linux/linux-yocto_6.12.bb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
meta/recipes-kernel/linux/linux-yocto_6.12.bb +4 -1
@@ -72,5 +72,8 @@ KERNEL_FEATURES:append = " ${@bb.utils.contains("DISTRO_FEATURES", "ptest", " cg KERNEL_FEATURES:append:powerpc = " arch/powerpc/powerpc-debug.scc" KERNEL_FEATURES:append:powerpc64 = " arch/powerpc/powerpc-debug.scc" KERNEL_FEATURES:append:powerpc64le = " arch/powerpc/powerpc-debug.scc" - +# Do not add debug info for riscv32, it fails during depmod +# ERROR: modpost: __ex_table+0x17a4 references non-executable section '.debug_loclists' +# Check again during next major version upgrade +KERNEL_FEATURES:remove:riscv32 = "features/debug/debug-kernel.scc" INSANE_SKIP:kernel-vmlinux:qemuppc64 = "textrel"
Quoted 10 lines · Khem Raj
modpost fails to process the debug location lists for riscv32
| ERROR: modpost: vmlinux: local symbol '__asm_copy_to_user' was exported | ERROR: modpost: vmlinux: local symbol '__asm_copy_from_user' was exported | ERROR: modpost: vmlinux: local symbol '__clear_user' was exported | ERROR: modpost: vmlinux: local symbol 'xor_regs_2_' was exported | ERROR: modpost: vmlinux: local symbol 'xor_regs_3_' was exported | ERROR: modpost: vmlinux: local symbol 'xor_regs_4_' was exported | ERROR: modpost: vmlinux: local symbol 'xor_regs_5_' was exported | WARNING: modpost: vmlinux: section mismatch in reference: 0x1560
Quoted 8 lines
(section:
__ex_table) -> .LASF464 (section: .debug_str)
| ERROR: modpost:__ex_table+0x1560references non-executable section '.debug_str'poky adds features/debug/debug-kernel.scc via distro policy and hence the builds are failing for qemuriscv32 on AB. While this should be fixed in kernel build system or tools, this makes us proceed until then
The question is .. how will we ever know to revisit this ? Can we raise a bug
To track that this needs to be reenabled later ?
Bruce
Quoted 25 lines
Signed-off-by Khem Raj <[email protected]>Cc Bruce Ashfield <[email protected]>--- meta/recipes-kernel/linux/linux-yocto_6.12.bb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)meta/recipes-kernel/linux/linux-yocto_6.12.bb +0
-0@@ -72,5 +72,8 @@ KERNEL_FEATURES:append = "${@bb.utils.contains("DISTRO_FEATURES", "ptest", " cg
KERNEL_FEATURES:append:powerpc = "arch/powerpc/powerpc-debug.scc" KERNEL_FEATURES:append:powerpc64 = "arch/powerpc/powerpc-debug.scc" KERNEL_FEATURES:append:powerpc64le = "arch/powerpc/powerpc-debug.scc"meta/recipes-kernel/linux/linux-yocto_6.12.bb +2
-1- +# Do not add debug info for riscv32, it fails during depmod +# ERROR: modpost: __ex_table+0x17a4 references non-executable section'.debug_loclists'
meta/recipes-kernel/linux/linux-yocto_6.12.bb +2
-0+# Check again during next major version upgrade +KERNEL_FEATURES:remove:riscv32 = "features/debug/debug-kernel.scc" INSANE_SKIP:kernel-vmlinux:qemuppc64 = "textrel"
Signature · 3 lines
- Thou shalt not follow the NULL pointer, for chaos and madness await thee at its end - "Use the force Harry" - Gandalf, Star Trek II
Quoted 17 lines · Bruce Ashfield via lists.openembedded.org
Quoted 13 lines · Khem Raj
modpost fails to process the debug location lists for riscv32
| ERROR: modpost: vmlinux: local symbol '__asm_copy_to_user' was exported | ERROR: modpost: vmlinux: local symbol '__asm_copy_from_user' was exported | ERROR: modpost: vmlinux: local symbol '__clear_user' was exported | ERROR: modpost: vmlinux: local symbol 'xor_regs_2_' was exported | ERROR: modpost: vmlinux: local symbol 'xor_regs_3_' was exported | ERROR: modpost: vmlinux: local symbol 'xor_regs_4_' was exported | ERROR: modpost: vmlinux: local symbol 'xor_regs_5_' was exported | WARNING: modpost: vmlinux: section mismatch in reference: 0x1560 (section: __ex_table) -> .LASF464 (section: .debug_str) | ERROR: modpost: __ex_table+0x1560 references non-executable section '.debug_str'
Quoted 8 lines
Quoted 4 lines
poky adds features/debug/debug-kernel.scc via distro policy and hence the builds are failing for qemuriscv32 on AB. While this should be fixed in kernel build system or tools, this makes us proceed until then
The question is .. how will we ever know to revisit this ? Can we raise a bug To track that this needs to be reenabled later ?
I plan to open a tracker on - https://bugzilla.yoctoproject.org/
once its back online, but more importantly I am going to raise it in riscv kernel community once
I have narrowed it a bit down.
Quoted 40 lines
Bruce
Quoted 13 lines
Signed-off-by Khem Raj <[email protected]>Cc Bruce Ashfield <[email protected]>--- meta/recipes-kernel/linux/linux-yocto_6.12.bb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)meta/recipes-kernel/linux/linux-yocto_6.12.bb +0
-0meta/recipes-kernel/linux/linux-yocto_6.12.bb KERNEL_FEATURES:append = " ${@bb.utils.contains("DISTRO_FEATURES", "ptest", " cg · line 79
Quoted 9 lines
meta/recipes-kernel/linux/linux-yocto_6.12.bb +4
-1@@ -72,5 +72,8 @@ KERNEL_FEATURES:append = " ${@bb.utils.contains("DISTRO_FEATURES", "ptest", " cg KERNEL_FEATURES:append:powerpc = " arch/powerpc/powerpc-debug.scc" KERNEL_FEATURES:append:powerpc64 = " arch/powerpc/powerpc-debug.scc" KERNEL_FEATURES:append:powerpc64le = " arch/powerpc/powerpc-debug.scc" - +# Do not add debug info for riscv32, it fails during depmod +# ERROR: modpost: __ex_table+0x17a4 references non-executable section '.debug_loclists' +# Check again during next major version upgrade +KERNEL_FEATURES:remove:riscv32 = "features/debug/debug-kernel.scc" INSANE_SKIP:kernel-vmlinux:qemuppc64 = "textrel"--
- Thou shalt not follow the NULL pointer, for chaos and madness await thee at its end
- "Use the force Harry" - Gandalf, Star Trek II-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#217221): https://lists.openembedded.org/g/openembedded-core/message/217221
Mute This Topic: https://lists.openembedded.org/mt/113276800/1997914
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-
Quoted 26 lines · Khem Raj
Quoted 22 lines · Bruce Ashfield via lists.openembedded.org
Quoted 17 lines · Khem Raj
modpost fails to process the debug location lists for riscv32
| ERROR: modpost: vmlinux: local symbol '__asm_copy_to_user' was exported | ERROR: modpost: vmlinux: local symbol '__asm_copy_from_user' was exported | ERROR: modpost: vmlinux: local symbol '__clear_user' was exported | ERROR: modpost: vmlinux: local symbol 'xor_regs_2_' was exported | ERROR: modpost: vmlinux: local symbol 'xor_regs_3_' was exported | ERROR: modpost: vmlinux: local symbol 'xor_regs_4_' was exported | ERROR: modpost: vmlinux: local symbol 'xor_regs_5_' was exported | WARNING: modpost: vmlinux: section mismatch in reference: 0x1560 (section: __ex_table) -> .LASF464 (section: .debug_str) | ERROR: modpost: __ex_table+0x1560 references non-executable section '.debug_str'poky adds features/debug/debug-kernel.scc via distro policy and hence the builds are failing for qemuriscv32 on AB. While this should be fixed in kernel build system or tools, this makes us proceed until then
Quoted 8 lines
Quoted 3 lines
The question is .. how will we ever know to revisit this ? Can we raise a bug To track that this needs to be reenabled later ?
I plan to open a tracker on - https://bugzilla.yoctoproject.org/
once its back online, but more importantly I am going to raise it in riscv kernel community once
I have narrowed it a bit down.
Filed - https://bugzilla.yoctoproject.org/show_bug.cgi?id=15878
Quoted 41 lines
Quoted 41 lines
Bruce
Quoted 13 lines
Signed-off-by Khem Raj <[email protected]>Cc Bruce Ashfield <[email protected]>--- meta/recipes-kernel/linux/linux-yocto_6.12.bb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)meta/recipes-kernel/linux/linux-yocto_6.12.bb +0
-0meta/recipes-kernel/linux/linux-yocto_6.12.bb KERNEL_FEATURES:append = " ${@bb.utils.contains("DISTRO_FEATURES", "ptest", " cg · line 79
Quoted 9 lines
meta/recipes-kernel/linux/linux-yocto_6.12.bb +4
-1@@ -72,5 +72,8 @@ KERNEL_FEATURES:append = " ${@bb.utils.contains("DISTRO_FEATURES", "ptest", " cg KERNEL_FEATURES:append:powerpc = " arch/powerpc/powerpc-debug.scc" KERNEL_FEATURES:append:powerpc64 = " arch/powerpc/powerpc-debug.scc" KERNEL_FEATURES:append:powerpc64le = " arch/powerpc/powerpc-debug.scc" - +# Do not add debug info for riscv32, it fails during depmod +# ERROR: modpost: __ex_table+0x17a4 references non-executable section '.debug_loclists' +# Check again during next major version upgrade +KERNEL_FEATURES:remove:riscv32 = "features/debug/debug-kernel.scc" INSANE_SKIP:kernel-vmlinux:qemuppc64 = "textrel"--
- Thou shalt not follow the NULL pointer, for chaos and madness await thee at its end
- "Use the force Harry" - Gandalf, Star Trek II-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#217221): https://lists.openembedded.org/g/openembedded-core/message/217221
Mute This Topic: https://lists.openembedded.org/mt/113276800/1997914
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-