<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style>
</head>
<body lang="EN-US" link="#0563C1" vlink="#954F72" style="word-wrap:break-word">
<div class="WordSection1">
<p class="MsoNormal">Pedro,<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I am guessing you still have to set your LD_LIBRARY_PATH environment variable to include the location of your MPI libraries.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Mike<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="font-size:12.0pt;color:black">From: </span></b><span style="font-size:12.0pt;color:black">Trilinos-Users <trilinos-users-bounces@trilinos.org> on behalf of Pedro Rodrigues <pjsgr100@gmail.com><br>
<b>Date: </b>Thursday, March 11, 2021 at 10:00 AM<br>
<b>To: </b>Trilinos Users <trilinos-users@trilinos.org><br>
<b>Subject: </b>[EXTERNAL] [Trilinos-Users] BUILD_FAILURE_MPI<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<div>
<p class="MsoNormal">Hello <o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">I am trying to build under Linux(Ubuntu flavour) Trillinos framework.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">I get an error during execution of 'make' after generation of the corresponding makefile under cmake-gui.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">I built mpich-3.4.1 libraries and made this under cmake:<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">MPI_BASE_DIR = /usr/local  -- where I have the MPI <b>lib/include/bin dirs</b>;<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">MPI_EXEC was detected by cmakefile;<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">So, I don't understand why I get this errors:<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">[  7%] Linking CXX executable Sacado_dfad_view_handle_example.exe<br>
/usr/bin/ld: ../../teuchos/comm/src/libteuchoscomm.so.13.1: undefined reference to `MPI_Allgather'<br>
/usr/bin/ld: ../../teuchos/comm/src/libteuchoscomm.so.13.1: undefined reference to `MPI_Comm_free_keyval'<br>
/usr/bin/ld: ../../teuchos/comm/src/libteuchoscomm.so.13.1: undefined reference to `MPI_Bcast'<br>
/usr/bin/ld: ../../teuchos/comm/src/libteuchoscomm.so.13.1: undefined reference to `MPI_Ssend'<br>
/usr/bin/ld: ../../teuchos/comm/src/libteuchoscomm.so.13.1: undefined reference to `MPI_Op_create'<br>
/usr/bin/ld: ../../teuchos/comm/src/libteuchoscomm.so.13.1: undefined reference to `MPI_Send'<br>
/usr/bin/ld: ../../teuchos/comm/src/libteuchoscomm.so.13.1: undefined reference to `MPI_Isend'<br>
/usr/bin/ld: ../../teuchos/comm/src/libteuchoscomm.so.13.1: undefined reference to `MPI_Comm_set_attr'<br>
/usr/bin/ld: ../../teuchos/comm/src/libteuchoscomm.so.13.1: undefined reference to `MPI_Cancel'<br>
/usr/bin/ld: ../../teuchos/comm/src/libteuchoscomm.so.13.1: undefined reference to `MPI_Initialized'<br>
/usr/bin/ld: ../../teuchos/comm/src/libteuchoscomm.so.13.1: undefined reference to `MPI_Type_contiguous'<br>
/usr/bin/ld: ../../teuchos/comm/src/libteuchoscomm.so.13.1: undefined reference to `MPI_Scatter'<br>
/usr/bin/ld: ../../teuchos/comm/src/libteuchoscomm.so.13.1: undefined reference to `MPI_Type_free'<br>
/usr/bin/ld: ../../teuchos/comm/src/libteuchoscomm.so.13.1: undefined reference to `MPI_Barrier'<br>
/usr/bin/ld: ../../teuchos/comm/src/libteuchoscomm.so.13.1: undefined reference to `MPI_Group_incl'<br>
/usr/bin/ld: ../../teuchos/core/src/libteuchoscore.so.13.1: undefined reference to `MPI_Finalize'<br>
/usr/bin/ld: ../../teuchos/comm/src/libteuchoscomm.so.13.1: undefined reference to `MPI_Gather'<br>
/usr/bin/ld: ../../teuchos/comm/src/libteuchoscomm.so.13.1: undefined reference to `MPI_Rsend'<br>
/usr/bin/ld: ../../teuchos/comm/src/libteuchoscomm.so.13.1: undefined reference to `MPI_Recv'<br>
/usr/bin/ld: ../../teuchos/comm/src/libteuchoscomm.so.13.1: undefined reference to `MPI_Comm_create_keyval'<br>
/usr/bin/ld: ../../teuchos/comm/src/libteuchoscomm.so.13.1: undefined reference to `MPI_Comm_group'<br>
/usr/bin/ld: ../../teuchos/comm/src/libteuchoscomm.so.13.1: undefined reference to `MPI_Comm_create'<br>
/usr/bin/ld: ../../teuchos/comm/src/libteuchoscomm.so.13.1: undefined reference to `MPI_Finalized'<br>
/usr/bin/ld: ../../teuchos/core/src/libteuchoscore.so.13.1: undefined reference to `MPI_Abort'<br>
/usr/bin/ld: ../../teuchos/comm/src/libteuchoscomm.so.13.1: undefined reference to `MPI_Scan'<br>
/usr/bin/ld: ../../teuchos/core/src/libteuchoscore.so.13.1: undefined reference to `MPI_Get_processor_name'<br>
/usr/bin/ld: ../../teuchos/comm/src/libteuchoscomm.so.13.1: undefined reference to `MPI_Comm_size'<br>
/usr/bin/ld: ../../teuchos/comm/src/libteuchoscomm.so.13.1: undefined reference to `MPI_Waitall'<br>
/usr/bin/ld: ../../teuchos/comm/src/libteuchoscomm.so.13.1: undefined reference to `MPI_Error_string'<br>
/usr/bin/ld: ../../teuchos/comm/src/libteuchoscomm.so.13.1: undefined reference to `MPI_Allreduce'<br>
/usr/bin/ld: ../../teuchos/comm/src/libteuchoscomm.so.13.1: undefined reference to `MPI_Type_commit'<br>
/usr/bin/ld: ../../teuchos/core/src/libteuchoscore.so.13.1: undefined reference to `MPI_Wtime'<br>
/usr/bin/ld: ../../teuchos/comm/src/libteuchoscomm.so.13.1: undefined reference to `MPI_Type_size'<br>
/usr/bin/ld: ../../teuchos/comm/src/libteuchoscomm.so.13.1: undefined reference to `MPI_Reduce'<br>
/usr/bin/ld: ../../teuchos/comm/src/libteuchoscomm.so.13.1: undefined reference to `MPI_Wait'<br>
/usr/bin/ld: ../../teuchos/comm/src/libteuchoscomm.so.13.1: undefined reference to `MPI_Comm_dup'<br>
/usr/bin/ld: ../../teuchos/comm/src/libteuchoscomm.so.13.1: undefined reference to `MPI_Irecv'<br>
/usr/bin/ld: ../../teuchos/comm/src/libteuchoscomm.so.13.1: undefined reference to `MPI_Comm_rank'<br>
/usr/bin/ld: ../../teuchos/core/src/libteuchoscore.so.13.1: undefined reference to `MPI_Init'<br>
/usr/bin/ld: ../../teuchos/comm/src/libteuchoscomm.so.13.1: undefined reference to `MPI_Comm_set_errhandler'<br>
/usr/bin/ld: ../../teuchos/comm/src/libteuchoscomm.so.13.1: undefined reference to `MPI_Op_free'<br>
/usr/bin/ld: ../../teuchos/comm/src/libteuchoscomm.so.13.1: undefined reference to `MPI_Comm_free'<br>
/usr/bin/ld: ../../teuchos/comm/src/libteuchoscomm.so.13.1: undefined reference to `MPI_Comm_split'<br>
/usr/bin/ld: ../../teuchos/comm/src/libteuchoscomm.so.13.1: undefined reference to `MPI_Group_free'<br>
/usr/bin/ld: ../../teuchos/comm/src/libteuchoscomm.so.13.1: undefined reference to `MPI_Gatherv'<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">thanks in advance<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal"><br>
-- <o:p></o:p></p>
<div>
<p class="MsoNormal">Pedro Rodrigues<o:p></o:p></p>
</div>
</div>
</div>
</div>
</body>
</html>