Hi Paul,
thanks for the exhaustive testing.

This is due to Mac OS not (yet) including the const in:
       int pthread_attr_getscope(const pthread_attr_t *attr, int *scope);
just verified: MacOS X 10.5.8 does contain the const.

nptl/glibc does contain it in the headers (but not in the man-page).

Best regards,
Rainer


On Wednesday 25 August 2010 06:44:01 Paul H. Hargrove wrote:
> I get a warning building 1.5rc5 that appears unique to this Mac OS version.
> It does NOT occur with
>   Mac OS 10.5.8 for x86
>   Mac OS 10.6.1 for x86
>   Mac OS 10.5.8 for ppc
> Nor does this occur with Open MPI 1.4.3rc1.
> 
> $ uname -a
> Darwin irun.lbl.gov 8.11.1 Darwin Kernel Version 8.11.1: Wed Oct 10
> 18:23:28 PDT 2007; root:xnu-792.25.20~1/RELEASE_I386 i386 i386
> 
> $ sw_vers
> ProductName:    Mac OS X
> ProductVersion: 10.4.11
> BuildVersion:   8S2167
> 
> $ gcc --version
> i686-apple-darwin8-gcc-4.0.1 (GCC) 4.0.1 (Apple Computer, Inc. build 5367)
> Copyright (C) 2005 Free Software Foundation, Inc.
> This is free software; see the source for copying conditions.  There is NO
> warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
> 
> $ [path_to]/openmpi-1.5rc5/configure
> [...]
> 
> $ make
> [...]
>   CC     libvt_mt_la-vt_pthreadwrap.lo
> ../../../../../../ompi/contrib/vt/vt/vtlib/vt_pthreadwrap.c: In function
> 'VT_pthread_attr_getscope__':
> ../../../../../../ompi/contrib/vt/vt/vtlib/vt_pthreadwrap.c:365:
> warning: passing argument 1 of 'pthread_attr_getscope' discards
> qualifiers from pointer target type
> [...]
> 
> 
> 
> Same for the equivalent ppc platform:
> 
> $ uname -a; echo; sw_vers; echo; gcc --version
> Darwin iwalk.lbl.gov 8.11.0 Darwin Kernel Version 8.11.0: Wed Oct 10
> 18:26:00 PDT 2007; root:xnu-792.24.17~1/RELEASE_PPC Power Macintosh powerpc
> 
> ProductName:    Mac OS X
> ProductVersion: 10.4.11
> BuildVersion:   8S165
> 
> powerpc-apple-darwin8-gcc-4.0.1 (GCC) 4.0.1 (Apple Computer, Inc. build
> 5341)
> Copyright (C) 2005 Free Software Foundation, Inc.
> This is free software; see the source for copying conditions.  There is NO
> warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
> 
> -Paul

-- 
----------------------------------------------------------------
 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: kel...@hlrs.de     
 Germany                             AIM/Skype:rusraink

Reply via email to