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

Found two different crates with name… #19

Open
jirutka opened this issue Jul 31, 2016 · 1 comment
Open

Found two different crates with name… #19

jirutka opened this issue Jul 31, 2016 · 1 comment

Comments

@jirutka
Copy link

jirutka commented Jul 31, 2016

...
cargo:crates-io: Building crates-io-0.2.0 (needed by: cargo-0.11.0)
cargo:crates-io:  PROFILE="release" TARGET="x86_64-unknown-linux-musl" CARGO_MANIFEST_DIR="/tmp/cargo/crates-io-0.2.0" OUT_DIR="/tmp/cargo" CARGO_PKG_VERSION_MAJOR="0" CARGO_PKG_VERSION="0.2.0" CARGO_PKG_VERSION_PATCH="0" HOST="x86_64-unknown-linux-musl" PATH="/home/jirutjak/rustc/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" DEBUG="0" OPT_LEVEL="0" CARGO_PKG_VERSION_MINOR="2" NUM_JOBS="1" CARGO_PKG_VERSION_PRE="" rustc /tmp/cargo/crates-io-0.2.0/lib.rs --crate-name crates_io --crate-type lib -C extra-filename=-0_2_0 --out-dir /tmp/cargo --emit=dep-info,link --target x86_64-unknown-linux-musl -L /tmp/cargo -L /tmp/cargo/lib -l dylib=ssl -l dylib=crypto -L /tmp/cargo/lib -l static=curl --extern curl=/tmp/cargo/libcurl-0_2_19.rlib --extern rustc_serialize=/tmp/cargo/librustc_serialize-0_3_19.rlib --extern url=/tmp/cargo/liburl-0_2_38.rlib
cargo:crates-io: /tmp/cargo/crates-io-0.2.0/lib.rs:2:1: 2:18 error: found two different crates with name `url` that are not distinguished by differing `-C metadata`. This will result in symbol conflicts between the two. [E0523]
cargo:crates-io: /tmp/cargo/crates-io-0.2.0/lib.rs:2 extern crate url;
cargo:crates-io:                                     ^~~~~~~~~~~~~~~~~

Exception:
 from ./bootstrap.py, line 1002:
 build command failed: 101
ls /tmp/cargo/ | grep '^url-*'
url-0.2.38
url-0_2_38.d
url-1.0.0
url-1.1.1
url-1_1_1.d
@binarycrusader
Copy link

binarycrusader commented Feb 18, 2017

The problem appears to be that git2-curl and git2 require url 1.0, while cargo wants 1.1. Also, the embedded src/crates-io/Cargo.toml in cargo itself also wants url 1.0.

Actually, this appears to be a bug in the bootstrap parsing of the semantic versions. A dependency specifying version "1.0" allows 1.1, 1.2, etc. since the leftmost digit is not changing.

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