Hello all,
I am sorry to have to ask this, I have read the manual and checked the
wiki and read through this mailing list but can't find what I am doing
wrong.
I got the source for gcc like so:
cvs co -r MSP430X gcc
and followed the instructions in the manual
$ cp -a gcc/gcc-3.3/* gcc-3.2.3
$ cd gcc-3.2.3
$ ./configure --target=msp430 --prefix=/usr/local/msp430
$ make
to which I get the error:
*
* /home/Wolf/gcc-3.2.3/gcc/xgcc -B/home/Wolf/gcc-3.2.3/gcc/
-B/usr/local/msp430/ms
p430/bin/ -B/usr/local/msp430/msp430/lib/ -isystem
/usr/local/msp430/msp430/incl
ude -O2 -DIN_GCC -DCROSS_COMPILE -W -Wall -Wwrite-strings
-Wstrict-prototypes
-Wmissing-prototypes -isystem ./include -DDF=SF -Dinhibit_libc -g -g
-DIN_LIB
GCC2 -D__GCC_FLOAT_NOT_NEEDED -Dinhibit_libc -I. -I. -I. -I./. -I./config
-I./..
/include -mmcu=msp430x2232 -DL_cmpdi2 -xassembler-with-cpp -c
./config/msp430/li
bgcc.S -o libgcc/msp3/_cmpdi2.o
Known MCU names:
msp1
msp2
<< and so on >>
msp430x448
msp430x449
Assembler messages:
Fatal error: unknown MCU: msp430x2232
make[2]: *** [libgcc/msp3/_cmpdi2.o] Error 1
make[2]: Leaving directory `/home/Wolf/gcc-3.2.3/gcc'
make[1]: *** [stmp-multilib] Error 2
make[1]: Leaving directory `/home/Wolf/gcc-3.2.3/gcc'
make: *** [all-gcc] Error 2
Ok, so I figure I need a more up to date assembler (binutils). I was
using binutils 2.19 vanilla.
Now the real problem becomes how to build a new version of binutils?
which version?
I got the patch from
/mspgcc/binutils/binutils-14x1-20x1-20x2-20x3-22x4-42x-42x0-461x.patch *
*which is marked with the tag MSP430X, so I guess I am on the right
track. I applied it against binutils 2.19, and got no errors while patching.
Now configuring and making yields the error:
make[4]: Entering directory
`/home/Wolf/binutils-2.19/ld'
/bin/sh ./libtool --tag=CC --mode=link gcc -W -Wall
-Wstrict-prototypes -Wmissin
g-prototypes -Werror -g -O2 -o ld-new.exe ldgram.o ldlex.o
lexsup.o ldlang.o
mri.o ldctor.o ldmain.o ldwrite.o ldexp.o ldemul.o ldver.o ldmisc.o
ldfile.o ldc
ref.o emsp430x110.o emsp430x112.o emsp430x1101.o emsp430x1111.o
emsp430x1121.o e
msp430x1122.o emsp430x1132.o emsp430x122.o emsp430x123.o
emsp430x1222.o emsp430x
1232.o emsp430x133.o emsp430x135.o emsp430x1331.o emsp430x1351.o
emsp430x147.o e
msp430x148.o emsp430x149.o emsp430x1471.o emsp430x1481.o
emsp430x1491.o emsp430x
155.o emsp430x156.o emsp430x157.o emsp430x167.o emsp430x168.o
emsp430x169.o emsp
430x1610.o emsp430x1611.o emsp430x1612.o emsp430x2001.o
emsp430x2011.o emsp430x2
002.o emsp430x2012.o emsp430x2003.o emsp430x2013.o emsp430x2101.o
emsp430x2111.o
emsp430x2121.o emsp430x2131.o emsp430x2234.o emsp430x2254.o
emsp430x2274.o emsp
430x311.o emsp430x312.o emsp430x313.o emsp430x314.o emsp430x315.o
emsp430x323.o
emsp430x325.o emsp430x336.o emsp430x337.o emsp430x412.o
emsp430x413.o emsp430x41
5.o emsp430x417.o emsp430x423.o emsp430x425.o emsp430x427.o
emsp430x4250.o emsp4
30x4260.o emsp430x4270.o emsp430xE423.o emsp430xE425.o
emsp430xE427.o emsp430xW4
23.o emsp430xW425.o emsp430xW427.o emsp430xG437.o emsp430xG438.o
emsp430xG439.o
emsp430x435.o emsp430x436.o emsp430x437.o emsp430x447.o
emsp430x448.o emsp430x44
9.o emsp430xG4616.o emsp430xG4617.o emsp430xG4618.o emsp430xG4619.o
../bfd/libb
fd.la ../libiberty/libiberty.a
./../intl/libintl.a
libtool: link: gcc -W -Wall -Wstrict-prototypes -Wmissing-prototypes
-Werror -g
-O2 -o .libs/ld-new.exe ldgram.o ldlex.o lexsup.o ldlang.o mri.o
ldctor.o ldmain
.o ldwrite.o ldexp.o ldemul.o ldver.o ldmisc.o ldfile.o ldcref.o
emsp430x110.o e
msp430x112.o emsp430x1101.o emsp430x1111.o emsp430x1121.o
emsp430x1122.o emsp430
x1132.o emsp430x122.o emsp430x123.o emsp430x1222.o emsp430x1232.o
emsp430x133.o
emsp430x135.o emsp430x1331.o emsp430x1351.o emsp430x147.o
emsp430x148.o emsp430x
149.o emsp430x1471.o emsp430x1481.o emsp430x1491.o emsp430x155.o
emsp430x156.o e
msp430x157.o emsp430x167.o emsp430x168.o emsp430x169.o
emsp430x1610.o emsp430x16
11.o emsp430x1612.o emsp430x2001.o emsp430x2011.o emsp430x2002.o
emsp430x2012.o
emsp430x2003.o emsp430x2013.o emsp430x2101.o emsp430x2111.o
emsp430x2121.o emsp4
30x2131.o emsp430x2234.o emsp430x2254.o emsp430x2274.o emsp430x311.o
emsp430x312
.o emsp430x313.o emsp430x314.o emsp430x315.o emsp430x323.o
emsp430x325.o emsp430
x336.o emsp430x337.o emsp430x412.o emsp430x413.o emsp430x415.o
emsp430x417.o ems
p430x423.o emsp430x425.o emsp430x427.o emsp430x4250.o emsp430x4260.o
emsp430x427
0.o emsp430xE423.o emsp430xE425.o emsp430xE427.o emsp430xW423.o
emsp430xW425.o e
msp430xW427.o emsp430xG437.o emsp430xG438.o emsp430xG439.o
emsp430x435.o emsp430
x436.o emsp430x437.o emsp430x447.o emsp430x448.o emsp430x449.o
emsp430xG4616.o e
msp430xG4617.o emsp430xG4618.o emsp430xG4619.o
../bfd/.libs/libbfd.a ../libiber
ty/libiberty.a
./../intl/libintl.a
gcc: emsp430x1471.o: No such file or
directory
gcc: emsp430x1481.o: No such file or
directory
gcc: emsp430x1491.o: No such file or
directory
gcc: emsp430x2001.o: No such file or
directory
gcc: emsp430x2011.o: No such file or
directory
gcc: emsp430x2002.o: No such file or
directory
gcc: emsp430x2012.o: No such file or
directory
gcc: emsp430x2003.o: No such file or
directory
gcc: emsp430x2013.o: No such file or
directory
gcc: emsp430x2234.o: No such file or
directory
gcc: emsp430x2254.o: No such file or
directory
gcc: emsp430x2274.o: No such file or
directory
gcc: emsp430x423.o: No such file or
directory
gcc: emsp430x425.o: No such file or
directory
gcc: emsp430x427.o: No such file or
directory
gcc: emsp430x4250.o: No such file or
directory
gcc: emsp430x4260.o: No such file or
directory
gcc: emsp430x4270.o: No such file or
directory
gcc: emsp430xG4616.o: No such file or
directory
gcc: emsp430xG4617.o: No such file or
directory
gcc: emsp430xG4618.o: No such file or
directory
gcc: emsp430xG4619.o: No such file or
directory
make[4]: *** [ld-new.exe] Error
1
make[4]: Leaving directory
`/home/Wolf/binutils-2.19/ld'
make[3]: *** [all-recursive] Error
1
make[3]: Leaving directory
`/home/Wolf/binutils-2.19/ld'
make[2]: *** [all] Error
2
make[2]: Leaving directory
`/home/Wolf/binutils-2.19/ld'
make[1]: *** [all-ld] Error
2
make[1]: Leaving directory
`/home/Wolf/binutils-2.19'
make: *** [all] Error 2
Any ideas? Can somebody please outline some simple build steps for me? I
see others are building it ok so I am obviously missing something.
Perhaps the build steps could be put on the wiki too? That would be
great. (Also a link to the wiki from the mspgcc website would be good
but I am not going to hold my breath).
Thanks!
- Wayne Uroda