Welcome to the Linux Foundation Forum!

Lesson 7 - compiling the kernel

Hello All,

while compiling the kernel i get the following error:

CC security/integrity/platform_certs/load_uefi.o
CC security/integrity/platform_certs/keyring_handler.o
AR security/integrity/built-in.a
AR security/built-in.a
make[1]: *** [/linux_work/linux_stable/Makefile:1926: .] Error 2
make: *** [Makefile:224: __sub-make] Error 2
root@krzysztof-VirtualBox:/linux_work/linux_stable#

anyone knows what this is about?

Many thanks,
Krzysztof

Answers

  • Did you check what is Makefile:1926 does? It might offer clues.

  • zielik
    zielik Posts: 4
    edited November 12

    The 1926 line says:

    $(build-dir): prepare
    $(Q)$(MAKE) $(build)=$@ need-builtin=1 need-modorder=1 $(single-goals)

    and line 224 reads:
    $(build-dir): prepare
    $(Q)$(MAKE) $(build)=$@ need-builtin=1 need-modorder=1 $(single-goals)

    Error 2 doesnt really give any clue, does it?

  • What's the CONFIG_SYSTEM_TRUSTED_KEYS setting in your config? Try clearing it if it is set by changing it to CONFIG_SYSTEM_TRUSTED_KEYS=""

  • zielik
    zielik Posts: 4

    it is set to CONFIG_SYSTEM_TRUSTED_KEYS="1", i set it to ="" and rerunning the build. Lets see how it with that setting change.

  • zielik
    zielik Posts: 4

    this got the build going but after 12hrs linux_stable folder grew to 20GB and my VM has only 30GB space and it is almost full. How much space would you recommend for a new VM so that i can compile kernel and work with it? 40GB? 50 GB?
    Do you use any IDE? i would install it as well, and need to include it in space planning....

Categories

Upcoming Training