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

New arm target missing from cargo manifests #2341

Closed
MagaTailor opened this issue Jan 31, 2016 · 3 comments
Closed

New arm target missing from cargo manifests #2341

MagaTailor opened this issue Jan 31, 2016 · 3 comments

Comments

@MagaTailor
Copy link

The new armv7 target hasn't been introduced in the crates ecosystem yet, predictably resulting in errors like this:

/home/odroid/.cargo/registry/src/suiyiyu.us.kg-48ad6e4054423464/libssh2-sys-0.1.34/lib.rs:10:1: 10:26 error: can't find crate for `openssl_sys` [E0463]
/home/odroid/.cargo/registry/src/suiyiyu.us.kg-48ad6e4054423464/libssh2-sys-0.1.34/lib.rs:10 extern crate openssl_sys;
                                                                                          ^~~~~~~~~~~~~~~~~~~~~~~~~

BTW, @alexcrichton well spotted fixing the .mk file - I was going to open a PR myself.

I was also wondering if on the last line:
CFG_GNU_TRIPLE_armv7-unknown-linux-gnueabihf := armv7-unknown-linux-gnueabihf

it was really necessary to differentiate from arm-?

@alexcrichton
Copy link
Member

I don't think this is a particularly actionable bug in Cargo itself, it'll just take time for the target to be found on the stable/beta compilers. If you use a nightly compiler to build the target then everything should work just fine. Cargo itself has no knowledge of targets or target triples, so it's just the underlying compiler that needs to be updated here (or perhaps a stale build directory?)

@MagaTailor
Copy link
Author

I was using a bootstrapped compiler - otherwise I wouldn't even have the necessary rlibs to try this.

I'm well aware cargo itself doesn't know about targets, etc; when I jokingly wrote about "telling cargo" I meant stuff like this:

https://github.com/alexcrichton/ssh2-rs/blob/master/libssh2-sys/Cargo.toml#L37

or these:
https://github.com/alexcrichton/git2-rs/blob/master/libgit2-sys/Cargo.toml#L37
https://github.com/tomaka/glutin/blob/master/Cargo.toml#L96

So I meant you probably had the tools to automatically fix the affected crates.

EDIT:
Corrected the first link to point to the pertinent file. (to this issue)

@alexcrichton
Copy link
Member

Oh yeah for those you can just send PRs to update them (or wait for the cfg-in-dependencies to get implemented)

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

No branches or pull requests

2 participants