shadlyd15 / DoomLinux

A bash script to build a minimal linux operating system just to play Doom.
MIT License
402 stars 24 forks source link

Builds fails with "arch/x86/entry/thunk_64.o: warning: objtool: missing symbol table" #17

Open TheFakeMontyOnTheRun opened 1 year ago

TheFakeMontyOnTheRun commented 1 year ago

Hello! First of all, thanks for creating this; it's the perfect bite-sized way to learn more about building Linux from source! Now, I must relay my experience and how to mitigate the issue I found:

Trying to build the repo on a fresh clone yields a non-descriptive error, after some warnings, such as arch/x86/entry/thunk_64.o: warning: objtool: missing symbol table.

My environment: uname -a -r: Linux monty-OptiPlex-760 5.15.0-76-generic #83-Ubuntu SMP Thu Jun 15 19:16:32 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux.

gcc --version: gcc (Ubuntu 11.3.0-1ubuntu1~22.04.1) 11.3.0.

Following a hint from this, I decided to try bumping the kernel version to 5.10.74. The result? Shortly after, I was Knee deep in the dead.

Oddly enough, I did try newer kernels (starting with the current stable) and while it would build, booting would hang (I need to look into this more closely. I didn't have the time to really understand it).

Do you want me to open a PR?

RedIce25 commented 5 months ago

Changing from "KERNEL_VERSION=5.4.3" to "KERNEL_VERSION=5.10.74" worked! Thank you.