Open MPI logo

Hardware Locality Development Mailing List Archives

  |   Home   |   Support   |   FAQ   |  

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.

Subject: Re: [hwloc-devel] hwloc-1.3.1 assertion failures on Linux/POWER7
From: Paul H. Hargrove (PHHargrove_at_[hidden])
Date: 2012-02-01 19:43:08

On 2/1/2012 4:14 PM, Christopher Samuel wrote:
> On 02/02/12 10:38, Paul H. Hargrove wrote:
>> > I am not sure if one should fix this by:
>> > a) Document the need for CFLAGS=-qhalt=e
>> > b) Force "-qhalt=e" at configure time when CC=xlc
>> > c) Find some other way to fix the configure probe
>> >
>> > My vote is for "(b)"
> Mine too, either that or:
> d) Exit saying the user has to set it, or use a different compiler.

I think I'd like to change my vote to (d) IFF we can determine the flag
is needed but not set.
Something like (untested):

     extern int one_arg(int x);
     extern int two_arg(int x, int y);
     int foo(void) { return one_arg(1, 2) + two_arg(3); }
], [
     AC_MSG_WARN([Your C compiler does not consider incorrect argument
counts to be a fatal error.])
     if test "$hwloc_check_compiler_vendor_result" = "ibm"; then
         AC_MSG_WARN([For XLC you may try appending '-qhalt=-e' to the
value of CFLAGS.])
         AC_MSG_WARN([Alternatively you may configure with a different
         AC_MSG_WARN([Please report this failure, and configure using a
different C compiler if possible.])
     AC_MSG_ERROR([Cannot continue.])


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