Создание opnMPI на Cygwin - PullRequest
       7

Создание opnMPI на Cygwin

0 голосов
/ 12 ноября 2018

Я сейчас строю openmpi-3.1.2 на Cygwin.Я закончил этап настройки и теперь пытаюсь сделать это с помощью команды make.Но я постоянно получаю это предупреждение: fd_set and associated macros have been defined in sys/types. This can cause runtime problems with W32 sockets, а затем появляется следующая ошибка:

In file included from /usr/include/w32api/winsock2.h:57,
                 from ../../../opal/mca/event/libevent2022/libevent/event.h:63,
                 from ../../../opal/mca/event/libevent2022/libevent2022.h:58,
                 from ../../../opal/mca/event/event.h:76,
                 from ../../../opal/mca/pmix/pmix.h:24,
                 from ../../../opal/util/proc.c:22:
/usr/include/w32api/psdk_inc/_ip_types.h:25:8: error: redefinition of ‘struct hostent’
 struct hostent {
        ^~~~~~~
In file included from /home/Semen/openmpi-3.1.2/opal/mca/event/libevent2022/libevent/include/event2/util.h:67,
                 from /home/Semen/openmpi-3.1.2/opal/mca/event/libevent2022/libevent/evutil.h:37,
                 from ../../../opal/mca/event/libevent2022/libevent/event.h:57,
                 from ../../../opal/mca/event/libevent2022/libevent2022.h:58,
                 from ../../../opal/mca/event/event.h:76,
                 from ../../../opal/mca/pmix/pmix.h:24,
                 from ../../../opal/util/proc.c:22:
/usr/include/netdb.h:79:8: note: originally defined here
 struct hostent {

Моя конфигурация GCC:

Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-pc-cygwin/7.3.0/lto-wrapper.exe
Target: x86_64-pc-cygwin
Configured with: /cygdrive/i/szsz/tmpp/gcc/gcc-7.3.0-3.x86_64/src/gcc-7.3.0/configure --srcdir=/cygdrive/i/szsz/tmpp/gcc/gcc-7.3.0-3.x86_64/src/gcc-7.3.0 --prefix=/usr --exec-prefix=/usr --localstatedir=/var --sysconfdir=/etc --docdir=/usr/share/doc/gcc --htmldir=/usr/share/doc/gcc/html -C --build=x86_64-pc-cygwin --host=x86_64-pc-cygwin --target=x86_64-pc-cygwin --without-libiconv-prefix --without-libintl-prefix --libexecdir=/usr/lib --enable-shared --enable-shared-libgcc --enable-static --enable-version-specific-runtime-libs --enable-bootstrap --enable-__cxa_atexit --with-dwarf2 --with-tune=generic --enable-languages=ada,c,c++,fortran,lto,objc,obj-c++ --enable-graphite --enable-threads=posix --enable-libatomic --enable-libcilkrts --enable-libgomp --enable-libitm --enable-libquadmath --enable-libquadmath-support --disable-libssp --enable-libada --disable-symvers --with-gnu-ld --with-gnu-as --with-cloog-include=/usr/include/cloog-isl --without-libiconv-prefix --without-libintl-prefix --with-system-zlib --enable-linker-build-id --with-default-libstdcxx-abi=gcc4-compatible --enable-libstdcxx-filesystem-ts
Thread model: posix
gcc version 7.3.0 (GCC)

Кто-нибудь знает, в чем проблема?

...