[windows] build error on gdbserver

asmwarrior asmwarrior@gmail.com
Thu Nov 24 13:07:00 GMT 2011


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.

Thanks.



More information about the Gdb mailing list