Kernelnewbies help

Your Name <[email protected]> Wed, 17 Sep 2025 21:12:20 -0700
Newsgroups dev.linux.lists.outreachy
Message-ID <aMuGpG_wqdm_LOOi@miguel-linux>
Hi, 
I am resending it in plain text.

miguel@miguel-linux:~/git/kernels/staging$ apt list --installed | grep libdwarf-dev

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

libdwarf-dev/noble-apps-security,now 20210528-1ubuntu0.24.04.1~esm1 amd64 [installed]


miguel@miguel-linux:~/git/kernels/staging$ apt list --installed | grep libelf-dev

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

libelf-dev/noble-updates,noble-security,now 0.190-1.1ubuntu0.1 amd64 [installed]
miguel@miguel-linux:~/git/kernels/staging$


Thanks,
Miguel



    El mié, 17 sept 2025 a las 20:54, Erick Karanja (<[email protected]>) escribió:

        On Wed, 2025-09-17 at 18:25 -0700, Miguel Rodríguez wrote:
        > Hi there, I am following this tutorial
        > https://kernelnewbies.org/OutreachyfirstpatchSetup
        >
        > When running the step  "Building the kernel", I am getting the error:
        >
        > HOSTCC  scripts/gendwarfksyms/gendwarfksyms.o
        > In file included from scripts/gendwarfksyms/gendwarfksyms.c:12:
        > scripts/gendwarfksyms/gendwarfksyms.h:6:10: fatal error: dwarf.h: No
        > such file or directory
        >     6 | #include <dwarf.h>
        >       |          ^~~~~~~~~
        > compilation terminated.
        > make[3]: *** [scripts/Mak
        >
        >
        > Can anyone help me know why it is failing?
        Hello, have you installed this libraries
        libdwarf-dev and libelf-dev?
        > I am using Ubuntu:
        > $ uname -a
        > Linux miguel-linux 6.14.0-29-generic #29~24.04.1-Ubuntu SMP
        > PREEMPT_DYNAMIC Thu Aug 14 16:52:50 UTC 2 x86_64 x86_64 x86_64
        > GNU/Linux
        >
        >
        >
        > Thank you,
        > Miguel
        >
        >