[Numpy-discussion] failure building trunk with mingw

David Cournapeau cournape at gmail.com
Mon Nov 16 22:52:22 EST 2009


On Tue, Nov 17, 2009 at 3:33 AM,  <josef.pktd at gmail.com> wrote:

>
> Now, the numpy build runs for a while then breaks while building umath.
>
> Any ideas?

The behavior of distutils with config files is mysterious, I gave up
trying to understand it long ago :) I use scripts instead to control
everything from command line.

>
> creating build\temp.win32-2.5\Release\numpy\core\src\umath
> compile options: '-Ibuild\src.win32-2.5\numpy\core\src\umath -Inumpy\core\includ
> e -Ibuild\src.win32-2.5\numpy\core\include/numpy -Inumpy\core\src\private -Inump
> y\core\src -Inumpy\core -Inumpy\core\src\npymath -Inumpy\core\src\multiarray -In
> umpy\core\src\umath -Inumpy\core\include -IC:\Programs\Python25\include -IC:\Pro
> grams\Python25\PC -Ibuild\src.win32-2.5\numpy\core\src\multiarray -Ibuild\src.wi
> n32-2.5\numpy\core\src\umath -c'
> gcc -mno-cygwin -O2 -Wall -Wstrict-prototypes -Ibuild\src.win32-2.5\numpy\core\s
> rc\umath -Inumpy\core\include -Ibuild\src.win32-2.5\numpy\core\include/numpy -In
> umpy\core\src\private -Inumpy\core\src -Inumpy\core -Inumpy\core\src\npymath -In
> umpy\core\src\multiarray -Inumpy\core\src\umath -Inumpy\core\include -IC:\Progra
> ms\Python25\include -IC:\Programs\Python25\PC -Ibuild\src.win32-2.5\numpy\core\s
> rc\multiarray -Ibuild\src.win32-2.5\numpy\core\src\umath -c numpy\core\src\umath
> \umathmodule_onefile.c -o build\temp.win32-2.5\Release\numpy\core\src\umath\umat
> hmodule_onefile.o
> g++ -mno-cygwin -shared build\temp.win32-2.5\Release\numpy\core\src\umath\umathm
> odule_onefile.o -LC:\Programs\Python25\libs -LC:\Programs\Python25\PCBuild -Lbui
> ld\temp.win32-2.5 -lnpymath -lpython25 -lmsvcr71 -o build\lib.win32-2.5\numpy\co
> re\umath.pyd
> build\temp.win32-2.5\Release\numpy\core\src\umath\umathmodule_onefile.o:umathmod
> ule_onefile.c:(.text+0xce07): undefined reference to `npy_spacingf'
> build\temp.win32-2.5\Release\numpy\core\src\umath\umathmodule_onefile.o:umathmod
> ule_onefile.c:(.text+0xcefc): undefined reference to `npy_nextafterf'
> build\temp.win32-2.5\Release\numpy\core\src\umath\umathmodule_onefile.o:umathmod
> ule_onefile.c:(.text+0xdeb7): undefined reference to `npy_spacing'
> build\temp.win32-2.5\Release\numpy\core\src\umath\umathmodule_onefile.o:umathmod
> ule_onefile.c:(.text+0xdfae): undefined reference to `npy_nextafter'
> build\temp.win32-2.5\Release\numpy\core\src\umath\umathmodule_onefile.o:umathmod
> ule_onefile.c:(.text+0xef75): undefined reference to `npy_spacingl'
> build\temp.win32-2.5\Release\numpy\core\src\umath\umathmodule_onefile.o:umathmod
> ule_onefile.c:(.text+0xf0b0): undefined reference to `npy_nextafterl'
> build\temp.win32-2.5\Release\numpy\core\src\umath\umathmodule_onefile.o:umathmod
> ule_onefile.c:(.text+0x1c3c6): undefined reference to `npy_csqrtf'
> build\temp.win32-2.5\Release\numpy\core\src\umath\umathmodule_onefile.o:umathmod
> ule_onefile.c:(.text+0x1c436): undefined reference to `npy_clogf'
> build\temp.win32-2.5\Release\numpy\core\src\umath\umathmodule_onefile.o:umathmod
> ule_onefile.c:(.text+0x1c4d6): undefined reference to `npy_cexpf'
> build\temp.win32-2.5\Release\numpy\core\src\umath\umathmodule_onefile.o:umathmod
> ule_onefile.c:(.text+0x1c78c): undefined reference to `npy_cpowf'
> build\temp.win32-2.5\Release\numpy\core\src\umath\umathmodule_onefile.o:umathmod
> ule_onefile.c:(.text+0x1d28b): undefined reference to `npy_csqrt'
> build\temp.win32-2.5\Release\numpy\core\src\umath\umathmodule_onefile.o:umathmod
> ule_onefile.c:(.text+0x1d30b): undefined reference to `npy_clog'
> build\temp.win32-2.5\Release\numpy\core\src\umath\umathmodule_onefile.o:umathmod
> ule_onefile.c:(.text+0x1d3ab): undefined reference to `npy_cexp'
> build\temp.win32-2.5\Release\numpy\core\src\umath\umathmodule_onefile.o:umathmod
> ule_onefile.c:(.text+0x1d711): undefined reference to `npy_cpow'
> build\temp.win32-2.5\Release\numpy\core\src\umath\umathmodule_onefile.o:umathmod
> ule_onefile.c:(.text+0x1e379): undefined reference to `npy_csqrtl'
> build\temp.win32-2.5\Release\numpy\core\src\umath\umathmodule_onefile.o:umathmod
> ule_onefile.c:(.text+0x1e429): undefined reference to `npy_clogl'
> build\temp.win32-2.5\Release\numpy\core\src\umath\umathmodule_onefile.o:umathmod
> ule_onefile.c:(.text+0x1e4e9): undefined reference to `npy_cexpl'
> build\temp.win32-2.5\Release\numpy\core\src\umath\umathmodule_onefile.o:umathmod
> ule_onefile.c:(.text+0x1ea15): undefined reference to `npy_cpowl'
> collect2: ld returned 1 exit status
> error: Command "g++ -mno-cygwin -shared build\temp.win32-2.5\Release\numpy\core\
> src\umath\umathmodule_onefile.o -LC:\Programs\Python25\libs -LC:\Programs\Python
> 25\PCBuild -Lbuild\temp.win32-2.5 -lnpymath -lpython25 -lmsvcr71 -o build\lib.wi
> n32-2.5\numpy\core\umath.pyd" failed with exit status 1

All those refer to recently added functions, which suggest some old
files/configuration are used. Be sure to clean the working tree and
the build directory and try again.

I have just tested it on both wine and a xp vm with mingw, and both
build correctly.

cheers,

David



More information about the NumPy-Discussion mailing list