opam switch create fstar-dev ocaml-base-compiler.4.07.1
eval $(opam env)
opam pin add fstar --dev-repo
The following actions will be performed:
∗ install conf-gmp 1 [required by zarith]
∗ install conf-m4 1 [required by ocamlfind]
∗ install conf-which 1 [required by biniou]
∗ install conf-perl 1 [required by zarith]
∗ install dune 1.10.0
[required by ppx_deriving, ocaml-migrate-parsetree,
ppx_deriving_yojson]
∗ install ocamlbuild 0.14.0 [required by fstar]
∗ install ocamlfind 1.8.0 [required by fstar]
∗ install result 1.4
[required by ppx_deriving, ocaml-migrate-parsetree,
ppx_deriving_yojson]
∗ install ppx_derivers 1.2.1
[required by ocaml-migrate-parsetree, ppx_deriving]
∗ install jbuilder transition [required by stdint]
∗ install cppo 1.6.6
[required by ppx_deriving, ppx_deriving_yojson]
∗ install camlp4 4.07+1 [required by ulex]
∗ install zarith 1.7 [required by fstar]
∗ install ppx_tools 5.1+4.06.0
[required by ppx_deriving, ppx_deriving_yojson]
∗ install pprint 20180528 [required by fstar]
∗ install num 1.2 [required by batteries]
∗ install menhir 20190626 [required by fstar]
∗ install base-bytes base
[required by stdint, fileutils, process, ulex]
∗ install ocaml-migrate-parsetree 1.3.1 [required by fstar]
∗ install easy-format 1.3.1 [required by yojson]
∗ install batteries 2.9.0 [required by fstar]
∗ install ulex 1.2 [required by fstar]
∗ install stdint 0.5.1 [required by fstar]
∗ install process 0.2.1 [required by fstar]
∗ install fileutils 0.5.3 [required by fstar]
∗ install ppxfind 1.3
[required by ppx_deriving, ppx_deriving_yojson]
∗ install biniou 1.2.0 [required by yojson]
∗ install ppx_deriving 4.3 [required by fstar]
∗ install yojson 1.7.0 [required by fstar]
∗ install ppx_deriving_yojson 3.4 [required by fstar]
∗ install fstar 0.9.7.0-alpha1*
===== ∗ 31 =====
Do you want to continue? [Y/n] Y
F* 0.9.7.0-alpha1
platform=Darwin_x86_64
compiler=OCaml 4.07.1
date=<not set>
commit=86777fca088e7769ccf473fb44406633fc28a913
/home/yoshihiro_imai/.opam/fstar/lib/fstar/prims.fst(0,0-0,0): (Warning 241) Unable to load /home/yoshihiro_imai/.opam/fstar/lib/fstar/prims.fst.checked since checked file /home/yoshihiro_imai/.opam/fstar/lib/fstar/prims.fst.checked does not exist; will recheck /home/yoshihiro_imai/.opam/fstar/lib/fstar/prims.fst (suppressing this warning for further modules)
(Warning 282) Expected Z3 version "Z3 version 4.8.5", got "Z3 version 4.4.1
"
Please download the version of Z3 corresponding to your platform from:
https://github.com/FStarLang/binaries/tree/master/z3-tested
and add the bin/ subdirectory into your PATH
Verified module: Fact (1549 milliseconds)
All verification conditions discharged successfully
トラブルシューティング
opam install fstar
でinstall --D
のエラーになってしまう場合はおそらくGNU installがないことが原因。エラーメッセージ
解決法
brew install coreutils