[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Unable to build cris-gdb



Hi,

I'm trying to build the cris-gdb debugger for remote debugging. I've
downloaded the latest gdb sources from Axis server (gdb-cris5-1R1) and
followed the instructions from the AXIS developer page.

After configuring it with --target=cris and running make command, I
receive the following error message : 

gcc -c -g -O2    -I. -I../../src/gdb -I../../src/gdb/config
-DHAVE_CONFIG_H -I../../src/gdb/../include/opcode
-I../../src/gdb/../readline/.. -I../bfd -I../../src/gdb/../bfd 
-I../../src/gdb/../include -I../intl -I../../src/gdb/../intl  -DMI_OUT=1
-DUI_OUT=1 -Wimplicit -Wreturn-type -Wcomment -Wtrigraphs -Wformat
-Wparentheses -Wpointer-arith -Wuninitialized  ../../src/gdb/utils.c
In file included from /usr/include/curses.h:111,
                 from ../../src/gdb/utils.c:30:
/usr/lib/gcc-lib/i386-redhat-linux/2.96/include/stdbool.h:39: conflicting
types for `false'
../bfd/bfd.h:106: previous declaration of `false'
/usr/lib/gcc-lib/i386-redhat-linux/2.96/include/stdbool.h:41: conflicting
types for `true'
../bfd/bfd.h:106: previous declaration of `true'
make[1]: *** [utils.o] Fehler 1
make[1]: Verlassen des Verzeichnisses Verzeichnis
»/usr/src/Cris/cris-gdb/cris/gdb«
make: *** [all-gdb] Fehler 2


It seems that true and false is double defined in bfd.h and stdbool.h. I
tried to define TRUE_FALSE_ALREADY_DEFINED but it doesn't seems to help.
Any ideas ? I'm using RedHat 7.3 on an ia32 system and gcc 2.96 (RedHat
build). 

	Arne Bockholdt


Dipl. Inform. Arne Bockholdt
REA Elektronik GmbH
Teichwiesenstr. 1
64367 Mühltal-Waschenbach
Tel. 06154 / 638-115, Fax -195
ABockholdt@xxxxxxx.de