On 6/9/21 10:49 AM, Khem Raj wrote:
[Please note: This e-mail is from an EXTERNAL e-mail address]

On Tue, Jun 8, 2021 at 7:37 PM Changqing Li <[email protected]> wrote:
From: Changqing Li <[email protected]>

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.

Signed-off-by: Changqing Li <[email protected]>
---
  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..9b1798b232 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_armv5 = " -DWITH_SIMD=False"
I think it should check for neon in machine features if its not
available then disable it on arm.
Thanks. I will send a V2.

+
  # 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 (#152794): 
https://lists.openembedded.org/g/openembedded-core/message/152794
Mute This Topic: https://lists.openembedded.org/mt/83412265/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to