mirage/mirage-tcpip

Error: Unbound module Tcpv4_socket

justinc1 opened this issue · 3 comments

I hope I report this to correct repo. While trying to build network app from MirageOS, on ubuntu1604:

xlab@or-mir-1:~/mirage-skeleton/applications/dns$ git remote show origin 
* remote origin
  Fetch URL: git://github.com/mirage/mirage-skeleton.git

xlab@or-mir-1:~/mirage-skeleton/applications/dns$ mirage configure -t ukvm && make -j4 depend && make -j4
...
=-=- Synchronising pinned packages =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
[mirage-unikernel-dns-ukvm] /home/xlab/mirage-skeleton/applications/dns/ already up-to-date
The following actions will be performed:
  ∗  install tcpip 3.4.0

=-=- Gathering sources =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
[default] https://opam.ocaml.org/archives/tcpip.3.4.0+opam.tar.gz downloaded

=-=- Processing actions -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
[ERROR] The compilation of tcpip failed at "jbuilder build -p tcpip -j 4".

#=== ERROR while installing tcpip.3.4.0 =======================================#
# opam-version 1.2.2
# os           linux
# command      jbuilder build -p tcpip -j 4
# path         /home/xlab/.opam/4.04.2/build/tcpip.3.4.0
# compiler     4.04.2
# exit-code    1
# env-file     /home/xlab/.opam/4.04.2/build/tcpip.3.4.0/tcpip-7667-d2d111.env
# stdout-file  /home/xlab/.opam/4.04.2/build/tcpip.3.4.0/tcpip-7667-d2d111.out
# stderr-file  /home/xlab/.opam/4.04.2/build/tcpip.3.4.0/tcpip-7667-d2d111.err
### stderr ###
# Warning 3: deprecated: module Lwt_sequence
# [...]
#    https://github.com/ocsigen/lwt/issues/361
# File "src/tcp/user_buffer.ml", line 297, characters 10-33:
# Warning 3: deprecated: module Lwt_sequence
#  This module is an implementation detail of Lwt. See
#    https://github.com/ocsigen/lwt/issues/361
# File "src/tcp/user_buffer.ml", line 315, characters 12-35:
# Warning 3: deprecated: module Lwt_sequence
#  This module is an implementation detail of Lwt. See
#    https://github.com/ocsigen/lwt/issues/361



=-=- Error report -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
The following actions failed
  ∗  install tcpip 3.4.0
less /home/xlab/.opam/4.04.2/build/tcpip.3.4.0/tcpip-7667-d2d111.err

File "src/tcp/user_buffer.ml", line 297, characters 10-33:
Warning 3: deprecated: module Lwt_sequence
 This module is an implementation detail of Lwt. See
   https://github.com/ocsigen/lwt/issues/361
File "src/tcp/user_buffer.ml", line 315, characters 12-35:
Warning 3: deprecated: module Lwt_sequence
 This module is an implementation detail of Lwt. See
   https://github.com/ocsigen/lwt/issues/361
      ocamlc src/stack-unix/.tcpip_stack_socket.objs/tcpip_stack_socket.{cmi,cmti} (exit 2)
(cd _build/default && /home/xlab/.opam/4.04.2/bin/ocamlc.opt -w -40 -g -bin-annot -I /home/xlab/.opam/4.04.2/lib/bytes -I /home/xlab/.opam/4.04.2/lib/cstruct -I /home/xlab/.opam/4.04.2/lib/cstruct-lwt -I /home/xlab/.opam/4.04.2/lib/duration -I /home/xlab/.opam/4.04.2/lib/fmt -I /home/xlab/.opam/4.04.2/lib/io-page -I /home/xlab/.opam/4.04.2/lib/io-page-unix -I /home/xlab/.opam/4.04.2/lib/ipaddr -I /home/xlab/.opam/4.04.2/lib/ipaddr/unix -I /home/xlab/.opam/4.04.2/lib/logs -I /home/xlab/.opam/4.04.2/lib/lwt -I /home/xlab/.opam/4.04.2/lib/mirage-clock -I /home/xlab/.opam/4.04.2/lib/mirage-clock-lwt -I /home/xlab/.opam/4.04.2/lib/mirage-device -I /home/xlab/.opam/4.04.2/lib/mirage-flow -I /home/xlab/.opam/4.04.2/lib/mirage-net -I /home/xlab/.opam/4.04.2/lib/mirage-net-lwt -I /home/xlab/.opam/4.04.2/lib/mirage-profile -I /home/xlab/.opam/4.04.2/lib/mirage-protocols -I /home/xlab/.opam/4.04.2/lib/mirage-protocols-lwt -I /home/xlab/.opam/4.04.2/lib/mirage-random -I /home/xlab/.opam/4.04.2/lib/mirage-stack -I /home/xlab/.opam/4.04.2/lib/mirage-stack-lwt -I /home/xlab/.opam/4.04.2/lib/mirage-time -I /home/xlab/.opam/4.04.2/lib/mirage-time-lwt -I /home/xlab/.opam/4.04.2/lib/ocaml/threads -I /home/xlab/.opam/4.04.2/lib/ocplib-endian -I /home/xlab/.opam/4.04.2/lib/randomconv -I /home/xlab/.opam/4.04.2/lib/result -I /home/xlab/.opam/4.04.2/lib/rresult -I /home/xlab/.opam/4.04.2/lib/sexplib -I /home/xlab/.opam/4.04.2/lib/sexplib/0 -I /home/xlab/.opam/4.04.2/lib/uchar -I src/ethif/.tcpip_ethif.objs -I src/icmp/.tcpip_icmpv4.objs -I src/ipv4/.tcpip_ipv4.objs -I src/ipv6/.tcpip_ipv6.objs -I src/tcpip_checksum/.tcpip.objs -I src/tcpip_checksum/.tcpip_unix.objs -I src/udp/.tcpip_udpv4.objs -no-alias-deps -I src/stack-unix/.tcpip_stack_socket.objs -o src/stack-unix/.tcpip_stack_socket.objs/tcpip_stack_socket.cmi -c -intf src/stack-unix/tcpip_stack_socket.mli)
File "src/stack-unix/tcpip_stack_socket.mli", line 19, characters 22-36:
Error: Unbound module Tcpv4_socket
    ocamlopt src/tcp/.tcp.objs/tcp__User_buffer.{cmx,o}
File "src/tcp/user_buffer.ml", line 21, characters 9-29:
Warning 3: deprecated: module Lwt_sequence
 This module is an implementation detail of Lwt. See
   https://github.com/ocsigen/lwt/issues/361

Perhaps this is related to #353?

It might be worth trying opam pin add tcpip --dev.

I already tried opam install tcpip=3.3.1. I downgraded a few other packages, but example compiles now. I will try --dev (I guess that is dev branch).

Yes, that helps. So the command above pins tcpip package to github master branch - e.g. it will get recompiled after each new commit to master?