On 06/19/2012 07:29 PM, kcrisman wrote:


On Tuesday, June 19, 2012 5:28:29 PM UTC-4, Stephen Montgomery-Smith wrote:

    When I run "sage testall" for sage-5.1.beta5 on FreeBSD/amd64, I get
    the


Does this imply you get no other failures? Even close to that would be
great news.

I have four other errors, which are all floating point errors, and it is debatable whether they are failures.

I'm curious how many of the patches in tickets in the FreeBSD component
[1] you actually need with 5.1.beta5 in order for Sage to be a-ok.

I did not use #5873, #7831, #9606, #12059.  All the others I used.

I used a work around for #9606, which I will describe below.

Is there anyone out there who can help review those? It would be really
helpful to know which of those can be closed, and which ones could be
merged, though it would be good to have two sets of eyes on those who
actually understand such build systems. That would make one not need the
"port" concept, though naturally that would be good to have too (if it
is something that uses some system components like Sage-on-Gentoo).

If you want to avoid using a FreeBSD port, you are going to have to incorporate something like this:

FreeBSD allows for the user to use several different versions of cc (including clang). It uses gcc-4.6 by default whenever a fortran program is required.

For this reason, I created my own versions of cc, c++, gfortran, etc, and sh, in $SAGE_ROOT/bin. sh was merely a link to /usr/local/bin/bash (hence no need for #9606). For cc, etc, I placed a script something like:

#!/bin/sh
if [ "x$*" = "x-v" ]; then
  exec /usr/local/bin/gcc46 "$@"
else
  exec /usr/local/bin/gcc46 \
  -Wl,-rpath=/usr/ports/math/sage/work/sage-5.0.1/local/lib \
  -Wl,-rpath=/usr/local/lib/gcc46 \
  "$@"
fi


Can you check if Trac 13134 [2] fixes it?

I got a whole different set of errors:

sage -t -force_lib "devel/sage/sage/rings/real_double.pyx"
**********************************************************************
File "/usr/home/stephen/sage-devel/work/sage-5.1.beta5/devel/sage/sage/rings/real_double.pyx", line 603:
    sage: a.ulp()
Expected:
    4.4408920985e-16
Got:
    2.22044604925e-16
**********************************************************************
File "/usr/home/stephen/sage-devel/work/sage-5.1.beta5/devel/sage/sage/rings/real_double.pyx", line 609:
    sage: a + a.ulp() == a
Expected:
    False
Got:
    True
**********************************************************************
File "/usr/home/stephen/sage-devel/work/sage-5.1.beta5/devel/sage/sage/rings/real_double.pyx", line 611:
    sage: a - a.ulp() == a
Expected:
    False
Got:
    True
**********************************************************************
File "/usr/home/stephen/sage-devel/work/sage-5.1.beta5/devel/sage/sage/rings/real_double.pyx", line 613:
    sage: b + b.ulp() == b
Expected:
    False
Got:
    True
**********************************************************************
File "/usr/home/stephen/sage-devel/work/sage-5.1.beta5/devel/sage/sage/rings/real_double.pyx", line 615:
    sage: b - b.ulp() == b
Expected:
    False
Got:
    True
**********************************************************************
File "/usr/home/stephen/sage-devel/work/sage-5.1.beta5/devel/sage/sage/rings/real_double.pyx", line 631:
    sage: c - c.ulp()/3 == c
Expected:
    False
Got:
    True
**********************************************************************
File "/usr/home/stephen/sage-devel/work/sage-5.1.beta5/devel/sage/sage/rings/real_double.pyx", line 633:
    sage: c.ulp()
Expected:
    2.22044604925e-16
Got:
    1.11022302463e-16
**********************************************************************
File "/usr/home/stephen/sage-devel/work/sage-5.1.beta5/devel/sage/sage/rings/real_double.pyx", line 635:
    sage: (c - c.ulp()).ulp()
Expected:
    1.11022302463e-16
Got:
    5.55111512313e-17
**********************************************************************
File "/usr/home/stephen/sage-devel/work/sage-5.1.beta5/devel/sage/sage/rings/real_double.pyx", line 640:
    sage: RDF(-1).ulp()
Expected:
    2.22044604925e-16
Got:
    1.11022302463e-16
**********************************************************************
File "/usr/home/stephen/sage-devel/work/sage-5.1.beta5/devel/sage/sage/rings/real_double.pyx", line 1786:
    sage: all( check_error(x) for x in sxrange(0.01, 2.00, 0.01) )
Expected:
    True
Got:
    logarithm check failed for 0.09 (diff = 1.02849309987 ulp)
    False
**********************************************************************
2 items had failures:
   9 of  26 in __main__.example_34
   1 of  19 in __main__.example_90
***Test Failed*** 10 failures.
For whitespace errors, see the file /usr/home/stephen/.sage//tmp/real_double_8795.py
         [2.1 s]


--
To post to this group, send an email to [email protected]
To unsubscribe from this group, send an email to 
[email protected]
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org

Reply via email to