Open MPI logo

Open MPI User's Mailing List Archives

  |   Home   |   Support   |   FAQ   |   all Open MPI User's mailing list

Subject: Re: [OMPI users] OpenMPI-1.6.3 MinGW64 buildup on Windows 7
From: Ilias Miroslav (Miroslav.Ilias_at_[hidden])
Date: 2012-12-12 04:54:18


Hi again,

in addition, I met the same compilation error on my 32-bit Windows 7 PC, with 32-bit MinGW compilers:

C:\OpenMPI-1.6.3-MinGW>mingw32-make
-- The Fortran compiler identification is GNU
-- checking for type of MPI_Offset...
-- checking for type of MPI_Offset...long long
-- checking for an MPI datatype for MPI_Offset...
-- checking for an MPI datatype for MPI_Offset...MPI_LONG_LONG
-- Check for working flex...
-- Skipping MPI F77 interface
-- looking for ccp...
-- looking for ccp...not found.
-- looking for ccp...
-- looking for ccp...not found.
-- Configuring done
-- Generating done
-- Build files have been written to: C:/OpenMPI-1.6.3-MinGW
Scanning dependencies of target libopen-pal
[ 1%] Building C object opal/CMakeFiles/libopen-pal.dir/datatype/opal_datatype_
pack_checksum.obj
In file included from C:/Users/milias/Downloads/openmpi-1.6.3/opal/include/opal_
config_bottom.h:258:0,
                 from C:/OpenMPI-1.6.3-MinGW/opal/include/opal_config.h:1468,
                 from C:\OpenMPI-1.6.3-MinGW\opal\datatype\opal_datatype_pack_ch
ecksum.c:21:
C:/Users/milias/Downloads/openmpi-1.6.3/opal/win32/win_compat.h:93:14: error: co
nflicting types for 'ssize_t'
In file included from c:\mingw\bin\../lib/gcc/mingw32/4.7.2/../../../../include/
process.h:17:0,
                 from C:/Users/milias/Downloads/openmpi-1.6.3/opal/win32/win_com
pat.h:70,
                 from C:/Users/milias/Downloads/openmpi-1.6.3/opal/include/opal_
config_bottom.h:258,
                 from C:/OpenMPI-1.6.3-MinGW/opal/include/opal_config.h:1468,
                 from C:\OpenMPI-1.6.3-MinGW\opal\datatype\opal_datatype_pack_ch
ecksum.c:21:
c:\mingw\bin\../lib/gcc/mingw32/4.7.2/../../../../include/sys/types.h:118:18: no
te: previous declaration of 'ssize_t' was here
In file included from C:/OpenMPI-1.6.3-MinGW/opal/include/opal_config.h:1468:0,
                 from C:\OpenMPI-1.6.3-MinGW\opal\datatype\opal_datatype_pack_ch
ecksum.c:21:
C:/Users/milias/Downloads/openmpi-1.6.3/opal/include/opal_config_bottom.h:559:0:
 warning: "PF_UNSPEC" redefined [enabled by default]
In file included from C:/Users/milias/Downloads/openmpi-1.6.3/opal/win32/win_com
pat.h:68:0,
                 from C:/Users/milias/Downloads/openmpi-1.6.3/opal/include/opal_
config_bottom.h:258,
                 from C:/OpenMPI-1.6.3-MinGW/opal/include/opal_config.h:1468,
                 from C:\OpenMPI-1.6.3-MinGW\opal\datatype\opal_datatype_pack_ch
ecksum.c:21:
c:\mingw\bin\../lib/gcc/mingw32/4.7.2/../../../../include/winsock2.h:368:0: note
: this is the location of the previous definition
In file included from C:/OpenMPI-1.6.3-MinGW/opal/include/opal_config.h:1468:0,
                 from C:\OpenMPI-1.6.3-MinGW\opal\datatype\opal_datatype_pack_ch
ecksum.c:21:
C:/Users/milias/Downloads/openmpi-1.6.3/opal/include/opal_config_bottom.h:562:0:
 warning: "AF_INET6" redefined [enabled by default]
In file included from C:/Users/milias/Downloads/openmpi-1.6.3/opal/win32/win_com
pat.h:68:0,
                 from C:/Users/milias/Downloads/openmpi-1.6.3/opal/include/opal_
config_bottom.h:258,
                 from C:/OpenMPI-1.6.3-MinGW/opal/include/opal_config.h:1468,
                 from C:\OpenMPI-1.6.3-MinGW\opal\datatype\opal_datatype_pack_ch
ecksum.c:21:
c:\mingw\bin\../lib/gcc/mingw32/4.7.2/../../../../include/winsock2.h:329:0: note
: this is the location of the previous definition
In file included from C:/OpenMPI-1.6.3-MinGW/opal/include/opal_config.h:1468:0,
                 from C:\OpenMPI-1.6.3-MinGW\opal\datatype\opal_datatype_pack_ch
ecksum.c:21:
C:/Users/milias/Downloads/openmpi-1.6.3/opal/include/opal_config_bottom.h:565:0:
 warning: "PF_INET6" redefined [enabled by default]
In file included from C:/Users/milias/Downloads/openmpi-1.6.3/opal/win32/win_com
pat.h:68:0,
                 from C:/Users/milias/Downloads/openmpi-1.6.3/opal/include/opal_
config_bottom.h:258,
                 from C:/OpenMPI-1.6.3-MinGW/opal/include/opal_config.h:1468,
                 from C:\OpenMPI-1.6.3-MinGW\opal\datatype\opal_datatype_pack_ch
ecksum.c:21:
c:\mingw\bin\../lib/gcc/mingw32/4.7.2/../../../../include/winsock2.h:392:0: note
: this is the location of the previous definition
opal\CMakeFiles\libopen-pal.dir\build.make:57: recipe for target 'opal/CMakeFile
s/libopen-pal.dir/datatype/opal_datatype_pack_checksum.obj' failed
mingw32-make[2]: *** [opal/CMakeFiles/libopen-pal.dir/datatype/opal_datatype_pac
k_checksum.obj] Error 1
CMakeFiles\Makefile2:82: recipe for target 'opal/CMakeFiles/libopen-pal.dir/all'
 failed
mingw32-make[1]: *** [opal/CMakeFiles/libopen-pal.dir/all] Error 2
Makefile:135: recipe for target 'all' failed
mingw32-make: *** [all] Error 2

C:\OpenMPI-1.6.3-MinGW>

________________________________________
From: Ilias Miroslav
Sent: Sunday, December 09, 2012 8:52 PM
To: users_at_[hidden]
Subject: OpenMPI-1.6.3 MinGW64 buildup on Windows 7

Dear experts,

following README.WINDOWS.txt I am trying to install OpenMPI-1.6.3 using MinGW64 package on my 64-bit Windows 7 machine.

After configuring with cmake-giu, I got these error messages below. Any help, please ? Maybe I should set up some CMake variable to cure " conflicting types for 'ssize_t'" ?
It seems that you support build only on 32-bit Windows platform....?

Miro

C:\OpenMPI-1.6.3_MinGW64>mingw32-make install
-- The Fortran compiler identification is GNU
-- checking for type of MPI_Offset...
-- checking for type of MPI_Offset...long long
-- checking for an MPI datatype for MPI_Offset...
-- checking for an MPI datatype for MPI_Offset...MPI_LONG_LONG
-- Check for working flex...
-- Skipping MPI F77 interface
-- looking for ccp...
-- looking for ccp...not found.
-- looking for ccp...
-- looking for ccp...not found.
-- Configuring done
-- Generating done
-- Build files have been written to: C:/OpenMPI-1.6.3_MinGW64
Scanning dependencies of target libopen-pal
[ 1%] Building C object opal/CMakeFiles/libopen-pal.dir/datatype/opal_datatype_pack_check
sum.obj
In file included from C:/Users/milias/Downloads/openmpi-1.6.3/openmpi-1.6.3/opal/include/o
pal_config_bottom.h:258:0,
                 from C:/OpenMPI-1.6.3_MinGW64/opal/include/opal_config.h:1468,
                 from C:\OpenMPI-1.6.3_MinGW64\opal\datatype\opal_datatype_pack_checksum.c
:21:
C:/Users/milias/Downloads/openmpi-1.6.3/openmpi-1.6.3/opal/win32/win_compat.h:93:14: error
: conflicting types for 'ssize_t'
In file included from c:\mingw64\bin\../lib/gcc/x86_64-w64-mingw32/4.7.1/../../../../x86_6
4-w64-mingw32/include/windows.h:9:0,
                 from C:/Users/milias/Downloads/openmpi-1.6.3/openmpi-1.6.3/opal/win32/win
_compat.h:59,
                 from C:/Users/milias/Downloads/openmpi-1.6.3/openmpi-1.6.3/opal/include/o
pal_config_bottom.h:258,
                 from C:/OpenMPI-1.6.3_MinGW64/opal/include/opal_config.h:1468,
                 from C:\OpenMPI-1.6.3_MinGW64\opal\datatype\opal_datatype_pack_checksum.c
:21:
c:\mingw64\bin\../lib/gcc/x86_64-w64-mingw32/4.7.1/../../../../x86_64-w64-mingw32/include/
_mingw.h:381:35: note: previous declaration of 'ssize_t' was here
In file included from C:/Users/milias/Downloads/openmpi-1.6.3/openmpi-1.6.3/opal/include/o
pal_config_bottom.h:258:0,
                 from C:/OpenMPI-1.6.3_MinGW64/opal/include/opal_config.h:1468,
                 from C:\OpenMPI-1.6.3_MinGW64\opal\datatype\opal_datatype_pack_checksum.c
:21:
C:/Users/milias/Downloads/openmpi-1.6.3/openmpi-1.6.3/opal/win32/win_compat.h:175:0: warni
ng: "PATH_MAX" redefined [enabled by default]
In file included from c:\mingw64\bin\../lib/gcc/x86_64-w64-mingw32/4.7.1/include-fixed/lim
its.h:169:0,
                 from c:\mingw64\bin\../lib/gcc/x86_64-w64-mingw32/4.7.1/include-fixed/sys
limits.h:7,
                 from c:\mingw64\bin\../lib/gcc/x86_64-w64-mingw32/4.7.1/include-fixed/lim
its.h:34,
                 from c:\mingw64\bin\../lib/gcc/x86_64-w64-mingw32/4.7.1/../../../../x86_6
4-w64-mingw32/include/stdlib.h:10,
                 from c:\mingw64\bin\../lib/gcc/x86_64-w64-mingw32/4.7.1/../../../../x86_6
4-w64-mingw32/include/intrin.h:21,
                 from c:\mingw64\bin\../lib/gcc/x86_64-w64-mingw32/4.7.1/../../../../x86_6
4-w64-mingw32/include/winnt.h:1472,
                 from c:\mingw64\bin\../lib/gcc/x86_64-w64-mingw32/4.7.1/../../../../x86_6
4-w64-mingw32/include/windef.h:139,
                 from c:\mingw64\bin\../lib/gcc/x86_64-w64-mingw32/4.7.1/../../../../x86_6
4-w64-mingw32/include/windows.h:69,
                 from C:/Users/milias/Downloads/openmpi-1.6.3/openmpi-1.6.3/opal/win32/win
_compat.h:59,
                 from C:/Users/milias/Downloads/openmpi-1.6.3/openmpi-1.6.3/opal/include/o
pal_config_bottom.h:258,
                 from C:/OpenMPI-1.6.3_MinGW64/opal/include/opal_config.h:1468,
                 from C:\OpenMPI-1.6.3_MinGW64\opal\datatype\opal_datatype_pack_checksum.c
:21:
c:\mingw64\bin\../lib/gcc/x86_64-w64-mingw32/4.7.1/../../../../x86_64-w64-mingw32/include/
limits.h:20:0: note: this is the location of the previous definition
In file included from C:/OpenMPI-1.6.3_MinGW64/opal/include/opal_config.h:1468:0,
                 from C:\OpenMPI-1.6.3_MinGW64\opal\datatype\opal_datatype_pack_checksum.c
:21:
C:/Users/milias/Downloads/openmpi-1.6.3/openmpi-1.6.3/opal/include/opal_config_bottom.h:55
9:0: warning: "PF_UNSPEC" redefined [enabled by default]
In file included from C:/Users/milias/Downloads/openmpi-1.6.3/openmpi-1.6.3/opal/win32/win
_compat.h:68:0,
                 from C:/Users/milias/Downloads/openmpi-1.6.3/openmpi-1.6.3/opal/include/o
pal_config_bottom.h:258,
                 from C:/OpenMPI-1.6.3_MinGW64/opal/include/opal_config.h:1468,
                 from C:\OpenMPI-1.6.3_MinGW64\opal\datatype\opal_datatype_pack_checksum.c
:21:
c:\mingw64\bin\../lib/gcc/x86_64-w64-mingw32/4.7.1/../../../../x86_64-w64-mingw32/include/
winsock2.h:268:0: note: this is the location of the previous definition
In file included from C:/OpenMPI-1.6.3_MinGW64/opal/include/opal_config.h:1468:0,
                 from C:\OpenMPI-1.6.3_MinGW64\opal\datatype\opal_datatype_pack_checksum.c
:21:
C:/Users/milias/Downloads/openmpi-1.6.3/openmpi-1.6.3/opal/include/opal_config_bottom.h:56
2:0: warning: "AF_INET6" redefined [enabled by default]
In file included from C:/Users/milias/Downloads/openmpi-1.6.3/openmpi-1.6.3/opal/win32/win
_compat.h:68:0,
                 from C:/Users/milias/Downloads/openmpi-1.6.3/openmpi-1.6.3/opal/include/o
pal_config_bottom.h:258,
                 from C:/OpenMPI-1.6.3_MinGW64/opal/include/opal_config.h:1468,
                 from C:\OpenMPI-1.6.3_MinGW64\opal\datatype\opal_datatype_pack_checksum.c
:21:
c:\mingw64\bin\../lib/gcc/x86_64-w64-mingw32/4.7.1/../../../../x86_64-w64-mingw32/include/
winsock2.h:243:0: note: this is the location of the previous definition
In file included from C:/OpenMPI-1.6.3_MinGW64/opal/include/opal_config.h:1468:0,
                 from C:\OpenMPI-1.6.3_MinGW64\opal\datatype\opal_datatype_pack_checksum.c
:21:
C:/Users/milias/Downloads/openmpi-1.6.3/openmpi-1.6.3/opal/include/opal_config_bottom.h:56
5:0: warning: "PF_INET6" redefined [enabled by default]
In file included from C:/Users/milias/Downloads/openmpi-1.6.3/openmpi-1.6.3/opal/win32/win
_compat.h:68:0,
                 from C:/Users/milias/Downloads/openmpi-1.6.3/openmpi-1.6.3/opal/include/o
pal_config_bottom.h:258,
                 from C:/OpenMPI-1.6.3_MinGW64/opal/include/opal_config.h:1468,
                 from C:\OpenMPI-1.6.3_MinGW64\opal\datatype\opal_datatype_pack_checksum.c
:21:
c:\mingw64\bin\../lib/gcc/x86_64-w64-mingw32/4.7.1/../../../../x86_64-w64-mingw32/include/
winsock2.h:292:0: note: this is the location of the previous definition
mingw32-make[2]: *** [opal/CMakeFiles/libopen-pal.dir/datatype/opal_datatype_pack_checksum
.obj] Error 1
mingw32-make[1]: *** [opal/CMakeFiles/libopen-pal.dir/all] Error 2
mingw32-make: *** [all] Error 2

C:\OpenMPI-1.6.3_MinGW64>