-
Notifications
You must be signed in to change notification settings - Fork 4
[ERROR -> kernel build] ld.lld unable to find zlib while building #25
Comments
The kernel version is 5.13.1. Other details will be provided if demanded. |
Here's more neater version of the error: |
Can you try rebuilding zlib and try to compile the kernel again? @dilyn-corner can you reproduce this? I don't think I ever encountered this problem. |
Nope, It doesn't seem to be working. I've updated my system, rebuilt zlib but the problem still exists. |
1 similar comment
Nope, It doesn't seem to be working. I've updated my system, rebuilt zlib but the problem still exists. |
I'm sorry about the above comment being repeated. I'm running Github on Palemoon so its broken. |
How about rebuilding LLVM itself? Though I doubt it will work. |
Because I've already re-built all the packages before continuing to the kernel installation and because I don't have any updates and also because LLVM takes a damn long to compile, I also doubt it will work. |
I had this command previously running (before shutting down my computer and again re-mounting everything), and I also have the vmlinuz and System.map, but when I re-built it not even changing any options It gives me this error. |
I was able to find this android/ndk#888. Maybe something relatable? |
It seems like its something to do with libelf. I'll try rebuilding it and I'll update you with the results :) |
Nope, it seems to be stuck on |
I'll see if I can reproduce this in a bit. |
I have the kernel compression mode set to Bzip2 instead of Gzip, might that be a compromise? |
@dilyn-corner Till then, I'll try tinkering with the kernel config. I guess that would be something to check. |
Alright, so I'm currently doing a kernel build in a fresh rootfs, with |
@konimex Good luck |
Hmm, this is weird I have CONFIG_IKHEADERS set to n but it fallbacks to y and so for gcc plugins. |
Alright. I built kernel 5.10.47 with no problems here. Just an error because I forgot to install perl. Can you give your kernel configs here? Since it's well over midnight I'll try to build the kernel with your config tomorrow. |
Alright, here's the link for the kernel config (know issues: fallbacks to y for CONFIG_IKHEADERS and CONFIG_HAVE_GCC_PLUGINS): |
@konimex Hey konimex! I used the previously built vmlinuz and system.map and it seems to work great! however is says /bin/bash not found. Might this be easier to solve? |
@dilyn-corner Just in case, can you help me with the above one? |
What is saying FWIW I can't reproduce this, because I can't get past
Odd, because stdarg.h is most certainly included in this files. |
I fixed that by changing /etc/passwd but my wifi is not working. I have drivers and also the firmware in the kernel but the interface shows up in ip a as sit0@NONE. |
NVM some firmware didnt loaded. AND after putting it amd rebuilding the kernel, I get the same error as mentioned in above in the issue. |
Your kernel config is cut off (see last line), try to upload to another pastebin service (like termbin.com). |
Alright, heres the termbin link: |
And I also confirmed Its complete. |
Hey there! Its morning time here and I have school so I might not be available for long. I hope this wont be a big problem. |
Hmm, will the latest LTS release work? (5.10.50)? |
I don't know, kernels vary from person to person. But 5.10.47 works for me. |
Strangely my problems building 5.13.2 have resolved themselves; the only substantial change I've made that I could think would be effecting this is a horribly broken libclang-rt.builtin. I can't reproduce this problem with the latest kernel and your .config with some minor tweaks (removed the firmware inclusion, switched xz compression to zstd compression). I'd first try to clean up the kernel source tree with a |
Extremely sorry for being lost for a week or so. But, seems like my kernel installation is very crude. If I want to install the kernel youve mentioned, then would i have to do that in chroot? and how can i do a clean reinstall of kernel without using old .config file? |
I also seem to be missing the wheel group too. |
well yet another alt but @dilyn-corner can you help me in this please? |
Hello @azwyver alt here, the errors still exist and I am stuck on this process. Isn't there any workaround? |
The main problem is both Dilyn and I cannot reproduce the problem in any way, so we don't know of any workarounds or even anything.
|
I'm not using a fresh tarball, instead am using the linux headers one so I guess that's something that is causing problems. Other than that, I didn't used curl properly (i guess I just wrote the output to a .tar file). Other than that, the steps for reproducing are:
|
If I wanted to install the fresh kernel from scratch (basically removing the previous modules and replacing them with the new ones and so for the install) how would I? (of course using the old .config file) |
I meant your Wyverkiss rootfs tarball. |
Oh. I don't remember that. As far as I know, I downloaded it using my browser. Used the .asc file and .sha256sum file to verify whether its the right file, extracted it to /mnt and chrooted using command |
You know, the installation guide has been outdated for some time. I'll need to update it in line with KISS' new guidelines, but it's already nighttime here so will look into it tomorrow. |
So, I have to re-do everything from scratch or something? :| |
Man, as far as I know it was working when I compiled it the first time, but later on the second time I did it, it really f***** up. |
I hope this is much neater. |
Well, I'm thinking to re-download a fresh iso (SystemRescueCD in my case), verify it, flash it into a usb, and re-do all this from scratch. Will be waiting till you update the documentation tommorow. (Please tell if you have done the necessary changes 😃 |
Finally I got access to my account! Anyways, I've also re-compiled LLVM along with its dependencies but the problem still exists. Hopefully we'll get the doc update in a hour or so. |
P.S. I'm now having a 3.0 USB with SystemRescueCd so idk whether that does something or not but I thought it might make a difference. |
It's uploaded here: https://github.com/wyvertux/wyverkiss/blob/install/INSTALL.md But it's still on early stage and I still have nits to tackle, but the step should be similar. |
Yay! Seems good to me so far. |
Bruh, the error just magically fixed with the new build command bruv. |
I guess its either with the problem with the variables (i guess the LLVM_IAS=1) or with the compile flags (which I used of the kiss chroot). |
This was the one I originally had while the KISS chroot's one are like more generic flags. |
Wait, how do I do a clean kernel install now? with the commands mentioned in the documentation or the same command without the |
|
|
just
Just ignore the error.
Changed. Since your issue is fixed, I'm closing it now. Please don't spam reply since the emails are piling up. |
Thank you and sorry for the reply. |
When compiling the kernel using
gmake LLVM=1 YACC=byacc -j "$(nproc)
:ld.lld: error: arch/x86/realmode/rm/wakemain.o: contains a compressed section, but zlib is not available ld.lld: error: arch/x86/realmode/rm/wakemain.o: contains a compressed section, but zlib is not available ld.lld: error: arch/x86/realmode/rm/wakemain.o: contains a compressed section, but zlib is not available ld.lld: error: arch/x86/realmode/rm/wakemain.o: contains a compressed section, but zlib is not available ld.lld: error: arch/x86/realmode/rm/wakemain.o: contains a compressed section, but zlib is not available ld.lld: error: arch/x86/realmode/rm/video-mode.o: contains a compressed section, but zlib is not available ld.lld: error: arch/x86/realmode/rm/video-mode.o: contains a compressed section, but zlib is not available ld.lld: error: arch/x86/realmode/rm/video-mode.o: contains a compressed section, but zlib is not available ld.lld: error: arch/x86/realmode/rm/video-mode.o: contains a compressed section, but zlib is not available ld.lld: error: arch/x86/realmode/rm/video-mode.o: contains a compressed section, but zlib is not available ld.lld: error: arch/x86/realmode/rm/video-mode.o: contains a compressed section, but zlib is not available ld.lld: error: arch/x86/realmode/rm/regs.o: contains a compressed section, but zlib is not available ld.lld: error: arch/x86/realmode/rm/regs.o: contains a compressed section, but zlib is not available ld.lld: error: arch/x86/realmode/rm/regs.o: contains a compressed section, but zlib is not available ld.lld: error: arch/x86/realmode/rm/regs.o: contains a compressed section, but zlib is not available ld.lld: error: arch/x86/realmode/rm/regs.o: contains a compressed section, but zlib is not available ld.lld: error: arch/x86/realmode/rm/video-vga.o: contains a compressed section, but zlib is not available ld.lld: error: arch/x86/realmode/rm/video-vga.o: contains a compressed section, but zlib is not available ld.lld: error: arch/x86/realmode/rm/video-vga.o: contains a compressed section, but zlib is not available ld.lld: error: too many errors emitted, stopping now (use -error-limit=0 to see all errors)
The text was updated successfully, but these errors were encountered: