Open anirudhajith opened 4 years ago
The variable tracking size limit warning can be ignored. It just means that we had to emit less accurate debug info because the code was too complicated for better debug info variable tracking.
The mcmodel error is one you get when you accidentally use an x86_64 compiler to try to compile risc-v code. Risc-v gcc accepts medany but x86_64 gcc does not. You probably forgot to set an environment variable, or set it wrong. Or maybe don't have a riscv compiler available. Check the RISCV environment variable. If $RISCV/bin/riscv64-unknown-elf-gcc doesn't exist, then you won't be able to build riscv-tools.
What @jim-wilson said is maybe true, you need to compile all the components separately. For the error which is due to riscv-pk, I was able to remove it and compile it perfectly by following the follow steps:
export example1=/path/to/bin/of/toolchain
export example2=/path/to/toolchain
export PATH="$example1:$PATH"
export PATH="$example2:$PATH"
Hope this helps. If you have any more issues, do reach out. Thanks.
I run Ubuntu 18.04. On a fresh clone of riscv-tools, I followed (as far as I can tell) the instructions in
README.md
. On running./build.sh
as mentioned, I got the following output:As you can see,
riscv-openocd
compiled with warnings butriscv-isa-sim
andriscv-pk
seem to have bombed pretty conclusively.