That would be the following:<div><br></div><div><div>$ mpicc -show</div><div>gcc -D_REENTRANT -Wl,-u,_munmap -Wl,-multiply_defined,suppress -lmpi -lopen-rte -lopen-pal</div><div><br></div><div>S</div><br><div class="gmail_quote">
On Sun, Aug 15, 2010 at 1:08 PM, <a href="mailto:michael.bane@manchester.ac.uk">michael.bane@manchester.ac.uk</a> <span dir="ltr">&lt;<a href="mailto:michael.bane@manchester.ac.uk">michael.bane@manchester.ac.uk</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">What is output of mpicc -show<br><br>---<br>Michael<br><br><br><div>----- Reply message -----<br>From: &quot;sasha lambert&quot; &lt;<a href="mailto:lambert.sasha@gmail.com" target="_blank">lambert.sasha@gmail.com</a>&gt;<br>
Date: Sun, Aug 15, 2010 17:32<br>Subject: [mpich-discuss] libmpich.a &quot;No such file or directory&quot;<br>To: &lt;<a href="mailto:mpich-discuss@mcs.anl.gov" target="_blank">mpich-discuss@mcs.anl.gov</a>&gt;<br><br></div>
<div><div></div><div class="h5">Still nothing : (   There must be something basic i&#39;m missing, or syntax error somewhere. Hmm.<div><br></div><div>Thanks for the help!</div><div><br></div><div>Sasha<br><br><div class="gmail_quote">
On Sun, Aug 15, 2010 at 11:59 AM, Si Hammond <span dir="ltr">&lt;<a href="mailto:simon.hammond@gmail.com" target="_blank">simon.hammond@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word"><div>Pretty odd.</div><div><br></div><div>Have you tried specifying the exact path?</div>

<div><br></div><div>mpicc -o /home/abcd/main.o main.c</div><div>mpicc -o /home/abcd/hello /home/acbd/main.o</div><div><br></div><font color="#888888"><div><br></div><div>S.</div></font><div><div></div><div><div>
<br></div><br><div><div>On 15 Aug 2010, at 16:38, sasha lambert wrote:</div><br><blockquote type="cite">Hmm still nothing; no errors but no main.o.<div>My mpich configure, make, and make install steps went smoothly. The &quot;which mpicc&quot; test was successful, indicating its location at usr/bin.</div>

<div><br></div><div>
Sasha<br><br><div class="gmail_quote">On Sun, Aug 15, 2010 at 11:25 AM, Si Hammond <span dir="ltr">&lt;<a href="mailto:simon.hammond@gmail.com" target="_blank">simon.hammond@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


<div style="word-wrap:break-word">Can you try...<div><br></div><div>mpicc -o main.o -c main.c</div><div>mpicc -o hello main.o</div><div><br></div><div>You should see the main.o in the directory, if no errors on the screen then it sounds like its working fine.</div>


<div><br></div><font color="#888888"><div><br></div><div>S.</div></font><div><div></div><div><div><br><div><div>On 15 Aug 2010, at 16:21, sasha lambert wrote:</div><br><blockquote type="cite">I tried compiling using mpicc, and nothing seems to happen.<div>


The prompt just reappears and no executable file has been made.</div><div><br></div><div>Sasha<br><div><br><div class="gmail_quote">On Sun, Aug 15, 2010 at 11:12 AM, Si Hammond <span dir="ltr">&lt;<a href="mailto:simon.hammond@gmail.com" target="_blank">simon.hammond@gmail.com</a>&gt;</span> wrote:<br>



<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">Have you tried compiling with mpicc?<div><br></div><div>mpicc -o hello main.c </div>



<div><br></div><div>This sets up the linking etc for you.</div><div><br></div><div><br></div><div><br></div><div>S.</div><div><br></div><div><br><div><div><div></div><div><div>On 15 Aug 2010, at 16:02, sasha lambert wrote:</div>



<br></div></div><blockquote type="cite"><div><div></div><div>I&#39;m fairly new to unix and mpich, so please bear with me.<div><br></div><div>I&#39;ve tried to compile a simple &quot;hello&quot; program below:</div>
<div><br></div><div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;color:rgb(0, 139, 0)">
/*The Parallel Hello World Program*/</div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;color:rgb(126, 70, 35)">#include <span style="color:#e00000">&lt;stdio.h&gt;</span></div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;color:rgb(126, 70, 35)">



#include <span style="color:#e00000">&lt;mpi.h&gt;</span></div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;min-height:13px"><br></div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px">



main(<span style="color:#c800a3">int</span> argc, <span style="color:#c800a3">char</span> **argv)</div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px">{</div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px">



<span style="white-space:pre-wrap">        </span><span style="color:#c800a3">int</span> node;</div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><span style="white-space:pre-wrap">        </span><span style="color:#430084">MPI_Init</span>(&amp;argc,&amp;argv);</div>



<div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;color:rgb(126, 70, 35)"><span style="color:#000000"><span style="white-space:pre-wrap">        </span></span><span style="color:#430084">MPI_Comm_rank</span><span style="color:#000000">(</span>MPI_COMM_WORLD<span style="color:#000000">, &amp;node);</span></div>


<div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;min-height:13px"><span style="white-space:pre-wrap">        </span><br></div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;color:rgb(224, 0, 0)">



<span style="color:#000000"><span style="white-space:pre-wrap">        </span></span><span style="color:#430084">printf</span><span style="color:#000000">(</span>&quot;Hello World from Node %d\n&quot;<span style="color:#000000">,node);</span></div>


<div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;min-height:13px"><span style="white-space:pre-wrap">        </span><br></div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;color:rgb(67, 0, 132)">



<span style="color:#000000"><span style="white-space:pre-wrap">        </span></span>MPI_Finalize<span style="color:#000000">();</span></div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px">}</div>


</div>
<div><br></div><div>Here is the shell response:</div><div><br></div><div><div>$ gcc main.c -o hello</div><div>Undefined symbols:</div><div>  &quot;_MPI_Comm_rank&quot;, referenced from:</div>
<div>      _main in ccWLoMyo.o</div><div>  &quot;_MPI_Finalize&quot;, referenced from:</div><div>      _main in ccWLoMyo.o</div><div>  &quot;_MPI_Init&quot;, referenced from:</div><div>      _main in ccWLoMyo.o</div><div>




ld: symbol(s) not found</div><div>collect2: ld returned 1 exit status</div></div><div><br></div><div>I tried searching for &quot;MPI_init&quot; in libmpich.a, thinking it might have to do with the added underscore in &quot; _MPI_Init&quot;.</div>




<div>Shell response:</div><div><br></div><div><div>$ nm libmpich.a | grep mpi_init</div><div>nm: can&#39;t open file: libmpich.a (No such file or directory)</div></div><div><br></div><div>I&#39;ve added usr/local/lib to the PATH, but still nothing. Any suggestions?</div>




<div><br></div><div>Thanks,</div><div>Sasha</div></div></div>
_______________________________________________<br>mpich-discuss mailing list<br><a href="mailto:mpich-discuss@mcs.anl.gov" target="_blank">mpich-discuss@mcs.anl.gov</a><br><a href="https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss" target="_blank">https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss</a><br>



</blockquote></div><br><div>
<span style="border-collapse:separate;color:rgb(0, 0, 0);font-family:Helvetica;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:auto;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;font-size:medium"><span style="border-collapse:separate;color:rgb(0, 0, 0);font-family:Helvetica;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;font-size:medium"><div style="word-wrap:break-word">



<span style="border-collapse:separate;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;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><div style="word-wrap:break-word">



<span style="border-collapse:separate;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;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><div style="word-wrap:break-word">



<span style="border-collapse:separate;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;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><div style="word-wrap:break-word">



<span style="border-collapse:separate;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;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><div style="word-wrap:break-word">



<span style="border-collapse:separate;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;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><span style="font-size:12px"><div>



<br>---------------------------------------------------------------------------------------</div><div>Si Hammond</div><div><br></div><div>Research Fellow &amp; Knowledge Transfer Associate</div><div>Performance Computing &amp; Visualisation Group</div>



<div>Department of Computer Science</div><div>University of Warwick, CV4 7AL, UK</div><div><a href="http://go.warwick.ac.uk/hpsg" target="_blank">http://go.warwick.ac.uk/hpsg</a></div><div>----------------------------------------------------------------------------------------</div>



<div><span style="font-size:medium"><br></span></div></span></span></div></span></div></span></div></span></div></span></div></span><br></span><br>
</div>
<br></div></div><br>_______________________________________________<br>
mpich-discuss mailing list<br>
<a href="mailto:mpich-discuss@mcs.anl.gov" target="_blank">mpich-discuss@mcs.anl.gov</a><br>
<a href="https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss" target="_blank">https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss</a><br>
<br></blockquote></div><br></div></div>
_______________________________________________<br>mpich-discuss mailing list<br><a href="mailto:mpich-discuss@mcs.anl.gov" target="_blank">mpich-discuss@mcs.anl.gov</a><br><a href="https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss" target="_blank">https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss</a><br>


</blockquote></div><br><div>
<span style="border-collapse:separate;color:rgb(0, 0, 0);font-family:Helvetica;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:auto;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;font-size:medium"><span style="border-collapse:separate;color:rgb(0, 0, 0);font-family:Helvetica;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;font-size:medium"><div style="word-wrap:break-word">


<span style="border-collapse:separate;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;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><div style="word-wrap:break-word">


<span style="border-collapse:separate;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;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><div style="word-wrap:break-word">


<span style="border-collapse:separate;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;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><div style="word-wrap:break-word">


<span style="border-collapse:separate;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;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><div style="word-wrap:break-word">


<span style="border-collapse:separate;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;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><span style="font-size:12px"><div>


<br>---------------------------------------------------------------------------------------</div><div>Si Hammond</div><div><br></div><div>Research Fellow &amp; Knowledge Transfer Associate</div><div>Performance Computing &amp; Visualisation Group</div>


<div>Department of Computer Science</div><div>University of Warwick, CV4 7AL, UK</div><div><a href="http://go.warwick.ac.uk/hpsg" target="_blank">http://go.warwick.ac.uk/hpsg</a></div><div>----------------------------------------------------------------------------------------</div>


<div><span style="font-size:medium"><br></span></div></span></span></div></span></div></span></div></span></div></span></div></span><br></span><br>
</div>
<br></div></div></div></div><br>_______________________________________________<br>
mpich-discuss mailing list<br>
<a href="mailto:mpich-discuss@mcs.anl.gov" target="_blank">mpich-discuss@mcs.anl.gov</a><br>
<a href="https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss" target="_blank">https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss</a><br>
<br></blockquote></div><br></div>
_______________________________________________<br>mpich-discuss mailing list<br><a href="mailto:mpich-discuss@mcs.anl.gov" target="_blank">mpich-discuss@mcs.anl.gov</a><br><a href="https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss" target="_blank">https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss</a><br>

</blockquote></div><br><div>
<span style="border-collapse:separate;color:rgb(0, 0, 0);font-family:Helvetica;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:auto;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;font-size:medium"><span style="border-collapse:separate;color:rgb(0, 0, 0);font-family:Helvetica;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;font-size:medium"><div style="word-wrap:break-word">

<span style="border-collapse:separate;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;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><div style="word-wrap:break-word">

<span style="border-collapse:separate;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;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><div style="word-wrap:break-word">

<span style="border-collapse:separate;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;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><div style="word-wrap:break-word">

<span style="border-collapse:separate;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;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><div style="word-wrap:break-word">

<span style="border-collapse:separate;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;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><span style="font-size:12px"><div>

<br>---------------------------------------------------------------------------------------</div><div>Si Hammond</div><div><br></div><div>Research Fellow &amp; Knowledge Transfer Associate</div><div>Performance Computing &amp; Visualisation Group</div>

<div>Department of Computer Science</div><div>University of Warwick, CV4 7AL, UK</div><div><a href="http://go.warwick.ac.uk/hpsg" target="_blank">http://go.warwick.ac.uk/hpsg</a></div><div>----------------------------------------------------------------------------------------</div>

<div><span style="font-size:medium"><br></span></div></span></span></div></span></div></span></div></span></div></span></div></span><br></span><br>
</div>
<br></div></div></div><br>_______________________________________________<br>
mpich-discuss mailing list<br>
<a href="mailto:mpich-discuss@mcs.anl.gov" target="_blank">mpich-discuss@mcs.anl.gov</a><br>
<a href="https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss" target="_blank">https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss</a><br>
<br></blockquote></div><br></div>
</div></div></blockquote></div><br></div>