Skip to content

can't find crate for core #564

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

Closed
dosgo opened this issue Jun 27, 2021 · 12 comments
Closed

can't find crate for core #564

dosgo opened this issue Jun 27, 2021 · 12 comments

Comments

@dosgo
Copy link

dosgo commented Jun 27, 2021

image

Windows is not supported?

@burrbull
Copy link

Show

rustup show

@dosgo
Copy link
Author

dosgo commented Jun 28, 2021

image
Rustup show does not have this target. I don't understand! Isn't this based on docker? I have docker。

@burrbull
Copy link

burrbull commented Jun 28, 2021

Try:

rustup target add mipsel-unknown-linux-gnu

and then rerun.

@dosgo
Copy link
Author

dosgo commented Jun 28, 2021

rustup target add mipsel-unknown-linux-gnu success

cross build --target mipsel-unknown-linux-gnu
Compiling hyper v0.14.4
error: linker cc not found
|
= note: 系统找不到指定的文件。 (os error 2)

error: aborting due to previous error

error: could not compile hyper

To learn more, run the command again with --verbose.

@dosgo
Copy link
Author

dosgo commented Jun 29, 2021

The http library fails to compile with hyper v0.14.4. If you use minreq to open https, openssl-sys (v0.9.65) fails to compile, and uses rustls ring v0.16.20 to compile fails.

@Alexhuszagh
Copy link
Contributor

You should be able to use the vendored openssl or use the package manager to fix the issue with openssl-sys, as documented in Recipes. Cross should automatically add new targets to rustup however.

@Alexhuszagh
Copy link
Contributor

I'm unable to replicate this on the latest cross (v0.2.2), and both openssl-sys with the vendored and hyper v0.14.14 compile without issue. If you don't use the vendored option, you will have to install OpenSSL from Ubuntu or Debian repositories.

@rapiz1
Copy link

rapiz1 commented Oct 1, 2023

Cross should automatically add new targets to rustup however.

I'm running into the same issue for cfg-if. Why rustup target add is needed?

@rapiz1
Copy link

rapiz1 commented Oct 1, 2023

It looks like mipsel-unknown-linux-gnu has been downgraded to tier 3 in rust 1.72 so it can't be installed

@Emilgardis
Copy link
Member

Where did you find that information @rapiz1? Wondering if that's the cause for #1336 also, but https://doc.rust-lang.org/stable/rustc/platform-support.html still shows it as t2

@Emilgardis
Copy link
Member

Ah, you're right, platform doc is outdated rust-lang/rust#115218

@rapiz1
Copy link

rapiz1 commented Oct 1, 2023

LoL someone in a rust telegram group told me. Looks like he's lurking in the community long enough to know that doc is outdated

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants