Open MPI logo

Open MPI User's Mailing List Archives

  |   Home   |   Support   |   FAQ   |   all Open MPI User's mailing list

Subject: Re: [OMPI users] Problem building OpenMPi with SunStudio compilers
From: Ethan Mallove (ethan.mallove_at_[hidden])
Date: 2008-10-06 10:59:02


On Sat, Oct/04/2008 11:21:27AM, Raymond Muno wrote:
> Raymond Muno wrote:
>> Raymond Muno wrote:
>>> We are implementing a new cluster that is InfiniBand based. I am working
>>> on getting OpenMPI built for our various compile environments. So far it
>>> is working for PGI 7.2 and PathScale 3.1. I found some workarounds for
>>> issues with the Pathscale compilers (seg faults) in the OpenMPI FAQ.
>>>
>>> When I try to build with SunStudio, I cannot even get past the configure
>>> stage. It dies in th estage that checks for C++.
>>
>> It looks like the problem is with SunStudio itself. Even a simple CC
>> program fails to compile.
>>>
>>> /usr/lib64/libm.so: file not recognized: File format not recognized
> OK, I took care of the linker issue fro C++ as recommended on Suns support
> site (replace Sun supplied ld with /usr/bin/ld)
>
> Now I get farther along but the build fails at (small excerpt)
>
> mutex.c:(.text+0x30): multiple definition of `opal_atomic_cmpset_32'
> asm/.libs/libasm.a(asm.o):asm.c:(.text+0x30): first defined here
> threads/.libs/mutex.o: In function `opal_atomic_cmpset_64':
> mutex.c:(.text+0x50): multiple definition of `opal_atomic_cmpset_64'
> asm/.libs/libasm.a(asm.o):asm.c:(.text+0x50): first defined here
> make[2]: *** [libopen-pal.la] Error 1
> make[2]: Leaving directory `/home/muno/OpenMPI/SunStudio/openmpi-1.2.7/opal'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/home/muno/OpenMPI/SunStudio/openmpi-1.2.7/opal'
> make: *** [all-recursive] Error 1
>
> I based the configure on what was found in the FAQ here.
>
> http://www.open-mpi.org/faq/?category=building#build-sun-compilers
>
> Perhaps this is much more specific to our platform/OS.
>
> The environment is AMD Opteron, Barcelona running Centos 5
> (Rocks 5.03) with SunStudio 12 compilers.
>

Unfortunately I haven't seen the above issue, so I don't
have a workaround to propose. There are some issues that
have been fixed with GCC-style inline assembly in the latest
Sun Studio Express build. Could you try it out?

  http://developers.sun.com/sunstudio/downloads/express/index.jsp

-Ethan

> Does anyone have any insight as to how to successfully
> build OpenMPI for this OS/compiler selection? As I said
> in the first post, we have it built for Pathscale 3.1 and
> PGI 7.2.
> -Ray Muno
> University of Minnesota, Aerospace Engineering
>
> _______________________________________________
> users mailing list
> users_at_[hidden]
> http://www.open-mpi.org/mailman/listinfo.cgi/users