https://sourceware.org/bugzilla/show_bug.cgi?id=23914
Bug ID: 23914 Summary: Add --disable-werror to ./configure support (example trigger: CFLAGS=-Og Product: elfutils Version: unspecified Status: UNCONFIRMED Severity: normal Priority: P2 Component: general Assignee: unassigned at sourceware dot org Reporter: slyfox at inbox dot ru CC: elfutils-devel at sourceware dot org Target Milestone: --- Initially I attempted to reproduce https://bugs.gentoo.org/671650 on vanilla master on elfutils as: $ autoreconf -i -f && ./configure --disable-maintainer-mode CFLAGS=-Og && make && make check The problem is in unconditional -Werror addition in config/eu.am: $(if $($(*F)_no_Werror),,-Werror) \ May I ask to add --disable-werror support to ./configure? That way elfutils will be less dependent on exact toolchain version and compiler flags (specifically warning flags). Example failure: dwarf_child.c: In function '__libdw_find_attr': dwarf_child.c:99:10: error: 'readp' may be used uninitialized in this function [-Werror=maybe-uninitialized] readp += len; ^~ Today Gentoo crudely works it around by sed'ing out -Werror at build time: https://gitweb.gentoo.org/repo/gentoo.git/tree/dev-libs/elfutils/elfutils-0.175.ebuild#n34 sed -i 's:-Werror::' */Makefile.in || die Thanks! -- You are receiving this mail because: You are on the CC list for the bug.