-
Notifications
You must be signed in to change notification settings - Fork 98
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
Musl C lib support #564
Comments
Have you tried compiling dora for a musl target, e.g. for
|
I compile it with target "x86_64-unknown-linux-ohos", then I get an error
It seems like that Please check rust-lang/socket2#451 In addition, to support ohos, we should modify the |
Ok, looks like we need to update some dependencies then.
Is the version too new or too old? The target was addedd in rust-lang/rust#113061 , so it should be available in 1.76. If it's too old, you can easily compile the latest stable version using |
I just tried `` and the main error source seems to be the nix 0.23 dependency of https://docs.rs/raw_sync_2/latest/raw_sync_2/ . We probably need to update that crate to the latest @haixuanTao You are author of the crates.io crate, but its repo link still points to the upstream repo. What is the repo of the forked crate? |
I just type |
Ah, looks like the stdlib is only available since rust-lang/compiler-team#719, which was released with rust 1.78. The |
for rk3568 is armv7, we should use musl libc. docker pull messense/rust-musl-cross:armv7-musleabi
docker run --rm -it -v "$(pwd)":/home/rust/src messense/rust-musl-cross:armv7-musleabihf bash
rustup target add armv7-unknown-linux-musleabi
cargo build -p dora-cli --release --target armv7-unknown-linux-musleabi so we can move ./dora/target/armv7-unknown-linux-musleabi/release/dora to rk3568. /path/to/dora/.cargo/config.toml
[target."armv7-unknown-linux-musleabi"]
rustflags = "-C target-feature=-crt-static" and move libgcc_s.so.1 to rk3568:/lib
|
I can add arm-musl in our next github release so that it is easier to use dora within arm ohos. |
This may not be Dora specific, but there is a request to support OpenHarmony 4.x (OHOS). OHOS is not using glibc but musl C. Is there any solution that Dora can support operating system that uses musl C.
The text was updated successfully, but these errors were encountered: