Valgrind

The recommended installation method is FreeBSD Ports & Packages.

Installation

Note: There may be some differences or delays between binary package versions and port versions, depending on whether you use Quarterly or Latest package branch.

Stable Version

The devel/valgrind port follows the official Valgrind release cycle, which is roughly aligned with the RedHat Fedora release cycle, with bi-annual releases targeted for April and October.

Install using either:

Development Version

The devel/valgrind-devel port will install a version of Valgrind that is tracking the upstream git repository, 3.20.0.GIT, and is updated when there are sufficient fixes between official Valgrind releases.

Install using either:

Building from Source

Pre-Requisites

Building valgrind requires the following ports to be installed:

Obtaining the Valgrind Source

Starting with Valgrind 3.18.1 FreeBSD support has been integrated into the main Valgrind codebase. Prior to 3.18.1 (though still maintained) the source was hosted on on GitHub

To check out pre-3.18.1 versions of the source:

Building

TODO

  1. A proper implementation of vgdb-invoker. This is present in the sourceware repo but not yet available in ports.
  2. Add freeres support to libc FreeBSD Bugzilla Issue #259294

  3. Much needs to be done for Clang OMP.
  4. Fix handling of thread TLS allocation for Helgrind.

Valgrind (last edited 2022-06-21T08:08:31+0000 by MarkLinimon)