---------- Forwarded message ---------- From: konica sarker <konica.sarker@xxxxxxxxx> Date: Wed, May 11, 2011 at 11:48 AM Subject: Re: About compile To: Kai Ruottu <kai.ruottu@xxxxxxxxxxx> On Fri, May 6, 2011 at 12:00 PM, Kai Ruottu <kai.ruottu@xxxxxxxxxxx> wrote: > 5.5.2011 14:34, konica sarker kirjoitti: >> >> Hello, >> >> 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)' /tmp/ccz6TI1D.s:10: Error: junk `($sp)' after expression /tmp/ccz6TI1D.s:10: Error: suffix or operands invalid for `cwd' /tmp/ccz6TI1D.s:11: Error: no such instruction: `shufb $2,$3,$2,$5' /tmp/ccz6TI1D.s:12: Error: no such instruction: `stqd $2,48($sp)' /tmp/ccz6TI1D.s:13: Error: no such instruction: `lqd $2,64($sp)' /tmp/ccz6TI1D.s:14: Error: junk `($sp)' after expression /tmp/ccz6TI1D.s:14: Error: suffix or operands invalid for `cwd' /tmp/ccz6TI1D.s:15: Error: no such instruction: `shufb $2,$4,$2,$3' /tmp/ccz6TI1D.s:16: Error: no such instruction: `stqd $2,64($sp)' /tmp/ccz6TI1D.s:17: Error: no such instruction: `il $2,0' /tmp/ccz6TI1D.s:18: Error: no such instruction: `ori $3,$2,0' /tmp/ccz6TI1D.s:19: Error: no such instruction: `ai $sp,$sp,80' /tmp/ccz6TI1D.s:20: Error: no such instruction: `bi $lr' -konica