I just installed the new FreedomStudio on Ubuntu VM, including the latest Java release, and get the following error when trying to build coreplexip any
RISCV_Evaluation/sifive/FreedomStudio/SiFive/riscv64-unknown-elf-gcc-20170612-x86_64-linux-centos6/bin/…/libexec/gcc/riscv64-unknown-elf/7.1.1/liblto_plugin.so: error loading plugin:
RISCV_Evaluation/sifive/FreedomStudio/SiFive/riscv64-unknown-elf-gcc-20170612-x86_64-linux-centos6/bin/…/libexec/gcc/riscv64-unknown-elf/7.1.1/liblto_plugin.so: file too short
collect2: error: ld returned 1 exit status
make: *** [coreplexip_welcome.elf] Error 1
Can you verify that the file RISCV_Evaluation/sifive/FreedomStudio/SiFive/riscv64-unknown-elf-gcc-20170612-x86_64-linux-centos6/bin/…/libexec/gcc/riscv64-unknown-elf/7.1.1/liblto_plugin.so exits on your machine and that it is a sym link to liblto_plugin.so.0.0.0?
You might also want to try re-downloading and extracting the bundle.
Can you verify that the file RISCV_Evaluation/sifive/FreedomStudio/SiFive/riscv64-unknown-elf-gcc-20170612-x86_64-linux-centos6/bin/…/libexec/gcc/riscv64-unknown-elf/7.1.1/liblto_plugin.so exits on your machine and that it is a sym link to liblto_plugin.so.0.0.0?
cd RISCV_Evaluation/sifive/FreedomStudio/SiFive/riscv64-unknown-elf-gcc-20170612-x86_64-linux-centos6/libexec/gcc/riscv64-unknown-elf/7.1.1
ls -la
You should see something similar to (among other files):
If you downloaded the toolchain from GitHub under Windows, instead of from within your VM, you will probably not have the sym link. If so, you should re-download from GitHub from witin you VM.
Hi thank you very much for your valuable support now I able to build the project. But if i am trying to debug the project its shows following issue
/nfs/iind/disks/i2r.disk.0001/RISCV_Evaluation/sifive/Projects/coreplexip_welcome/Debug/coreplexip_welcome.elf: Exec format error. Binary file not executable.
The examples include launch configurations. Be sure you are using the included OpenOCD Debug configuration by clicking Run–>Debug Configurations --> GDB OpenOCD Debug and selecting the appropriate project.
Hi already i am using freedom-e-sdk. Can you share Freedomstudio example how to run? From this repo there is no readme document for Freedomstudio examples and also no Makefile present in this folder.
I’m sorry, but I’m not understanding what you are asking for. Freedom Studio includes several examples which are generated from Freedom-E-SDK.
Freedom Studio has a manual which describes how to get started. Chapter 4 covers importing the bundled zip examples as well as importing the Freedom-E-SDK examples. Please see the link below (and also in the bundle):
Freedom-E-SDK has its Readme file in the root directory which describes the setup and how to run the makefile.
When building the Freedom-E-SDK examples in Freedom Studio, you must import and build the wrap project for the board first. In your case, import the wrap-hifive1 project and build it.