[Numpy-discussion] Building numpy with MSVC 2010 and Intel Fortran 10.x (and higher)

KACVINSKY Tom Tom.KACVINSKY at 3ds.com
Fri Jun 22 11:16:31 EDT 2012


I have reason to build Python 2.6.8 and numpy 1.4.1 with MSVC 2010 and Intel Fortran 10.1 (and higher).  I also am building with MKL 10.3.



So far, I am able to get the setup to recognize the MKL libraries:



C:\Users\tky\Python\numpy-1.6.2>python setup.py build --compiler=msvc --fcompiler=intel

Running from numpy source directory.Forcing DISTUTILS_USE_SDK=1

F2PY Version 2

blas_opt_info:

blas_mkl_info:

  FOUND:

    libraries = ['mkl_sequential_dll', 'mkl_intel_lp64_dll', 'mkl_core_dll']

    library_dirs = ['u:\\users\\tky\\mkllib']

    define_macros = [('SCIPY_MKL_H', None)]

    include_dirs = ['u:\\users\\tky\\mklinc']



  FOUND:

    libraries = ['mkl_sequential_dll', 'mkl_intel_lp64_dll', 'mkl_core_dll']

    library_dirs = ['u:\\users\\tky\\mkllib']

    define_macros = [('SCIPY_MKL_H', None)]

    include_dirs = ['u:\\users\\tky\\mklinc']



lapack_opt_info:

lapack_mkl_info:

mkl_info:

  FOUND:

    libraries = ['mkl_sequential_dll', 'mkl_intel_lp64_dll', 'mkl_core_dll']

    library_dirs = ['u:\\users\\tky\\mkllib']

    define_macros = [('SCIPY_MKL_H', None)]

    include_dirs = ['u:\\users\\tky\\mklinc']



  FOUND:

    libraries = ['mkl_sequential_dll mkl_intel_lp64_dll mkl_core_dll', 'mkl_sequential_dll', 'mkl_intel_lp64_dll', 'mkl_core_dll']

    library_dirs = ['u:\\users\\tky\\mkllib']

    define_macros = [('SCIPY_MKL_H', None)]

    include_dirs = ['u:\\users\\tky\\mklinc']



  FOUND:

    libraries = ['mkl_sequential_dll mkl_intel_lp64_dll mkl_core_dll', 'mkl_sequential_dll', 'mkl_intel_lp64_dll', 'mkl_core_dll']

    library_dirs = ['u:\\users\\tky\\mkllib']

    define_macros = [('SCIPY_MKL_H', None)]

    include_dirs = ['u:\\users\\tky\\mklinc']



But where things are failing is during the compiler checks:



customize IntelFCompiler

Found executable C:\Program Files (x86)\Intel\Compiler\Fortran\10.1.011\EM64T\bin\ifort.exe

Found executable C:\Program Files (x86)\Intel\Compiler\Fortran\10.1.011\EM64T\bin\ifort.exe

Traceback (most recent call last):

  File "setup.py", line 214, in <module>

    setup_package()

  File "setup.py", line 207, in setup_package

    configuration=configuration )

  File "C:\Users\tky\Python\numpy-1.6.2\numpy\distutils\core.py", line 186, in setup

    return old_setup(**new_attr)

  File "C:\Users\tky\Python\release\lib\distutils\core.py", line 152, in setup

    dist.run_commands()

  File "C:\Users\tky\Python\release\lib\distutils\dist.py", line 975, in run_commands

    self.run_command(cmd)

  File "C:\Users\tky\Python\release\lib\distutils\dist.py", line 995, in run_command

    cmd_obj.run()

  File "C:\Users\tky\Python\numpy-1.6.2\numpy\distutils\command\build.py", line 37, in run

    old_build.run(self)

  File "C:\Users\tky\Python\release\lib\distutils\command\build.py", line 134, in run

    self.run_command(cmd_name)

  File "C:\Users\tky\Python\release\lib\distutils\cmd.py", line 333, in run_command

    self.distribution.run_command(command)

  File "C:\Users\tky\Python\release\lib\distutils\dist.py", line 995, in run_command

    cmd_obj.run()

  File "C:\Users\tky\Python\numpy-1.6.2\numpy\distutils\command\build_src.py", line 152, in run

    self.build_sources()

  File "C:\Users\tky\Python\numpy-1.6.2\numpy\distutils\command\build_src.py", line 163, in build_sources

    self.build_library_sources(*libname_info)

  File "C:\Users\tky\Python\numpy-1.6.2\numpy\distutils\command\build_src.py", line 298, in build_library_sources

    sources = self.generate_sources(sources, (lib_name, build_info))

  File "C:\Users\tky\Python\numpy-1.6.2\numpy\distutils\command\build_src.py", line 385, in generate_sources

    source = func(extension, build_dir)

  File "numpy\core\setup.py", line 694, in get_mathlib_info

    st = config_cmd.try_link('int main(void) { return 0;}')

  File "C:\Users\tky\Python\release\lib\distutils\command\config.py", line 257, in try_link

    self._check_compiler()

  File "C:\Users\tky\Python\numpy-1.6.2\numpy\distutils\command\config.py", line 77, in _check_compiler

    self.fcompiler.customize(self.distribution)

  File "C:\Users\tky\Python\numpy-1.6.2\numpy\distutils\fcompiler\__init__.py", line 502, in customize

    get_flags('arch', aflags)

  File "C:\Users\tky\Python\numpy-1.6.2\numpy\distutils\fcompiler\__init__.py", line 491, in get_flags

    flags.extend(getattr(self.flag_vars, tag))

  File "C:\Users\tky\Python\numpy-1.6.2\numpy\distutils\environment.py", line 37, in __getattr__

    return self._get_var(name, conf_desc)

  File "C:\Users\tky\Python\numpy-1.6.2\numpy\distutils\environment.py", line 51, in _get_var

    var = self._hook_handler(name, hook)

  File "C:\Users\tky\Python\numpy-1.6.2\numpy\distutils\fcompiler\__init__.py", line 698, in _environment_hook

    return hook()

  File "C:\Users\tky\Python\numpy-1.6.2\numpy\distutils\fcompiler\intel.py", line 63, in get_flags_arch

    v = self.get_version()

  File "C:\Users\tky\Python\numpy-1.6.2\numpy\distutils\fcompiler\__init__.py", line 432, in get_version

    raise CompilerNotFound()

numpy.distutils.fcompiler.CompilerNotFound



Any ideas on how to circumvent this?



Thanks,



Tom




This email and any attachments are intended solely for the use of the individual or entity to whom it is addressed and may be confidential and/or privileged.

If you are not one of the named recipients or have received this email in error,

(i) you should not read, disclose, or copy it,

(ii) please notify sender of your receipt by reply email and delete this email and all attachments,

(iii) Dassault Systemes does not accept or assume any liability or responsibility for any use of or reliance on this email.

For other languages, go to http://www.3ds.com/terms/email-disclaimer
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20120622/95b93030/attachment.html>


More information about the NumPy-Discussion mailing list