This sounds very similiar to a bug I ran into with the uClinux-dist and
gcc 4. The compiler is stricter in many cases. After correcting about
half a dozen other errors, I the compile to finish.
 
You might try checking out the code repository or mailing list for m68k
bdm gdb to see if anyone has already made a fix.
 
- Jate S.

________________________________

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
[EMAIL PROTECTED]
Sent: Tuesday, July 17, 2007 12:57 PM
To: uclinux-dev@uclinux.org
Subject: [uClinux-dev] Compiling GDB with gcc 4.1.2 help



Hi all - 

        I'm trying to build gdb 6.0 with the m68k-bdm patches.  Walking
through the readme file, I got the bdm-chk program to work with the PE
debugger, but I am getting errors when I try to compile gdb itself. 

        I'm using Fedora Core 6, which has gcc 4.1.2. 

The error that I am getting is: 


make[1]: Entering directory `/opt/gdb60-build/gdb' 
gcc -c -g -O2    -I. -I../../gdb-6.0/gdb -I../../gdb-6.0/gdb/config
-DLOCALEDIR="\"/opt/m68k-bdm/share/locale\"" -DHAVE_CONFIG_H
-I../../gdb-6.0/gdb/../include/opcode -I../../gdb-6.0/gdb/../readline/..
-I../bfd -I../../gdb-6.0/gdb/../bfd  -I../../gdb-6.0/gdb/../include
-I../intl -I../../gdb-6.0/gdb/../intl  -DMI_OUT=1 -Wimplicit
-Wreturn-type -Wcomment -Wtrigraphs -Wformat -Wparentheses
-Wpointer-arith -Wuninitialized  ../../gdb-6.0/gdb/gdbtypes.c 
../../gdb-6.0/gdb/gdbtypes.c: In function 'recursive_dump_type': 
../../gdb-6.0/gdb/gdbtypes.c:3059: error: invalid lvalue in increment 
make[1]: *** [gdbtypes.o] Error 1 
make[1]: Leaving directory `/opt/gdb60-build/gdb' 
make: *** [all-gdb] Error 2 

I read from google that one cannot compile gdb with gcc 4 and up.  Is
this true??? 

Any help would be appreciated. 

Thanks 
Mark 




************************************************************************
************
This footnote confirms that this email message has been scanned by
PineApp Mail-SeCure for the presence of malicious code, vandals &
computer viruses.
************************************************************************
************



_______________________________________________
uClinux-dev mailing list
uClinux-dev@uclinux.org
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by uclinux-dev@uclinux.org
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev

Reply via email to