[Numpy-discussion] Building on WinXP 64-bit, Intel Compilers

Michael Colonno mcolonno@gmail....
Tue Jan 27 19:05:07 CST 2009


   Hi ~

   I'm trying to build numpy (hopefully eventually scipy with the same
setup) with the Intel compilers (and Intel MKL) on the WinXP 64-bit
platform. Finding / linking to the Intel MKL seems to be successful (see
below) but I have an issue with the settings defined somewhere in the
various setup scripts (can't find where). Per the output below, the Intel
compilers on Windows are looking for ".obj" object files rather than the
Linux-style ".o" files. I'd also like to get rid of the /L and -L flags (no
longer supported in Intel C++ v. 11.0 it seems) but this just throws a
warning and does not seem to cause any problems. Can anyone point me to the
python file(s) I need to edit to modify the .o object file setting to .obj?
(The file "_configtest.obj" is created.) Once operational, I'll pass along
all of my config info for anyone else building in this environment.

   Thanks!
   ~Mike C.


Output from build:

>>python setup.py config --compiler=intel --fcompiler=intelem install

Running from numpy source directory.
Forcing DISTUTILS_USE_SDK=1
F2PY Version 2_5972
blas_opt_info:
blas_mkl_info:
  FOUND:
    libraries = ['mkl_em64t', 'mkl_dll']
    library_dirs = ['C:\\Program Files (x86)\\Intel\\Compiler\\11.0\\
061\\cpp\\m
kl\\em64t\\lib']
    define_macros = [('SCIPY_MKL_H', None)]
    include_dirs = ['C:\\Program Files
(x86)\\Intel\\Compiler\\11.0\\061\\cpp\\m
kl\\include']

  FOUND:
    libraries = ['mkl_em64t', 'mkl_dll']
    library_dirs = ['C:\\Program Files
(x86)\\Intel\\Compiler\\11.0\\061\\cpp\\m
kl\\em64t\\lib']
    define_macros = [('SCIPY_MKL_H', None)]
    include_dirs = ['C:\\Program Files
(x86)\\Intel\\Compiler\\11.0\\061\\cpp\\m
kl\\include']

lapack_opt_info:
lapack_mkl_info:
mkl_info:
  FOUND:
    libraries = ['mkl_em64t', 'mkl_dll']
    library_dirs = ['C:\\Program Files
(x86)\\Intel\\Compiler\\11.0\\061\\cpp\\m
kl\\em64t\\lib']
    define_macros = [('SCIPY_MKL_H', None)]
    include_dirs = ['C:\\Program Files
(x86)\\Intel\\Compiler\\11.0\\061\\cpp\\m
kl\\include']

  FOUND:
    libraries = ['mkl_lapack', 'mkl_em64t', 'mkl_dll']
    library_dirs = ['C:\\Program Files
(x86)\\Intel\\Compiler\\11.0\\061\\cpp\\m
kl\\em64t\\lib']
    define_macros = [('SCIPY_MKL_H', None)]
    include_dirs = ['C:\\Program Files
(x86)\\Intel\\Compiler\\11.0\\061\\cpp\\m
kl\\include']

  FOUND:
    libraries = ['mkl_lapack', 'mkl_em64t', 'mkl_dll']
    library_dirs = ['C:\\Program Files
(x86)\\Intel\\Compiler\\11.0\\061\\cpp\\m
kl\\em64t\\lib']
    define_macros = [('SCIPY_MKL_H', None)]
    include_dirs = ['C:\\Program Files
(x86)\\Intel\\Compiler\\11.0\\061\\cpp\\m
kl\\include']

running config
running install
running build
running config_cc
unifing config_cc, config, build_clib, build_ext, build commands --compiler
opti
ons
running config_fc
unifing config_fc, config, build_clib, build_ext, build commands --fcompiler
opt
ions
running build_src
building py_modules sources
creating build
creating build\src.win32-2.5
creating build\src.win32-2.5\numpy
creating build\src.win32-2.5\numpy\distutils
building extension "numpy.core.multiarray" sources
creating build\src.win32-2.5\numpy\core
Generating build\src.win32-2.5\numpy\core\include/numpy\config.h
Could not locate executable icc
Could not locate executable ecc
Ignoring "MSVCCompiler instance has no attribute '_MSVCCompiler__root'" (I
think
 it is msvccompiler.py bug)
customize IntelEM64TFCompiler
Found executable C:\Program Files
(x86)\Intel\Compiler\11.0\061\fortran\Bin\inte
l64\ifort.exe
Found executable C:\Program Files
(x86)\Intel\Compiler\11.0\061\fortran\Bin\inte
l64\ifort.exe
C compiler: icl

compile options: '-IC:\Python25\include -Inumpy\core\src
-Inumpy\core\include -I
C:\Python25\include -IC:\Python25\PC -c'
icl: _configtest.c
Found executable C:\Program Files
(x86)\Intel\Compiler\11.0\061\cpp\Bin\intel64\
icl.exe
icl _configtest.o -LC:\Python25\lib -LC:\ -LC:\Python25\libs -o _configtest
Intel(R) C++ Intel(R) 64 Compiler Professional for applications running on
Intel
(R) 64, Version 11.0    Build 20080930 Package ID: w_cproc_p_11.0.061
Copyright (C) 1985-2008 Intel Corporation.  All rights reserved.
icl: command line warning #10161: unrecognized source type '_configtest.o';
obje
ct file assumed
icl: command line warning #10006: ignoring unknown option
'/LC:\Python25\lib'
icl: command line warning #10006: ignoring unknown option '/LC:\'
icl: command line warning #10006: ignoring unknown option
'/LC:\Python25\libs'

ipo: warning #11009: file format not recognized for _configtest.o
Microsoft (R) Incremental Linker Version 9.00.30729.01
Copyright (C) Microsoft Corporation.  All rights reserved.

-out:_configtest.exe
_configtest.o
LINK : fatal error LNK1181: cannot open input file '_configtest.o'
failure.
removing: _configtest.c _configtest.o
Traceback (most recent call last):
  File "setup.py", line 96, in <module>
    setup_package()
  File "setup.py", line 89, in setup_package
    configuration=configuration )
  File "C:\Documents and
Settings\mike\Desktop\Software\Python\numpy-1.2.1\numpy
\distutils\core.py", line 184, in setup
    return old_setup(**new_attr)
  File "C:\Python25\lib\distutils\core.py", line 151, in setup
    dist.run_commands()
  File "C:\Python25\lib\distutils\dist.py", line 974, in run_commands
    self.run_command(cmd)
  File "C:\Python25\lib\distutils\dist.py", line 994, in run_command
    cmd_obj.run()
  File "C:\Documents and
Settings\mike\Desktop\Software\Python\numpy-1.2.1\numpy
\distutils\command\install.py", line 49, in run
    r = old_install.run(self)
  File "C:\Python25\lib\distutils\command\install.py", line 506, in run
    self.run_command('build')
  File "C:\Python25\lib\distutils\cmd.py", line 333, in run_command
    self.distribution.run_command(command)
  File "C:\Python25\lib\distutils\dist.py", line 994, in run_command
    cmd_obj.run()
  File "C:\Documents and
Settings\mike\Desktop\Software\Python\numpy-1.2.1\numpy
\distutils\command\build.py", line 37, in run
    old_build.run(self)
  File "C:\Python25\lib\distutils\command\build.py", line 112, in run
    self.run_command(cmd_name)
  File "C:\Python25\lib\distutils\cmd.py", line 333, in run_command
    self.distribution.run_command(command)
  File "C:\Python25\lib\distutils\dist.py", line 994, in run_command
    cmd_obj.run()
  File "C:\Documents and
Settings\mike\Desktop\Software\Python\numpy-1.2.1\numpy
\distutils\command\build_src.py", line 130, in run
    self.build_sources()
  File "C:\Documents and
Settings\mike\Desktop\Software\Python\numpy-1.2.1\numpy
\distutils\command\build_src.py", line 147, in build_sources
    self.build_extension_sources(ext)
  File "C:\Documents and
Settings\mike\Desktop\Software\Python\numpy-1.2.1\numpy
\distutils\command\build_src.py", line 250, in build_extension_sources
    sources = self.generate_sources(sources, ext)
  File "C:\Documents and
Settings\mike\Desktop\Software\Python\numpy-1.2.1\numpy
\distutils\command\build_src.py", line 307, in generate_sources
    source = func(extension, build_dir)
  File "numpy\core\setup.py", line 87, in generate_config_h
    raise SystemError,"Failed to test configuration. "\
SystemError: Failed to test configuration. See previous error messages for
more
information.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://projects.scipy.org/pipermail/numpy-discussion/attachments/20090127/1258c1c0/attachment.html 


More information about the Numpy-discussion mailing list