Documentation can be browsed on Read the Docs or GitHub.
Both for using an up-to-date version of Goblint or developing it, the best way is to install from source by cloning this repository.
The goblint package on opam is very outdated and should currently not be used.
- Install opam.
- Make sure the following are installed:
git patch m4 autoconf libgmp-dev libmpfr-dev
. - Run
make setup
to install OCaml and dependencies via opam. - Run
make
to build Goblint itself.
- Install GCC with
brew install gcc
(first runxcode-select --install
if you don't want to build it from source). Goblint requires GCC while macOS's defaultcpp
is Clang, which will not work. - Continue using Linux instructions.
- Install WSL.
- Continue using Linux instructions in WSL.
- Docker. Clone and run
make docker
. - Vagrant. Clone and run
vagrant up && vagrant ssh
. - Docker Hub (outdated). Run
docker run -it voglerr/goblint bash
. - opam (very outdated). Run
opam install goblint
.
To confirm that the installation worked, you can try running Goblint as follows:
./goblint tests/regression/04-mutex/01-simple_rc.c
For further information, see documentation.