This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: insight-5.1 build problems



I also have a problem while building insight 5.1. on linux

I'm using gcc 2.95.4.

gcc -c -g -O2    -I. -I../../gdb -I../../gdb/config -DHAVE_CONFIG_H
-I../../gdb/../include/opcode -I../../gdb/../readline/.. -I../bfd
-I../../gdb/../bfd  -I../../gdb/../include -I../intl -I../../gdb/../intl
-DMI_OUT=1 -DGDBTK -DUI_OUT=1 -Wimplicit -Wreturn-type -Wcomment -Wtrigraphs
-Wformat -Wparentheses -Wpointer-arith -Wuninitialized  ../../gdb/utils.c
In file included from /usr/include/curses.h:111,
                 from ../../gdb/utils.c:30:
/usr/lib/gcc-lib/i386-linux/2.95.4/include/stdbool.h:9: conflicting types
for `false'
../bfd/bfd.h:102: previous declaration of `false'
/usr/lib/gcc-lib/i386-linux/2.95.4/include/stdbool.h:11: conflicting types
for `true'
../bfd/bfd.h:102: previous declaration of `true'
make[1]: *** [utils.o] Error 1


I built insight 5.1 several befores and never encountered this error. My
guess is that I probably upgraded libcurse and that causes the problem.

I am not sure what the correct fix is (by looking at curses.h it seems there
is some kind of hack around the inclusion of stdbool.h)

However my workaround has been to change the order of the includes in
gdb/utils.c so that curses.h is included first.


-- 
Fabrice Gautier, 
Fabrice_Gautier@sdesigns.com


> -----Original Message-----
> From: Jesper Kjeldsen [mailto:JEK@penell.com]
> Sent: Tuesday, February 26, 2002 2:29 AM
> To: 'ecos-discuss@sources.redhat.com'
> Subject: [ECOS] insight-5.1 build problems
> 
> 
> I have tried to build insight-5.1 for target = arm-elf for 
> use with eCos on
> the Atmel EB40 board, but this doesn't seem to work. Has 
> anybody tried to
> use Insight-5.1 (with success) together with this 
> configuration (or any
> other configuration with eCos). I am using binutils, gcc and so on, as
> described on the redhat home page. 
> 
> 
> Best Regards
> Jesper Kjeldsen
> Project Engineer, E.E.
> 
> Phone direct:			+45 9652 0345
> E-mail:			jk@penell.com <mailto:jk@penell.com>   
> --------------------------------------------------------------
> --------------
> -------------
> Penell A/S - An RTX Company
> Plastvaenget 9
> DK-9560 Hadsund 
> Denmark.
> Phone: 			+45 9857 2666
> Fax:			+45 9857 2664
> Website:			www.penell.com <http://www.penell.com>  
> --------------------------------------------------------------
> --------------
> -------------
> 
> -- 
> Before posting, please read the FAQ: 
http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss

-- 
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]