Date: Mon, 04 Mar 2019 12:50:36 +0000 From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 236207] devel/mdb: fails to build with clang 8 Message-ID: <bug-236207-7788@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D236207 Bug ID: 236207 Summary: devel/mdb: fails to build with clang 8 Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Keywords: needs-patch Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: jhb@FreeBSD.org Reporter: jbeich@FreeBSD.org Blocks: 236062 Assignee: jhb@FreeBSD.org Flags: maintainer-feedback?(jhb@FreeBSD.org) $ poudriere jail -cj clang8 -v projects/clang800-import -m svn+https $ poudriere testport -j clang8 devel/mdb [...] In file included from findstack_subr.c:35: modules/kernel/kernel.h:45:3: error: declaration shadows a variable in the global scope [-Werror,-Wshadow] TDS_INACTIVE =3D 0x0, ^ /usr/include/sys/proc.h:330:3: note: previous declaration is here TDS_INACTIVE =3D 0x0, ^ In file included from findstack_subr.c:35: modules/kernel/kernel.h:45:3: error: redefinition of enumerator 'TDS_INACTI= VE' TDS_INACTIVE =3D 0x0, ^ /usr/include/sys/proc.h:330:3: note: previous definition is here TDS_INACTIVE =3D 0x0, ^ In file included from findstack_subr.c:35: modules/kernel/kernel.h:46:3: error: declaration shadows a variable in the global scope [-Werror,-Wshadow] TDS_INHIBITED, ^ /usr/include/sys/proc.h:331:3: note: previous declaration is here TDS_INHIBITED, ^ In file included from findstack_subr.c:35: modules/kernel/kernel.h:46:3: error: redefinition of enumerator 'TDS_INHIBI= TED' TDS_INHIBITED, ^ /usr/include/sys/proc.h:331:3: note: previous definition is here TDS_INHIBITED, ^ In file included from findstack_subr.c:35: modules/kernel/kernel.h:47:3: error: declaration shadows a variable in the global scope [-Werror,-Wshadow] TDS_CAN_RUN, ^ /usr/include/sys/proc.h:332:3: note: previous declaration is here TDS_CAN_RUN, ^ In file included from findstack_subr.c:35: modules/kernel/kernel.h:47:3: error: redefinition of enumerator 'TDS_CAN_RU= N' TDS_CAN_RUN, ^ /usr/include/sys/proc.h:332:3: note: previous definition is here TDS_CAN_RUN, ^ In file included from findstack_subr.c:35: modules/kernel/kernel.h:48:3: error: declaration shadows a variable in the global scope [-Werror,-Wshadow] TDS_RUNQ, ^ /usr/include/sys/proc.h:333:3: note: previous declaration is here TDS_RUNQ, ^ In file included from findstack_subr.c:35: modules/kernel/kernel.h:48:3: error: redefinition of enumerator 'TDS_RUNQ' TDS_RUNQ, ^ /usr/include/sys/proc.h:333:3: note: previous definition is here TDS_RUNQ, ^ In file included from findstack_subr.c:35: modules/kernel/kernel.h:49:3: error: declaration shadows a variable in the global scope [-Werror,-Wshadow] TDS_RUNNING ^ /usr/include/sys/proc.h:334:3: note: previous declaration is here TDS_RUNNING ^ In file included from findstack_subr.c:35: modules/kernel/kernel.h:49:3: error: redefinition of enumerator 'TDS_RUNNIN= G' TDS_RUNNING ^ /usr/include/sys/proc.h:334:3: note: previous definition is here TDS_RUNNING ^ In file included from findstack_subr.c:35: modules/kernel/kernel.h:63:3: error: declaration shadows a variable in the global scope [-Werror,-Wshadow] PRS_NEW =3D 0, ^ /usr/include/sys/proc.h:577:3: note: previous declaration is here PRS_NEW =3D 0, /* In creation */ ^ In file included from findstack_subr.c:35: modules/kernel/kernel.h:63:3: error: redefinition of enumerator 'PRS_NEW' PRS_NEW =3D 0, ^ /usr/include/sys/proc.h:577:3: note: previous definition is here PRS_NEW =3D 0, /* In creation */ ^ In file included from findstack_subr.c:35: modules/kernel/kernel.h:64:3: error: declaration shadows a variable in the global scope [-Werror,-Wshadow] PRS_NORMAL, ^ /usr/include/sys/proc.h:578:3: note: previous declaration is here PRS_NORMAL, /* threads can be run. */ ^ In file included from findstack_subr.c:35: modules/kernel/kernel.h:64:3: error: redefinition of enumerator 'PRS_NORMAL' PRS_NORMAL, ^ /usr/include/sys/proc.h:578:3: note: previous definition is here PRS_NORMAL, /* threads can be run. */ ^ In file included from findstack_subr.c:35: modules/kernel/kernel.h:65:3: error: declaration shadows a variable in the global scope [-Werror,-Wshadow] PRS_ZOMBIE ^ /usr/include/sys/proc.h:579:3: note: previous declaration is here PRS_ZOMBIE ^ In file included from findstack_subr.c:35: modules/kernel/kernel.h:65:3: error: redefinition of enumerator 'PRS_ZOMBIE' PRS_ZOMBIE ^ /usr/include/sys/proc.h:579:3: note: previous definition is here PRS_ZOMBIE ^ findstack_subr.c:219:8: error: case value not in enumerated type 'enum (anonymous enum at modules/kernel/kernel.h:44:2)' [-Werror,-Wswitch] case TDS_INACTIVE: ^ findstack_subr.c:221:8: error: case value not in enumerated type 'enum (anonymous enum at modules/kernel/kernel.h:44:2)' [-Werror,-Wswitch] case TDS_INHIBITED: ^ findstack_subr.c:217:8: error: case value not in enumerated type 'enum (anonymous enum at modules/kernel/kernel.h:44:2)' [-Werror,-Wswitch] case TDS_CAN_RUN: ^ fatal error: too many errors emitted, stopping now [-ferror-limit=3D] http://package18.nyi.freebsd.org/data/headamd64PR236062-default/2019-03-01_= 06h42m53s/logs/errors/mdb-0.3_1.log Referenced Bugs: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D236062 [Bug 236062] [exp-run] Against projects/clang800-import branch --=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-236207-7788>