Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

kernel build error #856

Open
lxy1579 opened this issue Sep 11, 2023 · 3 comments
Open

kernel build error #856

lxy1579 opened this issue Sep 11, 2023 · 3 comments

Comments

@lxy1579
Copy link

lxy1579 commented Sep 11, 2023

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'

@kraj
Copy link
Owner

kraj commented Sep 11, 2023

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}"

@lxy1579
Copy link
Author

lxy1579 commented Sep 12, 2023

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
Copy link
Author

lxy1579 commented Oct 19, 2023

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants