Date: Mon, 22 Aug 2016 02:01:12 +0000 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) Message-ID: <bug-212035-8@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
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.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-212035-8>
