meta-clang icon indicating copy to clipboard operation
meta-clang copied to clipboard

kernel build error

Open lxy1579 opened this issue 2 years ago • 3 comments

Describe the bug some kernel configuration options are disabled after do_configure.

To Reproduce Steps to reproduce the behavior: bitbake virtual/kernel -c configure

Expected behavior git diff .oldconfig .config

-c option can't use with '-fuse-ld=lld'

lxy1579 avatar Sep 11 '23 12:09 lxy1579

we do not use clang to compile by default for kernel it still uses gcc and binutils. Maybe you can disable lld to build kenrel.

KERNEL_LD = "${CCACHE}${HOST_PREFIX}ld.bfd ${HOST_LD_KERNEL_ARCH}"

kraj avatar Sep 11 '23 15:09 kraj

It will be OK if I compile kernel by removing -fuse-ld=lld from KERNEL_CC, but I also set KERNEL_LD = "${CCACHE}${HOST_PREFIX}ld.lld". Verify that the final image(vmlinux) is also generated through ld.lld link

lxy1579 avatar Sep 12 '23 01:09 lxy1579

we do not use clang to compile by default for kernel it still uses gcc and binutils. Maybe you can disable lld to build kenrel.

KERNEL_LD = "${CCACHE}${HOST_PREFIX}ld.bfd ${HOST_LD_KERNEL_ARCH}"

Is there a plan to support LLVM=1 parameter to kernel build?

lxy1579 avatar Oct 19 '23 06:10 lxy1579