On Wed, Jun 9, 2021 at 12:32 AM Changqing Li <changqing...@windriver.com> wrote: > > From: Changqing Li <changqing...@windriver.com> > > fix below error: > /include/arm_neon.h:31:2: error: #error "NEON intrinsics not available with > the soft-float ABI. Please use -mfloat-abi=softfp or -mfloat-abi=hard" > 31 | #error "NEON intrinsics not available with the soft-float ABI. Please > use -mfloat-abi=softfp or -mfloat-abi=hard" > > Neon is not supported by armv5, disable the simd extension build.
Drop this comment. Neon may be missing from other ISA levels too (i.e. this fix is not specific to armv5). > Signed-off-by: Changqing Li <changqing...@windriver.com> > --- > meta/recipes-graphics/jpeg/libjpeg-turbo_2.1.0.bb | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/meta/recipes-graphics/jpeg/libjpeg-turbo_2.1.0.bb > b/meta/recipes-graphics/jpeg/libjpeg-turbo_2.1.0.bb > index 7f91cc02ac..da21971113 100644 > --- a/meta/recipes-graphics/jpeg/libjpeg-turbo_2.1.0.bb > +++ b/meta/recipes-graphics/jpeg/libjpeg-turbo_2.1.0.bb > @@ -40,6 +40,8 @@ EXTRA_OECMAKE_append_class-target = " > ${@bb.utils.contains("TUNE_FEATURES", "mx3 > # Work around missing non-floating point ABI support in MIPS > EXTRA_OECMAKE_append_class-target = " ${@bb.utils.contains("MIPSPKGSFX_FPU", > "-nf", "-DWITH_SIMD=False", "", d)}" > > +EXTRA_OECMAKE_append_class-target = " ${@ ('') if > (d.getVar('TUNE_CCARGS_MFPU') != '') else '-DWITH_SIMD=False'}" Shouldn't this be checking for neon in TUNE_FEATURES rather than TUNE_CCARGS_MFPU? It should also probably be conditional on the _arm over-ride since neon will be missing from TUNE_CCARGS_MFPU/TUNE_FEATURES for other architectures. Since big endian ARM doesn't use the _arm over-ride you will also need a duplicate line with the same logic with the _armeb override too. See the lines below which do the equivalent for _powerpc / _powerpc64 as a reference. > # Provide a workaround if Altivec unit is not present in PPC > EXTRA_OECMAKE_append_class-target_powerpc = " > ${@bb.utils.contains("TUNE_FEATURES", "altivec", "", "-DWITH_SIMD=False", d)}" > EXTRA_OECMAKE_append_class-target_powerpc64 = " > ${@bb.utils.contains("TUNE_FEATURES", "altivec", "", "-DWITH_SIMD=False", d)}" > -- > 2.17.1 > > > >
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#152810): https://lists.openembedded.org/g/openembedded-core/message/152810 Mute This Topic: https://lists.openembedded.org/mt/83415559/21656 Group Owner: openembedded-core+ow...@lists.openembedded.org Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-