title: Valgrind: fatal error: memcheck.h: No such file or directory
body: <p>We are trying to track down a <em>Conditional jump or move depends on uninitialised value</em> in a C++ project reported by Valgrind. The address provided in the finding is not really helpful because it points to the end of a GCC extended assembly block, and not the actual variable causing the trouble.</p>
  
  <p>According to the <strike>Valgrind's</strike> <a href="https://blog.mozilla.org/nnethercote/2009/02/27/eliminating-undefined-values-with-valgrind-the-easy-way/" rel="nofollow noreferrer">Eliminating undefined values with Valgrind, the easy way</a>, we can use <code>VALGRIND_CHECK_MEM_IS_DEFINED</code> or <code>VALGRIND_CHECK_VALUE_IS_DEFINED</code> after including <code>&lt;memcheck.h&gt;</code>. Additionally, those macros or functions are apparently documented in the header file (there is definitely no man page for them).</p>
  
  <p>However, when I include <code>&lt;memcheck.h&gt;</code> or <code>&lt;valgrind/memcheck.h&gt;</code>, it results in:</p>
  
  <blockquote>
    <p>fatal error: memcheck.h: No such file or directory</p>
  </blockquote>
  
  <p>Based on Stack Overflow's <a href="https://stackoverflow.com/a/1133662/608639">How do I find which rpm package supplies a file I'm looking for?</a>, I performed a <a href="http://www.rpmfind.net/linux/rpm2html/search.php?query=memcheck.h&amp;submit=Search" rel="nofollow noreferrer">RPM file search</a>, but its returning 0 hits for <code>memcheck.h</code>.</p>
  
  <p><strong><em>QUESTIONS</em></strong></p>
  
  <ol>
  <li><p>The blog article is a bit dated. Does the information still apply?</p></li>
  <li><p>If the information is accurate, then where do I find <code>memcheck.h</code>?</p></li>
  </ol>
  
  <hr>
  
  <pre class="lang-none prettyprint-override"><code>$ uname -a
  Linux localhost.localdomain 4.1.4-200.fc22.x86_64 #1 SMP Tue Aug 4 03:22:33 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
  
  $ g++ --version
  g++ (GCC) 5.1.1 20150618 (Red Hat 5.1.1-4)
  ...
  
  $ valgrind --version
  valgrind-3.10.1
  </code></pre>