[dpdk-dev] [PATCH] lib/librte_eal: Fix compile issue with gcc 5.3.1
Thomas Monjalon
thomas.monjalon at 6wind.com
Thu Jan 28 09:34:55 CET 2016
2016-01-28 08:01, Wang, Zhihong:
> > In fedora 22 with GCC version 5.3.1, when compile,
> > will result an error:
> >
> > include/rte_memcpy.h:309:7: error: "RTE_MACHINE_CPUFLAG_AVX2"
> > is not defined [-Werror=undef]
> > #elif RTE_MACHINE_CPUFLAG_AVX2
> >
> > Fixes: 9484092baad3 ("eal/x86: optimize memcpy for AVX512 platforms")
> >
> > Signed-off-by: Michael Qiu <michael.qiu at intel.com>
>
> There's issue in the original code.
>
> #elif works with statements:
> #elif < statement: true or false>
>
> But what it meant is whether the identifier has been defined:
> #elif defined <identifier>
>
> Thanks for correcting this!
>
> Acked-by: Wang, Zhihong <zhihong.wang at intel.com>
Applied, thanks
More information about the dev
mailing list