Open MPI logo

Open MPI Development Mailing List Archives

  |   Home   |   Support   |   FAQ   |   all Development mailing list

Subject: [OMPI devel] libevent build fails when configured with --disable-hwloc
From: Paul H. Hargrove (PHHargrove_at_[hidden])
Date: 2012-02-15 16:58:30


Here is a bit more on this.
When I configure w/ only a --prefix and CFLAGS=-save-temps, I can
examine libevent2013_module.i which contains the following:

# 7 "../../../../../opal/mca/event/libevent2013/libevent2013_module.c" 2
# 1
"../../../../opal/mca/hwloc/hwloc132/hwloc/include/private/autogen/config.h"
1
# 8 "../../../../../opal/mca/event/libevent2013/libevent2013_module.c" 2

What that says is that the '#include "config.h"' on line 7 of
libevent2013_module.c has included hwloc's config.h, as I had claimed
earlier (and this was much easier than manually traversing the -I list
as I had done before).

This is a VPATH build from a trunk tarball (1.7a1r25927).
Perhaps Ralph could not reproduce because of a difference between svn
and tarball, such as autotools versions, or use of a non-VPATH build?

For me there is a generated
    BLDDIR/opal/mca/event/libevent2013/libevent/config.h
but that directory does NOT appear in the -I's, though the $(srcdir)
version does.
So, I suspect a non-VPATH build would work when configured with
--without-hwloc

Below is a reformatted version of the compile command from "make V=1".
I've marked two things:
1 = the hwloc directory from whence config.h is being included
2 = two instances of $(srcdir)/libevent (key: 5*"../" = srcdir, 4*"../"
= blddir)

> gcc -DHAVE_CONFIG_H
> -I.
> -I../../../../../opal/mca/event/libevent2013
> -I../../../../opal/include
> -I../../../../orte/include
> -I../../../../ompi/include
> 1->
> -I../../../../opal/mca/hwloc/hwloc132/hwloc/include/private/autogen
> -I../../../../opal/mca/hwloc/hwloc132/hwloc/include/hwloc/autogen
> 2-> -I../../../../../opal/mca/event/libevent2013/libevent
> -I../../../../../opal/mca/event/libevent2013/libevent/include
> -I./libevent/include
> -I../../../../../opal/mca/event/libevent2013/libevent/compat
> -I../../../../..
> -I../../../..
> -I../../../../../opal/include
> -I../../../../../orte/include
> -I../../../../../ompi/include
>
> -I/home/phargrov/OMPI/openmpi-1.7a1r25927/opal/mca/hwloc/hwloc132/hwloc/include
>
> -I/home/phargrov/OMPI/openmpi-1.7a1r25927/BLD-with/opal/mca/hwloc/hwloc132/hwloc/include
> 2->
> -I/home/phargrov/OMPI/openmpi-1.7a1r25927/opal/mca/event/libevent2013/libevent
>
> -I/home/phargrov/OMPI/openmpi-1.7a1r25927/opal/mca/event/libevent2013/libevent/include
>
> -I/home/phargrov/OMPI/openmpi-1.7a1r25927/BLD-with/opal/mca/event/libevent2013/libevent/include
> -I/usr/include/infiniband
> -I/usr/include/infiniband
> -O3 -DNDEBUG -save-temps -finline-functions -fno-strict-aliasing
> -pthread
>
> -I/home/phargrov/OMPI/openmpi-1.7a1r25927/opal/mca/hwloc/hwloc132/hwloc/include
> -MT libevent2013_module.lo -MD -MP -MF
> .deps/libevent2013_module.Tpo
> -c
> ../../../../../opal/mca/event/libevent2013/libevent2013_module.c
> -fPIC -DPIC -o .libs/libevent2013_module.o

-Paul

On 2/15/2012 1:16 PM, Paul H. Hargrove wrote:
> Thanks, Ralph.
>
> I am a little deficient in the autotools department.
> So, I will probably only be able to retest after a new trunk tarball
> is generated tonight.
>
> In the meantime I might be able to get more info on the config.h problem.
> If I add -save-temps to CFLAGS I should be able to examine the .i file
> w/o and w/ --disable-hwloc.
> That will either prove or disprove what I've claimed is happening.
>
> -Paul
>
> On 2/15/2012 5:47 AM, Ralph Castain wrote:
>> Built on Linux --without-hwloc as well, with the fix.
>>
>> On Wed, Feb 15, 2012 at 3:13 AM, Ralph Castain <rhc_at_[hidden]
>> <mailto:rhc_at_[hidden]>> wrote:
>>
>> Hi Paul
>>
>> The rank_file component should not attempt to build if
>> --without-hwloc is given - I've fixed that now. Thanks for
>> reporting it.
>>
>> With that fix, I was able to build the trunk on Mac - testing
>> Linux now. I haven't checked for the config.h confusion you
>> report, though - just noting that it built.
>>
>
> --
> Paul H. HargrovePHHargrove_at_[hidden]
> Future Technologies Group
> HPC Research Department Tel: +1-510-495-2352
> Lawrence Berkeley National Laboratory Fax: +1-510-486-6900
>
>
> _______________________________________________
> devel mailing list
> devel_at_[hidden]
> http://www.open-mpi.org/mailman/listinfo.cgi/devel

-- 
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