<br><br><div class="gmail_quote">On Wed, Jul 1, 2009 at 12:25 PM, Dave Goodell <span dir="ltr"><<a href="mailto:goodell@mcs.anl.gov">goodell@mcs.anl.gov</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="im">On Jul 1, 2009, at 10:10 AM, Ashley Pittman wrote:<br>
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On Tue, 2009-06-30 at 20:31 -0400, Shawn Kim wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Error message:<br>
$ make<br>
~~~~<br>
<br>
<br>
../../../../../lib/libmpich.a(trmem.o)(.text+0x24c): In function<br>
`MPIU_trvalid_unsafe':<br>
<br>
/home/mdl/seokim/mpich2-1.1<br>
+pvfs-2.8.1/mpich2-1.1/src/util/mem/trmem.c:523: undefined reference<br>
to `VALGRIND_MAKE_MEM_NOACCESS'<br>
</blockquote>
<br>
I suspect this is a valgrind version issue, at some point in the past<br>
some of the VALGRIND_ macros got moved from <valgrind/valgrind.h> to<br>
<valgrind/memcheck.h>. I'm not sure what MPICH2 is doing with these<br>
macros but you should find where it the code it includes valgrind.h and<br>
also include memcheck.h<br>
</blockquote>
<br></div>
When compiling with --enable-g=mem,meminit (or =all, which includes =mem,meminit), we attempt to use some valgrind client request macros if they are available. The configure test that we currently use in order to check for valgrind's availability is weaker than it probably could be right now. IIRC we mostly just check for the existence of {valgrind.h,memcheck.h} and {valgrind/valgrind.h,valgrind/memcheck.h} but not for any of the particular macros within them.<br>
<br>
Shawn, what version of valgrind do you have installed? (valgrind --version should tell you) I can strengthen the configure tests in general, but it would help to have a known-bad version to test against to ensure that the tests will function correctly.<br>
</blockquote><div><br>I got an error message while valgrind --version.<br>$ valgrind --version<br>/usr/local/bin/valgrind: Exec format error. Wrong Architecture.<br><br>This might be a problem. Thank you.<br> <br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
This is something that I've been meaning to clean up for a little while. I just haven't because it's functionality that is used almost exclusively by core MPICH2 developers and it seems to work on all of our systems here at ANL.<br>
<font color="#888888">
<br>
-Dave<br>
<br>
</font></blockquote></div><br>