Which version of the Sun Studio compilers are you using also which
version of OMPI are you trying to build. I am successful with building
OMPI with the Sun Studio Express release 200811 on Linux systems if I
don't use the C++ compiler. Prior releases we did suffer from some
issues. A "cc -V" will give you the exact version of Sun Studio you are
using.
I noticed in your configure line below you don't have a space between
"--enable-shared" and "--enable-orterun-prefix-by-default ". Not sure
this has anything to do with your problem but it might cause unintended
results.
--td
Date: Fri, 03 Apr 2009 10:58:00 -0300 From: "Segovia, Andrea"
<segov...@mar.dfo-mpo.gc.ca> Subject: [OMPI users] Problems Compiling
OpenMPI with Sun Studio 12 compilers on RHEL 5 To: us...@open-mpi.org
Message-ID:
<aa70c242fcb6fd4286597bd88bcb3f3f0c468...@marbioexc01.mar.dfo-mpo.ca>
Content-Type: text/plain; charset="iso-8859-1"
> Hello,
>
> I am trying to compile OpenMPI on a Red Hat Enterprise Linux 5 platform with the Sun Studio 12 compiler suite. (I currently have the Red Hat-bundled OpenMPI w/GNU compilers running).
>
> I have already encountered and addressed the problem of the C++ compiler not working in 64 bit mode with the Red Hat-bundled GNU ld by not including sunCC in the OpenMPI compilation, since we do not need C++ support.
>
> However, I have encountered another problem when attempting to compile (at the "make all" stage):
>
> asm/.libs/libasm.a(atomic-asm.o): In function `opal_atomic_mb':
> (.text+0x0): multiple definition of `opal_atomic_mb'
> asm/.libs/libasm.a(asm.o):asm.c:(.text+0x0): first defined here
> asm/.libs/libasm.a(atomic-asm.o): In function `opal_atomic_rmb':
> (.text+0x6): multiple definition of `opal_atomic_rmb'
> asm/.libs/libasm.a(asm.o):asm.c:(.text+0x10): first defined here
>
> ..(small excerpt)
>
> Sun has published bug information about a similar error here: http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6567405 but I don't know if it applies. Besides, their suggested fix is to change the source code, something I would be extremely reluctant to do.
>
> The OpenMPI users mailing list has at one reference to this problem here: http://www.open-mpi.org/community/lists/users/2008/10/6908.php but I have not been able to find a solution.
>
> I am enclosing a gzipped tar file with the configure output, config.log and make output as suggested.
>
> > <<ompi_output.tar.gz>>
>
> I am using the following options to configure (based on the recommendations on the OpenMPI FAQ here: http://www.open-mpi.org/faq/?category=building#build-sun-compilers )This section references the errors found above but does not provide a work-around.
>
$ ./configure CC=suncc F77=sunf77 FC=sunf90
--prefix=/export/home/segovia/RunTime_Environ/ --enable-heterogeneous
--enable-shared--enable-orterun-prefix-by-default --enable-mpi-f90
--with-mpi-f90-size=small --disable-mpi-threads --disable-progress-threads
--disable-debug --with-openib --without-udapl --disable-openib-ibcm
> Has anyone been successful with this build? What options/workarounds were
necessary to compile?
>
> Any help or information would be greatly appreciated.
>
> Andrea Segovia
> IM&TS, Data Centre Services, East / GIST, Services du Centre de traitement
des donn?es de l' est
> Fisheries and Oceans Canada | P?ches et Oc?ans Canada