Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 03 Aug 2016 07:33:04 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-bugs@FreeBSD.org
Subject:   [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
Message-ID:  <bug-211540-8@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D211540

            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: freebsd-bugs@FreeBSD.org
          Reporter: markmi@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 '_ArrayTab=
les'
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 '_ArrayTab=
les'
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: variab=
le
'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=20=20=20=20
markmi@FreeBSDx64:/usr/obj/clang/amd64.amd64/usr/src/sys/GENERIC-NODBG  amd=
64
amd64 1100120 1100120

--=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-211540-8>