From owner-freebsd-bugs@freebsd.org Mon Aug 22 02:01:12 2016 Return-Path: Delivered-To: freebsd-bugs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id B7308BC1102 for ; Mon, 22 Aug 2016 02:01:12 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 8E6981E29 for ; Mon, 22 Aug 2016 02:01:12 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id u7M21CMR041206 for ; Mon, 22 Aug 2016 02:01:12 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-bugs@FreeBSD.org Subject: [Bug 212035] libnv fails to compile on 10.3Stable during buildworld with -DNDEBUG in CFLAGS (low priority) Date: Mon, 22 Aug 2016 02:01:12 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 10.3-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: dewayne@heuristicsystems.com.au X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter cc Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 22 Aug 2016 02:01:12 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D212035 Bug ID: 212035 Summary: libnv fails to compile on 10.3Stable during buildworld with -DNDEBUG in CFLAGS (low priority) Product: Base System Version: 10.3-STABLE Hardware: amd64 OS: Any Status: New Severity: Affects Some People Priority: --- Component: kern Assignee: freebsd-bugs@FreeBSD.org Reporter: dewayne@heuristicsystems.com.au CC: freebsd-amd64@FreeBSD.org CC: freebsd-amd64@FreeBSD.org Defining NDEBUG on the CFLAGS variable inhibits compilation of libnv as follows: # cd /pd3/src; MAKEOBJDIRPREFIX=3D/usr/obj/pd3/src/tmp cc -fpic -DPIC -O2 -pipe -g0 -ggdb0 -DNDEBUG -DSTRIP_FBSDID -UDEBUGGING -UDEBUG -DUSB_HAVE_DISABLE_ENUM -march=3Dcore-avx-i=20 -I/pd3/src/lib/libnv/../../sys -I/pd3/src/lib/libnv -std=3Dgnu99 -Qunused-arguments -fstack-protector -Wsystem-headers -Werror -Wall -Wno-format-y2k -W -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-stri= ngs -Wswitch -Wshadow -Wunused-parameter -Wcast-align -Wchar-subscripts -Winline -Wnested-externs -Wredundant-decls -Wold-style-definition -Wmissing-variable-declarations -Wno-pointer-sign -Wno-empty-body -Wno-string-plus-int -Wno-unused-const-variable -c /pd3/src/lib/libnv/../../sys/kern/subr_nvlist.c -o subr_nvlist.So /pd3/src/lib/libnv/../../sys/kern/subr_nvlist.c:982:36: error: unused param= eter 'nvl' [-Werror,-Wunused-parameter] nvlist_next_nvpair(const nvlist_t *nvl, const nvpair_t *nvp) ^ /pd3/src/lib/libnv/../../sys/kern/subr_nvlist.c:998:36: error: unused param= eter 'nvl' [-Werror,-Wunused-parameter] nvlist_prev_nvpair(const nvlist_t *nvl, const nvpair_t *nvp) --------- Whereas same comand without NDEBUG produces an object file. Discovered while trying to build a world without DEBUG code, and inadverten= tly -DNDEBUG when I should -UDEBUG. :} --=20 You are receiving this mail because: You are the assignee for the bug.=