Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* Cannot build GDB for arm-elf targets under cygwin...
@ 2001-06-20 11:17 João Cadamuro Junior
  2001-06-20 21:07 ` Cliff Tsai
  2001-06-21  0:56 ` Fernando Nasser
  0 siblings, 2 replies; 5+ messages in thread
From: João Cadamuro Junior @ 2001-06-20 11:17 UTC (permalink / raw)
  To: gdb

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 3668 bytes --]

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


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2001-06-21  6:34 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-06-20 11:17 Cannot build GDB for arm-elf targets under cygwin João Cadamuro Junior
2001-06-20 21:07 ` Cliff Tsai
2001-06-21  0:56 ` Fernando Nasser
2001-06-21  0:59   ` Fernando Nasser
2001-06-21  6:34   ` João Cadamuro Junior

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox