Hi,
I have been trying to build msp430 binutils in a separate directory from
the source and it does not work as a header file is wrong.
I'm using the following,
get the binutils-2.11.tar.bz2
get the binutils from the msp430 project
cd msp430 (or somewhere)
tar xvjf binutils-2.11.tar.bz2
cp -a binutils-2.11 binutils-2.11.msp430
cp -av binutils/binutils-2.11 binutils-2.11-msp430 (from the msp430)
mkdir build-binutils-2.11-msp430
cd build-binutils-2.11-msp430
../binutils-2.11-msp430/configure --target=avr
make
...
This fails with
gcc -DHAVE_CONFIG_H -I. -I../../binutils-2.11-msp430/opcodes -I. -D_GNU_SOURCE
-I. -I../../binutils-2.11-msp430/opcodes -I../bfd
-I../../binutils-2.11-msp430/opcodes/../include
-I../../binutils-2.11-msp430/opcodes/../bfd
-I../../binutils-2.11-msp430/opcodes/../intl -I../intl -I../gas -I../
-I../gas/config -W -Wall -g -O2 -c
../../binutils-2.11-msp430/opcodes/msp430-dis.c -o msp430-dis.o
../../binutils-2.11-msp430/opcodes/msp430-dis.c:26:16: as.h: No such file or
directory
deleting the #include "as.h" from opcodes/msp430-dis.c the build works fine.
Could you have the msp430 binutils to remove this line, so building in
separate directories works correctly.
Thanks,
--
Peter Jansen
STS
Australian Antarctic Division
Channel Highway
Kingston
TAS 7050
AUSTRALIA
Ph (03) 62 323 533
Fax (03) 62 323 351
___________________________________________________________________________
Australian Antarctic Division - Commonwealth of Australia
IMPORTANT: This transmission is intended for the addressee only. If you are
not the intended recipient, you are notified that use or dissemination of
this communication is strictly prohibited by Commonwealth law. If you have
received this transmission in error, please notify the sender immediately
by e-mail or by telephoning +61 3 6232 3209 and DELETE the message.
Visit our web site at http://www.aad.gov.au/
___________________________________________________________________________