<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
I have posted a blog for getting mpich going on OpenSolaris <br>
<br>
<a class="moz-txt-link-freetext" href="http://blogs.sun.com/langston/entry/building_mpich2_1_0_8">http://blogs.sun.com/langston/entry/building_mpich2_1_0_8</a><br>
<br>
this will walk you through getting mpich up and running <br>
<br>
Jim<br>
<br>
//////////////////////////////////<br>
<br>
<br>
<br>
Rajeev Thakur wrote:
<blockquote cite="mid:C772E2B9CDDC43F1A5D3F069533840A2@mcs.anl.gov"
 type="cite">
  <meta content="text/html; charset=us-ascii" http-equiv="Content-Type">
  <meta name="GENERATOR" content="MSHTML 8.00.6001.18783">
  <div dir="ltr" align="left"><span class="971342419-08072009"><font
 color="#0000ff" face="Arial" size="2">That's an MPI program. It won't
build with just CC. Try a simple non-MPI program.</font></span></div>
  <div dir="ltr" align="left"><span class="971342419-08072009"></span>&nbsp;</div>
  <div dir="ltr" align="left"><span class="971342419-08072009"><font
 color="#0000ff" face="Arial" size="2">Also, if you want to use the
Solaris compilers, make sure that the configure step picked up those
compilers (look at the output of configure).&nbsp;It usually picks up the
GNU compilers by default. You can specify the compilers you want by
setting the environment variables CC, CXX, F77, and F90 before running
configure.</font></span></div>
  <div dir="ltr" align="left"><span class="971342419-08072009"></span>&nbsp;</div>
  <div dir="ltr" align="left"><span class="971342419-08072009"></span>&nbsp;</div>
  <br>
  <blockquote
 style="border-left: 2px solid rgb(0, 0, 255); padding-left: 5px; margin-left: 5px; margin-right: 0px;"
 dir="ltr">
    <div dir="ltr" class="OutlookMessageHeader" align="left"
 lang="en-us">
    <hr tabindex="-1"> <font face="Tahoma" size="2"><b>From:</b>
<a class="moz-txt-link-abbreviated" href="mailto:mpich-discuss-bounces@mcs.anl.gov">mpich-discuss-bounces@mcs.anl.gov</a>
[<a class="moz-txt-link-freetext" href="mailto:mpich-discuss-bounces@mcs.anl.gov">mailto:mpich-discuss-bounces@mcs.anl.gov</a>] <b>On Behalf Of </b>Shangli
Wu<br>
    <b>Sent:</b> Wednesday, July 08, 2009 2:22 PM<br>
    <b>To:</b> <a class="moz-txt-link-abbreviated" href="mailto:mpich-discuss@mcs.anl.gov">mpich-discuss@mcs.anl.gov</a><br>
    <b>Subject:</b> Re: [mpich-discuss] question about running mpich2
on sol86<br>
    </font><br>
    </div>
    <div dir="ltr" align="left"><span class="497011919-08072009"><font
 color="#0000ff" face="Arial" size="2">I try to build the code with CC,
it got link errors on sol86. I can build and run cpi.c using same
makefile without problem (on sol86).</font></span></div>
    <div dir="ltr" align="left"><span class="497011919-08072009"></span>&nbsp;</div>
    <div dir="ltr" align="left"><span class="497011919-08072009"><font
 face="Arial" size="2">chfcsx023:/home/shangliw/libraries/mpich2-1.0.8p1/examples/testcase_1
&gt; make<br>
@------------------------------------------<br>
@=== Loading ./ems0.exe:&nbsp;&nbsp; CC ...<br>
Undefined&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; first referenced<br>
&nbsp;symbol&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; in file<br>
void MPI::Get_processor_name(char*,int&amp;) ./cxxpi.o<br>
double MPI::Wtime()&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ./cxxpi.o<br>
MPI::COMM_WORLD&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ./cxxpi.o<br>
[Hint: static member MPI::COMM_WORLD must be defined in the program]</font></span></div>
    <div>&nbsp;</div>
    <div dir="ltr" align="left"><span class="497011919-08072009"><font
 face="Arial" size="2">void MPI::Finalize()&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ./cxxpi.o<br>
void MPI::Init(int&amp;,char**&amp;)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ./cxxpi.o<br>
MPI::Datatype::__vtbl&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ./cxxpi.o<br>
[Hint: try checking whether the first non-inlined, non-pure virtual
function of class MPI::Datatype is defined]</font></span></div>
    <div>&nbsp;</div>
    <div dir="ltr" align="left"><span class="497011919-08072009"><font
 face="Arial" size="2">ld: fatal: Symbol referencing errors. No output
written to ./ems0.exe<br>
*** Error code 1<br>
clearmake: Error: Build script failed for "ems0.exe"</font></span></div>
    <div dir="ltr" align="left"><span class="497011919-08072009"></span>&nbsp;</div>
    <div dir="ltr" align="left"><span class="497011919-08072009"></span>&nbsp;</div>
    <div dir="ltr" align="left"><span class="497011919-08072009"><font
 color="#0000ff" face="Arial" size="2">Any suggestion?</font></span></div>
    <div dir="ltr" align="left"><span class="497011919-08072009"></span>&nbsp;</div>
    <div dir="ltr" align="left"><span class="497011919-08072009"><font
 color="#0000ff" face="Arial" size="2">Thanks</font></span></div>
    <div dir="ltr" align="left"><span class="497011919-08072009"></span>&nbsp;</div>
    <div dir="ltr" align="left"><span class="497011919-08072009"><font
 color="#0000ff" face="Arial" size="2">Shangli</font></span></div>
    <br>
    <blockquote style="margin-right: 0px;" dir="ltr">
      <div dir="ltr" class="OutlookMessageHeader" align="left"
 lang="en-us">
      <hr tabindex="-1"> <font face="Tahoma" size="2"><b>From:</b>
<a class="moz-txt-link-abbreviated" href="mailto:mpich-discuss-bounces@mcs.anl.gov">mpich-discuss-bounces@mcs.anl.gov</a>
[<a class="moz-txt-link-freetext" href="mailto:mpich-discuss-bounces@mcs.anl.gov">mailto:mpich-discuss-bounces@mcs.anl.gov</a>] <b>On Behalf Of </b>Rajeev
Thakur<br>
      <b>Sent:</b> Wednesday, July 08, 2009 2:03 PM<br>
      <b>To:</b> <a class="moz-txt-link-abbreviated" href="mailto:mpich-discuss@mcs.anl.gov">mpich-discuss@mcs.anl.gov</a><br>
      <b>Subject:</b> Re: [mpich-discuss] question about running mpich2
on sol86<br>
      </font><br>
      </div>
      <div dir="ltr" align="left"><span class="699130118-08072009"><font
 color="#0000ff" face="Arial" size="2">You need to specify the
directory containing the C++ compiler&nbsp;libraries in the environment
variable LD_LIBRARY_PATH or build MPICH2 without shared libraries. (The
default build is without shared librares.)</font></span></div>
      <div dir="ltr" align="left"><span class="699130118-08072009"></span>&nbsp;</div>
      <div dir="ltr" align="left"><span class="699130118-08072009"><font
 color="#0000ff" face="Arial" size="2">Also try compiling and running a
simple C++ program directly with the&nbsp;C++ compiler, not mpicxx.</font></span></div>
      <div dir="ltr" align="left"><span class="699130118-08072009"></span>&nbsp;</div>
      <div dir="ltr" align="left"><span class="699130118-08072009"><font
 color="#0000ff" face="Arial" size="2">Rajeev</font></span></div>
      <br>
      <blockquote
 style="border-left: 2px solid rgb(0, 0, 255); padding-left: 5px; margin-left: 5px; margin-right: 0px;"
 dir="ltr">
        <div dir="ltr" class="OutlookMessageHeader" align="left"
 lang="en-us">
        <hr tabindex="-1"> <font face="Tahoma" size="2"><b>From:</b>
<a class="moz-txt-link-abbreviated" href="mailto:mpich-discuss-bounces@mcs.anl.gov">mpich-discuss-bounces@mcs.anl.gov</a>
[<a class="moz-txt-link-freetext" href="mailto:mpich-discuss-bounces@mcs.anl.gov">mailto:mpich-discuss-bounces@mcs.anl.gov</a>] <b>On Behalf Of </b>Shangli
Wu<br>
        <b>Sent:</b> Wednesday, July 08, 2009 11:47 AM<br>
        <b>To:</b> <a class="moz-txt-link-abbreviated" href="mailto:mpich-discuss@mcs.anl.gov">mpich-discuss@mcs.anl.gov</a><br>
        <b>Subject:</b> [mpich-discuss] question about running mpich2
on sol86<br>
        </font><br>
        </div>
        <div><font face="Arial" size="2"><span
 class="052024316-08072009">Hi,</span></font></div>
        <div><font face="Arial" size="2"><span
 class="052024316-08072009"></span></font>&nbsp;</div>
        <div><font face="Arial" size="2"><span
 class="052024316-08072009">I try to build/run the example cxxpi.cxx on
Sol86 using mpicxx. Compile seems OK. But when I run it, it shows error
as:</span></font></div>
        <div><font face="Arial" size="2"><span
 class="052024316-08072009"></span></font>&nbsp;</div>
        <div><font face="Arial" size="2"><span
 class="052024316-08072009">chfcsx023:/home/shangliw/libraries/mpich2-1.0.8p1/examples/testcase_1
&gt; mpicxx cxxpi.cxx<br>
chfcsx023:/home/shangliw/libraries/mpich2-1.0.8p1/examples/testcase_1
&gt; ls<br>
a.out&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; cxxpi.cxx&nbsp;&nbsp; cxxpi.cxx~<br>
chfcsx023:/home/shangliw/libraries/mpich2-1.0.8p1/examples/testcase_1
&gt; a.out<br>
ld.so.1: a.out: fatal: libstdc++.so.5: open failed: No such file or
directory<br>
Killed<br>
chfcsx023:/home/shangliw/libraries/mpich2-1.0.8p1/examples/testcase_1
&gt; mpd&amp;<br>
[1] 779<br>
chfcsx023:/home/shangliw/libraries/mpich2-1.0.8p1/examples/testcase_1
&gt;<br>
chfcsx023:/home/shangliw/libraries/mpich2-1.0.8p1/examples/testcase_1
&gt; mpiexec -n 2 a.out<br>
ld.so.1: a.out: fatal: libstdc++.so.5: open failed: No such file or
directory<br>
ld.so.1: a.out: fatal: libstdc++.so.5: open failed: No such file or
directory</span></font></div>
        <div><font face="Arial" size="2"><span
 class="052024316-08072009"></span></font>&nbsp;</div>
        <div><font face="Arial" size="2"><span
 class="052024316-08072009"></span></font>&nbsp;</div>
        <div><font face="Arial" size="2"><span
 class="052024316-08072009">The same file can build/run on Sun4v/Linux
without any problem. Would someone help me to understand what's wrong
on Sol86?</span></font></div>
        <div><font face="Arial" size="2"><span
 class="052024316-08072009"></span></font>&nbsp;</div>
        <div><font face="Arial" size="2"><span
 class="052024316-08072009">Thanks</span></font></div>
        <div><font face="Arial" size="2"><span
 class="052024316-08072009"><br>
Shangli Wu</span></font></div>
      </blockquote>
    </blockquote>
  </blockquote>
</blockquote>
<br>
<br>
<pre class="moz-signature" cols="72">-- 
/////////////////////////////////////////////

Jim Langston
Sun Microsystems, Inc.

(513) 702-4741 (Cell)
(877) 854-5583 (AccessLine)
AIM: jl9594
<a class="moz-txt-link-abbreviated" href="mailto:jim.langston@sun.com">jim.langston@sun.com</a>
</pre>
</body>
</html>