Mail Archives: cygwin/2002/08/19/19:00:46
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/
- Raw text -