Error when compiling mpi4py in windows with msmpi

814 views
Skip to first unread message

chaithu krishna

unread,
Aug 18, 2014, 1:36:40 AM8/18/14
to mpi...@googlegroups.com
Hi Guys,

I have a problem with windows installation of mpi4py. I installed Microsoft MPI. I downloaded the source from bitbucket repo. I altered my mpi.cfg file in this way.

[msmpi]
mpi_dir = $C:\Program Files\Microsoft MPI
include_dirs = %(mpi_dir)s\Inc
libraries = msmpi
library_dirs = %(mpi_dir)s\lib\i386

I ran the following command

  python setup.py build --mpi=msmpi

and It gave me the following 

C:\Users\chaithuzz2\Desktop\mpi4py-1.3.1>SET VS90COMNTOOLS=%VS110COMNTOOLS%

C:\Users\chaithuzz2\Desktop\mpi4py-1.3.1>python setup.py build --mpi=msmpi
running build
running build_src
running build_py
running build_clib
MPI configuration: [msmpi] from 'mpi.cfg'
checking for library 'pthread' ...
C:\Program Files\Microsoft Visual Studio 11.0\VC\BIN\cl.exe /c /nologo /Ox /MD /
W3 /GS- /DNDEBUG "-I$C:\Program Files\Microsoft MPI\Inc" /Tc_configtest.c /Fo_co
nfigtest.obj
_configtest.c
C:\Program Files\Microsoft Visual Studio 11.0\VC\BIN\link.exe /nologo /INCREMENT
AL:NO /MANIFEST "/LIBPATH:$C:\Program Files\Microsoft MPI\lib\i386" pthread.lib
msmpi.lib _configtest.obj /OUT:_configtest.exe /MANIFESTFILE:_configtest.exe.man
ifest
LINK : fatal error LNK1181: cannot open input file 'pthread.lib'
failure.
removing: _configtest.c _configtest.obj
checking for library 'mpe' ...
C:\Program Files\Microsoft Visual Studio 11.0\VC\BIN\cl.exe /c /nologo /Ox /MD /
W3 /GS- /DNDEBUG "-I$C:\Program Files\Microsoft MPI\Inc" /Tc_configtest.c /Fo_co
nfigtest.obj
_configtest.c
C:\Program Files\Microsoft Visual Studio 11.0\VC\BIN\link.exe /nologo /INCREMENT
AL:NO /MANIFEST "/LIBPATH:$C:\Program Files\Microsoft MPI\lib\i386" mpe.lib msmp
i.lib _configtest.obj /OUT:_configtest.exe /MANIFESTFILE:_configtest.exe.manifes
t
LINK : fatal error LNK1181: cannot open input file 'mpe.lib'
failure.
removing: _configtest.c _configtest.obj
checking for library 'lmpe' ...
C:\Program Files\Microsoft Visual Studio 11.0\VC\BIN\cl.exe /c /nologo /Ox /MD /
W3 /GS- /DNDEBUG "-I$C:\Program Files\Microsoft MPI\Inc" /Tc_configtest.c /Fo_co
nfigtest.obj
_configtest.c
C:\Program Files\Microsoft Visual Studio 11.0\VC\BIN\link.exe /nologo /INCREMENT
AL:NO /MANIFEST "/LIBPATH:$C:\Program Files\Microsoft MPI\lib\i386" lmpe.lib msm
pi.lib _configtest.obj /OUT:_configtest.exe /MANIFESTFILE:_configtest.exe.manife
st
LINK : fatal error LNK1181: cannot open input file 'lmpe.lib'
failure.
removing: _configtest.c _configtest.obj
building 'mpe' dylib library
creating build\temp.win32-2.7
creating build\temp.win32-2.7\src
C:\Program Files\Microsoft Visual Studio 11.0\VC\BIN\cl.exe /c /nologo /Ox /MD /
W3 /GS- /DNDEBUG "-I$C:\Program Files\Microsoft MPI\Inc" /Tcsrc\pmpi-mpe.c /Fobu
ild\temp.win32-2.7\src\pmpi-mpe.obj
pmpi-mpe.c
src\pmpi-mpe.c(2) : fatal error C1083: Cannot open include file: 'mpi.h': No suc
h file or directory
warning: build_clib: building library "mpe" failed

warning: build_clib: command '"C:\Program Files\Microsoft Visual Studio 11.0\VC\
BIN\cl.exe"' failed with exit status 2

checking for library 'vt-mpi' ...
C:\Program Files\Microsoft Visual Studio 11.0\VC\BIN\cl.exe /c /nologo /Ox /MD /
W3 /GS- /DNDEBUG "-I$C:\Program Files\Microsoft MPI\Inc" /Tc_configtest.c /Fo_co
nfigtest.obj
_configtest.c
C:\Program Files\Microsoft Visual Studio 11.0\VC\BIN\link.exe /nologo /INCREMENT
AL:NO /MANIFEST "/LIBPATH:$C:\Program Files\Microsoft MPI\lib\i386" vt-mpi.lib m
smpi.lib _configtest.obj /OUT:_configtest.exe /MANIFESTFILE:_configtest.exe.mani
fest
LINK : fatal error LNK1181: cannot open input file 'vt-mpi.lib'
failure.
removing: _configtest.c _configtest.obj
checking for library 'vt.mpi' ...
C:\Program Files\Microsoft Visual Studio 11.0\VC\BIN\cl.exe /c /nologo /Ox /MD /
W3 /GS- /DNDEBUG "-I$C:\Program Files\Microsoft MPI\Inc" /Tc_configtest.c /Fo_co
nfigtest.obj
_configtest.c
C:\Program Files\Microsoft Visual Studio 11.0\VC\BIN\link.exe /nologo /INCREMENT
AL:NO /MANIFEST "/LIBPATH:$C:\Program Files\Microsoft MPI\lib\i386" vt.mpi.lib m
smpi.lib _configtest.obj /OUT:_configtest.exe /MANIFESTFILE:_configtest.exe.mani
fest
LINK : fatal error LNK1181: cannot open input file 'vt.mpi.lib'
failure.
removing: _configtest.c _configtest.obj
building 'vt' dylib library
C:\Program Files\Microsoft Visual Studio 11.0\VC\BIN\cl.exe /c /nologo /Ox /MD /
W3 /GS- /DNDEBUG "-I$C:\Program Files\Microsoft MPI\Inc" /Tcsrc\pmpi-vt.c /Fobui
ld\temp.win32-2.7\src\pmpi-vt.obj
pmpi-vt.c
src\pmpi-vt.c(2) : fatal error C1083: Cannot open include file: 'mpi.h': No such
 file or directory
warning: build_clib: building library "vt" failed

warning: build_clib: command '"C:\Program Files\Microsoft Visual Studio 11.0\VC\
BIN\cl.exe"' failed with exit status 2

checking for library 'vt-mpi' ...
C:\Program Files\Microsoft Visual Studio 11.0\VC\BIN\cl.exe /c /nologo /Ox /MD /
W3 /GS- /DNDEBUG "-I$C:\Program Files\Microsoft MPI\Inc" /Tc_configtest.c /Fo_co
nfigtest.obj
_configtest.c
C:\Program Files\Microsoft Visual Studio 11.0\VC\BIN\link.exe /nologo /INCREMENT
AL:NO /MANIFEST "/LIBPATH:$C:\Program Files\Microsoft MPI\lib\i386" vt-mpi.lib m
smpi.lib _configtest.obj /OUT:_configtest.exe /MANIFESTFILE:_configtest.exe.mani
fest
LINK : fatal error LNK1181: cannot open input file 'vt-mpi.lib'
failure.
removing: _configtest.c _configtest.obj
building 'vt-mpi' dylib library
C:\Program Files\Microsoft Visual Studio 11.0\VC\BIN\cl.exe /c /nologo /Ox /MD /
W3 /GS- /DNDEBUG "-I$C:\Program Files\Microsoft MPI\Inc" /Tcsrc\pmpi-vt-mpi.c /F
obuild\temp.win32-2.7\src\pmpi-vt-mpi.obj
pmpi-vt-mpi.c
src\pmpi-vt-mpi.c(2) : fatal error C1083: Cannot open include file: 'mpi.h': No
such file or directory
warning: build_clib: building library "vt-mpi" failed

warning: build_clib: command '"C:\Program Files\Microsoft Visual Studio 11.0\VC\
BIN\cl.exe"' failed with exit status 2

checking for library 'vt-hyb' ...
C:\Program Files\Microsoft Visual Studio 11.0\VC\BIN\cl.exe /c /nologo /Ox /MD /
W3 /GS- /DNDEBUG "-I$C:\Program Files\Microsoft MPI\Inc" /Tc_configtest.c /Fo_co
nfigtest.obj
_configtest.c
C:\Program Files\Microsoft Visual Studio 11.0\VC\BIN\link.exe /nologo /INCREMENT
AL:NO /MANIFEST "/LIBPATH:$C:\Program Files\Microsoft MPI\lib\i386" vt-hyb.lib m
smpi.lib _configtest.obj /OUT:_configtest.exe /MANIFESTFILE:_configtest.exe.mani
fest
LINK : fatal error LNK1181: cannot open input file 'vt-hyb.lib'
failure.
removing: _configtest.c _configtest.obj
building 'vt-hyb' dylib library
C:\Program Files\Microsoft Visual Studio 11.0\VC\BIN\cl.exe /c /nologo /Ox /MD /
W3 /GS- /DNDEBUG "-I$C:\Program Files\Microsoft MPI\Inc" /Tcsrc\pmpi-vt-hyb.c /F
obuild\temp.win32-2.7\src\pmpi-vt-hyb.obj
pmpi-vt-hyb.c
src\pmpi-vt-hyb.c(2) : fatal error C1083: Cannot open include file: 'mpi.h': No
such file or directory
warning: build_clib: building library "vt-hyb" failed

warning: build_clib: command '"C:\Program Files\Microsoft Visual Studio 11.0\VC\
BIN\cl.exe"' failed with exit status 2

running build_ext
MPI configuration: [msmpi] from 'mpi.cfg'
checking for MPI compile and link ...
checking for header 'mpi.h' ...
C:\Program Files\Microsoft Visual Studio 11.0\VC\BIN\cl.exe /c /nologo /Ox /MD /
W3 /GS- /DNDEBUG -IC:\Python27\2.7.3\include -IC:\Python27\2.7.3\PC "-I$C:\Progr
am Files\Microsoft MPI\Inc" /Tc_configtest.c /Fo_configtest.obj
_configtest.c
_configtest.c(2) : fatal error C1083: Cannot open include file: 'mpi.h': No such
 file or directory
failure.
removing: _configtest.c _configtest.obj
failure.
error: Cannot find 'mpi.h' header. Check your configuration!!!

Can you please tell me how to resolve this ?

Thanks,
Krishna 
 
 

Lisandro Dalcin

unread,
Aug 18, 2014, 2:52:18 AM8/18/14
to mpi4py
On 18 August 2014 08:36, chaithu krishna <chaithuk...@gmail.com> wrote:
> mpi_dir = $C:\Program Files\Microsoft MPI

I think you have to remove the "$" before the "C:"

--
Lisandro Dalcin
---------------
CIMEC (UNL/CONICET)
Predio CONICET-Santa Fe
Colectora RN 168 Km 472, Paraje El Pozo
3000 Santa Fe, Argentina
Tel: +54-342-4511594 (ext 1016)
Tel/Fax: +54-342-4511169

chaithu krishna

unread,
Aug 18, 2014, 3:12:03 AM8/18/14
to mpi...@googlegroups.com
Hi Lisandro,

Thanks for your quick response. I changed it and build proceeded. In between I saw some fatal errors like this.

LINK : fatal error LNK1181: cannot open input file 'pthread.lib'
failure.

LINK : fatal error LNK1181: cannot open input file 'mpe.lib'
failure.

LINK : fatal error LNK1181: cannot open input file 'lmpe.lib'
failure.

_configtest.c(3) : fatal error C1083: Cannot open include file: 'mpe.h': No such
 file or directory

and also when installing

C:\Users\chaithuzz2\Desktop\mpi4py-1.3.1>python setup.py install
running install
running build
running build_src
running build_py
running build_clib
error: section/s 'mpi-win32,mpi' not found in file/s 'mpi.cfg'
MPI configuration: [mpich2] from 'C:\Program Files\MPICH2'
running build_ext
error: section/s 'mpi-win32,mpi' not found in file/s 'mpi.cfg'
MPI configuration: [mpich2] from 'C:\Program Files\MPICH2'
running build_exe
error: section/s 'mpi-win32,mpi' not found in file/s 'mpi.cfg'
MPI configuration: [mpich2] from 'C:\Program Files\MPICH2'
running install_lib

After installing I ran the demo helloworld program and it gave the following error.

C:\Users\chaithuzz2\Desktop\mpi4py-1.3.1>mpiexec -n 4 python demo\helloworld.py

job aborted:
[ranks] message

[0-3] fatal error
Fatal error in MPI_Comm_get_errhandler: Invalid communicator, error stack:
MPI_Comm_get_errhandler(comm=0x0, errhandler=0x5E729CC0) failed
Invalid communicator

---- error analysis -----

[0-3] on chaithu-pc
mpi has detected a fatal error and aborted python

---- error analysis -----

Can you please give me an Insight in to this error ?

Thank you so much,

Krishna





Lisandro Dalcin

unread,
Aug 18, 2014, 4:28:42 AM8/18/14
to mpi4py
On 18 August 2014 10:12, chaithu krishna <chaithuk...@gmail.com> wrote:
>> Hi Lisandro,
>
>
> Thanks for your quick response. I changed it and build proceeded. In between
> I saw some fatal errors like this.
>
> LINK : fatal error LNK1181: cannot open input file 'pthread.lib'
> failure.
>
> LINK : fatal error LNK1181: cannot open input file 'mpe.lib'
> failure.
>
> LINK : fatal error LNK1181: cannot open input file 'lmpe.lib'
> failure.
>
> _configtest.c(3) : fatal error C1083: Cannot open include file: 'mpe.h': No
> such
> file or directory
>

You can ignore these errors, they originate in configure tests for
extra features, the build does not abort. Unfortunately, Python's
distutils does not let me easily silent these configure test failures.

> and also when installing
>
> C:\Users\chaithuzz2\Desktop\mpi4py-1.3.1>python setup.py install
> running install
> running build
> running build_src
> running build_py
> running build_clib
> error: section/s 'mpi-win32,mpi' not found in file/s 'mpi.cfg'
> MPI configuration: [mpich2] from 'C:\Program Files\MPICH2'
> running build_ext
> error: section/s 'mpi-win32,mpi' not found in file/s 'mpi.cfg'
> MPI configuration: [mpich2] from 'C:\Program Files\MPICH2'
> running build_exe
> error: section/s 'mpi-win32,mpi' not found in file/s 'mpi.cfg'
> MPI configuration: [mpich2] from 'C:\Program Files\MPICH2'
> running install_lib
>

You need to add --mpi=msmpi, i.e:

python setup.py install --mpi=msmpi

But anyway, I think your install succeeded anyway.

> After installing I ran the demo helloworld program and it gave the following
> error.
>
> C:\Users\chaithuzz2\Desktop\mpi4py-1.3.1>mpiexec -n 4 python
> demo\helloworld.py
>
> job aborted:
> [ranks] message
>
> [0-3] fatal error
> Fatal error in MPI_Comm_get_errhandler: Invalid communicator, error stack:
> MPI_Comm_get_errhandler(comm=0x0, errhandler=0x5E729CC0) failed
> Invalid communicator
>
> ---- error analysis -----
>
> [0-3] on chaithu-pc
> mpi has detected a fatal error and aborted python
>
> ---- error analysis -----
>
> Can you please give me an Insight in to this error ?
>

Not sure what's going on.

I would suggest to try mpi4py development from the master branch (you
need to install Cython before)
https://bitbucket.org/mpi4py/mpi4py/get/master.zip

Can you point me to the exact MS MPI you installed? I'm not really a
Windows guy, but I can try to test in a box I have access to.

chaithu krishna

unread,
Aug 18, 2014, 4:47:32 AM8/18/14
to mpi...@googlegroups.com
Hi Lisandro,


I will try to download the master branch and let you know how it goes ASAP. When building, I saw some errors like "ERROR : syntax error at ...... " and some others related to the source. Is it normal ?

Thanks  

Lisandro Dalcin

unread,
Aug 18, 2014, 4:49:30 AM8/18/14
to mpi4py
On 18 August 2014 11:47, chaithu krishna <chaithuk...@gmail.com> wrote:
> When building, I saw some errors like "ERROR : syntax error at ...... " and
> some others related to the source. Is it normal ?

No, that is not normal. Could you show me the full output?

chaithu krishna

unread,
Aug 18, 2014, 5:07:54 AM8/18/14
to mpi...@googlegroups.com
I'm attaching the log file while building. Please check it out.

   Krishna
 
log.txt

Lisandro Dalcin

unread,
Aug 18, 2014, 5:29:15 AM8/18/14
to mpi4py
On 18 August 2014 12:07, chaithu krishna <chaithuk...@gmail.com> wrote:
>> I'm attaching the log file while building. Please check it out.
>

Is this output from the the master branch or from the 1.3.1 tarball?

chaithu krishna

unread,
Aug 18, 2014, 5:32:52 AM8/18/14
to mpi...@googlegroups.com
>> Is this output from the the master branch or from the 1.3.1 tarball?

This is from 1.3.1 tarball.

  
 

chaithu krishna

unread,
Aug 18, 2014, 6:37:14 AM8/18/14
to mpi...@googlegroups.com
Hi Lisandro,

With the master version. While building i get the following error. Is this related to visual studio 2012 I'm using. I also have visual studio 2013 version. But I set the variable to use 2012 version as you can see below.

C:\Users\chaithuzz2\Desktop\mpi4py-mpi4py-0d276ac33751>SET VS90COMNTOOLS=%VS110C
OMNTOOLS%

C:\Users\chaithuzz2\Desktop\mpi4py-mpi4py-0d276ac33751>python setup.py build --m
pi=msmpi
running build
running build_src
running build_py
running build_clib
MPI configuration: [msmpi] from 'mpi.cfg'
checking for library 'lmpe' ...
C:\Program Files\Microsoft Visual Studio 11.0\VC\BIN\cl.exe /c /nologo /Ox /MD /
W3 /GS- /DNDEBUG "-IC:\Program Files\Microsoft MPI\Inc" /Tc_configtest.c /Fo_con
figtest.obj
_configtest.c
C:\Program Files\Microsoft Visual Studio 11.0\VC\BIN\link.exe /nologo /INCREMENT
AL:NO /MANIFEST "/LIBPATH:C:\Program Files\Microsoft MPI\lib\i386" lmpe.lib msmp
i.lib _configtest.obj /OUT:_configtest.exe /MANIFESTFILE:_configtest.exe.manifes
t
LINK : fatal error LNK1181: cannot open input file 'lmpe.lib'
failure.
removing: _configtest.c _configtest.obj
building 'mpe' dylib library
creating build\temp.win32-2.7
creating build\temp.win32-2.7\src
C:\Program Files\Microsoft Visual Studio 11.0\VC\BIN\cl.exe /c /nologo /Ox /MD /
W3 /GS- /DNDEBUG "-IC:\Program Files\Microsoft MPI\Inc" /Tcsrc\pmpi-mpe.c /Fobui
ld\temp.win32-2.7\src\pmpi-mpe.obj
pmpi-mpe.c
Traceback (most recent call last):
  File "setup.py", line 583, in <module>
    main()
  File "setup.py", line 580, in main
    run_setup()
  File "setup.py", line 451, in run_setup
    **metadata)
  File "C:\Users\chaithuzz2\Desktop\mpi4py-mpi4py-0d276ac33751\conf\mpidistutils
.py", line 434, in setup
    return fcn_setup(**attrs)
  File "C:\Python27\2.7.3\lib\distutils\core.py", line 152, in setup
    dist.run_commands()
  File "C:\Python27\2.7.3\lib\distutils\dist.py", line 953, in run_commands
    self.run_command(cmd)
  File "C:\Python27\2.7.3\lib\distutils\dist.py", line 972, in run_command
    cmd_obj.run()
  File "C:\Python27\2.7.3\lib\distutils\command\build.py", line 127, in run
    self.run_command(cmd_name)
  File "C:\Python27\2.7.3\lib\distutils\cmd.py", line 326, in run_command
    self.distribution.run_command(command)
  File "C:\Python27\2.7.3\lib\distutils\dist.py", line 972, in run_command
    cmd_obj.run()
  File "C:\Users\chaithuzz2\Desktop\mpi4py-mpi4py-0d276ac33751\conf\mpidistutils
.py", line 853, in run
    self.build_libraries(self.libraries_so)
  File "C:\Users\chaithuzz2\Desktop\mpi4py-mpi4py-0d276ac33751\conf\mpidistutils
.py", line 863, in build_libraries
    self.build_library(lib)
  File "C:\Users\chaithuzz2\Desktop\mpi4py-mpi4py-0d276ac33751\conf\mpidistutils
.py", line 940, in build_library
    linker_so = self.compiler.linker_so[:]
AttributeError: MSVCCompiler instance has no attribute 'linker_so'


Krishna

Lisandro Dalcin

unread,
Aug 18, 2014, 7:51:07 AM8/18/14
to mpi4py
On 18 August 2014 13:37, chaithu krishna <chaithuk...@gmail.com> wrote:
> AttributeError: MSVCCompiler instance has no attribute 'linker_so'

Good catch. I've pushed a fix. Please download the master branch again
(or perhaps better use git to clone the repository).

chaithu krishna

unread,
Aug 18, 2014, 8:13:06 AM8/18/14
to mpi...@googlegroups.com
Thank you very much. I will let you know how it goes. I'm having some git clone issues on my PC. Can i download it from bitbucket Downloads folder in which there is a link "Download repository". Will that give me the latest master branch ?

Krishna 

Lisandro Dalcin

unread,
Aug 18, 2014, 8:15:04 AM8/18/14
to mpi4py
On 18 August 2014 15:13, chaithu krishna <chaithuk...@gmail.com> wrote:
> Can i download it from bitbucket Downloads folder in which there is a link
> "Download repository". Will that give me the latest master branch ?


Yes.

chaithu krishna

unread,
Aug 18, 2014, 8:19:22 AM8/18/14
to mpi...@googlegroups.com
I get the following when I tried the latest master version. 

C:\Users\chaithuzz2\Desktop\mpi4py-mpi4py-44e118b26963>python setup.py build --m
pi=msmpi
running build
running build_src
running build_py
running build_clib
MPI configuration: [msmpi] from 'mpi.cfg'
running build_ext
MPI configuration: [msmpi] from 'mpi.cfg'
checking for MPI compile and link ...
checking for header 'mpi.h' ...
C:\Program Files\Microsoft Visual Studio 11.0\VC\BIN\cl.exe /c /nologo /Ox /MD /
W3 /GS- /DNDEBUG -IC:\Python27\2.7.3\include -IC:\Python27\2.7.3\PC "-IC:\Progra
m Files\Microsoft MPI\Inc" /Tc_configtest.c /Fo_configtest.obj
_configtest.c
success!
removing: _configtest.c _configtest.obj
success!
C:\Program Files\Microsoft Visual Studio 11.0\VC\BIN\cl.exe /c /nologo /Ox /MD /
W3 /GS- /DNDEBUG -IC:\Python27\2.7.3\include -IC:\Python27\2.7.3\PC "-IC:\Progra
m Files\Microsoft MPI\Inc" /Tc_configtest.c /Fo_configtest.obj
_configtest.c
success!
removing: _configtest.c _configtest.obj
C:\Program Files\Microsoft Visual Studio 11.0\VC\BIN\cl.exe /c /nologo /Ox /MD /
W3 /GS- /DNDEBUG -IC:\Python27\2.7.3\include -IC:\Python27\2.7.3\PC "-IC:\Progra
m Files\Microsoft MPI\Inc" /Tc_configtest.c /Fo_configtest.obj
_configtest.c
C:\Program Files\Microsoft Visual Studio 11.0\VC\BIN\link.exe /nologo /INCREMENT
AL:NO /MANIFEST /LIBPATH:C:\Python27\2.7.3\libs /LIBPATH:C:\Python27\2.7.3\PCbui
ld /LIBPATH:build\temp.win32-2.7 "/LIBPATH:C:\Program Files\Microsoft MPI\lib\i3
86" msmpi.lib _configtest.obj /OUT:_configtest.exe /MANIFESTFILE:_configtest.exe
.manifest
C:\Program Files\Windows Kits\8.0\bin\x86\mt.exe -nologo -manifest _configtest.e
xe.manifest -outputresource:_configtest.exe;1
success!
removing: _configtest.c _configtest.obj _configtest.exe _configtest.exe.manifest

checking for missing MPI functions/symbols ...
C:\Program Files\Microsoft Visual Studio 11.0\VC\BIN\cl.exe /c /nologo /Ox /MD /
W3 /GS- /DNDEBUG -IC:\Python27\2.7.3\include -IC:\Python27\2.7.3\PC "-IC:\Progra
m Files\Microsoft MPI\Inc" /Tc_configtest.c /Fo_configtest.obj
_configtest.c
success!
removing: _configtest.c _configtest.obj
checking for function 'MPI_Type_create_f90_integer' ...
C:\Program Files\Microsoft Visual Studio 11.0\VC\BIN\cl.exe /c /nologo /Ox /MD /
W3 /GS- /DNDEBUG -IC:\Python27\2.7.3\include -IC:\Python27\2.7.3\PC "-IC:\Progra
m Files\Microsoft MPI\Inc" /Tc_configtest.c /Fo_configtest.obj
_configtest.c
C:\Program Files\Microsoft Visual Studio 11.0\VC\BIN\link.exe /nologo /INCREMENT
AL:NO /MANIFEST /LIBPATH:C:\Python27\2.7.3\libs /LIBPATH:C:\Python27\2.7.3\PCbui
ld /LIBPATH:build\temp.win32-2.7 "/LIBPATH:C:\Program Files\Microsoft MPI\lib\i3
86" msmpi.lib _configtest.obj /OUT:_configtest.exe /MANIFESTFILE:_configtest.exe
.manifest
_configtest.obj : error LNK2019: unresolved external symbol _MPI_Type_create_f90
_integer referenced in function _main
_configtest.exe : fatal error LNK1120: 1 unresolved externals
failure.
removing: _configtest.c _configtest.obj _configtest.exe.manifest
checking for function 'MPI_Type_create_f90_real' ...
C:\Program Files\Microsoft Visual Studio 11.0\VC\BIN\cl.exe /c /nologo /Ox /MD /
W3 /GS- /DNDEBUG -IC:\Python27\2.7.3\include -IC:\Python27\2.7.3\PC "-IC:\Progra
m Files\Microsoft MPI\Inc" /Tc_configtest.c /Fo_configtest.obj
_configtest.c
C:\Program Files\Microsoft Visual Studio 11.0\VC\BIN\link.exe /nologo /INCREMENT
AL:NO /MANIFEST /LIBPATH:C:\Python27\2.7.3\libs /LIBPATH:C:\Python27\2.7.3\PCbui
ld /LIBPATH:build\temp.win32-2.7 "/LIBPATH:C:\Program Files\Microsoft MPI\lib\i3
86" msmpi.lib _configtest.obj /OUT:_configtest.exe /MANIFESTFILE:_configtest.exe
.manifest
_configtest.obj : error LNK2019: unresolved external symbol _MPI_Type_create_f90
_real referenced in function _main
_configtest.exe : fatal error LNK1120: 1 unresolved externals
failure.
removing: _configtest.c _configtest.obj _configtest.exe.manifest
checking for function 'MPI_Type_create_f90_complex' ...
C:\Program Files\Microsoft Visual Studio 11.0\VC\BIN\cl.exe /c /nologo /Ox /MD /
W3 /GS- /DNDEBUG -IC:\Python27\2.7.3\include -IC:\Python27\2.7.3\PC "-IC:\Progra
m Files\Microsoft MPI\Inc" /Tc_configtest.c /Fo_configtest.obj
_configtest.c
C:\Program Files\Microsoft Visual Studio 11.0\VC\BIN\link.exe /nologo /INCREMENT
AL:NO /MANIFEST /LIBPATH:C:\Python27\2.7.3\libs /LIBPATH:C:\Python27\2.7.3\PCbui
ld /LIBPATH:build\temp.win32-2.7 "/LIBPATH:C:\Program Files\Microsoft MPI\lib\i3
86" msmpi.lib _configtest.obj /OUT:_configtest.exe /MANIFESTFILE:_configtest.exe
.manifest
_configtest.obj : error LNK2019: unresolved external symbol _MPI_Type_create_f90
_complex referenced in function _main
_configtest.exe : fatal error LNK1120: 1 unresolved externals
failure.
removing: _configtest.c _configtest.obj _configtest.exe.manifest
building 'mpi4py.MPI' extension
C:\Program Files\Microsoft Visual Studio 11.0\VC\BIN\cl.exe /c /nologo /Ox /MD /
W3 /GS- /DNDEBUG -DPyMPI_MISSING_MPI_Type_create_f90_integer=1 -DPyMPI_MISSING_M
PI_Type_create_f90_real=1 -DPyMPI_MISSING_MPI_Type_create_f90_complex=1 -IC:\Pyt
hon27\2.7.3\include -IC:\Python27\2.7.3\PC "-IC:\Program Files\Microsoft MPI\Inc
" /Tcsrc/MPI.c /Fobuild\temp.win32-2.7\Release\src/MPI.obj
MPI.c
c:\users\chaithuzz2\desktop\mpi4py-mpi4py-44e118b26963\src\mpi4py.MPI.c(135826)
: error C2440: '=' : cannot convert from 'int (__stdcall *)(MPI_Datatype,MPI_Ain
t *,void *)' to 'PyMPI_MPI_Datarep_extent_function (__cdecl *)'
c:\users\chaithuzz2\desktop\mpi4py-mpi4py-44e118b26963\src\mpi4py.MPI.c(135847)
: error C2440: '=' : cannot convert from 'int (__stdcall *)(void *,MPI_Datatype,
int,void *,MPI_Offset,void *)' to 'PyMPI_MPI_Datarep_conversion_function (__cdec
l *)'
c:\users\chaithuzz2\desktop\mpi4py-mpi4py-44e118b26963\src\mpi4py.MPI.c(135862)
: error C2440: '=' : cannot convert from 'int (__stdcall *)(void *,MPI_Datatype,
int,void *,MPI_Offset,void *)' to 'PyMPI_MPI_Datarep_conversion_function (__cdec
l *)'
error: command '"C:\Program Files\Microsoft Visual Studio 11.0\VC\BIN\cl.exe"' f
ailed with exit status 2
 

Lisandro Dalcin

unread,
Aug 18, 2014, 2:39:24 PM8/18/14
to mpi4py
Second catch, thanks! I've pushed a fix. Please try again.

Lisandro Dalcin

unread,
Aug 18, 2014, 5:20:08 PM8/18/14
to mpi4py
After spending a few hours setting up a virtual machine and pushing a
few fixes, now I confirm that everything seems to be working OK.

chaithu krishna

unread,
Aug 19, 2014, 7:19:14 AM8/19/14
to mpi...@googlegroups.com

Thank you very much Lisandro. I appreciate your help so much. No issues now. Thanks for mpi4py :-)

Cheers and Regards,

Krishna

ivan5c...@gmail.com

unread,
Apr 8, 2015, 2:37:31 PM4/8/15
to mpi...@googlegroups.com
I had the same problem and Cython solved them all. 
Thanks :)
Reply all
Reply to author
Forward
0 new messages