Trying to build DPDK 20.11. Build with default machine type ("native") works. But, got an error when setting a x86 machine type, e.g.
meson -Dmachine=silvermont build
The problem seems with compiler setting. File $(DPDK_ROOT)/config/x86/meson.build has code:
# we require SSE4.2 for DPDK
if cc.get_define('__SSE4_2__', args: machine_args) == ''
message('SSE 4.2 not enabled by default, explicitly enabling')
machine_args += '-msse4'
The error is: "Could not get define '__SSE4_2__' "
How to resolve this issue? What have I missed? Thanks.