From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 74251 invoked by alias); 23 Nov 2018 16:29:13 -0000 Mailing-List: contact elfutils-devel-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Post: List-Help: List-Subscribe: Sender: elfutils-devel-owner@sourceware.org Received: (qmail 68505 invoked by uid 48); 23 Nov 2018 16:29:09 -0000 From: "slyfox at inbox dot ru" To: elfutils-devel@sourceware.org Subject: [Bug general/23914] New: Add --disable-werror to ./configure support (example trigger: CFLAGS=-Og Date: Fri, 23 Nov 2018 16:29:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: elfutils X-Bugzilla-Component: general X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: slyfox at inbox dot ru X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter cc target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-q4/txt/msg00171.txt.bz2 https://sourceware.org/bugzilla/show_bug.cgi?id=3D23914 Bug ID: 23914 Summary: Add --disable-werror to ./configure support (example trigger: CFLAGS=3D-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=3D= -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=3Dmaybe-uninitialized] readp +=3D len; ^~ Today Gentoo crudely works it around by sed'ing out -Werror at build time: =20=20=20 https://gitweb.gentoo.org/repo/gentoo.git/tree/dev-libs/elfutils/elfutils-0= .175.ebuild#n34 sed -i 's:-Werror::' */Makefile.in || die Thanks! --=20 You are receiving this mail because: You are on the CC list for the bug.