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

library target names cannot contain hyphens: libgit2-sys #2

Open
julienw opened this issue Jul 29, 2015 · 2 comments
Open

library target names cannot contain hyphens: libgit2-sys #2

julienw opened this issue Jul 29, 2015 · 2 comments

Comments

@julienw
Copy link

julienw commented Jul 29, 2015

When trying to build using cargo build I get this error:

julien@beitou:~/travail/git/cargo-build$ cargo build
 Downloading pkg-config v0.3.0
 Downloading gcc v0.3.1
 Downloading threadpool v0.1.0
 Downloading libgit2-sys v0.2.1
Unable to get packages from source

Caused by:
  failed to parse manifest at `/home/julien/.cargo/registry/src/github.com-1ecc6299db9ec823/libgit2-sys-0.2.1/Cargo.toml`

Caused by:
  library target names cannot contain hyphens: libgit2-sys

According to gchp/termbox-sys#5 this issue happens with recent cargo.

I use this version of Cargo:
cargo 0.2.0-nightly (a483581 2015-05-14) (built 2015-05-15)

This comes with rust stable 1.1.

I don't know if you'd like to fix this ?

If I try to run cargo update, then cargo build, I then get this error:

native library `git2` is being linked to by more than one package, and can only be linked to by one package

  libgit2-sys v0.3.1
  libgit2-sys v0.2.20

As I am fairly newbie about Rust I'm quite stuck now :)

@AerialX
Copy link
Owner

AerialX commented Jul 31, 2015

The versions in Cargo.toml just need some updating, I'll see about fixing it up. Thing is, I don't think any of this works anymore - last I tried, this approach wasn't compatible with recent versions of rust. I'll be looking into it soon, but if you want rust+emscripten you might have better luck making use of this fork instead.

@julienw
Copy link
Author

julienw commented Jul 31, 2015

thanks for the pointer !

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