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

[ARM] Clang LTO for Kernel #2063

Open
liusy58 opened this issue Jan 6, 2025 · 3 comments
Open

[ARM] Clang LTO for Kernel #2063

liusy58 opened this issue Jan 6, 2025 · 3 comments
Labels
[FEATURE] LTO Related to building the kernel with LLVM Link Time Optimization

Comments

@liusy58
Copy link

liusy58 commented Jan 6, 2025

Hi, I saw your work https://patchwork.kernel.org/project/linux-kbuild/cover/[email protected]/ about supporting clang lto for kernel. I wonder is there any update or branch that is still on process?

@nathanchance
Copy link
Member

That series is upstream and LTO is selectable for arm64, loongarch, riscv, and x86 but 32-bit ARM (ARCH=arm) needs some more work (likely by someone who actually cares to use it): #1627

Is that the information you were looking for?

@liusy58
Copy link
Author

liusy58 commented Jan 6, 2025

Hello, Thanks for your swift response. I try to backport this batch to alios kernel, I encounter the following error:

image

But I cannot find a solution to fix this. Could you please give me some guide?

The kernel source can be get by git clone https://gitee.com/anolis/cloud-kernel.git -b devel-5.10, and my LLVM version is 17.

@nickdesaulniers nickdesaulniers added [ARCH] arm32 This bug impacts ARCH=arm [FEATURE] LTO Related to building the kernel with LLVM Link Time Optimization labels Jan 21, 2025
@nickdesaulniers
Copy link
Member

Sorry, what value of ARCH= are you using in your invocation of make?

@nickdesaulniers nickdesaulniers removed the [ARCH] arm32 This bug impacts ARCH=arm label Jan 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[FEATURE] LTO Related to building the kernel with LLVM Link Time Optimization
Projects
None yet
Development

No branches or pull requests

3 participants