Open MPI logo

Open MPI Development Mailing List Archives

  |   Home   |   Support   |   FAQ   |   all Development mailing list

Subject: Re: [OMPI devel] RFC: Add SunStudio/Libtool helper script for post-configure
From: Ethan Mallove (ethan.mallove_at_[hidden])
Date: 2008-11-19 13:37:57


On Wed, Nov/19/2008 10:05:55AM, George Bosilca wrote:
> We're still using STL ? I was pretty much sure that we removed this
> dependency a while ago ?

Open MPI is now set up to use either of Solaris's two versions of STL. The
problem is that if libtool links in libCrun/libCstd, then bad things happen if
the user code contains code for the other STL version. (Not sure if I got that
100% right.) Dan overhauled Open MPI's handling of STL a while ago (r17448,
r17418, r17409, ...).

-Ethan

>
> george.
>
> On Nov 19, 2008, at 09:11 , Ethan Mallove wrote:
>
>> ----------------------------------------------------------------------------
>> WHAT: Add patch-libtool-for-sun-studio.pl script
>>
>> ----------------------------------------------------------------------------
>> WHY:
>>
>> There are a couple issues with SunStudio and Libtool:
>>
>> 1. The SunStudio libCrun/libCstd C++ libs get linked into Open MPI by
>> libtool, which can lead to STL incompatibilities on Solaris
>> 2. Libtool uses the wrong linker flags for C++ and Fortran (on Linux
>> Sun
>> Studio)
>>
>> Benefits of the fix:
>>
>> 1. Anyone can easily build Open MPI using SunStudio
>> 2. Nightly MTT Linux/SunStudio runs will pass
>> 3. We can remove (most) of the Open MPI SunStudio building FAQ:
>> http://www.open-mpi.org/faq/?category=building#build-sun-compilers
>>
>> ----------------------------------------------------------------------------
>> WHERE: See attached patch; config/patch-libtool-for-sun-studio.pl and
>> configure.ac
>>
>> ----------------------------------------------------------------------------
>> WHEN: Soon
>>
>> ----------------------------------------------------------------------------
>> TIMEOUT: Later
>>
>> ----------------------------------------------------------------------------
>>
>> One concern is that there's no precedent in Open MPI for patching libtool
>> *after* configure (we only patch libtool beforehand in autogen.sh). The
>> problem is that this particular libtool "patch" should only be used in the
>> case of Sun Studio which is not known until configure-time, and there does
>> not seem to be a generic patch that we could apply before configure.
>>
>> -Ethan
>> <patch-libtool-for-sun-studio.diff>_______________________________________________
>> devel mailing list
>> devel_at_[hidden]
>> http://www.open-mpi.org/mailman/listinfo.cgi/devel
>
> _______________________________________________
> devel mailing list
> devel_at_[hidden]
> http://www.open-mpi.org/mailman/listinfo.cgi/devel