Python 2.1 on SGI

Randall Hopper aa8vb at yahoo.com
Tue May 15 09:59:16 EDT 2001


     Just to FYI to save others some trouble.  When compiling Python 2.1 on
SGI with optimization enabled, you'll probably need to compile
Objects/floatobject.c with -O0 to work around a MIPSPro compiler
optimization bug.  A symptom if you don't is a SIGBUS in floatobject.c
float_div() line 394:

        static PyObject *
        float_div(PyObject *v, PyObject *w)
        {
                double a,b;
                CONVERT_TO_DOUBLE(v, a);           <------------
                CONVERT_TO_DOUBLE(w, b);

This is IRIX 6.5 with MIPSPro 7.3.1.1m BTW.

Randall

-- 
Randall Hopper
aa8vb at yahoo.com




More information about the Python-list mailing list