Skip to content
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

麻烦编译一个mips版本的 #22

Closed
ioito opened this issue Sep 7, 2021 · 14 comments
Closed

麻烦编译一个mips版本的 #22

ioito opened this issue Sep 7, 2021 · 14 comments
Labels
blocked Something is blocking this upstream Upstream issue

Comments

@ioito
Copy link

ioito commented Sep 7, 2021

路由器是Newifi D2

@ioito
Copy link
Author

ioito commented Sep 7, 2021

好像不行,编译会报 briansmith/ring#1277 中提到的错误

@messense
Copy link
Owner

messense commented Sep 7, 2021

可以试下 main 分支 cargo build --release --no-default-features --features native-tls-vendored

@messense messense added the blocked Something is blocking this label Sep 7, 2021
@ioito
Copy link
Author

ioito commented Sep 8, 2021

报错: Package aliyundrive-webdav v0.1.22 (/home/lighthouse/aliyundrive-webdav) does not have the feature native-tls-vendored

@messense
Copy link
Owner

messense commented Sep 8, 2021

更新下代码先。

native-tls-vendored = ["reqwest/native-tls-vendored", "openssl-probe"]

@ioito
Copy link
Author

ioito commented Sep 8, 2021

image

现在报这个错

@messense
Copy link
Owner

messense commented Sep 8, 2021

Blocked on metrics-rs/quanta#54

@messense
Copy link
Owner

messense commented Sep 8, 2021

mipsel 可以试试这个:https://github.com/messense/aliyundrive-webdav/suites/3713756695/artifacts/90763447

@tatsuya6502
Copy link
Sponsor Contributor

Hi. Moka author here. It is Moka who depends on quanta.

$ cargo tree -i quanta
quanta v0.9.2
└── moka v0.5.2
    └── aliyundrive-webdav v0.1.22

I think not only quanta has the problem on this platform but also Moka does. Let me check if I can make Moka work. I opened an issue: moka-rs/moka#38

@messense
Copy link
Owner

messense commented Sep 8, 2021

@tatsuya6502 Thanks for taking a look. I've also found out that moka doesn't compile on these platforms when trying to patch quanta: https://github.com/messense/aliyundrive-webdav/runs/3541273216?check_suite_focus=true

@tatsuya6502
Copy link
Sponsor Contributor

Thanks for the info. Yeah. I was a kind of expecting the error. I will try to workaround it.

cargo build --release --target armv5te-unknown-linux-musleabi 
...

error[E0432]: unresolved import `std::sync::atomic::AtomicU64`
  --> /root/.cargo/git/checkouts/moka-ba7e21d144061f19/03bf84e/src/sync.rs:10:30
   |
10 |         atomic::{AtomicBool, AtomicU64, Ordering},
   |                              ^^^^^^^^^
   |                              |
   |                              no `AtomicU64` in `sync::atomic`
   |                              help: a similar name exists in the module: `AtomicU8`

@ioito
Copy link
Author

ioito commented Sep 8, 2021

mipsel 可以试试这个:https://github.com/messense/aliyundrive-webdav/suites/3713756695/artifacts/90763447

可以正常运行,麻烦release下版本,我需要重新编译下openwrt, 路由器内存太小了

@messense
Copy link
Owner

messense commented Sep 9, 2021

正式 release 还是等等 moka,你可以试试这个用 upx 压缩过的版本,会小很多:https://github.com/messense/aliyundrive-webdav/suites/3713970339/artifacts/90772780

@ioito
Copy link
Author

ioito commented Sep 9, 2021

好的,我再等等,先收悉下openwrt编译,我close这个issue了

@ioito ioito closed this as completed Sep 9, 2021
@messense messense added the upstream Upstream issue label Sep 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
blocked Something is blocking this upstream Upstream issue
Projects
None yet
Development

No branches or pull requests

3 participants