On 06/21/2011 06:46 AM, Kamaraju Kusumanchi wrote:
I am unable to compile gdb-7.2 using gcc-4.6 with the -Werror option
on a Debian sid machine. When I reported the bug to gdb maintainers as
http://sourceware.org/bugzilla/show_bug.cgi?id=12891 , they informed
me that the bug is actually in autoconf package. It seems libiberty in
gdb-7.2 uses AC_REPLACE_FUNCS and apparently this is not -Werror safe.

The answer is simple: You must not pass -Werror to configure scripts, because many autoconf checks are based on compile checks applying "crude" code, which occasionally trigger warnings but are not supposed to issue errors.

That said, if this -Werror originates from gdb's configury, it's a bug in their package's usage of autoconf, if this -Werror originates from your command-line, the origin of this issue is you ;)

Ralf


Reply via email to