This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Compiling gcc 4.4.0 for Cell
- From: Revital1 Eres <ERES at il dot ibm dot com>
- To: Phil Pratt-Szeliga <pcpratts at syr dot edu>
- Cc: Paolo Bonzini <bonzini at gnu dot org>, gcc at gcc dot gnu dot org
- Date: Mon, 29 Jun 2009 09:13:28 +0300
- Subject: Re: Compiling gcc 4.4.0 for Cell
- References: <982c94040906281206w6c7d2ce3k10121015b63401f5@mail.gmail.com>
Hello,
> I am trying to compile gcc 4.4.0 for the Cell processor for my google
> summer of code project (GCC's OpenCL implementation starting point).
>
> I have used OpenMP for some things and now I am trying to compile
> everything on the Cell. OpenMP is supported in the ppu-gcc 4.1.0 so
> I am trying to upgrade my PS3 to gcc 4.4.0.
You can configure PPU like any other 64-bit PowerPC processors,
for example, by specifying --target=powerpc64-unknown-linux-gnu.
HTH,
Revital
>
> I did
> #ppu-gcc -v
> and that got me how gcc was configured for the cell.
>
> So I pasted most of it into the shell:
>
> [root@ps3 gcc-4.4.0]# ./configure --prefix=/usr
> --mandir=/usr/share/man --infodir=/usr/share/info
> --with-as=/usr/bin/ppu-as --with-ld=/usr/bin/ppu-ld --enable-threads
> --with-system-zlib --disable-checking --enable-__cxa_atexit
> --disable-libunwind-exceptions --enable-languages=c,c++,fortran,ada
> --disable-nls --enable-clocale=gnu
> --enable-version-specific-runtime-libs --with-long-double-128
> --program-prefix=ppu- --disable-bootstrap --host=ppu
> --build=powerpc64-unknown-linux-gnu --target=ppu
> checking build system type... powerpc64-unknown-linux-gnu
> checking host system type... Invalid configuration `ppu': machine
> `ppu' not recognized
> configure: error: /bin/sh ./config.sub ppu failed
> [root@ps3 gcc-4.4.0]#
>
> Anyone have any tips to get this compiled?
>
> Thanks.
>
> Sincererly,
> Phil Pratt-Szeliga