This web mail archive is frozen.
This page is part of a frozen web archive of this mailing list.
You can still navigate around this archive, but know that no new mails
have been added to it since July of 2016.
Click here to be taken to the new web archives of this list; it includes all the mails that are in this frozen archive plus all new mails that have been sent to the list since it was migrated to the new archives.
Sorry, I didn't get to try this patch out. Did it end up in any of the
On 07/24/2012 02:45 PM, Brice Goglin wrote:
> Le 24/07/2012 13:39, Brice Goglin a écrit :
>> Le 23/07/2012 18:40, Pavan Balaji a écrit :
>>>>> 3. The changes to config/hwloc.m4 and include/private/private.h are
>>>>> essentially a warning squash when getpagesize() requires an explicit
>>>>> prototype declaration. But it's not clear how easy it is for you to
>>>>> absorb it as it uses an MPICH2 internal m4 macro. Maybe there's a
>>>>> cleaner way to integrate this patch.
>>>> I will look at this. On which platform/system did you need this patch?
>>> On regular x86_64 machines. We use strict builds in mpich2. I can
>>> figure out the exact flags that trigger it, but my guess is that -Wall
>> Looking deeper into this, it looks like the right solution is to use
>> sysconf(_SC_PAGESIZE) instead of getpagesize(). getpagesize() looks
>> deprecated, that's why it's getting disabled when modern features are
>> enabled. I'll send a patch to use sysconf when supported and fallback to
>> the old getpagesize() otherwise.
> Can you try this patch of some of your platforms?
> I think I couldn't reproduce your problem because hwloc's
> AC_USE_SYSTEM_EXTENSIONS defines _GNU_SOURCE, which defines _BSD_SOURCE,
> which defines __USE_BSD, which makes getpagesize() available without
> looking at other XOPEN/POSIX defines.