Hi Miguelangel,
I'm installing MSPGCC on a Laptot with Suse 10 (kernel
2.6.13-15, gcc 4.0.2), accordding to the instructions
on the online manual. I'm able to compile and install
binutils 2.14 and gcc 3.2.3, but when i compile gdb
5.1.1 I get the following error:
gcc -c -g -O2 -I. -I. -I./config -DHAVE_CONFIG_H
-I./../include/opcode -I./../readline/.. -I../bfd
-I./../bfd -I./../include -I../intl -I./../intl
-DMI_OUT=1 -DUI_OUT=1 -Wimplicit -Wreturn-type
-Wcomment -Wtrigraphs -Wformat -Wparentheses
-Wpointer-arith -Wuninitialized gdbtypes.c
gdbtypes.c: In function
‘recursive_dump_type’:
gdbtypes.c:2614: error: invalid lvalue in increment
make[1]: *** [gdbtypes.o] Error 1
make[1]: Leaving directory
`/home/mfraga/mspgcc/gdb-5.1.1/gdb'
make: *** [all-gdb] Error 2
I think the error is related to the gcc version,
because this error did nor appear on suse 9.3. Any
suggestions or workaround?
Steve Underwood, found this problem (email dated 2005-08-21), here is
the email,
I just tried do an MSP430 build of GCC 3.2.3 on a Fedora Core 4 machine.
Fedora Core 4 uses GCC 4.0. It seems GCC 4.0 refuses to build GCC 3.2.3,
saying there is a syntax error. The following patch makes it compile,
and it seems to work OK. I haven't tested very thoroughly, though.
Has anyone else experienced this problem?
Regards,
Steve
--- gcc-3.2.3/include/obstack.h 2001-03-15 03:44:38.000000000 +0800
+++ gcc-3.2.3.patched/include/obstack.h 2005-08-21 19:57:04.000000000 +0800
@@ -421,11 +421,12 @@
# define obstack_ptr_grow(OBSTACK,datum) \
__extension__ \
({ struct obstack *__o = (OBSTACK); \
if (__o->next_free + sizeof (void *) > __o->chunk_limit) \
_obstack_newchunk (__o, sizeof (void *)); \
- *((void **)__o->next_free)++ = ((void *)datum); \
+ *((void **)__o->next_free) = ((void *)datum); \
+ __o->next_free += sizeof(void *); \
(void) 0; })
# define obstack_int_grow(OBSTACK,datum) \
__extension__ \
({ struct obstack *__o = (OBSTACK); \
--
Peter Jansen
STS
Australian Antarctic Division
203 Channel Highway
Kingston
TAS 7050
AUSTRALIA
Phone +61 3 6232 3533
___________________________________________________________________________
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/
___________________________________________________________________________