Sage 3.0.5 on Solaris x86 (Fulvia)

Note: This page is outdated. Please check the main Solaris bit porting page for the current status.

Executive summary

Build Issues with Sage 3.0.5 on Solaris x86

Doctest Issues with Sage 3.0.5 on Solaris x86

File "/home/mabshoff/sage-3.0.5-x86-solaris/tmp/calculus.py", line 2394:
    sage: integral(x^n,x)
Expected:
    Traceback (most recent call last):
    ...
    TypeError: Computation failed since Maxima requested additional constraints (use assume):
    Is  n+1  zero or nonzero?
Got:
    Maxima crashed -- automatically restarting.

a.divided_difference([3,2,1]) leads to
    X[1]
function: nullp(1)
enter a to abort with core dump, g to go, f to supress
s to supress further error text, r to retry,  e to explain, else stop
ERROR: empty object as parameter?:
            sage: X = SchubertPolynomialRing(ZZ)
            sage: a = X([3,2,1])
            sage: a.divided_difference(1)
            X[2, 3, 1]
            sage: a.divided_difference([3,2,1])
            X[1]

But we get the correct result by going on:

sage: X = SchubertPolynomialRing(ZZ)
sage: a = X([3,2,1])
sage: a.divided_difference([3,2,1])
function: nullp(1)
enter a to abort with core dump, g to go, f to supress
s to supress further error text, r to retry,  e to explain, else stop
ERROR: empty object as parameter?: g
function: nullp code: -1
enter a to abort with core dump, g to go, f to supress
s to supress further error text, r to retry,  e to explain, else stop
ERROR: error during computation?: g
function: rz_lehmercode code: 141482880
enter a to abort with core dump, g to go, f to supress
s to supress further error text, r to retry,  e to explain, else stop
ERROR: error during computation?: g
function: rz_perm code: 141482880
enter a to abort with core dump, g to go, f to supress
s to supress further error text, r to retry,  e to explain, else stop
ERROR: error during computation?: g
function: divdiff_perm_schubert code: 141482880
enter a to abort with core dump, g to go, f to supress
s to supress further error text, r to retry,  e to explain, else stop
ERROR: error during computation?: g
X[3, 2, 1]

Ei(10)
*boom*

sage: k.<a> = NumberField(x^3 - 2)
sage: k
Number Field in a with defining polynomial x^3 - 2
sage: abs(k)
---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
/home/mabshoff/sage-3.0.5-x86-solaris/<ipython console> in <module>()
TypeError: bad operand type for abs(): 'NumberField_absolute'
sage:

sage: x = polygen(ZZ)
sage: (x^5 - x - 1).roots(ring=CIF)
*boom*

This is likely numpy.

from sage.rings.qqbar import ANRoot
x = polygen(QQbar)
intv = CIF(RIF(0, 1), RIF(0.1, 1))
rt = ANRoot(x^5 - 1, intv)
*boom*

gdb says:

----------------------------------------------------------------------
| SAGE Version 3.0.5, Release Date: 2008-07-11                       |
| Type notebook() for the GUI, and license() for information.        |
----------------------------------------------------------------------
sage: from sage.rings.qqbar import ANRoot
sage: x = polygen(QQbar)
sage: intv = CIF(RIF(0, 1), RIF(0.1, 1))
sage: rt = ANRoot(x^5 - 1, intv)
Program received signal SIGSEGV, Segmentation fault.
0xfed622b3 in csqrt () from /lib/libm.so.2
(gdb) bt
#0  0xfed622b3 in csqrt () from /lib/libm.so.2
#1  0xfa2c335a in ?? ()
#2  0x00000000 in ?? ()
Probably a numpy problem according to cwitty.

With Mike Hanson's help we can reproduce this in pure numpy:

-bash-3.00$ ./sage -python
Python 2.5.2 (r252:60911, Jul 14 2008, 15:20:38)
[GCC 4.2.4] on sunos5
Type "help", "copyright", "credits" or "license" for more information.
>>> from numpy import *
>>> a = array([1,0,0,0,0,-1],dtype=complex)
array([ 1.+0.j,  0.+0.j,  0.+0.j,  0.+0.j,  0.+0.j, -1.+0.j])
>>> roots(a)
/home/mabshoff/sage-3.0.5-x86-solaris/local/bin/sage-sage: line 359: 20900 Segmentation Fault      (core dumped) python "[email protected]"

And it is still broken in numpy 1.2.rc1 - see this thread on the numpy discussion list

solaris/sage-3.0.5 (last edited 2009-02-05 11:15:46 by MichaelAbshoff)