These changes also eliminate an equivalent g++ warning :

/shared/OMPI/openmpi-1.8-latest-solaris11-x86-ib-gcc452/openmpi-1.8.2rc4r32480/opal/include/opal/sys/atomic.h:397:9:
warning: inline function `int32_t opal_atomic_add_32(volatile int32_t*,
int)' used but never defined
/shared/OMPI/openmpi-1.8-latest-solaris11-x86-ib-gcc452/openmpi-1.8.2rc4r32480/opal/include/opal/sys/atomic.h:407:9:
warning: inline function `int32_t opal_atomic_sub_32(volatile int32_t*,
int)' used but never defined

-Paul



On Sat, Aug 9, 2014 at 12:36 PM, Ralph Castain <r...@open-mpi.org> wrote:

> Kewl - thanks!
>
> On Aug 9, 2014, at 12:24 PM, Paul Hargrove <phhargr...@lbl.gov> wrote:
>
> Ralph,
>
> Yes, that did the trick.
> The attached patch applied cleanly to last night's v1.8 tarball
> (1.8.2rc4r32480) and I was able to build the C++ bindings on this platform.
>
> -Paul
>
>
> On Sat, Aug 9, 2014 at 7:58 AM, Ralph Castain <r...@open-mpi.org> wrote:
>
>> I think I chased this down - looks like it is r28034. I've attached the
>> patch here - can you please let me know if this fixes the problem?
>>
>>
>>
>> On Aug 8, 2014, at 11:11 PM, Paul Hargrove <phhargr...@lbl.gov> wrote:
>>
>> A problem Siegmar reported on trunk over a year and a half ago is
>> breaking a 32-bit build of the v1.8 branch with the Sun C++ compiler:
>>
>> Siegmar's report appears in
>> http://www.open-mpi.org/community/lists/users/2013/01/21269.php
>> There are several warnings, but the error is (from my current build):
>>
>>
>> "/shared/OMPI/openmpi-1.8-latest-solaris11-x86-ib-ss12u3/openmpi-1.8.2rc4r32480/ompi/mpi/cxx/
>> file.cc", Error: The function opal_atomic_add_32(volatile int*, int) has
>> not had a body defined.
>>
>> Brian attached a possible fix to
>> http://www.open-mpi.org/community/lists/users/2013/01/21272.php
>> It applies cleanly to v1.8 but appears to make things worse, trading that
>> one error for two:
>>
>> "/shared/OMPI/openmpi-1.8-latest-solaris11-x86-ib-ss12u3/openmpi-1.8.2rc4r32480/opal/include/opal/sys/atomic_impl.h",
>> line 106: Error: opal_atomic_add_64(volatile long long*, long long) was
>> previously declared "extern", not "inline".
>> "/shared/OMPI/openmpi-1.8-latest-solaris11-x86-ib-ss12u3/openmpi-1.8.2rc4r32480/opal/include/opal/sys/atomic_impl.h",
>> line 121: Error: opal_atomic_sub_64(volatile long long*, long long) was
>> previously declared "extern", not "inline".
>>
>>
>> The good news is that the problem does not exist on the trunk.
>> So, hopefully somebody can track down the proper changes to CMR.
>>
>> -Paul
>>
>>
>> --
>> Paul H. Hargrove                          phhargr...@lbl.gov
>> Future Technologies Group
>> Computer and Data Sciences Department     Tel: +1-510-495-2352
>> Lawrence Berkeley National Laboratory     Fax: +1-510-486-6900
>>  _______________________________________________
>> devel mailing list
>> de...@open-mpi.org
>> Subscription: http://www.open-mpi.org/mailman/listinfo.cgi/devel
>> Link to this post:
>> http://www.open-mpi.org/community/lists/devel/2014/08/15582.php
>>
>>
>>
>> _______________________________________________
>> devel mailing list
>> de...@open-mpi.org
>> Subscription: http://www.open-mpi.org/mailman/listinfo.cgi/devel
>> Link to this post:
>> http://www.open-mpi.org/community/lists/devel/2014/08/15591.php
>>
>
>
>
> --
> Paul H. Hargrove                          phhargr...@lbl.gov
> Future Technologies Group
> Computer and Data Sciences Department     Tel: +1-510-495-2352
> Lawrence Berkeley National Laboratory     Fax: +1-510-486-6900
>  _______________________________________________
> devel mailing list
> de...@open-mpi.org
> Subscription: http://www.open-mpi.org/mailman/listinfo.cgi/devel
> Link to this post:
> http://www.open-mpi.org/community/lists/devel/2014/08/15594.php
>
>
>
> _______________________________________________
> devel mailing list
> de...@open-mpi.org
> Subscription: http://www.open-mpi.org/mailman/listinfo.cgi/devel
> Link to this post:
> http://www.open-mpi.org/community/lists/devel/2014/08/15595.php
>



-- 
Paul H. Hargrove                          phhargr...@lbl.gov
Future Technologies Group
Computer and Data Sciences Department     Tel: +1-510-495-2352
Lawrence Berkeley National Laboratory     Fax: +1-510-486-6900

Reply via email to