-
Notifications
You must be signed in to change notification settings - Fork 20
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
Unable to Compile Kernel #85
Comments
Let's disable Compile goes a bit further but another error found:
|
Let's disable virtualization, so far no errors... ... another obstacle:
|
So far ... Used the same kernel config for each kernel version. I made sure to run Looks like starting with kernel version 6.2.x, the same errors pop up |
I haven't played around with LLVM in a while, but what about using Clang/Clang++ with GNU Binutils? I know it's not the ideal, but it would be a workaround while the LLVM and elftoolchain folks doesn't fix this bug. Funny enough, Linux v6.1.8 compiles fine, per what you've said, so we could also just go with it instead of insisting in other versions. |
That's true. I have tried other combinations but not yet LLVM+Binutils. That will be my next test |
Same issue with LLVM+Binutils, "invalid symbol index" |
is it an issue with the linker? |
If kernel version 6.1.29 compiles fine, I would like to say no... unless something in the kernel source changed starting with 6.2.x and later. |
Kernel updates are usually big, so maybe something did. Lets first try a diff linker (eg. mold), and if that doesnt work, follow alpine linux |
update: mold requires a SSL library for libcrypto, and that doesnt need to be in a toolchain. probably compile libreSSL and clang, and then compile mold, then proceed with the rest of stage2 |
Wow. Never heard of mold... Ha, I guess I might consider replacing LLD with mold. Let's just say I'm not a fan of rust, so I'm impressed mold is coded in c++ |
Mold might not be the reason this is happening. There are some patches on chimera linux for the latest kernel, so lets try those |
I'd also propose that we just use GNU Binutils' |
Yeah, checking for Chimera patches might also be a good idea. |
Looks like mold isn't supported by the kernel source:
|
Per kisslinux.org:
|
I only see kernel 6.1.38 for Chimera's |
Well, what linker are they using? By the way, how the progress on using BSD's elftoolchain is going? I've read 'bout it on Musl-LFS's enhancement issues. |
I've already tried LLD and ld.bfd... same problem. In fact, I cannot compile the latest kernel (starting with 6.2.x) with both GCC and clang. My GCC is installed in I have yet to try a 6.2.x+ kernel build on an older MLFS system. Last I checked, Chimera Linux still used LLD. |
Looks like Chimera Linux uses 6.4.x for their kernel-stable... not sure how I missed it. I was only seeing their build for kernel-LTS. There are lots of patches used for the 6.4.x kernel source |
Successfully compile kernel-6.4.16 with just a single patch from Chimera Linux: Although, I wonder if patch really helped or did something change again, starting with kernel 6.4.x |
Going to compile 6.5.4 with out patching .... Looks like that chimera-linux patch fixed those warnings when compiling:
|
Kernel 6.5.4 compiled without errors, using no patches from Chimera Linux. I am closing this unless someone needs to use kernels 6.2.x and 6.3.x |
So far, I have stuck to Kernel 6.5.9 as it compiles fine under my previous CMLFS build (LLVM-15.0.5). I checked Chimera-Linux. Looks like at this time of this writing, Chimera is on Kernel 6.8.6.
|
Issue fixed: LTO turned off. |
Kernel 6.3 fails to compile with LLVM (
LLVM=1 LLVM_IAS=1 make
):Let's try GCC & binutils (installed in /opt/gnu):
Or LLVM+elftoolschain? (
LLVM=1 make
)Maybe a typo or bug in kernel 6.3? Same errors for kernel 6.3.2
BUT kernel 6.1.8 compiles fine (
LLVM=1 LLVM_IAS=1 make
).The text was updated successfully, but these errors were encountered: