Open MPI logo

Open MPI Development Mailing List Archives

  |   Home   |   Support   |   FAQ   |   all Development mailing list

Subject: Re: [OMPI devel] 1.7.4rc1 build failure: OpenBSD-5 and NetBSD-6
From: Ralph Castain (rhc_at_[hidden])
Date: 2013-12-19 22:18:18


I added protections for all the RLIMIT values, just in case. Thanks!
Ralph

On Dec 19, 2013, at 6:25 PM, Paul Hargrove <phhargrove_at_[hidden]> wrote:

> Jeff,
>
> The unofficial "rc2forpaul" gets past the (disgusting) if_mtu problem on both platforms.
>
> On NetBSD-6 the build completes ("make install" fails, but I'll report that separately).
>
> However, on OpenBSD-5 we now encounter another failure about 20 files later:
>
> CC sys_limits.lo
> /home/phargrov/OMPI/openmpi-1.7.4rc2forpaul-openbsd5-amd64/openmpi-1.7.4rc2forpaul/opal/util/sys_limits.c: In function 'opal_util_init_sys_limits':
> /home/phargrov/OMPI/openmpi-1.7.4rc2forpaul-openbsd5-amd64/openmpi-1.7.4rc2forpaul/opal/util/sys_limits.c:172: error: 'RLIMIT_AS' undeclared (first use in this function)
> /home/phargrov/OMPI/openmpi-1.7.4rc2forpaul-openbsd5-amd64/openmpi-1.7.4rc2forpaul/opal/util/sys_limits.c:172: error: (Each undeclared identifier is reported only once
> /home/phargrov/OMPI/openmpi-1.7.4rc2forpaul-openbsd5-amd64/openmpi-1.7.4rc2forpaul/opal/util/sys_limits.c:172: error: for each function it appears in.)
> *** Error 1 in opal/util (Makefile:1692 'sys_limits.lo': @echo " CC " sys_limits.lo;depbase=`echo sys_limits.lo | sed 's|[^/]*$|.deps/...)
> *** Error 1 in opal/util (Makefile:1780 'all-recursive')
>
> The getrlimit manpage on this platform does not list RLIMIT_AS.
> Running "grep -rl RLIMIT_AS /usr/include" confirms that this constant does not exist.
> So, I think "#ifdef RLIMIT_AS" is required.
>
> -Paul
>
>
> On Thu, Dec 19, 2013 at 4:39 PM, Jeff Squyres (jsquyres) <jsquyres_at_[hidden]> wrote:
> On Dec 19, 2013, at 6:27 PM, Paul Hargrove <phhargrove_at_[hidden]> wrote:
>
> > When building 1.7.4rc1 on OpenBSD-5 and NetBSD-6 (both amd64) I see what appears to be the same three errors ("make" output at end of this email) on both platforms.
> >
> > All three syntax errors appears to be collisions on the symbol if_mtu:
> >
> > -bash-4.2$ cat -n openmpi-1.7.4rc1/opal/util/if.h | grep -w -e 182
> > 182 OPAL_DECLSPEC int opal_ifindextomtu(int if_index, int *if_mtu);
> > -bash-4.2$ cat -n openmpi-1.7.4rc1/opal/mca/if/if.h | grep -w -e 98
> > 98 int if_mtu;
> > -bash-4.2$ cat -n openmpi-1.7.4rc1/opal/util/if.c | grep -w -e 482
> > 482 int opal_ifindextomtu(int if_index, int *if_mtu)
> >
> > -bash-4.2$ grep if_mtu /usr/include/net/if.h
> > #define if_mtu if_data.ifi_mtu \
>
> Bah. Terrible. Ok, thanks -- I'll fix...
>
> (see the tar ball I just sent you... should have this fix in it)
>
> --
> Jeff Squyres
> jsquyres_at_[hidden]
> For corporate legal information go to: http://www.cisco.com/web/about/doing_business/legal/cri/
>
> _______________________________________________
> devel mailing list
> devel_at_[hidden]
> http://www.open-mpi.org/mailman/listinfo.cgi/devel
>
>
>
> --
> Paul H. Hargrove PHHargrove_at_[hidden]
> Future Technologies Group
> Computer and Data Sciences 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