Skip to content

Compilation Error finding opt_sva_mmu.h:  #5

Open

Description

@ndauten

so I cloned the PerspicuOS github repo and built the nk directory,
(which apparently succeeded). However, when trying to build the FreeBSD9 directory, it gave me this error (I used "make buildworld"):

Error: No such file: "opt_sva_mmu.h"
In file included from /root/PerspicuOS/FreeBSD9/lib/libc/stdlib/malloc.c:177:/usr/obj/root/PerspicuOS/FreeBSD9/tmp/usr/include/machine/cpufunc.h:44:25: error mkdep: compile failed
*** Error code 1
Stop in /root/PerspicuOS/FreeBSD9/lib/libc

Activity

  1. self-assigned this
    on Jun 19, 2017
  2. ndauten commented on Jun 19, 2017

    @ndauten
    MemberAuthor

    @nestedkernel/devs has anyone run into this error and solved it?

  3. ndauten commented on Jun 27, 2017

    @ndauten
    MemberAuthor
  4. ndauten commented on Jul 7, 2017

    @ndauten
    MemberAuthor

    @jtcriswell have you seen this error or fixed it?

  5. jtcriswell commented on Jul 7, 2017

    @jtcriswell

    In the SVA source code (KCoFI and Virtual Ghost), we've only built the kernel (make buildkernel) after patching the kernel source code. It is possible that something in the user-space code is including a kernel header file that includes opt_sva_mmu.h and that it's not using the proper -I argument to find the SVA header files. Perhaps this is the problem?

  6. ndauten commented on Jul 7, 2017

    @ndauten
    MemberAuthor

    So @jtcriswell you're saying we need to build in an out of tree directory that has the FreeBSD patches and that does not hook into the normal FreeBSD style build?

  7. dage12 commented on Jul 10, 2017

    @dage12

    @ndauten I actually have this issue in both cases: when doing "make buildkernel KERNCONF=NK" from a patched FreeBSD source directory and from /usr/src.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions