Open MPI logo

Open MPI Development Mailing List Archives

  |   Home   |   Support   |   FAQ   |   all Development mailing list

Subject: Re: [OMPI devel] 1.5rc5 - warnings from Sun C 5.10
From: Rainer Keller (keller_at_[hidden])
Date: 2010-08-26 10:49:55


Hello Paul,
thanks for testing so thoroughly.

On Wednesday 25 August 2010 02:40:22 Paul H. Hargrove wrote:
> In addition to the atomic.h and Anachronism warnings seen w/ 1.4.3rc1
> (http://www.open-mpi.org/community/lists/devel/2010/08/8322.php), I find
> some "new" warnings in 1.5rc5.
>
> $ uname -a
> SunOS osol-x64 5.11 snv_111b i86pc i386 i86pc
>
> $ cc -V
> cc: Sun C 5.10 SunOS_i386 2009/06/03
> usage: cc [ options] files. Use 'cc -flags' for details
Nice. I have installed the SunStudio Compiler Suite 12 update1 on a x86-64
machine, aka:
cc: Sun C 5.10 Linux_i386 2009/06/03

Now, I do get some other unrelated errors already in the configure:

configure:18047: checking size of bool
configure:18052: CC -o conftest -O -DNDEBUG conftest.cpp >&5
"/usr/include/stdlib.h", line 525: Error: "{" expected instead of "__asm".
"/usr/include/stdlib.h", line 525: Error: The function "__asm" must have a
prototype.
"/usr/include/stdlib.h", line 958: Error: "at_quick_exit(void(*)())" is
expected to return a value.

This is due to us enabling GNU-extensions, done through
AC_USE_SYSTEM_EXTENSIONS and it's alias AC_GNU_SOURCE.

I'll forward this to Sun.

> Many instances of the following:
>
> "../../../../openmpi-1.5rc5/orte/mca/ess/ess.h", line 61: warning:
> attribute "noreturn" may not be applied to variable, ignored
> "../../../../openmpi-1.5rc5/orte/mca/errmgr/errmgr.h", line 138:
> warning: attribute "noreturn" may not be applied to variable, ignored
> [Due to applying __opal_attribute_noreturn__ to a function pointer]
See the other mail.

> Single instances of the following:
>
> "../../../../../openmpi-1.5rc5/opal/mca/crs/none/crs_none_module.c",
> line 136: warning: statement not reached

> "../../../../openmpi-1.5rc5/orte/mca/plm/base/plm_base_rsh_support.c",
> line 462: warning: implicit function declaration: rindex
Hmm, fixed in r23671

> "../../../../openmpi-1.5rc5/orte/mca/plm/base/plm_base_rsh_support.c",
> line 565: warning: improper pointer/integer combination: op "="
fixed by the above as well.

Best regards,
Rainer

-- 
----------------------------------------------------------------
 Dr.-Ing. Rainer Keller  http://www.hlrs.de/people/keller
 HLRS                         Tel: ++49 (0)711-685 6 5858
 Nobelstrasse 19                 Fax: ++49 (0)711-685 6 5832
 70550 Stuttgart                    email: keller_at_[hidden]     
 Germany                             AIM/Skype:rusraink