Then follow the instructions in the README for that repo. If you wish to just build the gdbserver, then you can disentangle the individual commands from the scripts in the riscv-toolchain repo.
Some results have been hidden because they may be inaccessible to you
Show inaccessible results