You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
build error of node-v22.9.0 for riscv64 architecture #60838
I am building the node-v22.9.0 on riscv64 architecture natively on ubuntu-22.04, GLIBC version is 2.35 and gcc version is 11.4.0.
I am able to built node-v21.7.0 successfully for riscv64 using these steps without any issues, So i'm trying to build node-v22.9 with the below steps., but i'm encountering issues for the same.
git clone https://github.com/nodejs/node.git
cd node
git checkout v21.7.0
CC=riscv64-linux-gnu-gcc CXX=riscv64-linux-gnu-g++ CC_host=gcc CXX_host=g++ ./configure --dest-cpu=riscv64 --cross-compiling --dest-os=linux --openssl-no-asm
make -j$(nproc)
I'm building node-v22.9.0 since it's a pre-requisite for a Bowser. But during build of node-v22.9 I'm facing this following error.
/usr/bin/ld: /home/root/node/out/Release/obj.host/v8_base_without_compiler/deps/v8/src/api/api.o: in function v8::TryHandleWebAssemblyTrapPosix(int, siginfo_t*, void*)': api.cc:(.text._ZN2v829TryHandleWebAssemblyTrapPosixEiP9siginfo_tPv+0xa): undefined reference to v8::internal::trap_handler::TryHandleSignal(int, siginfo_t*, void*)'
/usr/bin/ld: /home/root/node/out/Release/obj.host/v8_base_without_compiler/deps/v8/src/trap-handler/handler-outside.o: in function .L54': handler-outside.cc:(.text._ZN2v88internal12trap_handler17EnableTrapHandlerEb+0x38): undefined reference to v8::internal::trap_handler::RegisterDefaultTrapHandler()'
collect2: error: ld returned 1 exit status
make[1]: *** [tools/v8_gypfiles/mksnapshot.host.mk:236: /home/exaleap/node/out/Release/mksnapshot] Error 1
rm ec5f255e633724682dc7d913fb8e80c9b3f0f173.intermediate dd194d4517013f18de3932e89988a8e21d123ae5.intermediate 231e16215002a1dae64a72c793a54426231b4216.intermediate 672f9aefda4aea467bc2d32583cdddaf8607716b.intermediate a8abb507a1c870464a085c2853d534edb1e412c2.intermediate
make: *** [Makefile:137: node] Error 2
It would be really appreciated if someone can help me to resolve this issue?
Activity
richardlau commentedon Nov 24, 2025
Looks like #53115 which was fixed by #52888 in Node.js 22.13.0 for 22.x.
JamieMagee commentedon Apr 9, 2026
Can this be closed?