Re: [ERROR] HELP NEEDED

From: Bagas Sanjaya
Date: Sun Oct 08 2023 - 08:34:22 EST


On Sun, Oct 08, 2023 at 12:12:17AM +0100, Gilbert Adikankwu wrote:
> Hello fellow community member,
>
> I'm trying to build the kernel on Ubuntu 22.04 LTS natively installed
> on my computer and I'm getting this error message:
>
> arch/x86/entry/thunk_64.o: warning: objtool: missing symbol table
> make[2]: *** [scripts/Makefile.build:361: arch/x86/entry/thunk_64.o] Error 1
> make[2]: *** Deleting file 'arch/x86/entry/thunk_64.o'
> make[1]: *** [scripts/Makefile.build:497: arch/x86/entry] Error 2
> make: *** [Makefile:1764: arch/x86] Error 2
>
> It seems like a file is missing but I don't know if that is possible
> because I just cloned the repository and didn't touch any file.
>

You should always clean up the tree first (`make mrproper`), then do
the build as usual. To speed up build time, you can try copying your
current kernel configuration (can be found either in `/boot/` directory
or in `/proc/config.gz`), then trim it up with `make localmodconfig`.
Make sure that all options needed by your computer are enabled (you
may have to plug all peripherals available on your hand) as well as
options related to kernel subsystem/driver you're hacking. For more
information, see Documentation/admin-guide/quickly-build-trimmed-linux.rst.

Thanks.

--
An old man doll... just what I always wanted! - Clara

Attachment: signature.asc
Description: PGP signature