[mpich-discuss] question about running mpich2 on sol86
Shangli Wu
shangliw at cadence.com
Wed Jul 8 14:22:18 CDT 2009
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).
chfcsx023:/home/shangliw/libraries/mpich2-1.0.8p1/examples/testcase_1 >
make
@------------------------------------------
@=== Loading ./ems0.exe: CC ...
Undefined first referenced
symbol in file
void MPI::Get_processor_name(char*,int&) ./cxxpi.o
double MPI::Wtime() ./cxxpi.o
MPI::COMM_WORLD ./cxxpi.o
[Hint: static member MPI::COMM_WORLD must be defined in the program]
void MPI::Finalize() ./cxxpi.o
void MPI::Init(int&,char**&) ./cxxpi.o
MPI::Datatype::__vtbl ./cxxpi.o
[Hint: try checking whether the first non-inlined, non-pure virtual
function of class MPI::Datatype is defined]
ld: fatal: Symbol referencing errors. No output written to ./ems0.exe
*** Error code 1
clearmake: Error: Build script failed for "ems0.exe"
Any suggestion?
Thanks
Shangli
________________________________
From: mpich-discuss-bounces at mcs.anl.gov
[mailto:mpich-discuss-bounces at mcs.anl.gov] On Behalf Of Rajeev Thakur
Sent: Wednesday, July 08, 2009 2:03 PM
To: mpich-discuss at mcs.anl.gov
Subject: Re: [mpich-discuss] question about running mpich2 on
sol86
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.)
Also try compiling and running a simple C++ program directly
with the C++ compiler, not mpicxx.
Rajeev
________________________________
From: mpich-discuss-bounces at mcs.anl.gov
[mailto:mpich-discuss-bounces at mcs.anl.gov] On Behalf Of Shangli Wu
Sent: Wednesday, July 08, 2009 11:47 AM
To: mpich-discuss at mcs.anl.gov
Subject: [mpich-discuss] question about running mpich2
on sol86
Hi,
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:
chfcsx023:/home/shangliw/libraries/mpich2-1.0.8p1/examples/testcase_1 >
mpicxx cxxpi.cxx
chfcsx023:/home/shangliw/libraries/mpich2-1.0.8p1/examples/testcase_1 >
ls
a.out cxxpi.cxx cxxpi.cxx~
chfcsx023:/home/shangliw/libraries/mpich2-1.0.8p1/examples/testcase_1 >
a.out
ld.so.1: a.out: fatal: libstdc++.so.5: open failed: No
such file or directory
Killed
chfcsx023:/home/shangliw/libraries/mpich2-1.0.8p1/examples/testcase_1 >
mpd&
[1] 779
chfcsx023:/home/shangliw/libraries/mpich2-1.0.8p1/examples/testcase_1 >
chfcsx023:/home/shangliw/libraries/mpich2-1.0.8p1/examples/testcase_1 >
mpiexec -n 2 a.out
ld.so.1: a.out: fatal: libstdc++.so.5: open failed: No
such file or directory
ld.so.1: a.out: fatal: libstdc++.so.5: open failed: No
such file or directory
The same file can build/run on Sun4v/Linux without any
problem. Would someone help me to understand what's wrong on Sol86?
Thanks
Shangli Wu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/mpich-discuss/attachments/20090708/e679dd2e/attachment.htm>
More information about the mpich-discuss
mailing list