AerialX / cargo-build

Experiments with Rust and Emscripten
59 stars 4 forks source link

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

Open julienw opened 8 years ago

julienw commented 8 years ago

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 https://github.com/gchp/termbox-sys/issues/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 commented 8 years ago

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 commented 8 years ago

thanks for the pointer !