Ask Your Question

SAGE_FAT_BINARIES and SAGE_ATLAS_ARCH - compile for old processors

asked 2012-12-05 06:23:12 -0500

Emil Widmann gravatar image

updated 2015-01-17 10:55:59 -0500

FrédéricC gravatar image

Hi, I recently compiled a new version of the Sage Live CD. In older versions it was enough to set SAGE_FAT_BINARIES='yes' to create a binary with low requirements on processor instructions (like "sse2" instruction set).

In the newer versions I also used SAGE_ATLAS_ARCH='base' flag, but now I have a report that it is not working properly on an old pentium processor.

I read something in the sage-devel group that there might be some interference between those build flags. What is the present procedure to produce a true "fat" binary which should run on possibly the widest range of hardware (without having to grant to use modern hardware to full extend).


edit retag flag offensive close merge delete

1 answer

Sort by » oldest newest most voted

answered 2012-12-06 00:01:40 -0500

tmonteil gravatar image

Hi Emil,

this is due to a logical bug in the atlas spkg: the system-wide variable SAGE_FAT_BINARY currently takes precedence over the specific variable SAGE_ATLAS_ARCH as explained in the trac ticket

A possible workaround until it is fixed is:

  • cd ${YOUR_SAGE_ROOT}/spkg/standard/
  • tar xvf atlas-3.8.4.p1.spkg
  • modify atlas-3.8.4.p1/spkg-install according to the proposed patch (this is around line 203).
  • tar cvf atlas-3.8.4.p1.spkg atlas-3.8.4.p1
  • compile as usually exporting SAGE_FAT_BINARY='yes' and SAGE_ATLAS_ARCH='PIII'

Ciao, Thierry

edit flag offensive delete link more


Hi Thierry - thanks for that explanation! I will keep this in mind and when the time is ripe I will update the Live CD accordingly... cheers emil

Emil Widmann gravatar imageEmil Widmann ( 2012-12-06 06:11:49 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2012-12-05 06:23:12 -0500

Seen: 168 times

Last updated: Dec 06 '12