habib bouaziz-viallet wrote:

Hi all,
My system is a GNU/Linux RH8.0

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

I have created a new directory :
su
mkdir /usr/local/msp430
chown habib.habib msp430
exit

and afertwards I tryed to configure and build gcc as a cross-compiler targeted to msp430 by this bash script under a local directory /home/habib/GNU-TOOLS/MSP430-GCC/

#!/bin/sh -e
cvs -z3 -d:pserver:[email protected]:/cvsroot/mspgcc co gcc
/bin/rm -rf gcc-3.2.3
tar -jxvf gcc-core-3.2.3.tar.bz2
/bin/cp -a gcc/gcc-3.3/* gcc-3.2.3/
cd gcc-3.2.3
./configure --target=msp430 --prefix=/usr/local/msp430
make clean && make

  1. Installing binutils from rpm works well (msp430-as, msp430-ld,
     msp430-objcopy, ...etc)
2. gcc directory created from cvs with gcc-3.0 ...gcc-3.4 subdirectories
  3. configure script probably creates a valid Makefile
  4. BUT make (after long minutes compiling ...) failed with this
     messages :

/home/habib/GNU-TOOLS/MSP430-GCC/gcc-3.2.3/gcc/xgcc -B/home/habib/GNU-TOOLS/MSP430-GCC/gcc-3.2.3/gcc/ -B/usr/local/msp430/msp430/bin/ -B/usr/local/msp430/msp430/lib/ -isystem /usr/local/msp430/msp430/include -O2 -DIN_GCC -DCROSS_COMPILE -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -isystem ./include -DDF=SF -Dinhibit_libc -g -g -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -Dinhibit_libc -I. -I. -I. -I./. -I./config -I./../include -DL_cmpdi2 -xassembler-with-cpp -c ./config/msp430/libgcc.S -o libgcc/./_cmpdi2.o

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'
/tmp/ccSyqHxq.s:17: Error: no such instruction: `subc 6(r1),r14'
/tmp/ccSyqHxq.s:18: Error: no such instruction: `subc 8(r1),r15'
/tmp/ccSyqHxq.s:20: Error: no such instruction: `tst r15'
/tmp/ccSyqHxq.s:20: Error: invalid character '<' in mnemonic
/tmp/ccSyqHxq.s:23: Error: suffix or operands invalid for `mov'
/tmp/ccSyqHxq.s:26: Error: no such instruction: `bis r12,r14'
/tmp/ccSyqHxq.s:26: Error: no such instruction: `check if zero'
/tmp/ccSyqHxq.s:27: Error: no such instruction: `bis r13,r15'
/tmp/ccSyqHxq.s:28: Error: no such instruction: `bis r14,r15'
/tmp/ccSyqHxq.s:29: Error: no such instruction: `tst r15'
/tmp/ccSyqHxq.s:30: Error: suffix or operands invalid for `je'
/tmp/ccSyqHxq.s:30: Error: junk `or or105ng all nibbles10' after expression
/tmp/ccSyqHxq.s:30: Error: suffix or operands invalid for `test'
/tmp/ccSyqHxq.s:31: Error: suffix or operands invalid for `mov'
/tmp/ccSyqHxq.s:34: Error: suffix or operands invalid for `mov'
make[2]: *** [libgcc/./_cmpdi2.o] Erreur 1
make[2]: Quitte le répertoire `/home/habib/GNU-TOOLS/MSP430-GCC/gcc-3.2.3/gcc'
make[1]: *** [stmp-multilib] Erreur 2
make[1]: Quitte le répertoire `/home/habib/GNU-TOOLS/MSP430-GCC/gcc-3.2.3/gcc'
make: *** [all-gcc] Erreur 2

WHAT'S GOING WRONG ! PLEASE HELP ME.

Habib.

The binutils RPM, like typical RedHat RPMs, does not put things in /usr/local/msp430. It puts them in /usr/msp430. I made that RPM for binutils, with the intention of releasing a full over the following week. That was two months ago. Things have been a little busy :-)

If you build everything for yourself, and put it all in /usr/local/msp430 it should be fine. If I can get the rest of the RPMs done that should be fine. The mixture of a binutils RPM using /usr/msp430 and a gcc build using /usr/local/msp430 is not so good.

Regards,
Steve




Reply via email to