<div>Thanks, Brad and Matt.  </div><div><br></div><div>MPICH didn&#39;t build correctly either, by simply selecting it.  There was a problem that was fixed by changing a variable in the Makefile after configuration:</div><div>
<br></div>line 305:   mpich_sharedarch=gcc changeed to mpich_sharedarch=osx-gcc<div><br></div><div>Now, the build is failing during the spatiadata/spatialdb tests:</div><div><br></div><div><div>spatialdata::spatialdb::TestSimpleGridDB::testDataIndex : OK</div>
<div>spatialdata::spatialdb::TestSimpleGridDBLine1D::testQueryNearesttestspatial(91490) malloc: *** error for object 0xd000000000000000: pointer being freed was not allocated</div><div>*** set a breakpoint in malloc_error_break to debug</div>
<div>/bin/sh: line 1: 91490 Abort trap: 6           ${dir}$tst</div><div>FAIL: testspatial</div><div>==================================</div><div>1 of 1 test failed</div><div>Please report to <a href="mailto:baagaard@usgs.gov">baagaard@usgs.gov</a></div>
<div>==================================</div><div>make[8]: *** [check-TESTS] Error 1</div><div>make[7]: *** [check-am] Error 2</div><div>make[6]: *** [check-recursive] Error 1</div><div>make[5]: *** [check-recursive] Error 1</div>
<div>make[4]: *** [check-recursive] Error 1</div><div>make[3]: *** [check-recursive] Error 1</div><div>make[2]: *** [spatialdata] Error 2</div><div>make[1]: *** [installed_spatialdata] Error 2</div><div>make: *** [installed_pylith] Error 2</div>
</div><div><br></div><div>I&#39;m not sure what this might be related to, or what log files might contain relevant info.  Please let me know if there&#39;s more info I can give.</div><div><br>Thanks,</div><div>Richard</div>
<div><br><br><div class="gmail_quote">On Tue, Jan 29, 2013 at 2:23 PM, Matthew Knepley <span dir="ltr">&lt;<a href="mailto:knepley@mcs.anl.gov" target="_blank">knepley@mcs.anl.gov</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>On Tue, Jan 29, 2013 at 2:00 PM, Brad Aagaard <span dir="ltr">&lt;<a href="mailto:baagaard@usgs.gov" target="_blank">baagaard@usgs.gov</a>&gt;</span> wrote:<br>

</div><div class="gmail_extra"><div class="gmail_quote"><div>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Richard,<br>
<br>
We have not encountered this problem you are describing with regards to<br>
openmpi and darwin. I am still using 10.6 on my Mac; I am not sure if we<br>
have tested building from source under 10.8.<br>
<br>
We didn&#39;t setup the pylith-installer configure to have openmpi options<br>
because we didn&#39;t anticipate the user needing to customize the openmpi<br>
options. For clusters and other computers where custom MPI settings are<br>
used, we expect a sysadmin to install MPI in a system wide location.<br>
<br>
There are two easy workarounds to this problem:<br>
(1) Install mpi yourself in a custom location that is in the path and<br>
then don&#39;t install it using the pylith installer. You can customize the<br>
mpi configure arguments to make them work on your machine.<br>
(2) Manually adjust the openmpi configure options used by the pylith<br>
installer by editing the install_openmpi target in the Makefile.<br></blockquote><div><br></div></div><div>(3) Have it install MPICH instead.</div><div><br></div><div>  Thanks,</div><div><br></div><div>
    Matt</div><div><div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Regards,<br>
Brad<br>
<br>
<br>
On 1/29/13 7:34 AM, Richard Styron wrote:<br>
&gt; Hi all,<br>
&gt;<br>
&gt; I am trying to build Pylith from source on a mac (OS X 10.8) following<br>
&gt; the install instructions for Darwin/CUDA:<br>
&gt;<br>
&gt;    mkdir -p $HOME/build/pylith<br>
&gt;    $HOME/src/pylith/pylith-installer-1.8.0-0/configure \<br>
&gt;      --enable-gcc=fortran \<br>
&gt;      --enable-python \<br>
&gt;      --enable-mpi=openmpi \<br>
&gt;      --with-fetch=curl \<br>
&gt;      --with-make-threads=2 \<br>
&gt;      --prefix=$HOME/pylith \<br>
&gt;      --with-cuda (&lt;-- also tried without this.  CUDA is installed and<br>
&gt; functional on my machine.)<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; However, OpenMPI fails when during the build:<br>
&gt;<br>
&gt; libtool: link: g++ -fopenmp -DVT_OMP -g -O2 -DMPICH_IGNORE_CXX_SEEK<br>
&gt; -fopenmp -o vtfilter vtfilter-vt_filter.o vtfilter-vt_filthandler.o<br>
&gt; vtfilter-vt_otfhandler.o vtfilter-vt_tracefilter.o ../../util/util.o<br>
&gt; -Wl,-bind_at_load<br>
&gt;   -L/Users/itchy/src/pylith/openmpi-build/ompi/contrib/vt/vt/extlib/otf/otflib/.libs -L/Users/itchy/pylith/lib -L/Users/itchy/src/pylith/openmpi-build/ompi/contrib/vt/vt/extlib/otf/otflib /Users/itchy/src/pylith/openmpi-build/ompi/contrib/vt/vt/extlib/otf/otflib/.libs/libotf.a -lz -lutil<br>



&gt; Undefined symbols for architecture x86_64:<br>
&gt;    &quot;___builtin_expect&quot;, referenced from:<br>
&gt;        _main.omp_fn.0 in vtfilter-vt_tracefilter.o<br>
&gt;        _main.omp_fn.1 in vtfilter-vt_tracefilter.o<br>
&gt; ld: symbol(s) not found for architecture x86_64<br>
&gt; collect2: ld returned 1 exit status<br>
&gt; make[11]: *** [vtfilter] Error 1<br>
&gt; make[10]: *** [all-recursive] Error 1<br>
&gt; make[9]: *** [all-recursive] Error 1<br>
&gt; make[8]: *** [all] Error 2<br>
&gt; make[7]: *** [all-recursive] Error 1<br>
&gt; make[6]: *** [all-recursive] Error 1<br>
&gt; make[5]: *** [all-recursive] Error 1<br>
&gt; make[4]: *** [openmpi] Error 2<br>
&gt; make[3]: *** [installed_mpi] Error 2<br>
&gt; make[2]: *** [installed_hdf5] Error 2<br>
&gt; make[1]: *** [installed_netcdf] Error 2<br>
&gt; make: *** [installed_pylith] Error 2<br>
&gt;<br>
&gt; The error appears to be related to building VampirTrace, which may not<br>
&gt; be critical (?), and following this<br>
&gt; <a href="http://stackoverflow.com/questions/7785464/open-mpi-compilation-error" target="_blank">http://stackoverflow.com/questions/7785464/open-mpi-compilation-error</a> I&#39;d like<br>
&gt; to disable VampirTrace during the build, but I don&#39;t know how to pass<br>
&gt; the &#39;disable-vt&#39; flag during the pylith configuration process.  I tried<br>
&gt; building openmpi from the terminal using the configuration generated by<br>
&gt; autoconf during the Pylith install ($ ../openmpi-1.4.5/configure<br>
&gt; --prefix=/Users/itchy/pylith CPPFLAGS=-I/Users/itchy/pylith/include<br>
&gt;   LDFLAGS=-L/Users/itchy/pylith/lib  CFLAGS=-g -O2 CXXFLAGS=-g -O2<br>
&gt; -DMPICH_IGNORE_CXX_SEEK FCFLAGS= CC=gcc CXX=g++ FC=gfortran) plus<br>
&gt; &#39;--disable-vt&#39; but that doesn&#39;t work because many of the flags there<br>
&gt; aren&#39;t recognized as options from the command line.  I also tried adding<br>
&gt; &#39;--mpi_options=&quot;--disable-vt&quot; &#39; and &#39;--openmpi_options=&quot;--disable-vt&quot; &#39;<br>
&gt; during pylith configuration (similar to what can be done with petsc) but<br>
&gt; those don&#39;t fly.<br>
&gt;<br>
&gt; The config.log files for both pylith and openmpi are attached.<br>
&gt;<br>
&gt; Has anyone dealt with this or a similar issue?<br>
&gt;<br>
&gt; Thanks,<br>
&gt; Richard<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; CIG-SHORT mailing list<br>
&gt; <a href="mailto:CIG-SHORT@geodynamics.org" target="_blank">CIG-SHORT@geodynamics.org</a><br>
&gt; <a href="http://geodynamics.org/cgi-bin/mailman/listinfo/cig-short" target="_blank">http://geodynamics.org/cgi-bin/mailman/listinfo/cig-short</a><br>
&gt;<br>
<br>
_______________________________________________<br>
CIG-SHORT mailing list<br>
<a href="mailto:CIG-SHORT@geodynamics.org" target="_blank">CIG-SHORT@geodynamics.org</a><br>
<a href="http://geodynamics.org/cgi-bin/mailman/listinfo/cig-short" target="_blank">http://geodynamics.org/cgi-bin/mailman/listinfo/cig-short</a><br>
</blockquote></div></div></div><span><font color="#888888"><br><br clear="all"><div><br></div>-- <br>What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead.<br>


-- Norbert Wiener
</font></span></div></div>
<br>_______________________________________________<br>
CIG-SHORT mailing list<br>
<a href="mailto:CIG-SHORT@geodynamics.org" target="_blank">CIG-SHORT@geodynamics.org</a><br>
<a href="http://geodynamics.org/cgi-bin/mailman/listinfo/cig-short" target="_blank">http://geodynamics.org/cgi-bin/mailman/listinfo/cig-short</a><br></blockquote></div><br></div>