[Cbe-oss-dev] Building MARS

Yuji Mano yuji.mano at am.sony.com
Sat Nov 21 04:53:07 EST 2009


Hi Paul.

Paul Keir wrote:
> Can anyone give advice on building MARS?

Copied from the README:

Building
========

* See the source file INSTALL for generic build info.

* The configure scripts require the option --with-mars-platform.  Currently,
only the Cell Broadband Engine (--with-mars-platfrom=cell) is supported.

* Use the prefixes PPU_ and SPU_ on command line variables to the top level
configure to specify variables for the different Cell toolchains.

* When building 64-bit libraries for a powerpc host it is customary to use
the --libdir configure option to install the libraries in a EPREFIX/lib64
directory.  Run configure with the --help option for more info.

For example, when using the Cell SDK toolchains use options similar to these:

32-bit powerpc host
-------------------
  ./configure \
    --with-mars-platform=cell SPU_CC=spu-gcc PPU_CC=ppu-gcc PPU_CFLAGS=-m32

64-bit powerpc host
-------------------
  ./configure \
    --libdir="/usr/lib64" \
    --with-mars-platform=cell SPU_CC=spu-gcc PPU_CC=ppu-gcc PPU_CFLAGS=-m64

Note:
	The configure options above may vary based on Linux distribution or Cell
	toolchain.

	For example, Gentoo on PS3 might use options similar to:

  ./configure --with-mars-platform=cell SPU_CC=spu-elf-gcc SPU_AR=spu-elf-ar


Good luck!

Regards,
Yuji



More information about the cbe-oss-dev mailing list