Comments (3)
not having std is fine, we can simply use build-std
if you have all the tools to build for this target, adding cargo +nightly build -Z build-std=core,std,panic_abort --target riscv64gc-unknown-linux-musl
should work for you.
For us creating an image supporting this should be fairly simple. Since this is a T3 target this should probably be added according to https://github.com/cross-rs/cross/wiki/Contributing#adding-new-targets
from cross-toolchains.
You can build std with https://rustc-dev-guide.rust-lang.org/building/how-to-build-and-run.html#building-targets-for-cross-compilation or simply using -Zbuild-std=std
I'll move this issue to cross-toolchains since it should belong there instead
from cross-toolchains.
@Emilgardis
Thanks. I will try to create an image supporting.
BTW, cargo +nightly build -Z build-std=core,std,panic_abort --target riscv64gc-unknown-linux-musl
not works. the error is:
...
ld: cannot find -lunwind
I suppose it missing libunwind.rlib
under ~/.rustup/toolchains/...
Do you know how to build 'rust-std' for target 'riscv64gc-unknown-linux-musl'? Maybe I can menully install it to my ~/.rustup/toolchains/..
folder
from cross-toolchains.
Related Issues (20)
- Avoid critical config in the entrypoint (ignored by `CROSS_REMOTE=1`) HOT 1
- Publish more images HOT 3
- Provision more target triples HOT 1
- Request: Support for binary stripping HOT 2
- 'bash\r': No such file or directory HOT 1
- Where is `cargo build-docker-image`? HOT 2
- Issue configuring the glibc version HOT 1
- Instructions unclear for msvc build
- libatomic.a included in arm-unknown-linux-gnueabihf:0.2.5 contains armv7 instructions
- Can't configure crosstool for x86_64-unknown-linux-gnu HOT 3
- NetBSD support
- create a github actions action to easily setup -cross images
- x86_64-apple-darwin-cross manifest unknown HOT 13
- aarch64-apple-ios image build failed due to libdispatch/libblocksruntime HOT 1
- Failed to build for apple darwin targets jemalloc-sys HOT 6
- Unable to build `aarch64-apple-darwin` target HOT 1
- Rust now requires MacOS > 10.12 HOT 3
- build-docker-image aarch64-apple-darwin-cross fails with illegal instruction on M2 HOT 1
- Build failed with podman under fedora 40
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 cross-toolchains.