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
Compile error, "Instruction csrw requires absolute expression" #25
Comments
This is usually just a version mismatch (what the error message actually means is that a CSR with the given name doesn't exist). You should try using the matched tagged versions is riscv-tools, probably using whatever is on the "priv-1.9" branch if you're looking for new stuff. |
Ah, I see. Solved, thanks. |
I am still having the same problem....I get this when trying to make pk.
|
Similar problem here as Barbara The riscv-gnu-toolchain built well but building riscv-pk failed with: ... So I did a compare with the newest revision of riscv-pk and found that --enable-32bit isn't I then replaced the old version of riscv-pk with the newest one and got: Configuring project riscv-pk I did a google search that led me to this page but I am not able to determine |
Me too, riscv-gnu-toolchain builds well but pk won't. I also tried an old version of pk and got the same result as Edgar! Can anyone please help? |
Me four, I've tried following the steps of this Stack Overflow answer: http://stackoverflow.com/a/31393890/6779984. Tried with the "priv-1.9" branch on riscv-tools repository. I've tried running this: The following error shows up:
|
If you are following the instructions in that stack overflow answer, they are woefully out-of-date for the latest v1.9 privileged architecture. There is no tohost CSR register, so you can no longer end bare-metal tests using a I have since updated the SO answer with a disclaimer. |
I am trying to compile the FreeRTOS and got the Same error Error: |
I've been directed here as I've been suffering with the same issue. The issue might be caused by a wrong implementation of stringify used in inlined code. For example: |
Compiling with the latest toolchain built by riscv-tools results in:
The text was updated successfully, but these errors were encountered: