Modified Linux kernel build error

Asked

Viewed 37 times

0

I am trying to compile a modified version of the linux kernel (Xdplua).

I followed the steps present in the Arch wiki (because I use Manjaro) https://wiki.archlinux.org/index.php/Kernel/Traditional_compilation. However, after a good time compiling, I get the following error:

net/core/dev.c:72:10: fatal error: lua.h: No such file or directory
   72 | #include <lua.h>
      |          ^~~~~~~
compilation terminated.
make[2]: *** [scripts/Makefile.build:281: net/core/dev.o] Error 1
make[1]: *** [scripts/Makefile.build:49

Here are the things I’ve tried to do:

  • I tried to follow in the footsteps of the next link
  • I changed the dev file headers. c present in the net/core folder to point to the absolute path where the moon header is set. h
  • I reinstalled other versions of moon

However none of this worked, any hint of how to make this kernel compile ?

1 answer

0

You need the moon C lib installs it with apt-get install liblua5.1-0-dev And ensure that the moon’s C lib is visible to the operating system export C_INCLUDE_PATH=/usr/include/lua5.1 and try to compile.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.