Skip to contentSkip to conversation

net/intel: remove unnecessary compiler flag for mingw

PATCH In review Bruce Richardson 4 participants 7 messages Mar 12, 2025 – Mar 14, 2025

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 net/intel: remove unnecessary compiler flag for mingw

There was an issue with building DPDK using mingw v8.1[1], which required using the "-fno-asynchronous-unwind-tables" compiler flag when building using the mingw compiler. However, recent versions of the compiler no longer seem to need this flag, so remove it.

[1] https://inbox.dpdk.org/dev/CAJFAV8z3qFhT9Vv5xOpLhi74BYAht2YCfL2ffLrmei4hfSG5jg@mail.gmail.com

---
 drivers/net/intel/i40e/meson.build     | 4 ----
 drivers/net/intel/iavf/meson.build     | 4 ----
 drivers/net/intel/ice/base/meson.build | 4 ----
 drivers/net/intel/ice/meson.build      | 4 ----
 drivers/net/intel/ixgbe/meson.build    | 3 ---
 5 files changed, 19 deletions(-)
drivers/net/intel/i40e/meson.build +0 -4
index 2973ed1a01..15993393fb 100644
@@ -41,10 +41,6 @@ includes += include_directories('base')
 if arch_subdir == 'x86'
     sources += files('i40e_rxtx_vec_sse.c')
 
-    if is_windows and cc.get_id() != 'clang'
-        cflags += ['-fno-asynchronous-unwind-tables']
-    endif
-
     i40e_avx2_lib = static_library('i40e_avx2_lib',
             'i40e_rxtx_vec_avx2.c',
             dependencies: [static_rte_ethdev, static_rte_kvargs, static_rte_hash],
drivers/net/intel/iavf/meson.build +0 -4
index f7eac7c57a..833a63e6c8 100644
@@ -29,10 +29,6 @@ includes += include_directories('base')
 if arch_subdir == 'x86'
     sources += files('iavf_rxtx_vec_sse.c')
 
-    if is_windows and cc.get_id() != 'clang'
-        cflags += ['-fno-asynchronous-unwind-tables']
-    endif
-
     iavf_avx2_lib = static_library('iavf_avx2_lib',
             'iavf_rxtx_vec_avx2.c',
             dependencies: [static_rte_ethdev],
drivers/net/intel/ice/base/meson.build +0 -4
index 59202df661..38d092c370 100644
@@ -49,10 +49,6 @@ if (toolchain == 'gcc' and cc.version().version_compare('>=11.0.0'))
     error_cflags += ['-Wno-array-bounds']
 endif
 
-if is_windows and cc.get_id() == 'gcc'
-    cflags += ['-fno-asynchronous-unwind-tables']
-endif
-
 c_args = cflags
 
 foreach flag: error_cflags
drivers/net/intel/ice/meson.build +0 -4
index cbdf38c1c4..4d8f71cd4a 100644
@@ -35,10 +35,6 @@ endif
 if arch_subdir == 'x86'
     sources += files('ice_rxtx_vec_sse.c')
 
-    if is_windows and cc.get_id() != 'clang'
-        cflags += ['-fno-asynchronous-unwind-tables']
-    endif
-
     ice_avx2_lib = static_library('ice_avx2_lib',
             'ice_rxtx_vec_avx2.c',
             dependencies: [static_rte_ethdev, static_rte_hash],
drivers/net/intel/ixgbe/meson.build +0 -3
index 0ae12dd5ff..0bee736a2c 100644
@@ -27,9 +27,6 @@ deps += ['hash', 'security']
 if arch_subdir == 'x86'
     sources += files('ixgbe_rxtx_vec_sse.c')
     sources += files('ixgbe_recycle_mbufs_vec_common.c')
-    if is_windows and cc.get_id() != 'clang'
-        cflags += ['-fno-asynchronous-unwind-tables']
-    endif
 elif arch_subdir == 'arm'
     sources += files('ixgbe_rxtx_vec_neon.c')
     sources += files('ixgbe_recycle_mbufs_vec_common.c')
Signature · 1 line
2.43.0
#1 lore raw
Quoted 9 lines · Bruce Richardson

There was an issue with building DPDK using mingw v8.1[1], which required using the "-fno-asynchronous-unwind-tables" compiler flag when building using the mingw compiler. However, recent versions of the compiler no longer seem to need this flag, so remove it.

[1] https://inbox.dpdk.org/dev/CAJFAV8z3qFhT9Vv5xOpLhi74BYAht2YCfL2ffLrmei4hfSG5jg@mail.gmail.com

Adding William in the loop.

Quoted 82 lines
---
 drivers/net/intel/i40e/meson.build     | 4 ----
 drivers/net/intel/iavf/meson.build     | 4 ----
 drivers/net/intel/ice/base/meson.build | 4 ----
 drivers/net/intel/ice/meson.build      | 4 ----
 drivers/net/intel/ixgbe/meson.build    | 3 ---
 5 files changed, 19 deletions(-)
drivers/net/intel/i40e/meson.build +0 -4
index 2973ed1a01..15993393fb 100644
@@ -41,10 +41,6 @@ includes += include_directories('base')
 if arch_subdir == 'x86'
     sources += files('i40e_rxtx_vec_sse.c')
 
-    if is_windows and cc.get_id() != 'clang'
-        cflags += ['-fno-asynchronous-unwind-tables']
-    endif
-
     i40e_avx2_lib = static_library('i40e_avx2_lib',
             'i40e_rxtx_vec_avx2.c',
             dependencies: [static_rte_ethdev, static_rte_kvargs, static_rte_hash],
drivers/net/intel/iavf/meson.build +0 -4
index f7eac7c57a..833a63e6c8 100644
@@ -29,10 +29,6 @@ includes += include_directories('base')
 if arch_subdir == 'x86'
     sources += files('iavf_rxtx_vec_sse.c')
 
-    if is_windows and cc.get_id() != 'clang'
-        cflags += ['-fno-asynchronous-unwind-tables']
-    endif
-
     iavf_avx2_lib = static_library('iavf_avx2_lib',
             'iavf_rxtx_vec_avx2.c',
             dependencies: [static_rte_ethdev],
drivers/net/intel/ice/base/meson.build +0 -4
index 59202df661..38d092c370 100644
@@ -49,10 +49,6 @@ if (toolchain == 'gcc' and cc.version().version_compare('>=11.0.0'))
     error_cflags += ['-Wno-array-bounds']
 endif
 
-if is_windows and cc.get_id() == 'gcc'
-    cflags += ['-fno-asynchronous-unwind-tables']
-endif
-
 c_args = cflags
 
 foreach flag: error_cflags
drivers/net/intel/ice/meson.build +0 -4
index cbdf38c1c4..4d8f71cd4a 100644
@@ -35,10 +35,6 @@ endif
 if arch_subdir == 'x86'
     sources += files('ice_rxtx_vec_sse.c')
 
-    if is_windows and cc.get_id() != 'clang'
-        cflags += ['-fno-asynchronous-unwind-tables']
-    endif
-
     ice_avx2_lib = static_library('ice_avx2_lib',
             'ice_rxtx_vec_avx2.c',
             dependencies: [static_rte_ethdev, static_rte_hash],
drivers/net/intel/ixgbe/meson.build +0 -3
index 0ae12dd5ff..0bee736a2c 100644
@@ -27,9 +27,6 @@ deps += ['hash', 'security']
 if arch_subdir == 'x86'
     sources += files('ixgbe_rxtx_vec_sse.c')
     sources += files('ixgbe_recycle_mbufs_vec_common.c')
-    if is_windows and cc.get_id() != 'clang'
-        cflags += ['-fno-asynchronous-unwind-tables']
-    endif
 elif arch_subdir == 'arm'
     sources += files('ixgbe_rxtx_vec_neon.c')
     sources += files('ixgbe_recycle_mbufs_vec_common.c')
Signature · 1 line
David Marchand
#2 lore raw
Quoted 8 lines · On Wed, 12 Mar 2025 16:58:49 +0100 David Marchand <[email protected]>…
Quoted 6 lines · Bruce Richardson

There was an issue with building DPDK using mingw v8.1[1], which required using the "-fno-asynchronous-unwind-tables" compiler flag when building using the mingw compiler. However, recent versions of the compiler no longer seem to need this flag, so remove it.

Quoted 5 lines
Quoted 3 lines

[1] https://inbox.dpdk.org/dev/CAJFAV8z3qFhT9Vv5xOpLhi74BYAht2YCfL2ffLrmei4hfSG5jg@mail.gmail.com

Adding William in the loop.

Should add documentation and check for required version of mingw?

#3 lore raw
Quoted 11 lines · Stephen Hemminger
Quoted 8 lines · On Wed, 12 Mar 2025 16:58:49 +0100 David Marchand <[email protected]>…
Quoted 6 lines · Bruce Richardson

There was an issue with building DPDK using mingw v8.1[1], which required using the "-fno-asynchronous-unwind-tables" compiler flag when building using the mingw compiler. However, recent versions of the compiler no longer seem to need this flag, so remove it.

Quoted 7 lines
Quoted 5 lines
Quoted 3 lines

[1] https://inbox.dpdk.org/dev/CAJFAV8z3qFhT9Vv5xOpLhi74BYAht2YCfL2ffLrmei4hfSG5jg@mail.gmail.com

Adding William in the loop.

Should add documentation and check for required version of mingw?

Docs, yes, but don't think we should add a required version check in code.

Will do v2 with doc update. CI is passing so looks like this was only an issue with older mingw.

/Bruce

#4 lore raw
Quoted 14 lines · Bruce Richardson
Quoted 13 lines · Stephen Hemminger
Quoted 10 lines · On Wed, 12 Mar 2025 16:58:49 +0100 David Marchand <[email protected]>…
Quoted 8 lines · Bruce Richardson

There was an issue with building DPDK using mingw v8.1[1], which required using the "-fno-asynchronous-unwind-tables" compiler flag when building using the mingw compiler. However, recent versions of the compiler no longer seem to need this flag, so remove it.

[1] https://inbox.dpdk.org/dev/CAJFAV8z3qFhT9Vv5xOpLhi74BYAht2YCfL2ffLrmei4hfSG5jg@mail.gmail.com

Quoted 8 lines
Quoted 5 lines
Quoted 3 lines
Quoted 1 line

Adding William in the loop.

Should add documentation and check for required version of mingw?

Docs, yes, but don't think we should add a required version check in code.

Actually, nevermind a v2. Windows GSG already lists MinGW v10 as requirement.

/Bruce

Acked-by on v1 1/1
#5 lore raw
In reply to Bruce Richardson
Quoted 92 lines · Bruce Richardson

There was an issue with building DPDK using mingw v8.1[1], which required using the "-fno-asynchronous-unwind-tables" compiler flag when building using the mingw compiler. However, recent versions of the compiler no longer seem to need this flag, so remove it.

[1] https://inbox.dpdk.org/dev/CAJFAV8z3qFhT9Vv5xOpLhi74BYAht2YCfL2ffLrmei4hfSG5jg@mail.gmail.com

---
 drivers/net/intel/i40e/meson.build     | 4 ----
 drivers/net/intel/iavf/meson.build     | 4 ----
 drivers/net/intel/ice/base/meson.build | 4 ----
 drivers/net/intel/ice/meson.build      | 4 ----
 drivers/net/intel/ixgbe/meson.build    | 3 ---
 5 files changed, 19 deletions(-)
drivers/net/intel/i40e/meson.build +0 -4
index 2973ed1a01..15993393fb 100644
@@ -41,10 +41,6 @@ includes += include_directories('base')
 if arch_subdir == 'x86'
     sources += files('i40e_rxtx_vec_sse.c')
 
-    if is_windows and cc.get_id() != 'clang'
-        cflags += ['-fno-asynchronous-unwind-tables']
-    endif
-
     i40e_avx2_lib = static_library('i40e_avx2_lib',
             'i40e_rxtx_vec_avx2.c',
             dependencies: [static_rte_ethdev, static_rte_kvargs, static_rte_hash],
drivers/net/intel/iavf/meson.build +0 -4
index f7eac7c57a..833a63e6c8 100644
@@ -29,10 +29,6 @@ includes += include_directories('base')
 if arch_subdir == 'x86'
     sources += files('iavf_rxtx_vec_sse.c')
 
-    if is_windows and cc.get_id() != 'clang'
-        cflags += ['-fno-asynchronous-unwind-tables']
-    endif
-
     iavf_avx2_lib = static_library('iavf_avx2_lib',
             'iavf_rxtx_vec_avx2.c',
             dependencies: [static_rte_ethdev],
drivers/net/intel/ice/base/meson.build +0 -4
index 59202df661..38d092c370 100644
@@ -49,10 +49,6 @@ if (toolchain == 'gcc' and cc.version().version_compare('>=11.0.0'))
     error_cflags += ['-Wno-array-bounds']
 endif
 
-if is_windows and cc.get_id() == 'gcc'
-    cflags += ['-fno-asynchronous-unwind-tables']
-endif
-
 c_args = cflags
 
 foreach flag: error_cflags
drivers/net/intel/ice/meson.build +0 -4
index cbdf38c1c4..4d8f71cd4a 100644
@@ -35,10 +35,6 @@ endif
 if arch_subdir == 'x86'
     sources += files('ice_rxtx_vec_sse.c')
 
-    if is_windows and cc.get_id() != 'clang'
-        cflags += ['-fno-asynchronous-unwind-tables']
-    endif
-
     ice_avx2_lib = static_library('ice_avx2_lib',
             'ice_rxtx_vec_avx2.c',
             dependencies: [static_rte_ethdev, static_rte_hash],
drivers/net/intel/ixgbe/meson.build +0 -3
index 0ae12dd5ff..0bee736a2c 100644
@@ -27,9 +27,6 @@ deps += ['hash', 'security']
 if arch_subdir == 'x86'
     sources += files('ixgbe_rxtx_vec_sse.c')
     sources += files('ixgbe_recycle_mbufs_vec_common.c')
-    if is_windows and cc.get_id() != 'clang'
-        cflags += ['-fno-asynchronous-unwind-tables']
-    endif
 elif arch_subdir == 'arm'
     sources += files('ixgbe_rxtx_vec_neon.c')
     sources += files('ixgbe_recycle_mbufs_vec_common.c')
Signature · 1 line
2.43.0

I'm fine with these changes.

author Applied
#6 lore raw
Quoted 16 lines · Andre Muezerie
Quoted 15 lines · Bruce Richardson

There was an issue with building DPDK using mingw v8.1[1], which required using the "-fno-asynchronous-unwind-tables" compiler flag when building using the mingw compiler. However, recent versions of the compiler no longer seem to need this flag, so remove it.

[1] https://inbox.dpdk.org/dev/CAJFAV8z3qFhT9Vv5xOpLhi74BYAht2YCfL2ffLrmei4hfSG5jg@mail.gmail.com

---
 drivers/net/intel/i40e/meson.build     | 4 ----
 drivers/net/intel/iavf/meson.build     | 4 ----
 drivers/net/intel/ice/base/meson.build | 4 ----
 drivers/net/intel/ice/meson.build      | 4 ----
 drivers/net/intel/ixgbe/meson.build    | 3 ---
 5 files changed, 19 deletions(-)

<snip>

Quoted 4 lines

I'm fine with these changes.

Applied to dpdk-next-net-intel

/Bruce