From: Ralf Corsepius <ralf.corsepius@rtems.org>
To: gdb@sourceware.org
Subject: Re: [windows] build error on gdbserver
Date: Thu, 24 Nov 2011 14:15:00 -0000 [thread overview]
Message-ID: <4ECE507F.8020501@rtems.org> (raw)
In-Reply-To: <4ECE427C.2010208@gmail.com>
On 11/24/2011 02:11 PM, asmwarrior wrote:
> Hi, all, I use the gdb cvs.
>
> Now, build gdb under msys+mingw has a build error:
>
> make[4]: Entering directory `/f/build_gdb/gdb/gdbgit/buildNo/gdb/gdbserver'
> rm -f version.c-tmp version.c
> echo '#include "server.h"' >> version.c-tmp
> gcc -c -O0 -g -D__USE_MINGW_ACCESS -I. -I../../../gdb/gdb/gdbserver
> -I../../.
> ./gdb/gdb/gdbserver/../common -I../../../gdb/gdb/gdbserver/../regformats
> -I../..
> /../gdb/gdb/gdbserver/../../include -Wall -Wdeclaration-after-statement
> -Wpointe
> r-arith -Wformat-nonliteral -Wno-char-subscripts -Werror
> ../../../gdb/gdb/gdbser
> ver/mem-break.c
> echo 'const char version[] = "'"`sed q
> ../../../gdb/gdb/gdbserver/../version.in`
> "'";' >> version.c-tmp
> gcc -c -O0 -g -D__USE_MINGW_ACCESS -I. -I../../../gdb/gdb/gdbserver
> -I../../.
> ./gdb/gdb/gdbserver/../common -I../../../gdb/gdb/gdbserver/../regformats
> -I../..
> /../gdb/gdb/gdbserver/../../include -Wall -Wdeclaration-after-statement
> -Wpointe
> r-arith -Wformat-nonliteral -Wno-char-subscripts -Werror
> ../../../gdb/gdb/gdbser
> ver/hostio.c
> gcc -c -O0 -g -D__USE_MINGW_ACCESS -I. -I../../../gdb/gdb/gdbserver
> -I../../.
> ./gdb/gdb/gdbserver/../common -I../../../gdb/gdb/gdbserver/../regformats
> -I../..
> /../gdb/gdb/gdbserver/../../include -Wall -Wdeclaration-after-statement
> -Wpointe
> r-arith -Wformat-nonliteral -Wno-char-subscripts -Werror
> ../../../gdb/gdb/gdbser
> ver/event-loop.c
> echo 'const char host_name[] = "mingw32";' >> version.c-tmp
> mv version.c-tmp version.c
> gcc -c -O0 -g -D__USE_MINGW_ACCESS -I. -I../../../gdb/gdb/gdbserver
> -I../../.
> ./gdb/gdb/gdbserver/../common -I../../../gdb/gdb/gdbserver/../regformats
> -I../..
> /../gdb/gdb/gdbserver/../../include -Wall -Wdeclaration-after-statement
> -Wpointe
> r-arith -Wformat-nonliteral -Wno-char-subscripts -Werror
> ../../../gdb/gdb/gdbser
> ver/tracepoint.c
> gcc -c -O0 -g -D__USE_MINGW_ACCESS -I. -I../../../gdb/gdb/gdbserver
> -I../../
> ../gdb/gdb/gdbserver/../common
> -I../../../gdb/gdb/gdbserver/../regformats -I../.
> ./../gdb/gdb/gdbserver/../../include -Wall -Wdeclaration-after-statement
> -Wpoint
> er-arith -Wformat-nonliteral -Wno-char-subscripts -Werror
> ../../../gdb/gdb/gdbse
> rver/../common/xml-utils.c -DGDBSERVER
> gcc -c -O0 -g -D__USE_MINGW_ACCESS -I. -I../../../gdb/gdb/gdbserver
> -I../../
> ../gdb/gdb/gdbserver/../common
> -I../../../gdb/gdb/gdbserver/../regformats -I../.
> ./../gdb/gdb/gdbserver/../../include -Wall -Wdeclaration-after-statement
> -Wpoint
> er-arith -Wformat-nonliteral -Wno-char-subscripts -Werror
> ../../../gdb/gdb/gdbse
> rver/../common/common-utils.c -DGDBSERVER
> gcc -c -O0 -g -D__USE_MINGW_ACCESS -I. -I../../../gdb/gdb/gdbserver
> -I../../
> ../gdb/gdb/gdbserver/../common
> -I../../../gdb/gdb/gdbserver/../regformats -I../.
> ./../gdb/gdb/gdbserver/../../include -Wall -Wdeclaration-after-statement
> -Wpoint
> er-arith -Wformat-nonliteral -Wno-char-subscripts -Werror
> ../../../gdb/gdb/gdbse
> rver/../common/buffer.c -DGDBSERVER
> cc1.exe: warnings being treated as errors
> ../../../gdb/gdb/gdbserver/tracepoint.c: In function 'cmd_qtstatus':
> ../../../gdb/gdb/gdbserver/tracepoint.c:3460:5: error: unknown
> conversion type c
> haracter 'l' in format
> ../../../gdb/gdb/gdbserver/tracepoint.c:3460:5: error: unknown
> conversion type c
> haracter 'l' in format
> ../../../gdb/gdb/gdbserver/tracepoint.c:3460:5: error: format '%s'
> expects type
> 'char *', but argument 12 has type 'LONGEST'
> ../../../gdb/gdb/gdbserver/tracepoint.c:3460:5: error: format '%s'
> expects type
> 'char *', but argument 13 has type 'LONGEST'
> ../../../gdb/gdb/gdbserver/tracepoint.c:3460:5: error: too many
> arguments for fo
> rmat
> make[4]: *** [tracepoint.o] Error 1
> make[4]: *** Waiting for unfinished jobs....
> make[4]: Leaving directory `/f/build_gdb/gdb/gdbgit/buildNo/gdb/gdbserver'
> make[3]: *** [subdir_do] Error 1
> make[3]: Leaving directory `/f/build_gdb/gdb/gdbgit/buildNo/gdb'
> make[2]: *** [all] Error 2
> make[2]: Leaving directory `/f/build_gdb/gdb/gdbgit/buildNo/gdb'
> make[1]: *** [all-gdb] Error 2
> make[1]: Leaving directory `/f/build_gdb/gdb/gdbgit/buildNo'
> make: *** [all] Error 2
>
>
> It looks like something in tracepoint.c, so I CC to Yao.
Use "configure --disable-werror ..."
Ralf
next prev parent reply other threads:[~2011-11-24 14:15 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-11-24 13:07 asmwarrior
2011-11-24 14:15 ` Ralf Corsepius [this message]
2011-11-24 14:32 ` Eli Zaretskii
2011-11-24 14:51 ` Ralf Corsepius
2011-11-24 14:47 ` asmwarrior
2011-11-24 15:05 ` Pedro Alves
2011-11-24 17:38 ` Stan Shebs
2011-11-25 12:02 ` asmwarrior
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=4ECE507F.8020501@rtems.org \
--to=ralf.corsepius@rtems.org \
--cc=gdb@sourceware.org \
/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