net/intel: remove unnecessary compiler flag for mingw
Subsystems (2)
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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
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
Signed-off-by Bruce Richardson <[email protected]>
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@@ -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@@ -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@@ -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_cflagsdrivers/net/intel/ice/meson.build +0
-4@@ -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@@ -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
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
Signed-off-by Bruce Richardson <[email protected]>Adding William in the loop.
Should add documentation and check for required version of mingw?
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
Signed-off-by Bruce Richardson <[email protected]>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
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
Signed-off-by Bruce Richardson <[email protected]>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
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
Signed-off-by Bruce Richardson <[email protected]>--- 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@@ -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@@ -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@@ -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_cflagsdrivers/net/intel/ice/meson.build +0
-4@@ -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@@ -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.
Bruce Richardson
AppliedQuoted 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
Signed-off-by Bruce Richardson <[email protected]>--- 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.
Acked-by Andre Muezerie <[email protected]>
Applied to dpdk-next-net-intel
/Bruce