[Numpy-discussion] Build error on Windows

Christoph Gohlke cgohlke at uci.edu
Thu Jul 14 23:04:39 EDT 2011



On 7/14/2011 6:56 PM, Chris Barker wrote:
> Hi folks,
>
> I'm trying to build numpy HEAD on Windows in preparation for the SciPy
> sprints tomorrow. I've never built numpy on Windows, and I'm new to git,
> so I could be doing any number of things wrong.
>
> I think I have the latest code:
>
> C:\Documents and Settings\Chris\My Documents\SciPy\numpy_git\numpy>git
> log -1
> commit 6fdfd9c070ce943415d75780702a22f4bbd8f837
> Author: Ben Walsh<b at wumpster.com>
> Date:   Tue Jul 12 14:52:01 2011 +0100
>
> I tried to build it with a simple:
>
> python setup.py build_ext --inplace
>
> and got:
>
> C:\Program Files\Microsoft Visual Studio 9.0\VC\BIN\link.exe /DLL
> /nologo /INCRE
> MENTAL:NO /LIBPATH:c:\python27\libs /LIBPATH:c:\python27\PCbuild
> /LIBPATH:build\
> temp.win32-2.7 /EXPORT:init_dummy
> build\temp.win32-2.7\Release\numpy\core\src\du
> mmymodule.obj /OUT:numpy\core\_dummy.pyd
> /IMPLIB:build\temp.win32-2.7\Release\nu
> mpy\core\src\_dummy.lib
> /MANIFESTFILE:build\temp.win32-2.7\Release\numpy\core\sr
> c\_dummy.pyd.manifest
> LINK : error LNK2001: unresolved external symbol init_dummy
> build\temp.win32-2.7\Release\numpy\core\src\_dummy.lib : fatal error
> LNK1120: 1
> unresolved externals
> error: Command "C:\Program Files\Microsoft Visual Studio
> 9.0\VC\BIN\link.exe /DL
> L /nologo /INCREMENTAL:NO /LIBPATH:c:\python27\libs
> /LIBPATH:c:\python27\PCbuild
>    /LIBPATH:build\temp.win32-2.7 /EXPORT:init_dummy
> build\temp.win32-2.7\Release\n
> umpy\core\src\dummymodule.obj /OUT:numpy\core\_dummy.pyd
> /IMPLIB:build\temp.win3
> 2-2.7\Release\numpy\core\src\_dummy.lib
> /MANIFESTFILE:build\temp.win32-2.7\Relea
> se\numpy\core\src\_dummy.pyd.manifest" failed with exit status 1120
>
> Python 2.7.2, python.org build (32 bit)
> Visual Studio express 2008
>
> That should work, yes?
>
> Thanks for any hints.
>
> -Chris
>

Hi Chris,

the build should work but it is probably better to install numpy in the 
site-packages directory (and be prepared for crashes and test failures). 
A patch for the build issues is attached. Remove the build directory 
before rebuilding.

Christoph
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: msvc9.diff
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20110714/6465ecd9/attachment.ksh>


More information about the NumPy-Discussion mailing list