-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error when compiling Timer.lf program under FlexPRET #19
Comments
Thanks for reporting the issue, @ChadliaJerad. It looks like the main issue is:
Because the compilation was unsuccessful, What is the version of your RISC-V GNU toolchain, and did you follow these instructions when installing it? |
Thanks, Shaokai! |
Yes, 12.2.0 is the same version I have. It could be that the spec files, for some reason, are not in your installation path. My installation path is |
I set the installation path |
Update: it turned out that the |
Could you show the error message you got when calling |
I am sorry I cannot! Currently experimenting with another configuration of the compiler... Still, it occurred to me that I should rather do Another thing I understood from your post regarding submodules on Zilup, I was using the |
Since the riscv gcc is a cross-compiler, I think it's the target environment, rather than the host environment, that determines which gcc should be used. Since we are targeting an embedded environment (FlexPRET) instead of a riscv-based linux distribution, we probably want to use the |
Please have a look at the description here, regarding the naming... This is what I meant. Now that As mentioned in Zulip, and possibly for Linux users, using prebuilt binaries could be an easier option. |
After successfully installing the RISC-V GNU toolchain and Verilator (version 5.002), running
lfc scr/Timer.lf
outputs the following error at the end:The
nosys.specs
is located under/home/chadlia/berkeleyWorkspace/riscv-gnu-toolchain/newlib/libgloss/libnosys/nosys.specs
though.Also, when running
fp-emu +ispm=Timer.mem
, I get this message:%Warning: Timer.mem:0: $readmem file not found
and then nothing is running, despite it is said that it is a warning.Any pointers, please?
The text was updated successfully, but these errors were encountered: