leif wrote:
leif wrote:
Elliot Findley wrote:
Hello. I tried to build sage-6.1.1 on Ubuntu 14.04 LTS. My laptop is an
Asus Ux31A notebook.
Note that Sage 6.2 has been released a couple of weeks ago (although
that presumably won't fix this particular issue).
Or it probably will. (Sage 6.2 includes the final / released PPL 1.1.)
It's not even the prerelease PPL vs. released PPL 1.1; I just
successfully built Sage 6.1.1 on Trusty with SAGE_CHECK=yes as well.
But I only now realized you're actually building on *32-bit* Trusty,
with Ubuntu's GCC configured to produce code for (the 15+ years old?)
i686 and the even older i387 floating-point coprocessor, so the
floating-point noise isn't that surprising, as the latter internally
uses 80-bit floats, not conforming to IEEE.
Does Ubuntu still (stupidly) recommend to install the 32-bit version on
64-bit hardware? Or are you running it in a virtual machine?
I'd strongly recommend to install the 64-bit version instead.
If you really want to stay with the 32-bit version, you should at least
tell GCC to produce code for your processor (a Core i7 AFAIK), in order
to take advantage of all the CPU features developed over the last
decades... ;-) [Sage will run significantly faster then.]
You can do so by (probably first wiping out the previous partial build and)
$ export CFLAGS="-march=native -mtune=native -mfpmath=sse -O2"
$ export CXXFLAGS="$CFLAGS" # for g++
$ export FFLAGS="$CFLAGS" # for gfortran
$ make # probably with e.g. '-j4' to build in parallel with 4 jobs/threads
That way, the floating-point noise should also vanish (using fpmath=sse
instead of fpmath=387).
You may also want to take a look at the documentation of SAGE_ATLAS_ARCH
in the Sage Installation Guide, to help (or speed up) ATLAS self-tuning.
-leif
FWIW, I just built Sage 6.2 from scratch with SAGE_CHECK=yes on Trusty,
and all test suites passed. I also rebuilt PPL with SAGE_CHECK=yes in a
Sage 6.2 installation on Lucid (10.04.4) with FSF GCC 4.9.0 and '-O3',
and that worked, too.
-leif
It built for an hour before failing when trying to build
package: ppl-1.1pre9.p0.
Well, that's not really a build error; it's just PPL's test suite
failing due to floating-point noise.
Try installing the package with SAGE_CHECK unset or set to 'no', then
run 'make' again, e.g. by typing
$ env SAGE_CHECK=no ./sage -i ppl && make
--
() The ASCII Ribbon Campaign
/\ Help Cure HTML E-Mail
--
You received this message because you are subscribed to the Google Groups
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.