[Numpy-discussion] error compiling umathmodule.c (numpy 1.3) on 64-bit windows xp

Lin Shao shao@msg.ucsf....
Tue Dec 16 14:09:45 CST 2008


Hi,

I found this earlier dialog about refactoring umathmodule.c (see
bottom) where David mentioned it wasn't tested on 64-bit Windows.

I tried compiling numpy 1.3.0.dev6118 on both a 32-bit and 64-bit
Windows for Python 2.6.1 with VS 9.0, and not surprisingly, it worked
on 32-bit but not on 64-bit: the compiler returned a non-specific
"Internal Compiler Error" when working on umathmodule.c:

......
building 'numpy.core.umath' extension
compiling C sources
creating build\temp.win-amd64-2.6\Release\build
creating build\temp.win-amd64-2.6\Release\build\src.win-amd64-2.6
creating build\temp.win-amd64-2.6\Release\build\src.win-amd64-2.6\numpy
creating build\temp.win-amd64-2.6\Release\build\src.win-amd64-2.6\numpy\core
creating build\temp.win-amd64-2.6\Release\build\src.win-amd64-2.6\numpy\core\src
D:\Program Files\Microsoft Visual Studio 9.0\VC\BIN\amd64\cl.exe /c
/nologo /Ox /MD /W3 /GS- /DNDEBUG
-Ibuild\src.win-amd64-2.6\numpy\core\src -Inumpy\core\include
-Ibuild\src.win-amd64-2.6\numpy\core\include/numpy -Inumpy\core\src
-Inumpy\core\include -ID:\Python26\include -ID:\Python26\PC
/Tcbuild\src.win-amd64-2.6\numpy\core\src\umathmodule.c
/Fobuild\temp.win-amd64-2.6\Release\build\src.win-amd64-2.6\numpy\core\src\umathmodule.obj
umathmodule.c
numpy\core\src\umath_funcs_c99.inc.src(140) : warning C4273: '_hypot'
: inconsistent dll linkage
       D:\Program Files\Microsoft Visual Studio
9.0\VC\INCLUDE\math.h(139) : see previous definition of '_hypot'
numpy\core\src\umath_funcs_c99.inc.src(341) : warning C4273: 'sinf' :
inconsistent dll linkage
Internal Compiler Error in D:\Program Files\Microsoft Visual Studio
9.0\VC\BIN\amd64\cl.exe.  You will be prompted to send an error report
to Microsoft later.


Any idea what's going on? I'd like to volunteer to test compiling
numpy on 64-bit Windows system since I have a VS 2008 professional
edition installed.

Thanks!

--lin


2008/10/5 David Cournapeau <david@ar.media.kyoto-u.ac.jp>:
>> ......
>>
>> >
>> > #ifndef HAVE_FREXPF
>> > static float frexpf(float x, int * i)
>> > {
>> >     return (float)frexp((double)(x), i);
>> > }
>> > #endif
>> > #ifndef HAVE_LDEXPF
>> > static float ldexpf(float x, int i)
>> > {
>> >     return (float)ldexp((double)(x), i);
>> > }
>> > #endif
>>
>> At the time I had tried to send further output following a checkout,
>> but couldn't get it to post to the list, I think the message was too
>> big or something. I will probably be having a go with 1.2.0, when I
>> get some time. I'll let you know how it goes.
>
> I did some heavy refactoring for the above problems, and it should be
> now easier to handle (in the trunk). I could build 1.2.0 with VS 2008
> express on 32 bits (wo blas/lapack), and there are some test errors -
> albeit relatively minor at first sight. I have not tried on 64 bits.
>
> cheers,
>
> David
> _______________________________________________
> Numpy-discussion mailing list
> Numpy-discussion@scipy.org
> http://projects.scipy.org/mailman/listinfo/numpy-discussion
>


More information about the Numpy-discussion mailing list