undefined reference to `v8::internal::trap_handler::RegisterDefaultTrapHandler()'
/usr/lib64/gcc/riscv64-suse-linux/13/../../../../riscv64-suse-linux/bin/ld: /home/abuild/rpmbuild/BUILD/node-v22.2.0/out/Release/obj.target/v8_base_without_compiler/deps/v8/src/api/api.o: in function v8::TryHandleWebAssemblyTrapPosix(int, siginfo_t*, void*)': /home/abuild/rpmbuild/BUILD/node-v22.2.0/out/../deps/v8/src/api/api.cc:6403:(.text._ZN2v829TryHandleWebAssemblyTrapPosixEiP9siginfo_tPv+0xa): undefined reference to v8::internal::trap_handler::TryHandleSignal(int, siginfo_t*, void*)'
/usr/lib64/gcc/riscv64-suse-linux/13/../../../../riscv64-suse-linux/bin/ld: /home/abuild/rpmbuild/BUILD/node-v22.2.0/out/Release/obj.target/v8_base_without_compiler/deps/v8/src/trap-handler/handler-outside.o: in function v8::internal::trap_handler::EnableTrapHandler(bool)': /home/abuild/rpmbuild/BUILD/node-v22.2.0/out/../deps/v8/src/trap-handler/handler-outside.cc:265:(.text._ZN2v88internal12trap_handler17EnableTrapHandlerEb+0x54): undefined reference to v8::internal::trap_handler::RegisterDefaultTrapHandler()'
collect2: error: ld returned 1 exit status
make[1]: *** [tools/v8_gypfiles/mksnapshot.target.mk:228: /home/abuild/rpmbuild/BUILD/node-v22.2.0/out/Release/mksnapshot] Error 1
@nodejs/platform-riscv64
I think this is https://github.com/nodejs/node/issues/52678? Could you see if https://github.com/nodejs/node/pull/52888 fixes it?
#52888 fixed it for me. I can now build 22.2.0 with Clang 17.0.6 again.
Issue occurs in Nix as well: https://github.com/NixOS/nixpkgs/issues/374456