Cannot compile on Ubuntu 16
Followed instructions on README for all extra packages to install.
$ opam install camlp4 re.1.7.3 ocplib-json-typed ocurl js_of_ocaml js_of_ocaml-ppx js_of_ocaml-camlp4 js_of_ocaml-tyxml js_of_ocaml-lwt omd cohttp-lwt cohttp-lwt-unix base64 ezjsonm ocplib-endian geoip ocp-build nocrypto sodium lru alcotest calendar lwt_log csv-lwt
[NOTE] Package csv-lwt is already installed (current version is 2.2).
[NOTE] Package lwt_log is already installed (current version is 1.1.0).
[NOTE] Package calendar is already installed (current version is 2.04).
[NOTE] Package alcotest is already installed (current version is 0.8.4).
[NOTE] Package lru is already installed (current version is 0.2.0).
[NOTE] Package nocrypto is already installed (current version is 0.5.4-1).
[NOTE] Package ocp-build is already installed (current version is 1.99.20-beta).
[NOTE] Package geoip is already installed (current version is 0.0.3).
[NOTE] Package ocplib-endian is already installed (current version is 1.0).
[NOTE] Package ezjsonm is already installed (current version is 0.6.0).
[NOTE] Package base64 is already installed (current version is 2.3.0).
[NOTE] Package cohttp-lwt-unix is already installed (current version is 1.2.0).
[NOTE] Package cohttp-lwt is already installed (current version is 1.2.0).
[NOTE] Package omd is already installed (current version is 1.3.1).
[NOTE] Package js_of_ocaml-lwt is already installed (current version is 3.3.0).
[NOTE] Package js_of_ocaml-camlp4 is already installed (current version is 3.1.0).
[NOTE] Package js_of_ocaml-ppx is already installed (current version is 3.3.0).
[NOTE] Package js_of_ocaml is already installed (current version is 3.3.0).
[NOTE] Package ocurl is already installed (current version is 0.8.2).
[NOTE] Package ocplib-json-typed is already installed (current version is 0.6).
[NOTE] Package re is already installed (current version is 1.7.3).
[NOTE] Package camlp4 is already installed (current version is 4.06+1).
The following actions will be performed:
∗ install tyxml 4.3.0 [required by js_of_ocaml-tyxml]
∗ install sodium 0.6.0
∗ install js_of_ocaml-tyxml 3.3.0
===== ∗ 3 =====
Do you want to continue? [Y/n] y
<><> Gathering sources ><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
[js_of_ocaml-tyxml.3.3.0] found in cache
[sodium.0.6.0] found in cache
[tyxml.4.3.0] found in cache
<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
[ERROR] The compilation of tyxml failed at "/home/drmac/.opam/opam-init/hooks/sandbox.sh build dune build -p tyxml -j 7".
[ERROR] The compilation of sodium failed at "/home/drmac/.opam/opam-init/hooks/sandbox.sh build make".
#=== ERROR while compiling tyxml.4.3.0 ========================================#
# context 2.0.1 | linux/x86_64 | ocaml-base-compiler.4.06.1 | https://opam.ocaml.org#41ad4464
# path ~/.opam/4.06.1/.opam-switch/build/tyxml.4.3.0
# command ~/.opam/opam-init/hooks/sandbox.sh build dune build -p tyxml -j 7
# exit-code 1
# env-file ~/.opam/log/tyxml-24757-865888.env
# output-file ~/.opam/log/tyxml-24757-865888.out
### output ###
# ocamlc lib/.tyxml_f.objs/xml_stream.{cmi,cmti} (exit 2)
# (cd _build/default && /home/drmac/.opam/4.06.1/bin/ocamlc.opt -w -40 -safe-string -g -bin-annot -I lib/.tyxml_f.objs -I lib/.tyxml_f.objs/.private -I /home/drmac/.opam/4.06.1/lib/bytes -I /home/drmac/.opam/4.06.1/lib/re -I /home/drmac/.opam/4.06.1/lib/uchar -I /home/drmac/.opam/4.06.1/lib/uutf -no-alias-deps -o lib/.tyxml_f.objs/xml_stream.cmi -c -intf lib/xml_stream.mli)
# File "lib/xml_stream.mli", line 36, characters 22-27:
# Error: Unbound module Seq
# ocamlopt implem/top/.tyxml_top.objs/tyxml_top.{cmx,o}
# File "_none_", line 1:
# Warning 58: no cmx file was found in path for module Toploop, and its interface was not compiled with -opaque
#=== ERROR while compiling sodium.0.6.0 =======================================#
# context 2.0.1 | linux/x86_64 | ocaml-base-compiler.4.06.1 | https://opam.ocaml.org#41ad4464
# path ~/.opam/4.06.1/.opam-switch/build/sodium.0.6.0
# command ~/.opam/opam-init/hooks/sandbox.sh build make
# exit-code 2
# env-file ~/.opam/log/sodium-24757-a00279.env
# output-file ~/.opam/log/sodium-24757-a00279.out
### output ###
# [...]
# lib/sodium_stubs.c: In function ‘caml__74_crypto_pwhash_argon2i_str’:
# lib/sodium_stubs.c:646:15: error: implicit declaration of function ‘crypto_pwhash_argon2i_str’ [-Werror=implicit-function-declaration]
# int x490 = crypto_pwhash_argon2i_str(x479, x480, x481, x484, x487);
# ^
# lib/sodium_stubs.c: In function ‘caml__75_crypto_pwhash_argon2i_str_verify’:
# lib/sodium_stubs.c:655:15: error: implicit declaration of function ‘crypto_pwhash_argon2i_str_verify’ [-Werror=implicit-function-declaration]
# int x499 = crypto_pwhash_argon2i_str_verify(x494, x495, x496);
# ^
# cc1: all warnings being treated as errors
# Command exited with code 2.
# Makefile:13: recipe for target 'all' failed
# make: *** [all] Error 10
<><> Error report <><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
┌─ The following actions failed
│ λ build sodium 0.6.0
│ λ build tyxml 4.3.0
└─
╶─ No changes have been performed
# Run eval $(opam env) to update the current shell environment