Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 10 Oct 2017 06:25:20 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-bugs@FreeBSD.org
Subject:   [Bug 222892] gcc compilation errors with mlx4_en and mlx5
Message-ID:  <bug-222892-8@https.bugs.freebsd.org/bugzilla/>

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

            Bug ID: 222892
           Summary: gcc compilation errors with mlx4_en and mlx5
           Product: Base System
           Version: CURRENT
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: kern
          Assignee: freebsd-bugs@FreeBSD.org
          Reporter: ngie@FreeBSD.org

mlx4_en and mlx5 fail to compile with gcc 6.3.0, per the following message:

>From https://ci.freebsd.org/job/FreeBSD-head-amd64-gcc/2789/console :

06:21:07 /workspace/src/sys/dev/mlx4/mlx4_en/mlx4_en_rx.c: In function
'mlx4_en_rss_hash':
06:21:07 /workspace/src/sys/dev/mlx4/mlx4_en/mlx4_en_rx.c:584:2: error: case
label does not reduce to an integer constant
06:21:07   case status_ipv4_tcp:
06:21:07   ^~~~
06:21:07 /workspace/src/sys/dev/mlx4/mlx4_en/mlx4_en_rx.c:586:2: error: case
label does not reduce to an integer constant
06:21:07   case status_ipv6_tcp:
06:21:07   ^~~~
06:21:07 /workspace/src/sys/dev/mlx4/mlx4_en/mlx4_en_rx.c:588:2: error: case
label does not reduce to an integer constant
06:21:07   case status_ipv4_udp:
06:21:07   ^~~~
06:21:07 /workspace/src/sys/dev/mlx4/mlx4_en/mlx4_en_rx.c:591:2: error: case
label does not reduce to an integer constant
06:21:07   case status_ipv6_udp:
06:21:07   ^~~~
06:21:07 /workspace/src/sys/dev/mlx4/mlx4_en/mlx4_en_rx.c:576:15: warning:
variable 'status_ipv6_udp' set but not used [-Wunused-but-set-variable]
06:21:07   const __be16 status_ipv6_udp =3D cpu_to_be16(
06:21:07                ^~~~~~~~~~~~~~~
06:21:07 /workspace/src/sys/dev/mlx4/mlx4_en/mlx4_en_rx.c:573:15: warning:
variable 'status_ipv4_udp' set but not used [-Wunused-but-set-variable]
06:21:07   const __be16 status_ipv4_udp =3D cpu_to_be16(
06:21:07                ^~~~~~~~~~~~~~~
06:21:07 /workspace/src/sys/dev/mlx4/mlx4_en/mlx4_en_rx.c:570:15: warning:
variable 'status_ipv6_tcp' set but not used [-Wunused-but-set-variable]
06:21:07   const __be16 status_ipv6_tcp =3D cpu_to_be16(
06:21:07                ^~~~~~~~~~~~~~~
06:21:07 /workspace/src/sys/dev/mlx4/mlx4_en/mlx4_en_rx.c:567:15: warning:
variable 'status_ipv4_tcp' set but not used [-Wunused-but-set-variable]
06:21:07   const __be16 status_ipv4_tcp =3D cpu_to_be16(
06:21:07                ^~~~~~~~~~~~~~~
06:21:07 --- all_subdir_mlx5en ---
06:21:07 In file included from /workspace/src/sys/sys/refcount.h:36:0,
06:21:07                  from
/workspace/src/sys/compat/linuxkpi/common/include/linux/kmod.h:36,
06:21:07                  from /workspace/src/sys/dev/mlx5/mlx5_en/en.h:31,
06:21:07                  from
/workspace/src/sys/dev/mlx5/mlx5_en/mlx5_en_main.c:28:
06:21:07 /workspace/src/sys/dev/mlx5/device.h:530:29: warning: comparison
between 'enum <anonymous>' and 'enum <anonymous>' [-Wenum-compare]
06:21:07  CTASSERT(MLX5_CMD_MBOX_SIZE <=3D MLX5_ADAPTER_PAGE_SIZE);
06:21:07                              ^
06:21:07 /workspace/src/sys/sys/systm.h:105:36: note: in definition of macro
'CTASSERT'
06:21:07  #define CTASSERT(x) _Static_assert(x, "compile-time assertion
failed")
06:21:07

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