Re: [SciPy-User] SciPy-User Digest, Vol 136, Issue 2
![](https://secure.gravatar.com/avatar/1b0e722a4823f29c56d7a97bc6500ccc.jpg?s=120&d=mm&r=g)
You can get numpy linked with MKL here: http://www.lfd.uci.edu/~gohlke/pythonlibs/#numpy On Dec 3, 2014 12:00 PM, <scipy-user-request@scipy.org> wrote:
Send SciPy-User mailing list submissions to scipy-user@scipy.org
To subscribe or unsubscribe via the World Wide Web, visit http://mail.scipy.org/mailman/listinfo/scipy-user or, via email, send a message with subject or body 'help' to scipy-user-request@scipy.org
You can reach the person managing the list at scipy-user-owner@scipy.org
When replying, please edit your Subject line so it is more specific than "Re: Contents of SciPy-User digest..."
Today's Topics:
1. Re: NumPy/SciPy compilation VC10/Intel Fortran/MKL (David Cournapeau)
----------------------------------------------------------------------
Message: 1 Date: Wed, 3 Dec 2014 15:58:07 +0000 From: David Cournapeau <cournape@gmail.com> Subject: Re: [SciPy-User] NumPy/SciPy compilation VC10/Intel Fortran/MKL To: SciPy Users List <scipy-user@scipy.org> Message-ID: <CAGY4rcVXxcUqP9CegqXSBBnLN8-i= 1i-XoHyEpXysPfmE3zOcQ@mail.gmail.com> Content-Type: text/plain; charset="utf-8"
On Wed, Dec 3, 2014 at 2:15 PM, Relja Ljubobratovic < relja.ljubobratovic@3lateral.com> wrote:
Hello,
I need to compile NumPy and SciPy in Windows 7 x64, with Microsoft Visual Compiler 2010, and Intel Fortran compiler 2015, using Intel MKL. I'm compiling against Python 2.7.6 x64, which is compiled using same C/C++ compiler (I've downloaded compiled version from http://p-nand-q.com/python/building-python-27-with-vs2010.html). I need these packages for Autodesk Maya 2014, which has integrated Python 2.7.3 x64, compiled with VC10.
Here is my NumPy site.cfg: [DEFAULT] library_dirs = C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\lib\amd64 include_dirs = C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include
[mkl] library_dirs = C:\Program Files (x86)\Intel\Composer XE 2015\mkl\lib\intel64 include_dirs = C:\Program Files (x86)\Intel\Composer XE 2015\mkl\include mkl_libs = mkl_rt,mkl_intel_lp64,mkl_intel_thread,mkl_core lapack_libs = mkl_lapack95_lp64 blas_libs = mkl_blas95_lp64
----------------------------------------------
NumPy compilation shows strange linking errors and failures on _configtests - linking errors are evident in the numpy build log that I've provided. It seems that linker has no access to stdc++ libs? (unresolved external symbol strtoull, strtoll etc.) But at the end it compiles fine, and the installation and nose tests pass with no errors. I cannot understand if so much testing failures could be normal during the compilation?
Those are configuration tests. You should ignore those
But during the SciPy compilation fatal linking errors occur while linking compiled .lib files to .pyd. I'm not completely sure to which package
unresolved externals belong ? I've tried examining libs for externals
these that
are not found, but I'm failing to figure this out. I'm not so familiar with MKL, and I can't figure out if I'm missing some linking in NumPy site.cfg? Linking error is at the end of the scipy build log.
The first thing I would look at is ensureing all the .lib/.obj linked together in the failed linking step are at the same architecture. It seems that you are using the correct ifort and cl compilers, but you never know.
THe missing symbols are supposed to be in the fftpack.lib being linked, so I would check the symbols in fftpack.lib as well.
David
I'm using msvccompiler.py configuration from the downloaded Python's distutils. I have inspected it, and it seems ok to me - could the reason for numpy linking errors come from here? And visual fortran configuration is present in numpy's distutils. Command I'm using for setup.py is: python setup.py config --compiler=msvc --fcompiler=intelvem build_clib --compiler=msvc --fcompiler=intelvem build_ext --compiler=msvc --fcompiler=intelvem install
I'm trying to compile numpy-1.9.1 with scipy-0.14.0, but I've also tried with few older versions of both, and had the same outcome. I've also
tried
with git master versions, but again the same errors occur.
Complete build logs are added as attachments. I'd be grateful if anyone can point out the solution to the errors I'm having.
Thanks, Relja Ljubobratovic
_______________________________________________ SciPy-User mailing list SciPy-User@scipy.org http://mail.scipy.org/mailman/listinfo/scipy-user
participants (1)
-
Denis Akhiyarov