diff mbox series

[meta-oe,v3,1/2] nodejs: fix gcc compile failed for 32 bit arm target

Message ID 20251030051505.1693030-1-hongxu.jia@windriver.com
State Accepted
Headers show
Series [meta-oe,v3,1/2] nodejs: fix gcc compile failed for 32 bit arm target | expand

Commit Message

Hongxu Jia Oct. 30, 2025, 5:15 a.m. UTC
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 <hongxu.jia@windriver.com>
---
 meta-oe/recipes-devtools/nodejs/nodejs_22.21.1.bb | 4 ++++
 1 file changed, 4 insertions(+)

Comments

Hongxu Jia Nov. 14, 2025, 8:08 a.m. UTC | #1
Ping

//Hongxu
On 10/30/25 13:15, hongxu via lists.openembedded.org wrote:
> The clang does not need option -flax-vector-conversions to
> avoid build failure for 32bit arm target
>
> Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
> ---
>   meta-python/recipes-devtools/python/python3-aiohttp_3.12.15.bb | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/meta-python/recipes-devtools/python/python3-aiohttp_3.12.15.bb b/meta-python/recipes-devtools/python/python3-aiohttp_3.12.15.bb
> index 6ca05d0596..b6344d4c68 100644
> --- a/meta-python/recipes-devtools/python/python3-aiohttp_3.12.15.bb
> +++ b/meta-python/recipes-devtools/python/python3-aiohttp_3.12.15.bb
> @@ -22,4 +22,4 @@ RDEPENDS:${PN} = "\
>       python3-aiodns \
>   "
>   
> -CFLAGS:append:arm = " -flax-vector-conversions"
> +CFLAGS:append:toolchain-gcc:arm = " -flax-vector-conversions"
>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#121189): https://lists.openembedded.org/g/openembedded-devel/message/121189
> Mute This Topic: https://lists.openembedded.org/mt/116025741/3617049
> Group Owner: openembedded-devel+owner@lists.openembedded.org
> Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [hongxu.jia@eng.windriver.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>
diff mbox series

Patch

diff --git a/meta-oe/recipes-devtools/nodejs/nodejs_22.21.1.bb b/meta-oe/recipes-devtools/nodejs/nodejs_22.21.1.bb
index 0cba529673..ca4001a04c 100644
--- a/meta-oe/recipes-devtools/nodejs/nodejs_22.21.1.bb
+++ b/meta-oe/recipes-devtools/nodejs/nodejs_22.21.1.bb
@@ -48,6 +48,10 @@  CVE_PRODUCT += "node.js"
 # 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:toolchain-gcc:arm = " -flax-vector-conversions"
+
 def map_nodejs_arch(a, d):
     import re