[dpdk-stable] [PATCH] config: fix meson build failure on ThunderX2

Honnappa Nagarahalli Honnappa.Nagarahalli at arm.com
Mon Jul 15 16:24:54 CEST 2019


<snip>

Subject: [EXT] RE: [PATCH] config: fix meson build failure on
> > ThunderX2
> > > > Since gcc-8.3(I tried 8.3 and 9.1), the meson build failed on ThunderX2.
> > > > It got the following compiling errors:
> > > > /usr/lib/gcc/aarch64-linux-gnu/9/include/arm_neon.h:26493:1: error:
> > > > inlining failed in call to always_inline ‘vmull_p64’: target
> > > > specific option mismatch 26493 | vmull_p64 (poly64_t a, poly64_t
> > > > b)
> > > >
> > > > Fixes: 7286c9d7234f ("config: add thunderx2 machine")
> > > > Cc: jerinj at marvell.com
> > > > Cc: stable at dpdk.org
> > > >
> > > > Signed-off-by: Gavin Hu <gavin.hu at arm.com>
> > > > Reviewed-by: Phil Yang <phil.yang at arm.com>
> > > > Reviewed-by: Jingzhao Ni <jingzhao.ni at arm.com>
> > >
> > > Thanks Gavin.
> > > Able to reproduce this issue with gcc 9.1 and proposed patch fixing
> > > the issue as well.
> > Jerin, any reason for not enabling LSE on ThunderX2?
> 
> LSE is enabled when -mcpu=thunderx2t99 selected.
> 
> $ aarch64-linux-gnu-gcc  -mcpu=thunderx2t99 -dM -E - </dev/null | grep
> __ARM_FEATURE_ATOMICS #define __ARM_FEATURE_ATOMICS 1

This does not work with older GCC versions [1]. They need LSE enabled explicitly.

[1] https://godbolt.org/z/2nmASR

> 
> >
> > >
> > > Acked-by: Jerin Jacob <jerinj at marvell.com>


More information about the stable mailing list