Author Topic: Floating Point Exceptions With Native Gcc  (Read 1637 times)

mike_r

  • Newbie
  • *
  • Posts: 29
    • View Profile
    • http://
Floating Point Exceptions With Native Gcc
« on: July 24, 2006, 01:24:34 pm »
Hello all,

I'm do a lot of python tinkering on my C3100 (thanks Mickey!), and I'm interested in getting numpy-1.0b1 compiled and running on it. (numpy is the successor to the Numeric that is included in the python feed, but the Numeric there is at least 4 versions out of date and is not as capable as numpy.) I installed all the gcc stuff from the OZ-3.5.4.1 feed on the Z to compile natively, and successfully compiled the slang libraries and the jed editor (my favorite lightweight emacs replacement).

After a number of tweaks, I've made good headway on installing numpy, but I get stuck on the (lack of) definitions of the floating point exceptions one should find in <bits/fenv.h>; things like FE_DIVBYZERO, etc.

I can probably make something up to at least finish the install, but I'd like to know if someone else has already dealt with this, or if there are definitions from the softfloat library that might be used.

numpy itself includes homespun fenv.h and fenv.c files for architectures that don't already provide them, but these use i386 assembler instructions and cannot therefore be used here.

Any pointers? Thanks.

Mike
Mike R
Zaurus SL-C3100, OZ 3.5.4.1, 512 MB Lexar SD
Z+Python+numpy=Data crunching pocket workstation