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

kern build problem #25

Open
jxq96 opened this issue Oct 31, 2021 · 5 comments
Open

kern build problem #25

jxq96 opened this issue Oct 31, 2021 · 5 comments

Comments

@jxq96
Copy link

jxq96 commented Oct 31, 2021

Althoght my platform meets the requriements of dune(all yes when run dune_req.sh). But I cannot build the dune, actuall failed when build kern. My OS is Ubuntu16.04, kernel version 4.15.0-142. From the compiler error: implicit declaration of function ‘x2apic_wrmsr_fence’, I think the problem is the kernel version. So which kernel should I use
?

@YixinSong-e
Copy link

I met the same problem. I think we should go back to version 3.0+, Unless we modify the code to be compatible with the new kernel. :(

@Limaomao821
Copy link

Yes, you have to either go back to older version linux or modify dune source code.

Some header files are no longer provided in linux.

@YixinSong-e
Copy link

Yes, you have to either go back to older version linux or modify dune source code.

Some header files are no longer provided in linux.

I saw that you forked a repo called Loongson Dune, does it work?

@Limaomao821
Copy link

Limaomao821 commented Nov 10, 2021

Yes, you have to either go back to older version linux or modify dune source code.
Some header files are no longer provided in linux.

I saw that you forked a repo called Loongson Dune, does it work?

Yes, though may not be perfect, but it does.

In fact, loongson-dune is something my lab classmate is working on. And my project is built upon it.

@Daniel1993
Copy link

I'm also trying to build Dune in a recent kernels and I found some issues.
For starters the compiler can't find a header named asm/ipi.h.

After looking into the loongson-dune repository I think they do not support x86, at
least when I try to compile it prints:
loongarch/arch.c: In function ‘arch_dump_regs’:
loongarch/arch.c:22:27: error: ‘struct kvm_regs’ has no member named ‘gpr’
22 | (unsigned long long)regs.gpr[0],

In fact I need this DAX feature:
https://www.kernel.org/doc/Documentation/filesystems/dax.txt
which I think is only available in recent kernels.
Is there any chance Dune can be supported in more recent kernels?

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

4 participants