Discussion:
Compiling OpenMPI under Vista
(too old to reply)
Philipp Kraus
2009-06-14 13:27:03 UTC
Permalink
Hello,

I try to compile OpenMPI (1.3.2) with MinGW under Win Vista (32 Bit)
only for developing and linking.
On running make it breaks down with errors:

c:/Library/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/winsock2.h:392:1:
warning: this is the location of the previous definition

event.c:38:18: misc.h: No such file or directory

In file included from event.c:41:

c:/Library/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/sys/time.h:27:
error: redefinition of `struct timezone'

c:/Library/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/sys/time.h:40:
error: conflicting types for 'gettimeofday'

../../opal/win32/ompi_time.h:179: error: previous declaration of
'gettimeofday' was here

c:/Library/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/sys/time.h:40:
error: conflicting types for 'gettimeofday'

../../opal/win32/ompi_time.h:179: error: previous declaration of
'gettimeofday' was here

make[3]: *** [event.lo] Error 1

make[3]: Leaving directory `/library/openmpi-1.3.2/opal/event'

make[2]: *** [all-recursive] Error 1

make[2]: Leaving directory `/library/openmpi-1.3.2/opal/event'

make[1]: *** [all-recursive] Error 1

make[1]: Leaving directory `/library/openmpi-1.3.2/opal'

Can anyone help me, please?

Thanks Phil
Michael Hofmann
2009-06-16 07:31:14 UTC
Permalink
Am 14.06.2009, 15:27 Uhr, schrieb Philipp Kraus
Post by Philipp Kraus
Hello,
I try to compile OpenMPI (1.3.2) with MinGW under Win Vista (32 Bit)
only for developing and linking.
warning: this is the location of the previous definition
event.c:38:18: misc.h: No such file or directory
error: redefinition of `struct timezone'
error: conflicting types for 'gettimeofday'
../../opal/win32/ompi_time.h:179: error: previous declaration of
'gettimeofday' was here
error: conflicting types for 'gettimeofday'
../../opal/win32/ompi_time.h:179: error: previous declaration of
'gettimeofday' was here
make[3]: *** [event.lo] Error 1
make[3]: Leaving directory `/library/openmpi-1.3.2/opal/event'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/library/openmpi-1.3.2/opal/event'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/library/openmpi-1.3.2/opal'
Can anyone help me, please?
There seems to be a conflict between the present "gettimeofday" in MinGW
and the built-in "gettimeofday" in OpenMPI. I guess only one of them
should be used at a time. Maybe there is a problem with the configure
script.

Ask the OpenMPI people. It is their piece of software.


Michael
Philipp Kraus
2009-06-18 17:16:35 UTC
Permalink
On 2009-06-16 09:31:14 +0200, "Michael Hofmann"
Post by Michael Hofmann
Post by Philipp Kraus
Hello,
I try to compile OpenMPI (1.3.2) with MinGW under Win Vista (32 Bit)
only for developing and linking.
warning: this is the location of the previous definition
event.c:38:18: misc.h: No such file or directory
error: redefinition of `struct timezone'
error: conflicting types for 'gettimeofday'
../../opal/win32/ompi_time.h:179: error: previous declaration of
'gettimeofday' was here
error: conflicting types for 'gettimeofday'
../../opal/win32/ompi_time.h:179: error: previous declaration of
'gettimeofday' was here
make[3]: *** [event.lo] Error 1
make[3]: Leaving directory `/library/openmpi-1.3.2/opal/event'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/library/openmpi-1.3.2/opal/event'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/library/openmpi-1.3.2/opal'
Can anyone help me, please?
There seems to be a conflict between the present "gettimeofday" in
MinGW and the built-in "gettimeofday" in OpenMPI. I guess only one of
them should be used at a time. Maybe there is a problem with the
configure script.
Ask the OpenMPI people. It is their piece of software.
I had posted a mail to the users mailinglist, but I got no answer. Is
there anyone how has compiled OpenMPI under Vista with MinGW oder
Cygwin (or VStudio) and can post some tips?

Thanks

Phil

Loading...