Installing Valgrind
Installing from ports
pkg install valgrind will install Valgrind 3.17.0.
pkg install valgrind-devel will install a version of Valgrind that is tracking the upstream git repository, 3.18.0.GIT.
There may be some delay between package builds and the above versions, particularly if you use the quarterly packages'
Prerequisites
Building valgrind requires the following ports to be installed:
- gmake
- autoconf
- automake
Obtaining the Valgrind source
The most recent version of Valgrind for is available on github.
To check out the source
git clone https://github.com/paulfloyd/freebsd_valgrind.git
The previous version of the Valgrind FreeBSD can be cloned from a mercurial repository on bitbucket.org: https://bitbucket.org/stass/valgrind-freebsd To check out the source: hg clone https://bitbucket.org/stass/valgrind-freebsd
Building
sh autogen.sh ./configure gmake gmake install
TODO
- Integrate changes to upstream valgrind sourceware.org git repo
[PATCH]: FreeBSD support for valgrind in the Valgrind bug tracker
- The patches have now been broken down into 12 smaller chunks that should be easier to digest.
- Fix support for FreeBSD TLS
- TLS does affect Helgrind and possibly DRD.
http://people.freebsd.org/~marcel/tls.html FreeBSD TLS notes
http://lwn.net/Articles/5851/ Linux TLS notes
- Signal delivery issue, particularly on i386
- Implement rfork.
Links
Valgrind port on freshports