[mpich-discuss] question about running mpich2 on sol86
Jim Langston
Jim.Langston at sun.com
Fri Jul 10 10:44:07 CDT 2009
I have posted a blog for getting mpich going on OpenSolaris
http://blogs.sun.com/langston/entry/building_mpich2_1_0_8
this will walk you through getting mpich up and running
Jim
//////////////////////////////////
Rajeev Thakur wrote:
> That's an MPI program. It won't build with just CC. Try a simple
> non-MPI program.
>
> 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.
>
>
>
> ------------------------------------------------------------------------
> *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 2:22 PM
> *To:* mpich-discuss at mcs.anl.gov
> *Subject:* Re: [mpich-discuss] question about running mpich2 on sol86
>
> 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
>
--
/////////////////////////////////////////////
Jim Langston
Sun Microsystems, Inc.
(513) 702-4741 (Cell)
(877) 854-5583 (AccessLine)
AIM: jl9594
jim.langston at sun.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/mpich-discuss/attachments/20090710/71b1489d/attachment-0001.htm>
More information about the mpich-discuss
mailing list