<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">
Hi,
<div><br>
</div>
<div> I am trying to build MPE for use with OpenMPI. I built from source Version 1.10.1 of OpenMPI. </div>
<div><br>
</div>
<div> I am using this version of MPE <a href="ftp://ftp.mcs.anl.gov/pub/mpi/mpe/mpe2.tar.gz">ftp://ftp.mcs.anl.gov/pub/mpi/mpe/mpe2.tar.gz</a></div>
<div><br>
</div>
<div> Should this work fine? I followed the instructions to build like this:</div>
<div><br>
</div>
<div><span id="docs-internal-guid-2c51e475-5a5a-ed17-c677-9140db201963">
<div style="font-weight: bold; line-height: 1.38; margin-top: 0pt; margin-bottom: 0pt; ">
<span style="font-size: 14.666666666666666px; font-family: 'Courier New'; font-weight: 400; vertical-align: baseline; white-space: pre-wrap; "> ${MPE_SRC_DIR}/configure MPI_CC=${OPENMPI_INSTALL_DIR}/bin/mpicc \</span></div>
<div style="font-weight: bold; line-height: 1.38; margin-top: 0pt; margin-bottom: 0pt; ">
<span style="font-size: 14.666666666666666px; font-family: 'Courier New'; font-weight: 400; vertical-align: baseline; white-space: pre-wrap; "> CC=<C_COMPILER_used_to_build_OpenMPI> \</span></div>
<div style="font-weight: bold; line-height: 1.38; margin-top: 0pt; margin-bottom: 0pt; ">
<span style="font-size: 14.666666666666666px; font-family: 'Courier New'; font-weight: 400; vertical-align: baseline; white-space: pre-wrap; "> MPI_F77=${OPENMPI_INSTALL_DIR}/bin/mpif77 \</span></div>
<div style="font-weight: bold; line-height: 1.38; margin-top: 0pt; margin-bottom: 0pt; ">
<span style="font-size: 14.666666666666666px; font-family: 'Courier New'; font-weight: 400; vertical-align: baseline; white-space: pre-wrap; "> F77=<FORTRAN_COMPILER_used_to_build_OpenMPI> \</span></div>
<div style="font-weight: bold; line-height: 1.38; margin-top: 0pt; margin-bottom: 0pt; ">
<span style="font-size: 14.666666666666666px; font-family: 'Courier New'; font-weight: 400; vertical-align: baseline; white-space: pre-wrap; "> --with-java2=/usr/local/j2sdk-1.4.2</span></div>
<div style="font-weight: bold; line-height: 1.38; margin-top: 0pt; margin-bottom: 0pt; ">
<span style="font-size: 14.666666666666666px; font-family: 'Courier New'; font-weight: 400; vertical-align: baseline; white-space: pre-wrap; "> --prefix=<MPE_INSTALL_DIR></span></div>
<div style="font-weight: bold; line-height: 1.38; margin-top: 0pt; margin-bottom: 0pt; ">
<span style="font-size: 14.666666666666666px; font-family: 'Courier New'; font-weight: 400; vertical-align: baseline; white-space: pre-wrap; "> make</span></div>
<div style="font-weight: bold; line-height: 1.38; margin-top: 0pt; margin-bottom: 0pt; ">
<span style="font-size: 14.666666666666666px; font-family: 'Courier New'; font-weight: 400; vertical-align: baseline; white-space: pre-wrap; "> make install</span></div>
<div style="font-weight: bold; "><span style="font-weight: 400; vertical-align: baseline; white-space: pre-wrap; "><font size="4"><br>
</font></span></div>
<div style="font-weight: bold; "><span style="font-weight: 400; vertical-align: baseline; white-space: pre-wrap; "><font size="4"><br>
</font></span></div>
<div style="font-weight: bold; "><span style="font-weight: 400; vertical-align: baseline; white-space: pre-wrap; "><font size="4">I keep running into problems with conflicting declarations</font></span></div>
<div style="font-weight: bold; "><span style="font-weight: 400; vertical-align: baseline; white-space: pre-wrap; "><font size="4"><br>
</font></span></div>
</span></div>
<blockquote style="margin: 0 0 0 40px; border: none; padding: 0px;">
<div><span>
<div><span style="vertical-align: baseline; "><span style="white-space: pre-wrap; "><font face="Courier" size="4">log_mpi_core.c:5611: error: conflicting types for 'MPI_Type_struct'</font></span></span></div>
</span></div>
<div><span>
<div><span style="vertical-align: baseline; "><span style="white-space: pre-wrap; "><font face="Courier" size="4">/u/hschilli/local/include/mpi.h:1796: error: previous declaration of 'MPI_Type_struct' was here</font></span></span></div>
</span></div>
</blockquote>
<div><span>
<div style="font-weight: bold; "><span style="font-weight: 400; vertical-align: baseline; white-space: pre-wrap; "><font size="4"><br>
</font></span></div>
<div style="font-weight: bold; "><span style="font-weight: 400; vertical-align: baseline; white-space: pre-wrap; "><font size="4">I think the issue is that MPE's declaration uses some const qualifiers while OpenMPI does not.
</font></span></div>
<div style="font-weight: bold; "><span style="font-weight: 400; vertical-align: baseline; white-space: pre-wrap; "><font size="4"><br>
</font></span></div>
<div><span style="font-size: large; vertical-align: baseline; "><span style="white-space: pre-wrap; ">I tried hacking my way through this with the macro
</span></span><span style="white-space: pre-wrap; "><font face="Courier" size="4">HAVE_CONST_IN_MPI_DECL</font><font size="4"> and MPE_CONST but no luck so far.
</font></span></div>
<div><span style="white-space: pre-wrap; "><br>
</span></div>
<div><span style="white-space: pre-wrap; ">What am I doing wrong?</span></div>
<div><span style="white-space: pre-wrap; "><br>
</span></div>
<div><span style="white-space: pre-wrap; ">Thanks in advance.</span></div>
</span></div>
<div><br>
<div apple-content-edited="true">
<div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">
<div>---------</div>
<div>Herb Schilling</div>
<div>Scientific Applications and Visualization Team</div>
<div><a href="http://ocio.grc.nasa.gov/gvis">http://ocio.grc.nasa.gov/gvis</a></div>
<div>Office of the Chief Information Officer</div>
<div>NASA Glenn Research Center</div>
<div><a href="mailto:hschilling@nasa.gov">hschilling@nasa.gov</a></div>
<div><br>
</div>
</div>
<br class="Apple-interchange-newline">
<br class="Apple-interchange-newline">
</div>
<br>
</div>
</body>
</html>