Hi
I managed to complete the installation of the RISCV toolchain from
https://github.com/riscv/riscv-tools.git
I used the following configuration:
(Tail end of my build.sh being ( i have not changed anything):
)
WRT installation of pk, the message was
So i think pk has been installed successfully.
However, running the simple "Hello World" program
spike pk hello
The above just hangs with no output.
Looks like pk was not built correctly.
I did a search in the goggle RISCV SW-DEV group wrt spike and pk but could not find anything which explains why the pk binary was not generated.
Any pointers why the pk binary was not generated?
Hi
One correction in the copy and paste of the tail end of my build.sh script. Commented out the original command for riscv-pk as highlighted in red below and used the alternate command. Rational for using the alternate command being that the version of GCC/GCCLIB being used is already setup using the GCC/GCCLIB/LD_LIBRARY_PATH variables.
Hi
Assuming the warning from configuration of riscv-pk is not the cause of the problem, looking at the build.log for riscv-pk, i cannot see any errors in the log file.
Log file for riscv-pk attached.
Hi Stefan
>> Where did you get them from? Is your $PATH clean of other versions of
the RISC-V toolchain? (I had a boot problem once with Linux because
one build step was picking up the wrong "gas")
I installed the RISC-V tool chain from
https://github.com/riscv/riscv-tools.git
WRT $PATH, i don't see it picking up any other version of the RISCV tools:
bash-4.1$ pwd /user/jdo.tmp2/risc-v/sw_tools_3_Nov_2016_riscv_original_gcc_4.9.3 bash-4.1$ echo $PATH /vl/edatools/intern/gcc/4.9.3/gcc/bin:/vl/edatools/intern/gcc/4.9.3/gcc/lib64:/vl/edatools/eda/bin/wrappers:/vl/edatools/eda/bin:/vl/edatools/bin:/usr/local/bin:/bin:/usr/bin:.:vl/edatools/modules/tools:/user/jdo.tmp2/risc-v/sw_tools_3_Nov_2016_riscv_original_gcc_4.9.3/riscv-tools/opt_riscv/bin:/user/jdo.tmp2/risc-v/sw_tools_3_Nov_2016_riscv_original_gcc_4.9.3/riscv-tools/opt_riscv//riscv64-unknown-elf/bin
My initial objective is to make sure that i have managed to install the RISCV tools correctly. The first step was to get the simple Hello World program execute correctly via "Spike pk hello". To complete the task that the RISCV tool chain has been installed correctly was to then run the riscv-tests regression successfully
Hi Stefan
Trying again with the PATH settings detail:
/vl/edatools/intern/gcc/4.9.3/gcc/bin:/vl/edatools/intern/gcc/4.9.3/gcc/lib64:/vl/edatools/eda/bin/wrappers:/vl/edatools/eda/bin:/vl/edatools/bin:/usr/local/bin:/bin:/usr/bin:.:vl/edatools/modules/tools:/user/jdo.tmp2/risc-v/sw_tools_3_Nov_2016_riscv_original_gcc_4.9.3/riscv-tools/opt_riscv/bin:/user/jdo.tmp2/risc-v/sw_tools_3_Nov_2016_riscv_original_gcc_4.9.3/riscv-tools/opt_riscv//riscv64-unknown-elf/bin
I will try to simply the PATH setting to see if that helps.
Thanks for your assistance.
Hi Stefan
As per your suggestion, i simplied the $PATH variable to the following:
/vl/edatools/intern/gcc/4.9.3/gcc/bin:/vl/edatools/eda/bin/wrappers:/vl/edatools/eda/bin:/vl/edatools/bin:/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin:/user/jdo.tmp2/risc-v/sw_tools_9_Nov_2016_riscv_original_gcc_4.9.3/riscv-tools/opt_riscv/bin
I then re-installed the RISC-V Toolchain from new and now "spike pk hello" works okay.
Thank for your assistance.