My process in the past has been to use the scripts/build-tools.sh which will generate a riscv-tools/build-rv64g.sh script which will then compile a full complement of spike/riscv-pk/newlib+riscv-unknown-elf-gcc for RV64G. Then I manually go into riscv-gnu-toolchain/build and perform a glibc/linux build. I'll try and put together a script for this when I get a chance.
If you try to use riscv-linux-gcc to compile riscv-pk, I'm not sure what will happen! If I recall correctly, riscv64-unknown-elf-gcc will compile a -static binary, use newlib (so a simpler/smaller set of syscalls), and possibly put the binary at a different starting address. None of that may matter for riscv-pk since it's Makefile will override the standard build flags (-static -nostdlib, etc.) ... or maybe it will be subtly different and not work!