[Cbe-oss-dev] Problems building samples on PlayStation 3

Arnd Bergmann arnd at arndb.de
Mon May 21 07:09:10 EST 2007


On Sunday 20 May 2007, Andreas Thorsén wrote:
> I've installed Fedora Core 6 on PlayStation 3 and Cell SDK 2.1 and I'm 
> having problems compiling samples. It seems I need to pass -m64 for any 
> sample to compile (vsync or Cell SDK samples). Everything gives an error 
> similar to this:
> 
> [root at localhost vsync-sample-1.0.2]# make
> gcc -O2 -Wall -W -Wstrict-prototypes -o vsync vsync.c
> In file included from /usr/include/features.h:352,
>                   from /usr/include/stdio.h:28,
>                   from vsync.c:31:
> /usr/include/gnu/stubs.h:7:27: error: gnu/stubs-32.h: No such file or 
> directory
> make: *** [vsync] Error 1
> [root at localhost vsync-sample-1.0.2]#
> 
> and to get it to compile I just add -m64 like so:
> 
> [root at localhost vsync-sample-1.0.2]# make
> gcc -O2 -Wall -W -Wstrict-prototypes -m64 -o vsync vsync.c
> [root at localhost vsync-sample-1.0.2]#
> 
> Now, is this normal? I would expect samples to compile out of the box, 
> what am I doing wrong here?
> 
> Any tips much appreciated.
> 

IIRC, the samples are normally built with the ppu64-gcc, which is configured
to default to -m64. You can also install the development environment for
building 32 bit applications, for this you need at least the 
glibc-devel-32bit package, probably more.

	Arnd <><



More information about the cbe-oss-dev mailing list