Open MPI logo

Open MPI Development Mailing List Archives

  |   Home   |   Support   |   FAQ   |   all Development mailing list

Subject: [OMPI devel] 1.7.4rc1 build failure: OpenBSD-5 and NetBSD-6
From: Paul Hargrove (phhargrove_at_[hidden])
Date: 2013-12-19 18:27:44


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 \

-Paul

OpenBSD:
-bash-4.2$ uname -a
OpenBSD pcp-j-16.my.domain 5.3 GENERIC.MP#62 amd64
-bash-4.2$ gcc --version
gcc (GCC) 4.2.1 20070719

Making all in keyval
  LEX keyval_lex.c
  CC keyval_lex.lo
  CCLD libopalutilkeyval.la
  CC fd.lo
  CC arch.lo
  CC argv.lo
  CC basename.lo
  CC cmd_line.lo
  CC crc.lo
  CC convert.lo
  CC daemon_init.lo
  CC error.lo
  CC few.lo
  CC if.lo
In file included from
/home/phargrov/OMPI/openmpi-1.7.4rc1-openbsd5-amd64/openmpi-1.7.4rc1/opal/util/if.c:74:
/home/phargrov/OMPI/openmpi-1.7.4rc1-openbsd5-amd64/openmpi-1.7.4rc1/opal/util/if.h:182:
error: expected ';', ',' or ')' before '.' token
In file included from
/home/phargrov/OMPI/openmpi-1.7.4rc1-openbsd5-amd64/openmpi-1.7.4rc1/opal/mca/if/base/base.h:18,
                 from
/home/phargrov/OMPI/openmpi-1.7.4rc1-openbsd5-amd64/openmpi-1.7.4rc1/opal/util/if.c:81:
/home/phargrov/OMPI/openmpi-1.7.4rc1-openbsd5-amd64/openmpi-1.7.4rc1/opal/mca/if/if.h:98:
error: expected ':', ',', ';', '}' or '__attribute__' before '.' token
/home/phargrov/OMPI/openmpi-1.7.4rc1-openbsd5-amd64/openmpi-1.7.4rc1/opal/util/if.c:482:
error: expected ';', ',' or ')' before '.' token
*** Error 1 in opal/util (Makefile:1642 'if.lo': @echo " CC "
if.lo;depbase=`echo if.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`; /bin/sh ...)
*** Error 1 in opal/util (Makefile:1731 'all-recursive')
*** Error 1 in opal (Makefile:2039 'all-recursive')
*** Error 1 in /home/phargrov/OMPI/openmpi-1.7.4rc1-openbsd5-amd64/BLD
(Makefile:1572 'all-recursive')

NetBSD:

-bash-4.2$ uname -a
NetBSD pcp-j-18 6.1 NetBSD 6.1 (GENERIC) amd64
-bash-4.2$ gcc --version
gcc (NetBSD nb2 20110806) 4.5.3

Making all in keyval
  CC keyval_lex.lo
  CCLD libopalutilkeyval.la
  CC fd.lo
  CC arch.lo
  CC argv.lo
  CC basename.lo
  CC cmd_line.lo
  CC crc.lo
  CC convert.lo
  CC daemon_init.lo
  CC error.lo
  CC few.lo
  CC if.lo
In file included from
/home/phargrov/OMPI/openmpi-1.7.4rc1-netbsd6-amd64/openmpi-1.7.4rc1/opal/util/if.c:74:0:
/home/phargrov/OMPI/openmpi-1.7.4rc1-netbsd6-amd64/openmpi-1.7.4rc1/opal/util/if.h:182:56:
error: expected ';', ',' or ')' before '.' token
In file included from
/home/phargrov/OMPI/openmpi-1.7.4rc1-netbsd6-amd64/openmpi-1.7.4rc1/opal/mca/if/base/base.h:18:0,
                 from
/home/phargrov/OMPI/openmpi-1.7.4rc1-netbsd6-amd64/openmpi-1.7.4rc1/opal/util/if.c:81:
/home/phargrov/OMPI/openmpi-1.7.4rc1-netbsd6-amd64/openmpi-1.7.4rc1/opal/mca/if/if.h:98:25:
error: expected ':', ',', ';', '}' or '__attribute__' before '.' token
/home/phargrov/OMPI/openmpi-1.7.4rc1-netbsd6-amd64/openmpi-1.7.4rc1/opal/util/if.c:482:42:
error: expected ';', ',' or ')' before '.' token
*** Error code 1

Stop.

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