PS3 installation

Radio afficionados,

I’m trying to compile the normal gnu-radio trunk on the PS3.
Unfortunately I
run into an issue.

I’d appreciate a pointer in the right direction.

I used FC9, installed the cell SDK (3.0.0.1.0) and compiled the
examples, so
far, so good.

However, when compiling gnuradio I run into a compilation error in the
gcell
section. It indicates “ppu_intrinsics.h” is not found. On developerworks
a
similar question led to a reply indicating ppu-gcc instead of gcc should
be
used. Is this a known build issue ?

Any help is appreciated,
Walter

--------------------------------- compile error

/bin/sh …/…/…/…/libtool --tag=CXX --mode=compile g++
-DHAVE_CONFIG_H
-I. -I…/…/…/… -DOMNITHREAD_POSIX=1 -I/home/wsnel/trunk/omnithread
-I/home/wsnel/trunk/mblock/src/lib
-I/home/wsnel/trunk/gcell/src/include
-I/home/wsnel/trunk/gcell/src/lib/runtime
-I/home/wsnel/trunk/gcell/src/lib/general
-I/home/wsnel/trunk/gcell/src/lib/wrapper
-I…/…/…/…/gcell/src/ibm/sync/ppu_source -g -O2 -Wall
-Woverloaded-virtual -pthread -MT gc_job_manager_impl.lo -MD -MP -MF
.deps/gc_job_manager_impl.Tpo -c -o gc_job_manager_impl.lo
gc_job_manager_impl.cc
g++ -DHAVE_CONFIG_H -I. -I…/…/…/… -DOMNITHREAD_POSIX=1
-I/home/wsnel/trunk/omnithread -I/home/wsnel/trunk/mblock/src/lib
-I/home/wsnel/trunk/gcell/src/include
-I/home/wsnel/trunk/gcell/src/lib/runtime
-I/home/wsnel/trunk/gcell/src/lib/general
-I/home/wsnel/trunk/gcell/src/lib/wrapper
-I…/…/…/…/gcell/src/ibm/sync/ppu_source -g -O2 -Wall
-Woverloaded-virtual -pthread -MT gc_job_manager_impl.lo -MD -MP -MF
.deps/gc_job_manager_impl.Tpo -c gc_job_manager_impl.cc -fPIC -DPIC -o
.libs/gc_job_manager_impl.o
In file included from gc_job_manager_impl.cc:32:
…/…/…/…/gcell/src/ibm/sync/ppu_source/atomic_dec_if_positive.h:44:28:
error: ppu_intrinsics.h: No such file or directory
In file included from
…/…/…/…/gcell/src/ibm/sync/ppu_source/atomic_dec_if_positive.h:46,
from gc_job_manager_impl.cc:32:
--------------------------------- compile error

On Thu, Jul 24, 2008 at 06:41:29AM -0700, Walter Snel wrote:

However, when compiling gnuradio I run into a compilation error in the gcell
section. It indicates “ppu_intrinsics.h” is not found. On developerworks a
similar question led to a reply indicating ppu-gcc instead of gcc should be
used. Is this a known build issue ?

Any help is appreciated,
Walter

To build on the PS3 and use gcell, you’re going to need what we’re
calling the “cross compilation environment”, even though you’re not
cross compiling :slight_smile:

Yes, you’ll need to use ppu-g++ (or grab a copy of ppu_intrinsics.h
from somewhere and install it where we’ll find it).

Please take a look at the configure-cell-cross shell script in the top
directory. To avoid waiting forever for your compilations, I suggest
you cross compile from a typical x86 box.

See http://gnuradio.org/trac/wiki/CrossCompilingForCell

Also, at least on x86 and x86_64 we’ve found that Fedora 9 is
undesirable
because of the buggy version of g++ that they ship. Our QA code
fails, and so does that of other projects.

Eric