Open MPI logo

Open MPI Development Mailing List Archives

  |   Home   |   Support   |   FAQ   |   all Development mailing list

Subject: [OMPI devel] 1.5rc5: warning from gcc-4.0.1 on Mac OS 10.4.11 (x86 and ppc)
From: Paul H. Hargrove (PHHargrove_at_[hidden])
Date: 2010-08-25 00:44:01


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

-- 
Paul H. Hargrove                          PHHargrove_at_[hidden]
Future Technologies Group
HPC Research Department                   Tel: +1-510-495-2352
Lawrence Berkeley National Laboratory     Fax: +1-510-486-6900