habib bouaziz-viallet <[email protected]> writes:

> I have intalled binutils for msp430 by this way :
> rpm -ivh msp430-binutils-030303-1.i386.rpm

I don't use the RPM myself, but if it is configured with a prefix
different from the one you configured GCC with, you will have a
problem.

> ./configure --target=msp430 --prefix=/usr/local/msp430

[snip]

> Assembler messages:
> /tmp/ccSyqHxq.s:15: Error: junk `(r1)' after expression
> /tmp/ccSyqHxq.s:15: Error: too many memory references for `sub'
> /tmp/ccSyqHxq.s:16: Error: no such instruction: `subc 4(r1),r13'

It looks like it's picking up the host (x86?) assembler, which of
course does not work.

> WHAT'S GOING WRONG ! PLEASE HELP ME.

Make sure you have binutils and gcc set up under the same prefix.

Hope that helps.

Regards,
 --Daniel


Reply via email to