blob: 45f2917d3d03419b8284afd9663f4b75343bdf06 [file] [log] [blame]
sewardjde4a1d02002-03-22 01:27:54 +00001
nethercote5da1e172003-12-03 21:44:45 +00002Release notes for Valgrind
3~~~~~~~~~~~~~~~~~~~~~~~~~~
nethercoteed7e0732003-12-02 15:30:28 +00004If you are building a binary package of Valgrind for distribution,
5please read README_PACKAGERS. It contains some important information.
sewardj365a8512002-07-01 08:30:05 +00006
nethercoteed7e0732003-12-02 15:30:28 +00007If you are developing Valgrind, please read README_DEVELOPERS. It contains
8some useful information.
9
10For instructions on how to build/install, see the end of this file.
sewardjde4a1d02002-03-22 01:27:54 +000011
njn4be4e2a2009-06-12 23:40:04 +000012If you have problems, consult the FAQ to see if there are workarounds.
13
sewardjde4a1d02002-03-22 01:27:54 +000014
15Executive Summary
16~~~~~~~~~~~~~~~~~
sewardje089f012010-10-13 21:47:29 +000017Valgrind is a framework for building dynamic analysis tools. There are
18Valgrind tools that can automatically detect many memory management
19and threading bugs, and profile your programs in detail. You can also
20use Valgrind to build new tools.
sewardjde4a1d02002-03-22 01:27:54 +000021
njn4be4e2a2009-06-12 23:40:04 +000022The Valgrind distribution currently includes six production-quality
sewardje089f012010-10-13 21:47:29 +000023tools: a memory error detector, two thread error detectors, a cache
24and branch-prediction profiler, a call-graph generating cache abd
25branch-prediction profiler, and a heap profiler. It also includes
26three experimental tools: a heap/stack/global array overrun detector,
27a different kind of heap profiler, and a SimPoint basic block vector
njn57b87ea2009-07-14 04:24:18 +000028generator.
nethercote5da1e172003-12-03 21:44:45 +000029
njn4be4e2a2009-06-12 23:40:04 +000030Valgrind is closely tied to details of the CPU, operating system and to
31a lesser extent, compiler and basic C libraries. This makes it difficult
32to make it portable. Nonetheless, it is available for the following
33platforms:
nethercote5da1e172003-12-03 21:44:45 +000034
sewardjca456c72012-08-05 13:44:15 +000035- X86/Linux
njn4be4e2a2009-06-12 23:40:04 +000036- AMD64/Linux
37- PPC32/Linux
38- PPC64/Linux
sewardje089f012010-10-13 21:47:29 +000039- ARM/Linux
njn4be4e2a2009-06-12 23:40:04 +000040- x86/MacOSX
41- AMD64/MacOSX
floriandec4a562011-11-26 04:12:01 +000042- S390X/Linux
sewardjca456c72012-08-05 13:44:15 +000043- MIPS32/Linux
petarj4df0bfc2013-02-27 23:17:33 +000044- MIPS64/Linux
Elliott Hughesa0664b92017-04-18 17:46:52 -070045- X86/Solaris
46- AMD64/Solaris
njn567c0142006-03-31 12:24:37 +000047
sewardjca456c72012-08-05 13:44:15 +000048Note that AMD64 is just another name for x86_64, and Valgrind runs fine
njn4be4e2a2009-06-12 23:40:04 +000049on Intel processors. Also note that the core of MacOSX is called
50"Darwin" and this name is used sometimes.
sewardjde4a1d02002-03-22 01:27:54 +000051
52Valgrind is licensed under the GNU General Public License, version 2.
njn25e49d8e72002-09-23 09:36:25 +000053Read the file COPYING in the source distribution for details.
sewardjde4a1d02002-03-22 01:27:54 +000054
sewardje089f012010-10-13 21:47:29 +000055However: if you contribute code, you need to make it available as GPL
56version 2 or later, and not 2-only.
57
sewardjde4a1d02002-03-22 01:27:54 +000058
59Documentation
60~~~~~~~~~~~~~
61A comprehensive user guide is supplied. Point your browser at
nethercote5da1e172003-12-03 21:44:45 +000062$PREFIX/share/doc/valgrind/manual.html, where $PREFIX is whatever you
63specified with --prefix= when building.
sewardjde4a1d02002-03-22 01:27:54 +000064
65
nethercoteed7e0732003-12-02 15:30:28 +000066Building and installing it
67~~~~~~~~~~~~~~~~~~~~~~~~~~
njn0d733b82005-07-26 22:01:04 +000068To install from the Subversion repository :
nethercoteed7e0732003-12-02 15:30:28 +000069
njn0d733b82005-07-26 22:01:04 +000070 0. Check out the code from SVN, following the instructions at
njn1b70e822005-11-08 19:38:58 +000071 http://www.valgrind.org/downloads/repository.html.
nethercoteed7e0732003-12-02 15:30:28 +000072
73 1. cd into the source directory.
74
75 2. Run ./autogen.sh to setup the environment (you need the standard
76 autoconf tools to do so).
77
njn0d733b82005-07-26 22:01:04 +000078 3. Continue with the following instructions...
79
nethercote5da1e172003-12-03 21:44:45 +000080To install from a tar.bz2 distribution:
nethercoteed7e0732003-12-02 15:30:28 +000081
njn801288e2009-08-04 07:02:54 +000082 4. Run ./configure, with some options if you wish. The only interesting
nethercoteed7e0732003-12-02 15:30:28 +000083 one is the usual --prefix=/where/you/want/it/installed.
84
njn8b68b642009-06-24 00:37:09 +000085 5. Run "make".
nethercoteed7e0732003-12-02 15:30:28 +000086
njn8b68b642009-06-24 00:37:09 +000087 6. Run "make install", possibly as root if the destination permissions
nethercoteed7e0732003-12-02 15:30:28 +000088 require that.
89
njn0d733b82005-07-26 22:01:04 +000090 7. See if it works. Try "valgrind ls -l". Either this works, or it
91 bombs out with some complaint. In that case, please let us know
92 (see www.valgrind.org).
nethercoteed7e0732003-12-02 15:30:28 +000093
94Important! Do not move the valgrind installation into a place
95different from that specified by --prefix at build time. This will
96cause things to break in subtle ways, mostly when Valgrind handles
97fork/exec calls.
98
sewardjde4a1d02002-03-22 01:27:54 +000099
njn1b70e822005-11-08 19:38:58 +0000100The Valgrind Developers