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

Andreas Thorsén cbe at bitwalk.com
Mon May 21 05:33:52 EST 2007


Hi!

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.

--Andreas



More information about the cbe-oss-dev mailing list