|
From: | Tim Meehan |
Subject: | Re: [Discuss-gnuradio] cross compile gcell for PS3 |
Date: | Fri, 4 Apr 2008 06:45:46 -0400 |
The FC7/8 requirement is mostly driven by the SDK. Sounds like you'veOn Thu, Apr 03, 2008 at 08:01:06PM -0400, Tim Meehan wrote:
> On Thu, Apr 3, 2008 at 7:34 PM, Eric Blossom <address@hidden> wrote:
>
> > On Thu, Apr 03, 2008 at 06:38:20PM -0400, Tim Meehan wrote:
> > > Hello All,
> > >
> > >
> > > I was not able to get gcell to compile (trunk 8156). I had to add the
> > patch
> > > included to get gcell to compile. Has anyone been able to get this to
> > > compile without modification? Any other ideas on what I may be doing
> > wrong?
> > >
> > > Without the patch I get the following error
> > >
> > > make[3]: Entering directory `/mnt/share/trunk/gcell/src/apps'
> > > <snip>
> > > ppu32-g++ -g -O2 -Wall -Woverloaded-virtual -pthread -o .libs/test_all
> > > test_all.o -L/mnt/cell-root/lib -L/mnt/cell-root/usr/lib
> > > ../../../gcell/src/lib/.libs/libgcell-qa.so
> > > /mnt/share/trunk/gcell/src/lib/.libs/libgcell.so -Wl,--rpath
> > > -Wl,/mnt/share/cell-install/lib
> > > /opt/cell/toolchain/bin/ppu-ld: warning: libspe2.so.2, needed by
> > > /mnt/share/trunk/gcell/src/lib/.libs/libgcell.so, not found (try using
> > > -rpath or -rpath-link)
> > > ../../../gcell/src/lib/.libs/libgcell-qa.so: undefined reference to
> > > `spe_in_mbox_write'
> > > ../../../gcell/src/lib/.libs/libgcell-qa.so: undefined reference to
> > > `spe_event_handler_create'
> > > <snip>
> >
> > Tim,
> >
> > What distribution and version are you running on the build machine?
> > FC7 or F8?
>
>
> I am using Ubuntu Gutsy on the build machine; I am breaking one of the
> "shalls" from the cross compile guide. I had been able to compile the trunk
> for some time targeting both FC7 and FC8 on the PS3 without problem. This
> was the first time I tried the gcell part. Until you asked I forgot about
> the FC7/8 requirement. If it is an easy fix to make this work with Debian
> derived distributions that would be a bonus.
worked around that part OK.
I think the failure is a "feature" of the broken libtool on
Debian/Ubuntu. I don't it's specific to gcell, just that that is
where you're seeing it.
I suspect that if you do a non cross compile of GNU Radio, but specify a
non-standard value for --prefix (e.g.., /mnt/share/x86-install) you'll
get a similar error, only at some other place in the build.
See http://gnuradio.org/trac/wiki/UbuntuInstall#BrokenlibtoolonDebianandUbuntu
OK.
> > I'll try to reproduce it on my end, though last time I checked it worked.
> >
> > I'm assuming you configured with:
> >
> > ./configure-cell-cross --prefix=/mnt/share/cell-install
> >
> >
> Yes. It all works fine as long as I add the "rpath" stuff to the
> Makefile.am in "gcell/src/apps"
Just for the record, there's no chance in hell that I'll accept a
patch that codes a -rpath into *_LDFLAGS :-)
> > Eric
> >
> >
> > >
> > >
> > > Index: gcell/src/apps/Makefile.am
> > > ===================================================================
> > > --- gcell/src/apps/Makefile.am (revision 8156)
> > > +++ gcell/src/apps/Makefile.am (working copy)
> > > @@ -39,9 +39,12 @@
> > >
> > > test_all_SOURCES = test_all.cc
> > > test_all_LDADD = $(GCELL_QA_LA) $(GCELL_LA)
> > > +test_all_LDFLAGS = -rpath /mnt/cell-root/usr/lib/
> > >
> > > benchmark_dma_SOURCES = benchmark_dma.cc
> > > benchmark_dma_LDADD = spu/benchmark_procs $(GCELL_LA) $(MBLOCK_LA)
> > > +benchmark_dma_LDFLAGS = -rpath /mnt/cell-root/usr/lib/
> > >
> > > benchmark_nop_SOURCES = benchmark_nop.cc
> > > benchmark_nop_LDADD = spu/benchmark_procs $(GCELL_LA) $(MBLOCK_LA)
> > > +benchmark_nop_LDFLAGS = -rpath /mnt/cell-root/usr/lib/
[Prev in Thread] | Current Thread | [Next in Thread] |