<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=us-ascii" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.6001.18783"></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=971342419-08072009><FONT color=#0000ff
size=2 face=Arial>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><FONT color=#0000ff
size=2 face=Arial></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=971342419-08072009><FONT color=#0000ff
size=2 face=Arial>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). 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><FONT color=#0000ff
size=2 face=Arial></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=971342419-08072009><FONT color=#0000ff
size=2 face=Arial></FONT></SPAN> </DIV><BR>
<BLOCKQUOTE
style="BORDER-LEFT: #0000ff 2px solid; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px"
dir=ltr>
<DIV dir=ltr lang=en-us class=OutlookMessageHeader align=left>
<HR tabIndex=-1>
<FONT size=2 face=Tahoma><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 2:22 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=497011919-08072009><FONT color=#0000ff
size=2 face=Arial>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 color=#0000ff
size=2 face=Arial></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=497011919-08072009><FONT size=2
face=Arial>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 size=2
face=Arial>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 size=2
face=Arial>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 color=#0000ff
size=2 face=Arial></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=497011919-08072009><FONT color=#0000ff
size=2 face=Arial></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=497011919-08072009><FONT color=#0000ff
size=2 face=Arial>Any suggestion?</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=497011919-08072009><FONT color=#0000ff
size=2 face=Arial></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=497011919-08072009><FONT color=#0000ff
size=2 face=Arial>Thanks</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=497011919-08072009><FONT color=#0000ff
size=2 face=Arial></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=497011919-08072009><FONT color=#0000ff
size=2 face=Arial>Shangli</FONT></SPAN></DIV><BR>
<BLOCKQUOTE style="MARGIN-RIGHT: 0px" dir=ltr>
<DIV dir=ltr lang=en-us class=OutlookMessageHeader align=left>
<HR tabIndex=-1>
<FONT size=2 face=Tahoma><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 color=#0000ff
size=2 face=Arial>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 color=#0000ff
size=2 face=Arial></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=699130118-08072009><FONT color=#0000ff
size=2 face=Arial>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 color=#0000ff
size=2 face=Arial></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=699130118-08072009><FONT color=#0000ff
size=2 face=Arial>Rajeev</FONT></SPAN></DIV><BR>
<BLOCKQUOTE
style="BORDER-LEFT: #0000ff 2px solid; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px"
dir=ltr>
<DIV dir=ltr lang=en-us class=OutlookMessageHeader align=left>
<HR tabIndex=-1>
<FONT size=2 face=Tahoma><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 size=2 face=Arial><SPAN
class=052024316-08072009>Hi,</SPAN></FONT></DIV>
<DIV><FONT size=2 face=Arial><SPAN
class=052024316-08072009></SPAN></FONT> </DIV>
<DIV><FONT size=2 face=Arial><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 size=2 face=Arial><SPAN
class=052024316-08072009></SPAN></FONT> </DIV>
<DIV><FONT size=2 face=Arial><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 size=2 face=Arial><SPAN
class=052024316-08072009></SPAN></FONT> </DIV>
<DIV><FONT size=2 face=Arial><SPAN
class=052024316-08072009></SPAN></FONT> </DIV>
<DIV><FONT size=2 face=Arial><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 size=2 face=Arial><SPAN
class=052024316-08072009></SPAN></FONT> </DIV>
<DIV><FONT size=2 face=Arial><SPAN
class=052024316-08072009>Thanks</SPAN></FONT></DIV>
<DIV><FONT size=2 face=Arial><SPAN class=052024316-08072009><BR>Shangli
Wu</SPAN></FONT></DIV></BLOCKQUOTE></BLOCKQUOTE></BLOCKQUOTE></BODY></HTML>