#12862: The partition function under FreeBSD
-----------------------+----------------------------------------------------
Reporter: stephen | Owner: pjeremy
Type: defect | Status: new
Priority: major | Milestone: sage-5.1
Component: FreeBSD | Keywords: partition FreeBSD
Work issues: | Report Upstream: N/A
Reviewers: | Authors:
Merged in: | Dependencies:
Stopgaps: |
-----------------------+----------------------------------------------------
sage built on a FreeBSD 64 bit machine fails the test
{{{
sage -t -force_lib "devel/sage/sage/combinat/partition.py"
}}}
After some googling, I get the impression that long double is at best
flaky on FreeBSD.
I am going to suggest the following patch, although it is perhaps not
necessary for the i386 version of FreeBSD.
{{{
--- sage-5.0.beta13/sage/combinat/partitions_c.cc-orig 2012-04-20
01:01:41.000000000 +0000
+++ sage-5.0.beta13/sage/combinat/partitions_c.cc 2012-04-20
01:02:47.000000000 +0000
@@ -152,7 +152,7 @@
const unsigned int double_precision = DBL_MANT_DIG;
// The assumed precision of a double.
-#if defined(__sparc) || defined(__CYGWIN__)
+#if defined(__sparc) || defined(__CYGWIN__) || defined(__FreeBSD__)
// On sparc solaris long double is bad/broken/different, etc. E.g.,
// LDBL_MANT_DIG is 113 rather than 106, which causes all kinds of
trouble.
// So we only use double_precision.
}}}
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/12862>
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.