[PATCH 19.11 v1 1/3] net/ixgbe: build failure with make and clang 13

Ali Alnubani alialnu at nvidia.com
Tue Dec 14 18:23:02 CET 2021


> -----Original Message-----
> From: Haiyue Wang <haiyue.wang at intel.com>
> Sent: Tuesday, December 14, 2021 6:30 PM
> To: stable at dpdk.org
> Cc: christian.ehrhardt at canonical.com; yux.jiang at intel.com;
> qi.z.zhang at intel.com; Haiyue Wang <haiyue.wang at intel.com>; Wenzhuo Lu
> <wenzhuo.lu at intel.com>; Konstantin Ananyev
> <konstantin.ananyev at intel.com>
> Subject: [PATCH 19.11 v1 1/3] net/ixgbe: build failure with make and clang 13
> 
> Disable the -Wunused-but-set-variable option for clang to avoid
> compile warning.
> 
> Bugzilla ID: 900

Do you mean "Bugzilla ID: 903"?
https://bugs.dpdk.org/show_bug.cgi?id=900 is a net/nfp build failure.

> 
> Signed-off-by: Haiyue Wang <haiyue.wang at intel.com>
> ---
>  drivers/net/ixgbe/Makefile | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/drivers/net/ixgbe/Makefile b/drivers/net/ixgbe/Makefile
> index 31523025b3..31a418a2c6 100644
> --- a/drivers/net/ixgbe/Makefile
> +++ b/drivers/net/ixgbe/Makefile
> @@ -29,6 +29,7 @@ else ifeq ($(CONFIG_RTE_TOOLCHAIN_CLANG),y)
>  #
>  CFLAGS_BASE_DRIVER = -Wno-unused-parameter -Wno-unused-value
>  CFLAGS_BASE_DRIVER += -Wno-strict-aliasing -Wno-format-extra-args
> +CFLAGS_BASE_DRIVER += -Wno-unused-but-set-variable
> 
>  else
>  #
> --
> 2.34.1

Thanks Haiyue for looking into this.
I no longer see the build failures in Bugzilla tickets 901/902/903, but I now see similar build errors in net/qede and net/sfc.


More information about the stable mailing list