This is the mail archive of the gdb-prs@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]

[Bug build/9523] build error from compiler warning for -Werror


------- Additional Comments From robert dot bu at gmail dot com  2009-01-20 06:28 -------
Subject: Re:  build error from compiler warning for -Werror

Sorry for the in-convenience.

I still can re-produce the bug from CVS-20090120.

gcc -g -O2   -I. -I../../src/gdb -I../../src/gdb/config
-DLOCALEDIR="\"/home/robert_bu/local/gdb-cvs/share/locale\""
-DHAVE_CONFIG_H -I../../src/gdb/../include/opcode
-I../../src/gdb/../readline/.. -I../bfd -I../../src/gdb/../bfd
-I../../src/gdb/../include -I../libdecnumber
-I../../src/gdb/../libdecnumber  -I../../src/gdb/gnulib -Ignulib
-DMI_OUT=1 -DTUI=1  -Wall -Wdeclaration-after-statement -Wpointer-arith
-Wformat-nonliteral -Wno-unused -Wno-switch -Wno-char-subscripts -Werror
-c -o infcall.o -MT infcall.o -MMD -MP -MF .deps/infcall.Tpo
../../src/gdb/infcall.c
cc1: warnings being treated as errors
../../src/gdb/infcall.c: In function `find_function_addr':
../../src/gdb/infcall.c:212: warning: `funaddr' might be used
uninitialized in this function
make[2]: *** [infcall.o] Error 1
make[2]: Leaving directory `/home/robert_bu/src/gdb_cvs/build/gdb'
make[1]: *** [all-gdb] Error 2
make[1]: Leaving directory `/home/robert_bu/src/gdb_cvs/build'
make: *** [all] Error 2


My host is a Redhat Enterprise 3. The GCC is:
Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/3.2.3/specs
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man
--infodir=/usr/share/info --enable-shared --enable-threads=posix
--disable-checking --with-system-zlib --enable-__cxa_atexit
--host=i386-redhat-linux
Thread model: posix
gcc version 3.2.3 20030502 (Red Hat Linux 3.2.3-54)

I have to initialize funaddr to NULL to compile CVS gdb.

-----Original Message-----
From: pedro at codesourcery dot com
Sent: 2009-01-18 9:50

> ------- Additional Comments From pedro at codesourcery dot com  2009-01-18 01:50 -------
> I don't see this happening in current mainline.
>
> In general, there's no need to report these build errors through the bug
> tracker.  The GDB developers build gdb regularly, so these kinds of problem are
> always quickly fixed.
>
> Thanks!
>
>


-- 


http://sourceware.org/bugzilla/show_bug.cgi?id=9523

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


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