<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif;" dir="ltr">
<p><br>
</p>
<p>Hi JP,</p>
<p><br>
</p>
<p>Perhaps makenek clean first ?</p>
<p><br>
</p>
<p>Paul</p>
<p><br>
</p>
</div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> Nek5000-users <nek5000-users-bounces@lists.mcs.anl.gov> on behalf of nek5000-users@lists.mcs.anl.gov <nek5000-users@lists.mcs.anl.gov><br>
<b>Sent:</b> Wednesday, November 15, 2017 6:39:51 PM<br>
<b>To:</b> nek5000-users@lists.mcs.anl.gov<br>
<b>Subject:</b> [Nek5000-users] Undefined references when compiling</font>
<div> </div>
</div>
<div>
<div dir="ltr">Hi all,
<div><br>
</div>
<div>I've never had any problem when compiling (in my personal computer or in the cluster server where I run simulations). Now I'm trying to use the latest version of Nek, and it worked in my computer but when I try to compile a case in the cluster I get errors. </div>
<div><br>
</div>
<div>Attached is the full compiler.out file, but the final part is:</div>
<div><br>
</div>
<div><br>
</div>
<div>
<div><font size="1">[...]</font></div>
<div><font size="1">/user/r/robinson/Nek5000/3rd_party/gslib/src/libgs.a(amg.o): In function `dread_mpi.isra.22':</font></div>
<div><font size="1">amg.c:(.text+0x53b): undefined reference to `ompi_mpi_double'</font></div>
<div><font size="1">/user/r/robinson/Nek5000/3rd_party/gslib/src/libgs.a(amg.o): In function `dopen_mpi.constprop.27':</font></div>
<div><font size="1">amg.c:(.text+0x5eb): undefined reference to `ompi_mpi_info_null'</font></div>
<div><font size="1">/user/r/robinson/Nek5000/3rd_party/gslib/src/libgs.a(amg.o): In function `gslib_crs_amg_setup':</font></div>
<div><font size="1">amg.c:(.text+0x18d2): undefined reference to `ompi_mpi_unsigned_char'</font></div>
<div><font size="1">amg.c:(.text+0x1cc1): undefined reference to `ompi_mpi_unsigned_char'</font></div>
<div><font size="1">amg.c:(.text+0x1cde): undefined reference to `ompi_mpi_unsigned_char'</font></div>
<div><font size="1">amg.c:(.text+0x1cfb): undefined reference to `ompi_mpi_unsigned_char'</font></div>
<div><font size="1">amg.c:(.text+0x1dcb): undefined reference to `ompi_mpi_unsigned_char'</font></div>
<div><font size="1">/user/r/robinson/Nek5000/3rd_party/gslib/src/libgs.a(amg.o):amg.c:(.text+0x1df1): more undefined references to `ompi_mpi_unsigned_char' follow</font></div>
<div><font size="1">collect2: ld returned 1 exit status</font></div>
<div><font size="1">make: *** [nek5000] Error 1</font></div>
</div>
<div><br>
</div>
<div><br>
</div>
<div>I notice that there are a lot of undefined references related to MPI. One differences is that in my computer I have openmpi but the cluster has mpich. Perhaps it is related with that, although when I use previous versions of Nek I have no problem in the
cluster. </div>
<div><br>
</div>
<div>I can notice too that all the errors come from <span style="font-size:x-small">Nek5000/3rd_party/gslib/src. </span></div>
I went into that folder and realized that maybe I should install gslib libraries, and that means asking for the cluster administrator to do it.
<div><br>
</div>
<div>What do you think I should do?</div>
<div><br>
</div>
<div>Thanks in advance,</div>
<div><br>
</div>
<div>JP.</div>
<div>
<div>
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
</div>
</div>
</div>
</div>
</body>
</html>