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
There will be many errors related with failed static assertions and no matching templates, see the attached log for details.
Detailed steps of reproduction
# first configure for cross building
./configure --dest-cpu=riscv64 --dest-os=linux --prefix=/usr --cross-compiling
# then attempt to build
make CC="ccache riscv64-linux-gnu-gcc" CXX="ccache riscv64-linux-gnu-g++" CC_host="ccache clang" CXX_host="ccache clang++" DESTDIR=$PWD/target install -j20
# the above command will fail, and log was collected with the following command
make CC="ccache riscv64-linux-gnu-gcc" CXX="ccache riscv64-linux-gnu-g++" CC_host="ccache clang" CXX_host="ccache clang++" DESTDIR=$PWD/target install -j20 -k 2>&1| tee build.log
Also, I find that --ninja in configure will not work with cross compiling to RISC-V, but works for native compiling for x86_64 and cross compiling to arm64.
$ ./configure --dest-cpu=riscv64 --dest-os=linux --prefix=/usr --cross-compiling --ninja
Node.js configure: Found Python 3.14.8...
INFO: Using floating patch "tools/icu/patches/78/source/i18n/dtfmtsym.cpp" from "tools/icu"
INFO: configure completed successfully
$ make CC="ccache riscv64-linux-gnu-gcc" CXX="ccache riscv64-linux-gnu-g++" CC_host="ccache clang" CXX_host="ccache clang++" DESTDIR=$PWD/target install -j20 -k 2>&1 | tee build.log
ninja -C out/Release -j20
ninja: Entering directory `out/Release'
ninja: error: obj.host/tools/v8_gypfiles/v8_inspector_headers.ninja:14: multiple rules generate gen/inspector-generated-output-root/src/js_protocol.stamp
make: *** [Makefile:161: node] Error 1
make: Target 'install' not remade because of errors.
I'm interested in investigating the RISC-V cross-compilation failures and the Ninja build error. I'd like to look into the root cause, reproduce the issue, and work on a fix.
Could you please assign this issue to me? I'll share my findings and submit a PR once I have a solution. Thanks!
3. Hi @scratch-er, I'd like to work on this issue.
I'm interested in investigating the RISC-V cross-compilation failures and the Ninja build error. I'd like to look into the root cause, reproduce the issue, and work on a fix.
Could you please assign this issue to me? I'll share my findings and submit a PR once I have a solution. Thanks!
Activity
scratch-er commentedon Oct 16, 2026
Also, I find that
--ninjain configure will not work with cross compiling to RISC-V, but works for native compiling for x86_64 and cross compiling to arm64.bindu-yogesh commentedon Oct 17, 2026
Hi @scratch-er, I'd like to work on this issue.
I'm interested in investigating the RISC-V cross-compilation failures and the Ninja build error. I'd like to look into the root cause, reproduce the issue, and work on a fix.
Could you please assign this issue to me? I'll share my findings and submit a PR once I have a solution. Thanks!
scratch-er commentedon Oct 17, 2026
Hi, @bindu-yogesh , neither you or me are member of this repo so I cannot assign you. Please just refer to https://github.com/nodejs/node/blob/main/CONTRIBUTING.md .