Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: João Cadamuro Junior <cadamuro@lit.cpdtt.cefetpr.br>
To: gdb <gdb@sources.redhat.com>
Subject: Cannot build GDB for arm-elf targets under cygwin...
Date: Wed, 20 Jun 2001 11:17:00 -0000	[thread overview]
Message-ID: <3B30E895.5BDE9E4A@lit.cpdtt.cefetpr.br> (raw)

[-- 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


             reply	other threads:[~2001-06-20 11:17 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-06-20 11:17 João Cadamuro Junior [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3B30E895.5BDE9E4A@lit.cpdtt.cefetpr.br \
    --to=cadamuro@lit.cpdtt.cefetpr.br \
    --cc=gdb@sources.redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox