This is the mail archive of the newlib@sourceware.org mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: PATCH: fix build problem on spu


On Tue, Oct 09, 2007 at 11:29:55AM +1000, Ben Elliston wrote:
> I'm not quite sure if this ever worked, but building newlib with
> --target=spu fails because `vector' is not defined early enough.
> spu_intrinsics.h must be included before simdmath.h, which is needed for
> the vector -> __vector defintion.
> 
> OK for mainline?  I'd commit it as obvious, but as the problem seems
> equally obvious, I'm worried that I have overlooked something. :-)

I don't get any compile errors. Also, we should have been building
internally with this for quite a while.

What were your compile errors?

My compile line is:

spu-cc -B/home/patman/src/s-cvs-newlib/build-base/spu/newlib/ -isystem /home/patman/src/s-cvs-newlib/build-base/spu/newlib/targ-include -isystem /home/patman/src/s-cvs-newlib/base/newlib/libc/include -B/home/patman/src/s-cvs-newlib/build-base/spu/libgloss/spu -L/home/patman/src/s-cvs-newlib/build-base/spu/libgloss/libnosys -L/home/patman/src/s-cvs-newlib/base/libgloss/spu -DPACKAGE_NAME=\"newlib\" -DPACKAGE_TARNAME=\"newlib\" -DPACKAGE_VERSION=\"1.15.0\" -DPACKAGE_STRING=\"newlib\ 1.15.0\" -DPACKAGE_BUGREPORT=\"\"  -I. -I/home/patman/src/s-cvs-newlib/base/newlib/libm/machine/spu -I /home/patman/src/s-cvs-newlib/base/newlib/libm/machine/spu/../../../../newlib/libm/common -O2 -D_POSIX_MODE -ffunction-sections -fdata-sections  -DMISSING_SYSCALL_NAMES -fno-builtin      -O2 -g -O2   -c -o lib_a-w_acos.o `test -f 'w_acos.c' || echo '/home/patman/src/s-cvs-newlib/base/newlib/libm/machine/spu/'`w_acos.c

-- Patrick Mansfield


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]