Hi, additional to the patches used for building on cygwin openmpi-1.7rc5, a new one is needed for openmpi-1.9a1r27710 build. See attached for statfs usage.
As config parameters, I added "if-windows,shmem-windows" to --enable-mca-no-build=paffinity,installdirs-windows,timer-windows,shmem-sysv,if-windows,shmem-windows Question 1 : instead of a platform check should be better to check if statvfs or statfs are implemented on the platform ? Question 2: any specif reason to have reset the shared library version numbers ? On openmpi-1.9a1r27710 ./usr/bin/cygmpi-0.dll ./usr/bin/cygmpi_cxx-0.dll ./usr/bin/cygmpi_mpifh-0.dll ./usr/bin/cygmpi_usempi-0.dll ./usr/bin/cygopen-pal-0.dll ./usr/bin/cygopen-rte-0.dll ./usr/lib/openmpi/cygompi_dbg_msgq.dll On openmpi-1.7rc5 ./usr/bin/cygmpi-1.dll ./usr/bin/cygmpi_cxx-1.dll ./usr/bin/cygmpi_mpifh-2.dll ./usr/bin/cygmpi_usempi-1.dll ./usr/bin/cygopen-pal-5.dll ./usr/bin/cygopen-rte-5.dll ./usr/lib/openmpi/cygompi_dbg_msgq.dll Question 3: there is an alternative way to exclude all the "*-windows" mca instead of --enable-mca-no-build=installdirs-windows,timer-windows,if-windows,shmem-windows Regards Marco
--- origsrc/openmpi-1.9a1r27710/opal/util/path.c 2012-12-20 03:00:25.000000000 +0100 +++ src/openmpi-1.9a1r27710/opal/util/path.c 2012-12-21 14:34:15.432823000 +0100 @@ -547,7 +547,7 @@ #if defined(__SVR4) && defined(__sun) struct statvfs buf; #elif defined(__linux__) || defined (__BSD) || \ - (defined(__APPLE__) && defined(__MACH__)) + (defined(__APPLE__) && defined(__MACH__)) || defined(__CYGWIN__) struct statfs buf; #endif @@ -560,7 +560,7 @@ #if defined(__SVR4) && defined(__sun) rc = statvfs(path, &buf); #elif defined(__linux__) || defined (__BSD) || \ - (defined(__APPLE__) && defined(__MACH__)) + (defined(__APPLE__) && defined(__MACH__)) || defined(__CYGWIN__) rc = statfs(path, &buf); #endif err = errno;