<!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">
Thanks Rajeev,<br>
<br>
That did the trick ... also, I did see the release note, but I am<br>
using Sun compilers.<br>
<br>
<br>
./configure --prefix=/usr/local/mpich2 --enable-threads
--with-thread-package=posix --disable-sharedlibs<br>
<br>
<br>
<br>
langston@alpha:/tmp$ mpicc -I/usr/local/mpich2/include -c cpi.c<br>
langston@alpha:/tmp$ mpicc -o cpi cpi.o -lm<br>
langston@alpha:/tmp$ mpirun -np 2 cpi<br>
Process 0 of 2 is on alpha<br>
Process 1 of 2 is on alpha<br>
pi is approximately 3.1415926544231318, Error is 0.0000000008333387<br>
wall clock time = 0.001737<br>
<br>
Jim<br>
<br>
//////////////////////<br>
<br>
<br>
Rajeev Thakur wrote:
<blockquote cite="mid:E21C0E5C74D54CF1AE2316F21145EC0B@mcs.anl.gov"
type="cite">
<pre wrap="">The --enable-sharedlibs option in MPICH2 was not working on Solaris the last
time I looked and was mentioned in the RELEASE_NOTES file. Does it work
without --enable-sharedlibs?
Rajeev
</pre>
<blockquote type="cite">
<pre wrap="">-----Original Message-----
From: <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>] On Behalf Of Jim Langston
Sent: Wednesday, February 04, 2009 2:26 PM
To: <a class="moz-txt-link-abbreviated" href="mailto:mpich-discuss@mcs.anl.gov">mpich-discuss@mcs.anl.gov</a>
Subject: [mpich-discuss] mpich2-1.0.8 OpenSolaris
Hi All,
I'm trying to build 1.0.8 for OpenSolaris (x86) using
Sun Studio 12, everything builds ok - but when
I try to build an example:
<a class="moz-txt-link-abbreviated" href="mailto:langston@alpha:~/MPICH/mpich2-1.0.8/examples$">langston@alpha:~/MPICH/mpich2-1.0.8/examples$</a> rm cpi.o
<a class="moz-txt-link-abbreviated" href="mailto:langston@alpha:~/MPICH/mpich2-1.0.8/examples$">langston@alpha:~/MPICH/mpich2-1.0.8/examples$</a> gmake cpi
../bin/mpicc -I../src/include -I../src/include -c cpi.c
../bin/mpicc -o cpi cpi.o -lm
Undefined first referenced
symbol in file
MPIDU_Process_unlock
/export/home/langston/MPICH/mpich2-1.0.8/lib/libmpich.so
MPIDU_Process_lock
/export/home/langston/MPICH/mpich2-1.0.8/lib/libmpich.so
MPIDU_Process_lock_init
/export/home/langston/MPICH/mpich2-1.0.8/lib/libmpich.so
ld: fatal: Symbol referencing errors. No output written to cpi
gmake: *** [cpi] Error 1
My configuration line is:
<a class="moz-txt-link-abbreviated" href="mailto:langston@alpha:~/MPICH/mpich2-1.0.8$">langston@alpha:~/MPICH/mpich2-1.0.8$</a> head config.log
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by configure, which was
generated by GNU Autoconf 2.62. Invocation command line was
$ ./configure --prefix=/usr/local/mpich2 --enable-threads
--with-thread-package=posix --enable-sharedlibs=solaris-x86
## --------- ##
## Platform. ##
I added in solaris-x86 into the configure file to recognize I'm on an
OpenSolaris system which
I've included.
Looking at libmpich.so
<a class="moz-txt-link-abbreviated" href="mailto:langston@alpha:~/MPICH/mpich2-1.0.8/lib$">langston@alpha:~/MPICH/mpich2-1.0.8/lib$</a> nm libmpich.so | grep
MPIDU_Process_unlock
U MPIDU_Process_unlock
and
<a class="moz-txt-link-abbreviated" href="mailto:langston@alpha:~/MPICH/mpich2-1.0.8/src/mpid/common/locks$">langston@alpha:~/MPICH/mpich2-1.0.8/src/mpid/common/locks$</a> nm
mpidu_atomic_primitives.o
00000000 b Bbss.bss
00000000 d Ddata.data
00000000 r Drodata.rodata
00000000 D emulation_lock
U MPID_Abort
00000024 T MPIDU_Atomic_add_emulated
00000210 T MPIDU_Atomic_cas_aint_emulated
00000164 T MPIDU_Atomic_cas_int_emulated
000000bc T MPIDU_Atomic_cas_int_ptr_emulated
000002bc T MPIDU_Atomic_decr_and_test_emulated
00000364 T MPIDU_Atomic_decr_emulated
000003f8 T MPIDU_Atomic_fetch_and_add_emulated
0000049c T MPIDU_Atomic_fetch_and_decr_emulated
0000053c T MPIDU_Atomic_fetch_and_incr_emulated
000005e0 T MPIDU_Atomic_incr_emulated
000007c8 T MPIDU_Atomic_swap_aint_emulated
00000720 T MPIDU_Atomic_swap_int_emulated
00000678 T MPIDU_Atomic_swap_int_ptr_emulated
00000000 T MPIDU_Interprocess_lock_init
U MPIDU_Process_lock
U MPIDU_Process_lock_init
U MPIDU_Process_unlock
U MPIU_Internal_error_printf
Any thoughts ? hints ?
thanks,
Jim
///////////////////////////////
--
/////////////////////////////////////////////
Jim Langston
Sun Microsystems, Inc.
(877) 854-5583 (AccessLine)
(513) 702-4741 (Cell)
AIM: jl9594
<a class="moz-txt-link-abbreviated" href="mailto:jim.langston@sun.com">jim.langston@sun.com</a>
</pre>
</blockquote>
<pre wrap=""><!---->
</pre>
</blockquote>
<br>
<br>
<pre class="moz-signature" cols="72">--
/////////////////////////////////////////////
Jim Langston
Sun Microsystems, Inc.
(877) 854-5583 (AccessLine)
(513) 702-4741 (Cell)
AIM: jl9594
<a class="moz-txt-link-abbreviated" href="mailto:jim.langston@sun.com">jim.langston@sun.com</a>
</pre>
</body>
</html>