From: Yoann Congal <[email protected]> Currently, a ccache enabled build fails with: | HOSTRUSTC scripts/generate_rust_target | HOSTCC scripts/kallsyms | HOSTCC scripts/sorttable | HOSTCC scripts/asn1_compiler | TOUCH include/generated/gcc-plugins.h | DESCEND objtool | error: multiple input filenames provided (first two filenames are gcc and .../tmp/work-shared/qemux86-64/kernel-source/scripts/generate_rust_target.rs)
when using ccache, value of "HOSTCC=cache gcc" when this value is passing to rustc, It is thinking gcc is a input file. when ccache is not used "HOSTCC=gcc" is passed. Disable ccache for kernel build if rust-kernel is enabled to workaround this. Signed-off-by: El Mehdi YOUNES <[email protected]> Signed-off-by: Yoann Congal <[email protected]> Signed-off-by: Harish Sadineni <[email protected]> --- meta/classes-recipe/kernel-yocto.bbclass | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/meta/classes-recipe/kernel-yocto.bbclass b/meta/classes-recipe/kernel-yocto.bbclass index cd5daaf33b..bfdafbee8c 100644 --- a/meta/classes-recipe/kernel-yocto.bbclass +++ b/meta/classes-recipe/kernel-yocto.bbclass @@ -34,6 +34,11 @@ RUST_DEBUG_REMAP = "${@bb.utils.contains('DISTRO_FEATURES', 'rust-kernel', '--re KRUSTFLAGS:append = " ${RUST_DEBUG_REMAP}" EXTRA_OEMAKE:append = " ${@bb.utils.contains('DISTRO_FEATURES', 'rust-kernel', ' KRUSTFLAGS="${KRUSTFLAGS}"', '',d)}" +# TODO: rust-kernel enabled kernel fails to build with: +# | error: multiple input filenames provided (first two filenames are gcc and .../tmp/work-shared/qemux86-64/kernel-source/scripts/generate_rust_target.rs) +# Disable ccache for kernel build if rust-kernel is enabled to workaround this. +CCACHE_DISABLE ?= "${@bb.utils.contains('DISTRO_FEATURES', 'rust-kernel', '1', '0', d)}" + # returns local (absolute) path names for all valid patches in the # src_uri def find_patches(d,subdir): -- 2.49.0
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#229775): https://lists.openembedded.org/g/openembedded-core/message/229775 Mute This Topic: https://lists.openembedded.org/mt/117368073/21656 Group Owner: [email protected] Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
