DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] [PATCH v2] net/mlx: remove pedantic definition for icc
@ 2019-10-23 11:31 Raslan Darawsheh
  2019-10-23 14:36 ` Raslan Darawsheh
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Raslan Darawsheh @ 2019-10-23 11:31 UTC (permalink / raw)
  To: Slava Ovsiienko; +Cc: dev

Trying to compile mlx5 pmd in debug mode with icc
will lead to compilation failures due to the fact that
icc doesn't have support for the pragma of pedantic.

Signed-off-by: Raslan Darawsheh <rasland@mellanox.com>
Acked-by: Viacheslav Ovsiienko <viacheslavo@mellanox.com>
---
	v2: add commit description
---
---
 drivers/net/mlx4/Makefile | 5 ++++-
 drivers/net/mlx5/Makefile | 5 ++++-
 2 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/drivers/net/mlx4/Makefile b/drivers/net/mlx4/Makefile
index 25d7c75..0abdc8d 100644
--- a/drivers/net/mlx4/Makefile
+++ b/drivers/net/mlx4/Makefile
@@ -67,7 +67,10 @@ endif
 
 # User-defined CFLAGS.
 ifeq ($(CONFIG_RTE_LIBRTE_MLX4_DEBUG),y)
-CFLAGS += -pedantic -UNDEBUG -DPEDANTIC
+CFLAGS += -pedantic -UNDEBUG
+ifneq ($(CONFIG_RTE_TOOLCHAIN), "icc")
+CFLAGS += -DPEDANTIC
+endif
 AUTO_CONFIG_CFLAGS += -Wno-pedantic
 else
 CFLAGS += -DNDEBUG -UPEDANTIC
diff --git a/drivers/net/mlx5/Makefile b/drivers/net/mlx5/Makefile
index 04de93a..0369ee6 100644
--- a/drivers/net/mlx5/Makefile
+++ b/drivers/net/mlx5/Makefile
@@ -83,7 +83,10 @@ endif
 
 # User-defined CFLAGS.
 ifeq ($(CONFIG_RTE_LIBRTE_MLX5_DEBUG),y)
-CFLAGS += -pedantic -UNDEBUG -DPEDANTIC
+CFLAGS += -pedantic -UNDEBUGi
+ifneq ($(CONFIG_RTE_TOOLCHAIN), "icc")
+CFLAGS += -DPEDANTIC
+endif
 AUTO_CONFIG_CFLAGS += -Wno-pedantic
 else
 CFLAGS += -DNDEBUG -UPEDANTIC
-- 
2.7.4


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [dpdk-dev] [PATCH v2] net/mlx: remove pedantic definition for icc
  2019-10-23 11:31 [dpdk-dev] [PATCH v2] net/mlx: remove pedantic definition for icc Raslan Darawsheh
@ 2019-10-23 14:36 ` Raslan Darawsheh
  2019-10-23 20:03 ` Ferruh Yigit
  2019-10-24 14:52 ` [dpdk-dev] [PATCH v3] net/mlx: fix icc build Raslan Darawsheh
  2 siblings, 0 replies; 4+ messages in thread
From: Raslan Darawsheh @ 2019-10-23 14:36 UTC (permalink / raw)
  To: Raslan Darawsheh, Slava Ovsiienko; +Cc: dev

Patch applied to next-net-mlx,

> -----Original Message-----
> From: dev <dev-bounces@dpdk.org> On Behalf Of Raslan Darawsheh
> Sent: Wednesday, October 23, 2019 2:32 PM
> To: Slava Ovsiienko <viacheslavo@mellanox.com>
> Cc: dev@dpdk.org
> Subject: [dpdk-dev] [PATCH v2] net/mlx: remove pedantic definition for icc
> 
> Trying to compile mlx5 pmd in debug mode with icc will lead to compilation
> failures due to the fact that icc doesn't have support for the pragma of
> pedantic.
> 
> Signed-off-by: Raslan Darawsheh <rasland@mellanox.com>
> Acked-by: Viacheslav Ovsiienko <viacheslavo@mellanox.com>
> ---
> 	v2: add commit description
> ---


Patch applied to next-net-mlx,

Kindest regards,
Raslan Darawsheh

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [dpdk-dev] [PATCH v2] net/mlx: remove pedantic definition for icc
  2019-10-23 11:31 [dpdk-dev] [PATCH v2] net/mlx: remove pedantic definition for icc Raslan Darawsheh
  2019-10-23 14:36 ` Raslan Darawsheh
@ 2019-10-23 20:03 ` Ferruh Yigit
  2019-10-24 14:52 ` [dpdk-dev] [PATCH v3] net/mlx: fix icc build Raslan Darawsheh
  2 siblings, 0 replies; 4+ messages in thread
From: Ferruh Yigit @ 2019-10-23 20:03 UTC (permalink / raw)
  To: Raslan Darawsheh, Slava Ovsiienko; +Cc: dev

On 10/23/2019 12:31 PM, Raslan Darawsheh wrote:
> Trying to compile mlx5 pmd in debug mode with icc
> will lead to compilation failures due to the fact that
> icc doesn't have support for the pragma of pedantic.

What would you think about following patch title:

net/mlx: fix icc build

And should this patch backprted?

> 
> Signed-off-by: Raslan Darawsheh <rasland@mellanox.com>
> Acked-by: Viacheslav Ovsiienko <viacheslavo@mellanox.com>
> ---
> 	v2: add commit description
> ---
> ---
>  drivers/net/mlx4/Makefile | 5 ++++-
>  drivers/net/mlx5/Makefile | 5 ++++-
>  2 files changed, 8 insertions(+), 2 deletions(-)
> 
> diff --git a/drivers/net/mlx4/Makefile b/drivers/net/mlx4/Makefile
> index 25d7c75..0abdc8d 100644
> --- a/drivers/net/mlx4/Makefile
> +++ b/drivers/net/mlx4/Makefile
> @@ -67,7 +67,10 @@ endif
>  
>  # User-defined CFLAGS.
>  ifeq ($(CONFIG_RTE_LIBRTE_MLX4_DEBUG),y)
> -CFLAGS += -pedantic -UNDEBUG -DPEDANTIC
> +CFLAGS += -pedantic -UNDEBUG
> +ifneq ($(CONFIG_RTE_TOOLCHAIN), "icc")

Can use "CONFIG_RTE_TOOLCHAIN_ICC" directly for check.

> +CFLAGS += -DPEDANTIC
> +endif
>  AUTO_CONFIG_CFLAGS += -Wno-pedantic
>  else
>  CFLAGS += -DNDEBUG -UPEDANTIC
> diff --git a/drivers/net/mlx5/Makefile b/drivers/net/mlx5/Makefile
> index 04de93a..0369ee6 100644
> --- a/drivers/net/mlx5/Makefile
> +++ b/drivers/net/mlx5/Makefile
> @@ -83,7 +83,10 @@ endif
>  
>  # User-defined CFLAGS.
>  ifeq ($(CONFIG_RTE_LIBRTE_MLX5_DEBUG),y)
> -CFLAGS += -pedantic -UNDEBUG -DPEDANTIC
> +CFLAGS += -pedantic -UNDEBUGi

I guess you are a 'vim' user :)

> +ifneq ($(CONFIG_RTE_TOOLCHAIN), "icc")
> +CFLAGS += -DPEDANTIC
> +endif
>  AUTO_CONFIG_CFLAGS += -Wno-pedantic
>  else
>  CFLAGS += -DNDEBUG -UPEDANTIC
> 


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [dpdk-dev] [PATCH v3] net/mlx: fix icc build
  2019-10-23 11:31 [dpdk-dev] [PATCH v2] net/mlx: remove pedantic definition for icc Raslan Darawsheh
  2019-10-23 14:36 ` Raslan Darawsheh
  2019-10-23 20:03 ` Ferruh Yigit
@ 2019-10-24 14:52 ` Raslan Darawsheh
  2 siblings, 0 replies; 4+ messages in thread
From: Raslan Darawsheh @ 2019-10-24 14:52 UTC (permalink / raw)
  To: ferruh.yigit; +Cc: Slava Ovsiienko, dev, stable

Trying to compile mlx5 pmd in debug mode with icc
will lead to compilation failures due to the fact that
icc doesn't have support for the pragma of pedantic.

Cc: stable@dpdk.org

Signed-off-by: Raslan Darawsheh <rasland@mellanox.com>
Acked-by: Viacheslav Ovsiienko <viacheslavo@mellanox.com>
---
 drivers/net/mlx4/Makefile | 5 ++++-
 drivers/net/mlx5/Makefile | 5 ++++-
 2 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/drivers/net/mlx4/Makefile b/drivers/net/mlx4/Makefile
index 25d7c75..7ea6f74 100644
--- a/drivers/net/mlx4/Makefile
+++ b/drivers/net/mlx4/Makefile
@@ -67,7 +67,10 @@ endif
 
 # User-defined CFLAGS.
 ifeq ($(CONFIG_RTE_LIBRTE_MLX4_DEBUG),y)
-CFLAGS += -pedantic -UNDEBUG -DPEDANTIC
+CFLAGS += -pedantic -UNDEBUG
+ifneq ($(CONFIG_RTE_TOOLCHAIN_ICC),y)
+CFLAGS += -DPEDANTIC
+endif
 AUTO_CONFIG_CFLAGS += -Wno-pedantic
 else
 CFLAGS += -DNDEBUG -UPEDANTIC
diff --git a/drivers/net/mlx5/Makefile b/drivers/net/mlx5/Makefile
index 04de93a..dae5b9f 100644
--- a/drivers/net/mlx5/Makefile
+++ b/drivers/net/mlx5/Makefile
@@ -83,7 +83,10 @@ endif
 
 # User-defined CFLAGS.
 ifeq ($(CONFIG_RTE_LIBRTE_MLX5_DEBUG),y)
-CFLAGS += -pedantic -UNDEBUG -DPEDANTIC
+CFLAGS += -pedantic -UNDEBUG
+ifneq ($(CONFIG_RTE_TOOLCHAIN_ICC),y)
+CFLAGS += -DPEDANTIC
+endif
 AUTO_CONFIG_CFLAGS += -Wno-pedantic
 else
 CFLAGS += -DNDEBUG -UPEDANTIC
-- 
2.7.4


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2019-10-24 14:52 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-10-23 11:31 [dpdk-dev] [PATCH v2] net/mlx: remove pedantic definition for icc Raslan Darawsheh
2019-10-23 14:36 ` Raslan Darawsheh
2019-10-23 20:03 ` Ferruh Yigit
2019-10-24 14:52 ` [dpdk-dev] [PATCH v3] net/mlx: fix icc build Raslan Darawsheh

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).