Re: SciPy-User Digest, Vol 136, Issue 2

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

Re: SciPy-User Digest, Vol 136, Issue 2

Denis Akhiyarov

You can get numpy linked with MKL here:

On Dec 3, 2014 12:00 PM, <[hidden email]> wrote:
Send SciPy-User mailing list submissions to
        [hidden email]

To subscribe or unsubscribe via the World Wide Web, visit
or, via email, send a message with subject or body 'help' to
        [hidden email]

You can reach the person managing the list at
        [hidden email]

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 <[hidden email]>
Subject: Re: [SciPy-User] NumPy/SciPy compilation VC10/Intel
To: SciPy Users List <[hidden email]>
        <CAGY4rcVXxcUqP9CegqXSBBnLN8-i=[hidden email]>
Content-Type: text/plain; charset="utf-8"

On Wed, Dec 3, 2014 at 2:15 PM, Relja Ljubobratovic <
[hidden email]> 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
> 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:
> 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 these
> unresolved externals belong ? I've tried examining libs for externals 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.


> I'm using 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 is:
> python 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
> [hidden email]
-------------- next part --------------
An HTML attachment was scrubbed...


SciPy-User mailing list
[hidden email]

End of SciPy-User Digest, Vol 136, Issue 2

SciPy-User mailing list
[hidden email]