[Cbe-oss-dev] Problems building newlib/libgloss 1.17 for spu

Dan Munckton lists at munckfish.net
Sun Apr 5 21:25:13 EST 2009


Hi

On Thu, 2009-04-02 at 17:08 +0200, Ken Werner wrote:
> On Thursday 02 April 2009 15:56:43 Ken Werner wrote:
> > On Thursday 02 April 2009 15:37:26 Dan Munckton wrote:
> > > Hi
> > >
> > > Just in case I'm wasting my time here ... is anyone aware of, or working
> > > to fix any known problems building newlib 1.17 for spu?
> > >
> > > Having been updated to v1.17 from 1.16 in Ubuntu it stopped building
> > > libgloss and therefore crt1.o is missing, which means spu-gcc fails to
> > > compile things.
> > >
> > > The first change I've noted is the configure script now sets --host=spu
> > > whereas in the old working version it was set to powerpc-linux-gnu. That
> > > brings libgloss back but it's failing to build. So I'm in the middle of
> > > chasing down why, and wondered if there were known issues with this
> > > version of newlib.
> > >
> > > Cheers
> > >
> > > Dan
> >
> > Hi Dan,
> >
> > are you using the 1.17 release or CVS head?
> > I'm building newlib from head like this:
> > ../src/configure \
> >    --disable-shared \
> >    --enable-multilib \
> >    --disable-nls \
> >    --target=spu \
> >    --prefix=/usr
> >
> > Ken
> 
> Dan,
> 
> I just tried snapshot 1.17.0 of newlib which builds flawlessly using the very 
> same configure args as described for head. These are the triples detected by 
> configure:
>   checking build system type... powerpc64-unknown-linux-gnu
>   checking host system type... powerpc64-unknown-linux-gnu 
>   checking target system type... spu-unknown-elf
> 
> Let me know if you're still having problems.
> 
> Ken
> 

Many thanks Ken. I've managed to get 1.17 to build outside of the
debian/ubuntu package building wrappers now, now I just need to work out
what the difference is in the packaging system.

BTW to get your configure line to work I had to disable multilib
otherwise I got ...

spu-gcc -B/home/daniel/src/newlib/upstream-1.17/build/spu/mea64/newlib/ -isystem /home/daniel/src/newlib/upstream-1.17/build/spu/mea64/newlib/targ-include -isystem /home/daniel/src/newlib/upstream-1.17/src/newlib/libc/include -B/home/daniel/src/newlib/upstream-1.17/build/spu/mea64/libgloss/spu -L/home/daniel/src/newlib/upstream-1.17/build/spu/mea64/libgloss/libnosys -L/home/daniel/src/newlib/upstream-1.17/src/libgloss/spu  -mea64 -DPACKAGE_NAME=\"newlib\" -DPACKAGE_TARNAME=\"newlib\" -DPACKAGE_VERSION=\"1.17.0\" -DPACKAGE_STRING=\"newlib\ 1.17.0\" -DPACKAGE_BUGREPORT=\"\"  -I. -I../../../../../../../src/newlib/libc/machine/spu -O2 -D_POSIX_MODE -DREENTRANT_SYSCALLS_PROVIDED -DMISSING_SYSCALL_NAMES -ffunction-sections -fdata-sections  -DMISSING_SYSCALL_NAMES -fno-builtin      -g -O2    -mea64 -c -o lib_a-strstr_ea.o `test -f 'strstr_ea.c' || echo '../../../../../../../src/newlib/libc/machine/spu/'`strstr_ea.c
../../../../../../../src/newlib/libc/machine/spu/strstr_ea.c: In function 'strstr_ea':
../../../../../../../src/newlib/libc/machine/spu/strstr_ea.c:75: error: unrecognizable insn:
(insn 162 134 163 4 ../../../../../../../src/newlib/libc/machine/spu/strstr_ea.c:55 (set (reg/f:SI 229)
        (plus:SI (reg/v/f:DI 171 [ s2 ])
            (const_int 13 [0xd]))) -1 (nil))
../../../../../../../src/newlib/libc/machine/spu/strstr_ea.c:75: internal compiler error: in extract_insn, at recog.c:2004
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
make[9]: *** [lib_a-strstr_ea.o] Error 1
make[9]: Leaving directory `/home/daniel/src/newlib/upstream-1.17/build/spu/mea64/newlib/libc/machine/spu'


Ubuntu's package doesn't seem to build the multilib version anyway.

Cheers

Dan




More information about the cbe-oss-dev mailing list