Comments (3)
pk does not support dynamically linked programs; you must use -static. However, that will not work in this case, either, because pk does not support pthreads. You are better off running Linux than using pk for this purpose.
from riscv-glibc.
So what should I do for running .o file? Can you explain the command used to run on linux?
from riscv-glibc.
You can run the program on user mode qemu. user mode qemu supports dynamically linked programs and pthread. However, sometimes parallel programs fail on user mode qemu and I don't know why. If you have riscv-gnu-toolchain, then "make stamps/build-qemu" will build and install qemu. Or you can get it from qemu.org. Or if you have a recent enough linux distro, you can probably apt/yum/dnf/whatever install it.
Or, you can boot a linux image on system mode qemu, log in, and then compile and run the program natively. This is likely to work better than user mode qemu for parallel programs. I haven't see pthread failures when using system mode qemu.
Or if you have hardware that can boot linux, you can compile and run natively there.
from riscv-glibc.
Related Issues (17)
- %F printf() specifier does not work HOT 1
- Suboptimal math functions on RV32G? HOT 3
- printf return positive values for negative float HOT 2
- Please make sure that the file structures use 64-bit offsets only HOT 3
- warning: unused variable 'refsym' HOT 3
- Questions: How to compile and run the test for this glibc for risc-v? HOT 7
- Dynamic linking fails to detect soft float / hard float mixing HOT 1
- mcontext_t type is missing from ucontext.h HOT 4
- By default, stack is executable HOT 5
- Is this repo still active? HOT 2
- Why do we remove the F-ABI? HOT 4
- What is the difference of glibc 2.26 and glibc 2.27 in RISC-V implementation HOT 3
- timezone update not working tzdb-2021a on cross compile linux platform HOT 3
- `A' extension and ABI HOT 1
- Building glibc HOT 2
- Interpreter location/name HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from riscv-glibc.