Building Sage on Sony's PS3

These notes are about building Sage 3.2.3 on the PS3 using Yellow Dog Linux 6.1. Other distributions, i.e. Fedora Core for PPC, might need different fixes since the default ABI used by YDL is 32 bit while Fedora defaults to 64 bit.



The YDL 6.1 gcc defaults to 32 bit mode. Considering the tight resources on the PS3 this seems like a good choice. A SAGE64 mode could also be implemented. Note that FC 10/PPC actually defaults to 64 bit.

32 bit build


Remove the code that prevents tuning on ppc64


Force ABI=32 for now


Atlas has no detection for the PS3 PPC CPU. Sage's spkg-install should also automatically enable ALTIVEC - see #3791


Disable tuning since it ends up deeply in swap. Disabling tuning on any box with less than 256 MB memory might be a good idea.


The build fails during the configure phase. It seems related to the detection of the L1 and L2 cache size.

64 bit build

To come in the future.

ps3 (last edited 2009-01-17 15:13:26 by MichaelAbshoff)