Cannot build GDB for arm-elf targets under cygwin...

Cliff Tsai clifftsai@axisoft.com
Wed Jun 20 21:07:00 GMT 2001


Try snapshot.
I use insight+dejagnu-20010425!No Problem at all!

----- Original Message -----
From: "João Cadamuro Junior" <cadamuro@lit.cpdtt.cefetpr.br>
To: "gdb" <gdb@sources.redhat.com>
Sent: Thursday, June 21, 2001 2:16 AM
Subject: Cannot build GDB for arm-elf targets under cygwin...


> Hello,
>
> I'm trying to build insight and gdb for arm-elf targets from weekly
> snapshots under cygwin-1.3.2, and it is impossible over the last one
> month.
>
> Host system: PC 'running' Windows 2000 (SP2) and with the lastest cygwin
> release (cygwin-1.3.2, with gcc-2.95.3-5) installed.
>
> The file .../insight+dejagnu-200106XX/gdb/remote-rdi.c doesn't compile.
>
> The first error found was...
>
> gcc -mwin32 -c -g    -I. -I/src/gdb/insight+dejagnu-20010619/gdb
> -I/src/gdb/insight+dejagnu-20010619/gdb/config -DHAVE_CONFIG_H
> -I/src/gdb/insight+dejagnu-20010619/gdb/../include/opcode
> -I/src/gdb/insight+dejagnu-20010619/gdb/../readline/.. -I../bfd
> -I/src/gdb/insight+dejagnu-20010619/gdb/../bfd
> -I/src/gdb/insight+dejagnu-20010619/gdb/../include -I../intl
> -I/src/gdb/insight+dejagnu-20010619/gdb/../intl  -DGDBTK -DUI_OUT=1
> -Wimplicit -Wreturn-type -Wcomment -Wtrigraphs -Wformat -Wparentheses
> -Wpointer-arith -Wuninitialized
> /src/gdb/insight+dejagnu-20010619/gdb/remote-rdi.c
> In file included from
> /src/gdb/insight+dejagnu-20010619/gdb/rdi-share/ardi.h:17,
>                  from
> /src/gdb/insight+dejagnu-20010619/gdb/remote-rdi.c:44:
> /src/gdb/insight+dejagnu-20010619/gdb/rdi-share/host.h:167: warning:
> `FOPEN_WB' redefined
> /src/gdb/insight+dejagnu-20010619/gdb/../include/fopen-bin.h:16:
> warning: this is the location of the previous definition
> /src/gdb/insight+dejagnu-20010619/gdb/rdi-share/host.h:168: warning:
> `FOPEN_RB' redefined
> /src/gdb/insight+dejagnu-20010619/gdb/../include/fopen-bin.h:15:
> warning: this is the location of the previous definition
> /src/gdb/insight+dejagnu-20010619/gdb/rdi-share/host.h:183: parse error
> make[1]: *** [remote-rdi.o] Error 1
>
> This error is an obvious lack of parenthesis in the line 183 of the
> host.h file...
>
> But, even correcting the error, I get the following...
>
> gcc -mwin32 -c -g    -I. -I/src/gdb/insight+dejagnu-20010619/gdb
> -I/src/gdb/insight+dejagnu-20010619/gdb/config -DHAVE_CONFIG_H
> -I/src/gdb/insight+dejagnu-20010619/gdb/../include/opcode
> -I/src/gdb/insight+dejagnu-20010619/gdb/../readline/.. -I../bfd
> -I/src/gdb/insight+dejagnu-20010619/gdb/../bfd
> -I/src/gdb/insight+dejagnu-20010619/gdb/../include -I../intl
> -I/src/gdb/insight+dejagnu-20010619/gdb/../intl  -DGDBTK -DUI_OUT=1
> -Wimplicit -Wreturn-type -Wcomment -Wtrigraphs -Wformat -Wparentheses
> -Wpointer-arith -Wuninitialized
> /src/gdb/insight+dejagnu-20010619/gdb/remote-rdi.c
> In file included from
> /src/gdb/insight+dejagnu-20010619/gdb/rdi-share/ardi.h:17,
>                  from
> /src/gdb/insight+dejagnu-20010619/gdb/remote-rdi.c:44:
> /src/gdb/insight+dejagnu-20010619/gdb/rdi-share/host.h:167: warning:
> `FOPEN_WB' redefined
> /src/gdb/insight+dejagnu-20010619/gdb/../include/fopen-bin.h:16:
> warning: this is the location of the previous definition
> /src/gdb/insight+dejagnu-20010619/gdb/rdi-share/host.h:168: warning:
> `FOPEN_RB' redefined
> /src/gdb/insight+dejagnu-20010619/gdb/../include/fopen-bin.h:15:
> warning: this is the location of the previous definition
> cc1.exe: warning: -Wuninitialized is not supported without -O
> /src/gdb/insight+dejagnu-20010619/gdb/remote-rdi.c:518: conflicting
> types for `arm_rdi_wait'
> /src/gdb/insight+dejagnu-20010619/gdb/remote-rdi.c:80: previous
> declaration of `arm_rdi_wait'
> make[1]: *** [remote-rdi.o] Error 1
>
> This error came because the prototype (line 80) and the implementation
> (line 518) of the funcion 'arm_rdi_wait' in the "remote-rdi.c" file are
> different.
>
> In this point, before trying to modify the source code again, I decide
> to ask to GDB list what is the most wise choice for my arm-elf debugger
> (even because I'll need the RDI target!). Any sugestions???
>
>
> Thanks in advance,
>
> João Cadamuro Junior
> LIT / CPDTT / CEFET-PR
>
>




More information about the Gdb mailing list