This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

remote.c:2859: error: format '%x' expects type 'unsigned int', but argument 3 has type 'pid_t'


gdb 6.8.0.20090120 fails to compile with the following errors (on a
Sun Solaris 2.8 machine)

gcc -c -g -O2   -I. -I../../../unZipped/gdb-6.8.0.20090120/gdb
-I../../../unZipped/gdb-6.8.0.20090120/gdb/config
-DLOCALEDIR="\"/home/kkusuman/software/myroot/gdb-6.8.0.20090120/share/locale\""
-DHAVE_CONFIG_H
-I../../../unZipped/gdb-6.8.0.20090120/gdb/../include/opcode
-I../../../unZipped/gdb-6.8.0.20090120/gdb/../readline/.. -I../bfd
-I../../../unZipped/gdb-6.8.0.20090120/gdb/../bfd
-I../../../unZipped/gdb-6.8.0.20090120/gdb/../include
-I../libdecnumber
-I../../../unZipped/gdb-6.8.0.20090120/gdb/../libdecnumber -I./../intl
 -DMI_OUT=1 -DTUI=1 -I/home/kkusuman/software/myroot/include -Wall
-Wdeclaration-after-statement -Wpointer-arith -Wformat-nonliteral
-Wno-pointer-sign -Wno-unused -Wno-switch -Wno-char-subscripts -Werror
../../../unZipped/gdb-6.8.0.20090120/gdb/remote.c
cc1: warnings being treated as errors
../../../unZipped/gdb-6.8.0.20090120/gdb/remote.c: In function
'extended_remote_attach_1':
../../../unZipped/gdb-6.8.0.20090120/gdb/remote.c:2859: error: format
'%x' expects type 'unsigned int', but argument 3 has type 'pid_t'
make[2]: *** [remote.o] Error 1
make[2]: Leaving directory
`/home/kkusuman/software/compileHere/gdb-6.8.0.20090120/gdb'
make[1]: *** [all-gdb] Error 2
make[1]: Leaving directory
`/home/kkusuman/software/compileHere/gdb-6.8.0.20090120'
make: *** [all] Error 2


System information
> gcc -v
Using built-in specs.
Target: sparc-sun-solaris2.8
Configured with:
/home/kkusuman/software/unZipped/gcc-4.4-20090109/configure
--enable-languages=c,c++,fortran
--prefix=/home/kkusuman/software/myroot/gcc-4.4-20090109 --with-gnu-as
--with-as=/home/kkusuman/software/myroot/bin/as --with-gnu-ld
--with-ld=/home/kkusuman/software/myroot/bin/ld
Thread model: posix
gcc version 4.4.0 20090109 (experimental) (GCC)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]