Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make lkl failed #1

Open
areuu opened this issue Apr 6, 2020 · 1 comment
Open

make lkl failed #1

areuu opened this issue Apr 6, 2020 · 1 comment

Comments

@areuu
Copy link

areuu commented Apr 6, 2020

On ubuntu server 18.04
I just run ./build.sh
when make -C tools/lkl

/home/uuu/kernel/kbdysch/lkl-linux/tools/lkl//include/lkl/asm/syscall_defs.h: In function ‘lkl_sys_inotify_init’:
/home/uuu/kernel/kbdysch/lkl-linux/tools/lkl//include/lkl/asm/syscalls.h:288:22: error: ‘__lkl__NR_inotify_init’ undeclared (first use in this function); did you mean ‘__lkl__NR_inotify_init1’?
   return lkl_syscall(__lkl__NR##name, params);        \
                      ^
/home/uuu/kernel/kbdysch/lkl-linux/tools/lkl//include/lkl/asm/syscalls.h:325:40: note: in expansion of macro ‘LKL_SYSCALL0’
 #define LKL_SYSCALL_DEFINE0(name, ...) LKL_SYSCALL0(name)
@atrosinenko
Copy link
Owner

I have experienced the same issue previously. This most probably should be patched upstream in LKL. Unfortunately, right now I have no time.

The simplest (but the most hackish) way is to edit the tools/lkl/include/lkl/asm/syscall_defs.h file: locate three lines like those

#ifdef __lkl__NR_inotify_init
LKL_SYSCALL_DEFINE0(_inotify_init,)
#endif

... and delete them. Unfortunately, you would have to perform this frequently (this file is autogenerated).

But please note that upstream LKL falls behind the upstream Linux kernel, so you may want to merge the master branch of torvalds/linux on your own. Please note this is quite tricky and I cannot give you some definite advice (since I'm not very familiar with it). On the other hand, some bugs may persist many kernel versions. And this is definitely OK for initial experimenting.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants