Skip to content

Unbound module OS #511

@talex5

Description

@talex5

Seems that mirage's generated dependencies don't include mirage-platform:

config.ml:

open Mirage
let handler = foreign "Unikernel.Main" (clock @-> job)
let () = register "test" [handler $ default_clock]

unikernel.ml:

module Main (C:V1.CLOCK) = struct let start () = Lwt.return () end

Compiling gives:

$ mirage configure --unix
$ make
File "main.ml", line 5, characters 0-11:
Error: Unbound module OS

Looks like this dependency usually comes via mirage-console, but you might not have it if you use logging instead.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions