delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/08/19/19:00:46

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Resent-Sender: jochen AT bock DOT chem DOT unc DOT edu
Resent-To: cygwin AT sources DOT redhat DOT com
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*%?'k
Wz-%ul~-hoJL$/SQzy&^?aLj"u9)Lk0zvwmg|#\@U{j:5?C-*{<3que:_Vb AT Ly
Resent-X-URL: http://www.jochen-kuepper.de
Resent-From: "Jochen =?iso-8859-1?q?K=FCpper?=" <jochen AT unc DOT edu>
Resent-Message-ID: <ly8z32fo9n DOT fsf AT bock DOT chem DOT unc DOT edu>
Resent-Date: 19 Aug 2002 18:59:49 -0400
X-From-Line: nobody Mon Aug 19 18:52:51 2002
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>
Subject: numarray on Cygwin
User-Agent: XEmacs/Gnus
X-Attribution: Jochen
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*%?'k
Wz-%ul~-hoJL$/SQzy&^?aLj"u9)Lk0zvwmg|#\@U{j:5?C-*{<3que:_Vb AT Ly
X-URL: http://www.jochen-kuepper.de
Message-ID: <lyit26fr9a.fsf@bock.chem.unc.edu>
From: "Jochen =?iso-8859-1?q?K=FCpper?=" <jochen AT unc DOT edu>
Organization: University of North Carolina
Reply-To: jochen AT jochen-kuepper DOT de
Date: 19 Aug 2002 18:52:49 -0400
MIME-Version: 1.0
Lines: 65

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019