public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* Compiling gcc 4.4.0 for Cell
@ 2009-06-28 22:24 Phil Pratt-Szeliga
  2009-06-29  9:41 ` Revital1 Eres
  0 siblings, 1 reply; 3+ messages in thread
From: Phil Pratt-Szeliga @ 2009-06-28 22:24 UTC (permalink / raw)
  To: gcc; +Cc: Paolo Bonzini

Hello gcc list,

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.

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Compiling gcc 4.4.0 for Cell
  2009-06-28 22:24 Compiling gcc 4.4.0 for Cell Phil Pratt-Szeliga
@ 2009-06-29  9:41 ` Revital1 Eres
  2009-06-29  9:54   ` Paolo Bonzini
  0 siblings, 1 reply; 3+ messages in thread
From: Revital1 Eres @ 2009-06-29  9:41 UTC (permalink / raw)
  To: Phil Pratt-Szeliga; +Cc: Paolo Bonzini, gcc

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Compiling gcc 4.4.0 for Cell
  2009-06-29  9:41 ` Revital1 Eres
@ 2009-06-29  9:54   ` Paolo Bonzini
  0 siblings, 0 replies; 3+ messages in thread
From: Paolo Bonzini @ 2009-06-29  9:54 UTC (permalink / raw)
  To: Revital1 Eres; +Cc: Phil Pratt-Szeliga, gcc

>> [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

> You can configure PPU like any other 64-bit PowerPC processors,
> for example, by specifying --target=powerpc64-unknown-linux-gnu.

The above configure can become just this:

[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-languages=c,c++,fortran --disable-nls
--enable-version-specific-runtime-libs --with-long-double-128
--program-prefix=ppu- --disable-bootstrap

(and I'm not sure man and info dirs need to be given, you should have
symlinks from /usr/man and /usr/info).

paolo

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2009-06-29  6:28 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-06-28 22:24 Compiling gcc 4.4.0 for Cell Phil Pratt-Szeliga
2009-06-29  9:41 ` Revital1 Eres
2009-06-29  9:54   ` Paolo Bonzini

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).