Hi Peter.

The error I got was compiling GDB (The debugger) not
GCC (The compiler). GCC compiled with no errors, so I
think Steve has included the patch in CVS. Steve wrote
that he compiled the version 6.0 of GDB, so I tried to
compile that version plus the code from the
gdb-current on CVS, but I got the same error, same
line, though different line number due to the
different version. 

I think it is a Suse specific problem, cause Steve
used Fedora 4

I used a rather dirty trick. I copied the source
directories (after make) form Suse 9.3 to Suse 10 and
tiped "su" - "make install" and got a working
msp430-gdb. It was a desperate action, but allowed me
to continue working on mi project after upgrading my
OS.

Thanks for your kind answer, anyway 

--- Peter Jansen <[email protected]> wrote:

> 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/
>
___________________________________________________________________________
> 
> 
>
-------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc. Do
> you grep through log files
> for problems?  Stop!  Download the new AJAX search
> engine that makes
> searching your log files as easy as surfing the 
> web.  DOWNLOAD SPLUNK!
>
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
> _______________________________________________
> Mspgcc-users mailing list
> [email protected]
>
https://lists.sourceforge.net/lists/listinfo/mspgcc-users
> 



                
__________________________________________ 
Yahoo! DSL – Something to write home about. 
Just $16.99/mo. or less. 
dsl.yahoo.com 


Reply via email to