#11881: Metaticket: build Sage on OS X 10.7 Lion
--------------------------+-------------------------------------------------
Reporter: jhpalmieri | Owner: GeorgSWeber
Type: defect | Status: new
Priority: blocker | Milestone: sage-5.0
Component: build | Keywords:
Work_issues: | Upstream: N/A
Reviewer: | Author:
Merged: | Dependencies:
--------------------------+-------------------------------------------------
Comment(by jhpalmieri):
Okay, here's the current state of affairs on my laptop running Lion. I
took the sage-5.0.beta1 source distribution and made the following
changes:
- replaced pari with the spkg from #12315
- replaced gsl with an spkg with a similar change
- replaced symmetrica with an spkg with a similar change
- replaced python with an spkg which deletes the file
`SAGE_LOCAL/lib/python2.7/config/libpython2.7.a
The change for pari, gsl, and symmetrica was to put this into spkg-
install:
{{{
if [[ "$UNAME" = "Darwin" && `gcc -dumpversion` = '4.2.1' ]] && \
{ gcc --version | grep LLVM -q; }; then
CC=gcc-4.2
export CC
fi
}}}
Then I set `SAGE_CHECK=yes` and built Sage. The results:
- self-test failures for cvxopt (#12011), python (as always) and sagetex
(something with paths; I can't believe it's specific to Lion). I also had
occasional failures with zn_poly, but it always passed the second time
through. This could be because there isn't enough RAM, or because the
system is too heavily loaded. I'm not sure.
- doctest failures:
{{{
sage -t --long -force_lib
devel/sage/sage/matrix/matrix_double_dense.pyx # 4 doctests failed
sage -t --long -force_lib devel/sage/sage/matrix/matrix2.pyx # 4
doctests failed
sage -t --long -force_lib
devel/sage/sage/rings/polynomial/polynomial_element.pyx # 1 doctests
failed
sage -t --long -force_lib devel/sage/sage/tests/interrupt.pyx # 7
doctests failed
}}}
More details on the particular failures:
{{{
sage -t --long -force_lib devel/sage/sage/matrix/matrix_double_dense.pyx
**********************************************************************
File "/Users/palmieri/Desktop/sage-5.0.beta1/devel/sage-
main/sage/matrix/matrix_double_dense.pyx", line 1177:
sage: L
Expected:
[ 1.0 0.0 0.0 0.0 0.0]
[ 0.0 1.0 0.0 0.0 0.0]
[ 0.5 0.5 1.0 0.0 0.0]
[0.75 0.25 -0.0 1.0 0.0]
[0.25 0.75 -0.0 -0.0 1.0]
Got:
[ 1.0 0.0 0.0 0.0 0.0]
[ 0.0 1.0 0.0 0.0 0.0]
[ 0.5 0.5 1.0 0.0 0.0]
[0.75 0.25 0.0 1.0 0.0]
[0.25 0.75 0.0 0.0 1.0]
**********************************************************************
File "/Users/palmieri/Desktop/sage-5.0.beta1/devel/sage-
main/sage/matrix/matrix_double_dense.pyx", line 1183:
sage: U
Expected:
[24.0 25.0 26.0 27.0 28.0 29.0]
[ 0.0 1.0 2.0 3.0 4.0 5.0]
[ 0.0 0.0 -0.0 0.0 0.0 0.0]
[ 0.0 0.0 0.0 -0.0 -0.0 0.0]
[ 0.0 0.0 0.0 0.0 -0.0 0.0]
Got:
[24.0 25.0 26.0 27.0 28.0 29.0]
[ 0.0 1.0 2.0 3.0 4.0 5.0]
[ 0.0 0.0 0.0 0.0 0.0 0.0]
[ 0.0 0.0 0.0 0.0 0.0 0.0]
[ 0.0 0.0 0.0 0.0 0.0 0.0]
**********************************************************************
File "/Users/palmieri/Desktop/sage-5.0.beta1/devel/sage-
main/sage/matrix/matrix_double_dense.pyx", line 1381:
sage: abs(abs(diff)) < 1e-14
Expected:
True
Got:
False
**********************************************************************
File "/Users/palmieri/Desktop/sage-5.0.beta1/devel/sage-
main/sage/matrix/matrix_double_dense.pyx", line 2501:
sage: B.is_hermitian(algorithm='naive', tol=1.0e-17)
Expected:
False
Got:
True
**********************************************************************
3 items had failures:
2 of 24 in __main__.example_20
1 of 13 in __main__.example_22
1 of 27 in __main__.example_37
***Test Failed*** 4 failures.
}}}
and
{{{
sage -t --long -force_lib devel/sage/sage/matrix/matrix2.pyx
**********************************************************************
File "/Users/palmieri/Desktop/sage-5.0.beta1/devel/sage-
main/sage/matrix/matrix2.pyx", line 7983:
sage: G.round(6)
Expected:
[-0.422243 - 0.490087*I 0.566698 - 0.097416*I -0.500882 + 0.002251*I]
[-0.057002 - 0.495035*I -0.35059 - 0.625323*I 0.255514 - 0.415284*I]
[ 0.394105 - 0.421778*I -0.392266 - 0.039345*I -0.352905 + 0.62195*I]
Got:
[ 0.422243 + 0.490087*I -0.566698 + 0.097416*I 0.500882 - 0.002251*I]
[ 0.057002 + 0.495035*I 0.35059 + 0.625323*I -0.255514 + 0.415284*I]
[-0.394105 + 0.421778*I 0.392266 + 0.039345*I 0.352905 - 0.62195*I]
**********************************************************************
File "/Users/palmieri/Desktop/sage-5.0.beta1/devel/sage-
main/sage/matrix/matrix2.pyx", line 7987:
sage: M.round(6).zero_at(10^-6)
Expected:
[ -1.528503 0 0]
[ 0.459974 - 0.40061*I -1.741233 0]
[-0.934304 + 0.148868*I 0.54833 + 0.073202*I -0.550725]
Got:
[ 1.528503 0 0]
[-0.459974 + 0.40061*I 1.741233 0]
[0.934304 - 0.148868*I -0.54833 - 0.073202*I 0.550725]
**********************************************************************
File "/Users/palmieri/Desktop/sage-5.0.beta1/devel/sage-
main/sage/matrix/matrix2.pyx", line 8031:
sage: G.round(6).zero_at(10^-6)
Expected:
[-0.408248 -0.408248 -0.816497]
[ 0.707107 -0.707107 0.0]
[ -0.57735 -0.57735 0.57735]
Got:
[ 0.408248 0.408248 0.816497]
[ 0.707107 -0.707107 0.0]
[ -0.57735 -0.57735 0.57735]
**********************************************************************
File "/Users/palmieri/Desktop/sage-5.0.beta1/devel/sage-
main/sage/matrix/matrix2.pyx", line 8035:
sage: M.round(10).zero_at(10^-10)
Expected:
[-2.4494897428 0.0 0.0]
[-3.6742346142 0.7071067812 0.0]
[-4.8989794856 1.4142135624 0.0]
Got:
[2.4494897428 0.0 0.0]
[3.6742346142 0.7071067812 0.0]
[4.8989794856 1.4142135624 0.0]
**********************************************************************
1 items had failures:
4 of 67 in __main__.example_97
***Test Failed*** 4 failures.
}}}
and
{{{
sage -t --long -force_lib
devel/sage/sage/rings/polynomial/polynomial_element.pyx
Entering nffactor:
Time squarefree test: 0
**********************************************************************
File "/Users/palmieri/Desktop/sage-5.0.beta1/devel/sage-
main/sage/rings/polynomial/polynomial_element.pyx", line 1038:
sage: parent(poly)([ 0.0 if abs(c)<=2.7e-15 else c for c in
poly.coeffs() ])
Expected:
1.0
Got:
-5.3290705182e-15*x + 1.0
Time choice of a prime ideal: 0
Prime ideal chosen: [13, [2, 0, 1, 0]~, 1, 1, [-6, -2, 3, 1]~]
*** Warning: increasing prec in nf_factor_bound; new prec = 6
Mignotte bound: 3630.83275543199
Beauzamy bound: 208640.496552260
Time bound computation: 0
1) T_2 bound for factor: 3630.83275543199
2) Conversion from T_2 --> | |^2 bound : 1.33333333333333
3) Final bound: 4841.11034057599
exponent 10
for this exponent, GSmin = 66611.3992219779
Time reduction: 0
Time splitting mod [13, [2, 0, 1, 0]~, 1, 1, [-6, -2, 3, 1]~]: 0
Time Hensel lift: 0
Time to find factor x + (-2*y^3 + y): 0
remaining modular factor(s): 2
Time Naive recombination: 0
Total Time: 1
===========
**********************************************************************
1 items had failures:
1 of 18 in __main__.example_20
***Test Failed*** 1 failures.
}}}
and
{{{
sage -t --long -force_lib devel/sage/sage/tests/interrupt.pyx
**********************************************************************
File "/Users/palmieri/Desktop/sage-5.0.beta1/devel/sage-
main/sage/tests/interrupt.pyx", line 251:
sage: try_sigint(test_sig_retry_and_signal)
Expected:
KeyboardInterrupt:
Got nothing
**********************************************************************
File "/Users/palmieri/Desktop/sage-5.0.beta1/devel/sage-
main/sage/tests/interrupt.pyx", line 251:
sage: try_sigint(test_sig_retry_and_signal)
Expected:
KeyboardInterrupt:
Got nothing
**********************************************************************
File "/Users/palmieri/Desktop/sage-5.0.beta1/devel/sage-
main/sage/tests/interrupt.pyx", line 271:
sage: test_sig_on_no_except()
Expected:
42
Got nothing
**********************************************************************
File "/Users/palmieri/Desktop/sage-5.0.beta1/devel/sage-
main/sage/tests/interrupt.pyx", line 251:
sage: try_sigint(test_sig_retry_and_signal)
Expected:
KeyboardInterrupt:
Got nothing
**********************************************************************
File "/Users/palmieri/Desktop/sage-5.0.beta1/devel/sage-
main/sage/tests/interrupt.pyx", line 271:
sage: test_sig_on_no_except()
Expected:
42
Got nothing
**********************************************************************
File "/Users/palmieri/Desktop/sage-5.0.beta1/devel/sage-
main/sage/tests/interrupt.pyx", line 299:
sage: test_sig_str_no_except()
Expected:
Traceback (most recent call last):
...
RuntimeError: Everything ok!
Got nothing
**********************************************************************
File "/Users/palmieri/Desktop/sage-5.0.beta1/devel/sage-
main/sage/tests/interrupt.pyx", iled example:
sig_on_count()
Expected:
0
Got:
3
}}}
I've repeated this process with the same results. I don't know what's
going on with interrupt.pyx, but the other failures don't look too bad.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/11881#comment:54>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sage-trac?hl=en.