-
-
Notifications
You must be signed in to change notification settings - Fork 19
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
MacOS arm64 toolchain - C++ link error: (.text._getentropy_r+0x12): undefined reference to `_getentropy' #37
Comments
Assuming the link passed, what do you plan to do with the resulting binary? |
Run it! For now it will be on simulators, like spike, qemu... |
And how do you expect the output stream resulting from writing to |
Not sure how it works... In general I would like to link all statically in the final binary, so that It should run without extra libraries (if I'm correct). |
That binary worked because that toolchain is specific to spike. Generally you have to add code to redirect the output to something your environment supports, like semihosting, which is supported well by QEMU. But things are not that obvious as you may think, you have to define a startup, linker scripts, etc. You can try to instantiate a project from my hello-world-qemu-template-xpack project template and take a look at the resulting code. |
Hello!
I'm trying to use the toolchain 14.2.0 (also tried with 13.2.0). I'm always getting the same link error when my code use some c++ std things (like cout or vector).
I downloaded the toolchain but also tried to install it via package manager. Same error.
See the example:
Compilation:
Am I doing something wrong ? Could you help on this ?
Thanks!
The text was updated successfully, but these errors were encountered: