package goblint
Static analysis framework for C
Install
dune-project
Dependency
Authors
Maintainers
Sources
goblint-2.1.0.tbz
sha256=bfc412ec2e447eaef6f4f83892e3511ebf305593cb00561c1406be3ae8bf48e9
sha512=5f2a162e5f36bffafc9836b0d18b5b2808cecfa6bf68f83bb7d1e8b9947ac74cf07776eb09274b4b29d55c897a45a10768f0d9ed25810cf6ba2409c525e4cd4d
doc/README.html
Goblint
Documentation can be browsed on Read the Docs or GitHub.
Installing
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.
Linux
- Install opam.
- Make sure the following are installed:
git,patch,m4,autoconf,libgmp-dev,libmpfr-devandpkg-config. - Run
make setupto install OCaml and dependencies via opam. - Run
maketo build Goblint itself. - Run
make installto install Goblint into the opam switch for usage via switch'sPATH.
MacOS
- Install GCC with
brew install gcc(first runxcode-select --installif you don't want to build it from source). Goblint requires GCC while macOS's defaultcppis Clang, which will not work. - ONLY for M1 (ARM64) processor: homebrew changed its install location from
/usr/local/to/opt/homebrew/. For packages to find their dependecies executesudo ln -s /opt/homebrew/{include,lib} /usr/local/. - Continue using Linux instructions (the formulae in brew for
patch,libgmp-dev,libmpfr-devaregpatch,gmp,mpfr, respectively).
Windows
- Install WSL2. Goblint is not compatible with WSL1.
- Continue using Linux instructions in WSL.
Other
- opam. Install opam and run
opam install goblint. - devcontainer. Select "Reopen in Container" in VS Code and continue with
makeusing Linux instructions in devcontainer. - Docker (GitHub Container Registry). Run
docker pull ghcr.io/goblint/analyzer:latest(or:nightly). - Docker (repository). Clone and run
docker build -t goblint .. - Vagrant. Clone and run
vagrant up && vagrant ssh.
Running
To confirm that building worked, you can try running Goblint as follows:
./goblint tests/regression/04-mutex/01-simple_rc.cTo confirm that installation into the opam switch worked, you can try running Goblint as follows:
goblint tests/regression/04-mutex/01-simple_rc.cTo confirm that the Docker container worked, you can try running Goblint as follows:
docker run -it --rm -v $(pwd):/data goblint /data/tests/regression/04-mutex/01-simple_rc.cIf pulled from GitHub Container Registry, use the container name ghcr.io/goblint/analyzer:latest (or :nightly) instead.
For further information, see documentation.