Open MPI logo

Hardware Locality Development Mailing List Archives

  |   Home   |   Support   |   FAQ   |   all Hardware Locality Development mailing list

Subject: Re: [hwloc-devel] 1.3.2rc1 failures w/ icc on x86 (visibility?)
From: Paul H. Hargrove (PHHargrove_at_[hidden])
Date: 2012-02-10 14:30:40


On 2/10/2012 11:19 AM, Jeff Squyres wrote:
> I'll go compare.

I already did...

HWLOC (1.3.2rc1) tries:
             AC_LINK_IFELSE([AC_LANG_PROGRAM([[
                 __attribute__((visibility("default"))) int foo;
                 ]],[[int i;]])],
                 [],
                 [hwloc_add=])

While OMPI (1.4.5rc5) tries:
             AC_TRY_LINK([
                     #include <stdio.h>
                     __attribute__((visibility("default"))) int foo;
                     void bar(void) { fprintf(stderr, "bar\n"); };
                     ],[],
                     [if test -s conftest.err ; then
                         $GREP -iq "visibility" conftest.err
                         if test "$?" = "0" ; then
                             ompi_cv_cc_fvisibility="no"
                         else
                             ompi_cv_cc_fvisibility="yes"
                         fi
                      else
                         ompi_cv_cc_fvisibility="yes"
                      fi],
                     [ompi_cv_cc_fvisibility="no"])
                 ])

-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