Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8317257

RISC-V: llvm build broken

    XMLWordPrintable

Details

    • b18
    • riscv
    • linux

    Backports

      Description

        using clang16 and performing build on the risc-v board getting next error:

        /home/user/openjdk/jdk/src/hotspot/cpu/riscv/c1_LIRAssembler_riscv.cpp:1518:10: error: call to member function 'null_check' is ambiguous
              __ null_check(obj);
              ~~~^~~~~~~~~~
        /home/user/openjdk/jdk/src/hotspot/cpu/riscv/macroAssembler_riscv.hpp:238:16: note: candidate function
          virtual void null_check(Register reg, int offset = -1);
                       ^
        /home/user/openjdk/jdk/src/hotspot/cpu/riscv/c1_MacroAssembler_riscv.hpp:109:8: note: candidate function
          void null_check(Register r, Label *Lnull = nullptr) { MacroAssembler::null_check(r); }
               ^
        1 error generated.


        fast fix was to change caller site to __ null_check(obj, nullptr);

        Attachments

          Issue Links

            Activity

              People

                vkempik Vladimir Kempik
                vkempik Vladimir Kempik
                Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: