I have been trying to compile the tools (binutils, gcc, gdb(or insight,
jtag) for the msp430 under SuSE 8.1. I've got gcc built and installed with
out problems (relatively speaking). But binutils needed some modification
before it would compile. under binutils-2.14/opcodes/disassemble.c I had to
comment out the following lines(lines 168-170) as shown:
#ifdef ARCH_i386
// case bfd_arch_i386:
// disassemble = print_insn_i386;
// break;
#endif
First of all I would like to know if this is ok. It seems to work in the
_very_ limited tests I've done and it was good enough to compile gcc.
Second and most importantly I cannot compile gdb or insight. For either one
I get the same error in readline/readline.c. That looks like this:
gcc -c -DHAVE_CONFIG_H -I. -I.
-I/evtfs/nfswkgrp/igdev/public/mspgcc/msp430/include
-DRL_LIBRARY_VERSION='"4.1"' -g -O2 readline.c
In file included from posixstat.h:27,
from readline.c:30:
/usr/include/sys/stat.h:201: parse error before "__THROW"
<snip>
These parse errors continue for probably 50 more lines and about 4 other
headers in /usr/include/
I am not completely sure what other information would be useful but if
anyone would like any more information I can collect it.
Thank you very much for any help you can offer.
Chris Takahashi