<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.3527" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=497011919-08072009><FONT face=Arial
color=#0000ff 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><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </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
> make<BR>@------------------------------------------<BR>@=== Loading
./ems0.exe: CC
...<BR>Undefined
first
referenced<BR> symbol
in file<BR>void MPI::Get_processor_name(char*,int&) ./cxxpi.o<BR>double
MPI::Wtime()
./cxxpi.o<BR>MPI::COMM_WORLD
./cxxpi.o<BR>[Hint: static member MPI::COMM_WORLD must be defined in the
program]</FONT></SPAN></DIV>
<DIV> </DIV>
<DIV dir=ltr align=left><SPAN class=497011919-08072009><FONT face=Arial
size=2>void
MPI::Finalize()
./cxxpi.o<BR>void
MPI::Init(int&,char**&)
./cxxpi.o<BR>MPI::Datatype::__vtbl
./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> </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><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=497011919-08072009><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=497011919-08072009><FONT face=Arial
color=#0000ff size=2>Any suggestion?</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=497011919-08072009><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=497011919-08072009><FONT face=Arial
color=#0000ff size=2>Thanks</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=497011919-08072009><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=497011919-08072009><FONT face=Arial
color=#0000ff size=2>Shangli</FONT></SPAN></DIV><BR>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> mpich-discuss-bounces@mcs.anl.gov
[mailto:mpich-discuss-bounces@mcs.anl.gov] <B>On Behalf Of </B>Rajeev
Thakur<BR><B>Sent:</B> Wednesday, July 08, 2009 2:03 PM<BR><B>To:</B>
mpich-discuss@mcs.anl.gov<BR><B>Subject:</B> Re: [mpich-discuss] question
about running mpich2 on sol86<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV dir=ltr align=left><SPAN class=699130118-08072009><FONT face=Arial
color=#0000ff size=2>You need to specify the directory containing the C++
compiler 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><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=699130118-08072009><FONT face=Arial
color=#0000ff size=2>Also try compiling and running a simple C++ program
directly with the C++ compiler, not mpicxx.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=699130118-08072009><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=699130118-08072009><FONT face=Arial
color=#0000ff size=2>Rajeev</FONT></SPAN></DIV><BR>
<BLOCKQUOTE dir=ltr
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px">
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> mpich-discuss-bounces@mcs.anl.gov
[mailto:mpich-discuss-bounces@mcs.anl.gov] <B>On Behalf Of </B>Shangli
Wu<BR><B>Sent:</B> Wednesday, July 08, 2009 11:47 AM<BR><B>To:</B>
mpich-discuss@mcs.anl.gov<BR><B>Subject:</B> [mpich-discuss] question about
running mpich2 on sol86<BR></FONT><BR></DIV>
<DIV></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> </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> </DIV>
<DIV><FONT face=Arial size=2><SPAN
class=052024316-08072009>chfcsx023:/home/shangliw/libraries/mpich2-1.0.8p1/examples/testcase_1
> mpicxx
cxxpi.cxx<BR>chfcsx023:/home/shangliw/libraries/mpich2-1.0.8p1/examples/testcase_1
> ls<BR>a.out cxxpi.cxx
cxxpi.cxx~<BR>chfcsx023:/home/shangliw/libraries/mpich2-1.0.8p1/examples/testcase_1
> 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
> mpd&<BR>[1]
779<BR>chfcsx023:/home/shangliw/libraries/mpich2-1.0.8p1/examples/testcase_1
><BR>chfcsx023:/home/shangliw/libraries/mpich2-1.0.8p1/examples/testcase_1
> 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> </DIV>
<DIV><FONT face=Arial size=2><SPAN
class=052024316-08072009></SPAN></FONT> </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> </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></BODY></HTML>