This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
numarray on Cygwin
- From: "Jochen Küpper" <jochen at unc dot edu>
- To: Numeric users ml <numpy-discussion at lists dot sourceforge dot net>, cygwin <cygwin at sourceware dot cygnus dot com>
- Cc: Todd Miller <jmiller at stsci dot edu>
- Date: 19 Aug 2002 18:52:49 -0400
- Subject: numarray on Cygwin
- Organization: University of North Carolina
- Reply-to: jochen at jochen-kuepper dot de
- Resent-user-agent: XEmacs/Gnus
- Resent-x-attribution: Jochen
- Resent-x-face: -%Z4EZ6iY'4m:wiK:!v<f*n1TeWpDxL;vm\2]@7KGXgHzB#JSK#;`z4tYg#7ck/]wrqw6:};vcVMJ0N~%+;N&e,%5phkzeP![#CQ^y^]lyS0Wvp"sV(0$dvw}(12VU<:|q~@MX]S=o46H!(2*%?'kWz-%ul~-hoJL$/SQzy&^?aLj"u9)Lk0zvwmg|#\@U{j:5?C-*{<3que:_Vb@Ly
- Resent-x-url: http://www.jochen-kuepper.de
Hi,
I could succesfully compile numarray (see numpy.org) on Cygwin
(updated last week), using the standard Cygwin python. However many
tests fail, due to "missing" overflow or "division by zero"
exceptions.
I took a quick look at the test-failures of numarray on numpy. The
first problem is that we don't get a "Overflow error" warning when it
is expected:
,----[Cygwin]
| >>> array([1, 8, 100, 100], type=Int8) * array([1, 8, 100, -100], type=Int8)
| array([ 1, 64, 127, -128], type=Int8)
`----
Whereas on Linux we get
,----[Linux]
| >>> array([1, 8, 100, 100], type=Int8) * array([1, 8, 100, -100], type=Int8)
| Warning: Encountered overflow(s) in multiply
| array([ 1, 64, 127, -128], type=Int8)
`----
Is this related to a configuration option of python (--with-sigfpe ?)
or a "feature" of the Cygwin libm/libc?
Any ideas?
Btw, I tried to rebuild python (cvs maint22-release patched for
_socket) but got the following errors with the math module (similar
for cmath):
,----
| gcc -shared -Wl,--enable-auto-image-base build/temp.cygwin-1.3.12-i686-2.2/mathmodule.o -L/usr/local/lib -L. -lm -lpython2.2 -o build/lib.cygwin-1.3.12-i686-2.2/math.dll
| build/temp.cygwin-1.3.12-i686-2.2/mathmodule.o: In function `math_1':
| /home/software/programming/compiler/python/dist/src/Modules/mathmodule.c:57: undefined reference to `PyFPE_counter'
| /home/software/programming/compiler/python/dist/src/Modules/mathmodule.c:57: undefined reference to `PyFPE_counter'
| /home/software/programming/compiler/python/dist/src/Modules/mathmodule.c:57: undefined reference to `PyFPE_jbuf'
| /home/software/programming/compiler/python/dist/src/Modules/mathmodule.c:57: undefined reference to `PyFPE_counter'
| /home/software/programming/compiler/python/dist/src/Modules/mathmodule.c:59: undefined reference to `PyFPE_dummy'
| /home/software/programming/compiler/python/dist/src/Modules/mathmodule.c:59: undefined reference to `PyFPE_counter'
| build/temp.cygwin-1.3.12-i686-2.2/mathmodule.o: In function `math_2':
| /home/software/programming/compiler/python/dist/src/Modules/mathmodule.c:74: undefined reference to `PyFPE_counter'
| /home/software/programming/compiler/python/dist/src/Modules/mathmodule.c:74: undefined reference to `PyFPE_counter'
| /home/software/programming/compiler/python/dist/src/Modules/mathmodule.c:74: undefined reference to `PyFPE_jbuf'
| /home/software/programming/compiler/python/dist/src/Modules/mathmodule.c:74: undefined reference to `PyFPE_counter'
| /home/software/programming/compiler/python/dist/src/Modules/mathmodule.c:76: undefined reference to `PyFPE_dummy'
| /home/software/programming/compiler/python/dist/src/Modules/mathmodule.c:76: undefined reference to `PyFPE_counter'
| build/temp.cygwin-1.3.12-i686-2.2/mathmodule.o: In function `math_ldexp':
| /home/software/programming/compiler/python/dist/src/Modules/mathmodule.c:173: undefined reference to `PyFPE_counter'
| /home/software/programming/compiler/python/dist/src/Modules/mathmodule.c:173: undefined reference to `PyFPE_counter'
| /home/software/programming/compiler/python/dist/src/Modules/mathmodule.c:173: undefined reference to `PyFPE_jbuf'
| /home/software/programming/compiler/python/dist/src/Modules/mathmodule.c:173: undefined reference to `PyFPE_counter'
| /home/software/programming/compiler/python/dist/src/Modules/mathmodule.c:175: undefined reference to `PyFPE_dummy'
| /home/software/programming/compiler/python/dist/src/Modules/mathmodule.c:175: undefined reference to `PyFPE_counter'
| collect2: ld returned 1 exit status
| WARNING: building of extension "math" failed: command 'gcc' failed with exit status 1
`----
Greetings,
Jochen
--
University of North Carolina phone: +1-919-962-4403
Department of Chemistry phone: +1-919-962-1579
Venable Hall CB#3290 (Kenan C148) fax: +1-919-843-6041
Chapel Hill, NC 27599, USA GnuPG key: 44BCCD8E
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/