-
-
Notifications
You must be signed in to change notification settings - Fork 59
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
Compiling to RISC-V #288
Comments
@davidmallasen thanks for bringing this up. This will take a bit of work to resolve as different compilers provide different supporting structures. The errors reported indicate that the math library offered has some different assumptions. Good news is that I am very interested to get the RISC-V environment clean and in the regular regression line-up. This is going to be a porting exercise discovering what the RISC-V compiler, runtime, and library environment constraints are and organizing the code accordingly. If you can tell me how to recreate your environment so we can collaborate that would be the first step. |
Hello @theo-lemurian To recreate the RISC-V environment on a Ubuntu 22.04 machine:
In
Create file main.cpp:
Create file CMakeLists.txt:
Then:
I hope this helps. |
Tried over the weekend to create a RISC-V Qemu setup but was unsuccessful. Do you have any guidance? |
finally got a risc-v environment. Now I can reproduce your errors. There is some restructuring required to have gcc and risc-v play nice together. I'll work on that this week. In the mean time, maybe you can help me decipher this error:
Any idea where this -rdynamic flag comes from? |
@davidmallasen ^^^ |
Hello @Ravenwater , I don't use qemu so I don't know about that, but great hearing that you could get the risc-v environment working. I've never used that flag, so I'm not sure where it comes from. Searching online it seems that it is part of the linking process, maybe that helps to figure it out? |
@davidmallasen got the basics up and running. Looks like the mathlib in the RISC-V toolchain is a couple of decades behind, so I need to understand what their roadmap is for them to support a compliant |
Perfect, sounds like a good solution @Ravenwater |
Hello!
I'm having some trouble using Universal for RISC-V. I have a small test project with the following directories:
The content of CMakeLists.txt is:
When executing:
I get the following errors:
The cpp file includes
<universal/number/posit/posit.hpp>
, and the same small code is working when compiling in Ubuntu by default without theline in
CMakeLists.txt
. I have also tried using clang++ with the same result. Any insights into how to solve this? Thanks!The text was updated successfully, but these errors were encountered: