From: Hongxu Jia <[email protected]>

Use gcc to compile failed for 32 bit arm target

$ echo 'MACHINE = "qemuarm"' >> conf/local.conf
$ bitbake nodejs
...
 2645 |         );
      |         ^
../deps/llhttp/src/llhttp.c:2643:11: error: incompatible type for argument 1 of 
'vandq_u16'
 2643 |           vcgeq_u8(input, vdupq_n_u8(' ')),
      |           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |           |
      |           uint8x16_t
...

Use '-flax-vector-conversions' to permit conversions between vectors
with differing element types or numbers of subparts

Signed-off-by: Hongxu Jia <[email protected]>
Signed-off-by: Khem Raj <[email protected]>
(cherry picked from commit fe7aaabb1c30cf263738dbf5df927650809e8074)

Adapted to Scarthgap

Signed-off-by: Gyorgy Sarvari <[email protected]>
---
 meta-oe/recipes-devtools/nodejs/nodejs_20.20.0.bb | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/meta-oe/recipes-devtools/nodejs/nodejs_20.20.0.bb 
b/meta-oe/recipes-devtools/nodejs/nodejs_20.20.0.bb
index 1bc5a6e9cd..5882319804 100644
--- a/meta-oe/recipes-devtools/nodejs/nodejs_20.20.0.bb
+++ b/meta-oe/recipes-devtools/nodejs/nodejs_20.20.0.bb
@@ -43,6 +43,10 @@ CVE_STATUS[CVE-2024-3566] = "not-applicable-platform: Issue 
only applies on Wind
 # v8 errors out if you have set CCACHE
 CCACHE = ""
 
+# Use '-flax-vector-conversions' to permit conversions between vectors
+# with differing element types or numbers of subparts
+CFLAGS:append:arm = " -flax-vector-conversions"
+
 def map_nodejs_arch(a, d):
     import re
 
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#124347): 
https://lists.openembedded.org/g/openembedded-devel/message/124347
Mute This Topic: https://lists.openembedded.org/mt/117771922/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to