Skip to content

undefined reference to `v8::internal::trap_handler::RegisterDefaultTrapHandler()' #53115

Description

@andreas-schwab
/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

Activity

  1. added
    riscv64Issues and PRs related to the 64-bit RISC-V architecture.
    on May 23, 2024
  2. targos commented on May 23, 2024

    @targos
    Member

    @nodejs/platform-riscv64

  3. richardlau commented on May 23, 2024

    @richardlau
    Member

    I think this is #52678?
    Could you see if #52888 fixes it?

  4. kth5 commented on May 24, 2024

    @kth5

    #52888 fixed it for me. I can now build 22.2.0 with Clang 17.0.6 again.

  5. RossComputerGuy commented on Jan 17, 2025

    @RossComputerGuy

    Issue occurs in Nix as well: NixOS/nixpkgs#374456

  6. linked a pull request that will close this issuetools: fix riscv64 build failed #52888on Nov 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    riscv64Issues and PRs related to the 64-bit RISC-V architecture.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions