[Numpy-discussion] compiling numarrray on Cygwin

Sebastian Haase haase@msg.ucsf....
Wed Mar 14 12:02:33 CDT 2007


Hi Duhaime,

are you having a *very* good reason that you want to compile numarray
instead of the newer and better numpy.
Essentially everyone here has switched either from numarray or from
numeric to numpy.
You won't get much help with numarray and problems might not ever get fixed.

However,  people here are very helpful - once you go with the new
numpy - to help converting any old code you might have.   Essentially
numarray and numpy (mostly,  98% ?) Python-code compatible  anyway !!!

Do the the switch and you will get help.

Regards,
Sebastian


On 3/6/07, Duhaime Johanne <Johanne.Duhaime@ircm.qc.ca> wrote:
>
> I have problem to install numarray on cygwin. I have seen emails on that
> topic but I finally do not have a solution.
>
> Below is the error message for numarray-1.5.2 on python 2.4.3.  I am
> using numarray instead of numpy because I need the module to be
> compatible with a software : MAT (Model-based Analysis of Tiling-array).
>
>
> I have seen some solutions but I do not know exactly how to do since I
> am not familiar with python and cygwin. Someone suggests to disable the
> package that contains fetestexcept and fetestexcept. I do not know if
> this is important for my software but I am willing to try. The problem
> is that I do not know how to disable this package...
>
> The same person mention that it would put a "solution" in the csv
> repository. If I am right there is no csv repository for numarray.
> Should I look to the python csv. In fact I did that, but have not seen
> any comment related to my problem.
>
> As you can see my questions are very basic. Sorry about that. But I
> would really appreciate help to solve that problem. Thank you in
> advance for any help.
>
>
> -----------------Compile:
>
> Building many extension but then with 'numarray.libnumarray' I have an
> error.
>        (...)
>
>        building 'numarray._ufuncComplex32' extension
>        gcc -fno-strict-aliasing -DNDEBUG -g -O3 -Wall
> -Wstrict-prototypes -IInclude/nu
>        array -I/usr/include/python2.4 -c Src/_ufuncComplex32module.c -o
> build/temp.cyg
>        in-1.5.24-i686-2.4/Src/_ufuncComplex32module.o
>        gcc -shared -Wl,--enable-auto-image-base
> build/temp.cygwin-1.5.24-i686-2.4/Src/
>        ufuncComplex32module.o -L/usr/lib/python2.4/config -lpython2.4
> -o build/lib.cyg
>        in-1.5.24-i686-2.4/numarray/_ufuncComplex32.dll -lm -L/lib -lm
> -lc -lgcc -L/lib
>        mingw -lmingwex
>        building 'numarray._ufuncComplex64' extension
>        gcc -fno-strict-aliasing -DNDEBUG -g -O3 -Wall
> -Wstrict-prototypes -IInclude/nu
>        array -I/usr/include/python2.4 -c Src/_ufuncComplex64module.c -o
> build/temp.cyg
>        in-1.5.24-i686-2.4/Src/_ufuncComplex64module.o
>        gcc -shared -Wl,--enable-auto-image-base
> build/temp.cygwin-1.5.24-i686-2.4/Src/
>        ufuncComplex64module.o -L/usr/lib/python2.4/config -lpython2.4
> -o build/lib.cyg
>        in-1.5.24-i686-2.4/numarray/_ufuncComplex64.dll -lm -L/lib -lm
> -lc -lgcc -L/lib
>        mingw -lmingwex
>
>        building 'numarray.libnumarray' extension
>
>        gcc -fno-strict-aliasing -DNDEBUG -g -O3 -Wall
> -Wstrict-prototypes -IInclude/num
>
>        array -I/usr/include/python2.4 -c Src/libnumarraymodule.c -o
> build/temp.cygwin-1
>
>        .5.24-i686-2.4/Src/libnumarraymodule.o
>
>        gcc -shared -Wl,--enable-auto-image-base
> build/temp.cygwin-1.5.24-i686-2.4/Src/l
>
>        ibnumarraymodule.o -L/usr/lib/python2.4/config -lpython2.4 -o
> build/lib.cygwin-1
>
>        .5.24-i686-2.4/numarray/libnumarray.dll -lm -L/lib -lm -lc -lgcc
> -L/lib/mingw -l
>
>        mingwex
>
>
> /lib/mingw/libmingwex.a(feclearexcept.o):feclearexcept.c:(.text+0x21):
> undefined
>
>         reference to `___cpu_features'
>
>
> /lib/mingw/libmingwex.a(fetestexcept.o):fetestexcept.c:(.text+0x7):
> undefined re
>
>        ference to `___cpu_features'
>
>        collect2: ld returned 1 exit status
>
>        error: command 'gcc' failed with exit status 1
>
>
>
>
> duhaimj@ircm.qc.ca
>
> _______________________________________________
> Numpy-discussion mailing list
> Numpy-discussion@scipy.org
> http://projects.scipy.org/mailman/listinfo/numpy-discussion
>


More information about the Numpy-discussion mailing list