This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC 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: About compile


11.5.2011 12:49, konica sarker kirjoitti:
I want to compile a program from my personal computer (ubuntu  is
running) written for SPU target.
Can you tell me the what is the command for this?

Ubuntu should provide a package called 'spu-gcc' and the GCC-driver in it being 'spu-gcc'...

Yes, I installed that package. now is is identifying the command spu-gcc
but I have compiled a test code (following), and got some error message...
Could you tell me why is this?ie what tzpe of error message is this?

my code:

int main(int argc, char *argv[])
{

int x;
return 0;

}

the error message :

/tmp/ccz6TI1D.s: Assembler messages:
/tmp/ccz6TI1D.s:3: Error: alignment not a power of 2
/tmp/ccz6TI1D.s:7: Error: no such instruction: `stqd $sp,-80($sp)'
/tmp/ccz6TI1D.s:8: Error: no such instruction: `ai $sp,$sp,-80'
/tmp/ccz6TI1D.s:9: Error: no such instruction: `lqd $2,48($sp)'

Sounds like you haven't any 'spu-binutils'. That a GCC needs suitable binutils: assembler, linker etc. and most probably also a suitable C library, maybe 'spu-newlib' or something package, was unfortunately not told :(

Probably the Ubuntu's "package manager" has a "search" possibility
for finding all "spu" related packages..


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