Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

[Bug 211540] 11.0-BETA3+ -r303691 build via amd64-gcc: sys/dev/hptmv/vdevice.h:145:2: error: variably modified '_ArrayTables' at file scope; more

2 views
Skip to first unread message

bugzilla...@freebsd.org

unread,
Aug 3, 2016, 3:33:16 AM8/3/16
to
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=211540

Bug ID: 211540
Summary: 11.0-BETA3+ -r303691 build via amd64-gcc:
sys/dev/hptmv/vdevice.h:145:2: error: variably
modified '_ArrayTables' at file scope; more
Product: Base System
Version: 11.0-STABLE
Hardware: Any
OS: Any
Status: New
Severity: Affects Only Me
Priority: ---
Component: kern
Assignee: freebs...@FreeBSD.org
Reporter: mar...@dsl-only.net

This is from attempting to build for amd64 via amd64-gcc instead of clang
3.8.0.

--- all_subdir_hptmv ---
In file included from /usr/src/sys/dev/hptmv/global.h:197:0,
from /usr/src/sys/modules/hptmv/../../dev/hptmv/mv.c:42:
/usr/src/sys/dev/hptmv/vdevice.h:145:2: error: variably modified '_ArrayTables'
at file scope [-Werror]
BYTE _ArrayTables[MAX_ARRAY_PER_VBUS * ARRAY_VDEV_SIZE];
^
. . .
--- entry.o ---
In file included from /usr/src/sys/dev/hptmv/global.h:197:0,
from /usr/src/sys/modules/hptmv/../../dev/hptmv/entry.c:54:
/usr/src/sys/dev/hptmv/vdevice.h:145:2: error: variably modified '_ArrayTables'
at file scope [-Werror]
BYTE _ArrayTables[MAX_ARRAY_PER_VBUS * ARRAY_VDEV_SIZE];
^
. . .
--- all_subdir_hptmv ---
/usr/src/sys/modules/hptmv/../../dev/hptmv/entry.c: In function 'hpt_poll':
/usr/src/sys/modules/hptmv/../../dev/hptmv/entry.c:2091:17: warning: variable
'pAdapter' set but not used [-Wunused-but-set-variable]
IAL_ADAPTER_T *pAdapter;
^
cc1: all warnings being treated as errors


Context:

# uname -apKU
FreeBSD FreeBSDx64 11.0-BETA3 FreeBSD 11.0-BETA3 #2 r303691M: Tue Aug 2
23:40:42 PDT 2016
markmi@FreeBSDx64:/usr/obj/clang/amd64.amd64/usr/src/sys/GENERIC-NODBG amd64
amd64 1100120 1100120

--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
freebs...@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "freebsd-bugs...@freebsd.org"

bugzilla...@freebsd.org

unread,
Aug 4, 2016, 9:42:26 PM8/4/16
to
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=211540

Mark Millard <mar...@dsl-only.net> changed:

What |Removed |Added
----------------------------------------------------------------------------
Version|11.0-STABLE |11.0-BETA3

--- Comment #1 from Mark Millard <mar...@dsl-only.net> ---
(In reply to Mark Millard from comment #0)

Now reproduced in trying to build 11.0-BETA4 -r303759. But there is no
11.0-BETA4 Version selection available yet. So use 11.0-BETA3 selection for
now.



The "variably modified '_ArrayTables' at file scope" messages refer to (various
.h files contributing):

#define MAX_VDEVICE_PER_VBUS 8
. . .
#ifndef MAX_ARRAY_PER_VBUS
#define MAX_ARRAY_PER_VBUS (MAX_VDEVICE_PER_VBUS*2) /* worst case */
#endif
. . .
#define ARRAY_VDEV_SIZE ((UINT)(ULONG_PTR)&((PVDevice)0)->u+sizeof(RaidArray))
. . .
typedef struct _VBus {
. . .
#ifdef SUPPORT_ARRAY
PVDevice pFreeArrayLink;
BYTE _ArrayTables[MAX_ARRAY_PER_VBUS * ARRAY_VDEV_SIZE];
#endif
. . .
} VBus;



ARRAY_VDEV_SIZE is what is being complained about for its use in typedef struct
_VBus at file scope.
0 new messages