mirage / functoria

A DSL to invoke otherworldly functors
ISC License
63 stars 21 forks source link

Fatal error: exception "Assert_failure app/functoria_graph.ml:248:32" #156

Closed gabrik closed 5 years ago

gabrik commented 5 years ago

Hi everyone,

I get this error with this simple config.ml open Mirage

let main = foreign ~packages: [package "fmt"] "Unikernel.Main"  (stackv4 @-> console @-> job)
let stack =  if_impl Key.is_unix (generic_stackv4 default_network) (dhcp_ipv4_stack default_network)

let () = register "services" [ main $ stack $ default_console]

If I use mirage configure -t unix --net socket it works, it I use mirage configure -t virtio or mirage configure -t virtio --net direct I got this: Fatal error: exception "Assert_failure app/functoria_graph.ml:248:32" I have found another old issue with the same problem (this one https://github.com/mirage/functoria/issues/70) but in that case everything as been solved.

This is my environment: Ubuntu 16.04.5 Opam 2.0.0-rc4 Ocaml 4.06.0 Mirage 3.1.1 Functoria 2.2.1

gabrik commented 5 years ago

Solved, I was not calling mirage configure before calling the one of the other two.