Comments (9)
I'm closing this issue, as I have successfully updated to 1.3.1. I don't know what the cause of this issue was.
from cargo-update.
Does it work if you do just cargo install -f cargo-update
?
from cargo-update.
@nabijaczleweli
No, the same linker error appears.
I cloned this repo, and cargo build
also reports the same linker error, but slightly more verbose.
error: linking with `cc` failed: exit code: 1
|
= note: "cc" "-Wl,--as-needed" "-Wl,-z,noexecstack" "-m64" "-L" "/home/mateon/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib" "/shared/dev/rust/cargo-update/target/debug/deps/cargo_install_update-57a6e570765a6e19.0.o" "/shared/dev/rust/cargo-update/target/debug/deps/cargo_install_update-57a6e570765a6e19.1.o" "/shared/dev/rust/cargo-update/target/debug/deps/cargo_install_update-57a6e570765a6e19.10.o" "/shared/dev/rust/cargo-update/target/debug/deps/cargo_install_update-57a6e570765a6e19.11.o" "/shared/dev/rust/cargo-update/target/debug/deps/cargo_install_update-57a6e570765a6e19.12.o" "/shared/dev/rust/cargo-update/target/debug/deps/cargo_install_update-57a6e570765a6e19.13.o" "/shared/dev/rust/cargo-update/target/debug/deps/cargo_install_update-57a6e570765a6e19.14.o" "/shared/dev/rust/cargo-update/target/debug/deps/cargo_install_update-57a6e570765a6e19.15.o" "/shared/dev/rust/cargo-update/target/debug/deps/cargo_install_update-57a6e570765a6e19.16.o" "/shared/dev/rust/cargo-update/target/debug/deps/cargo_install_update-57a6e570765a6e19.17.o" "/shared/dev/rust/cargo-update/target/debug/deps/cargo_install_update-57a6e570765a6e19.18.o" "/shared/dev/rust/cargo-update/target/debug/deps/cargo_install_update-57a6e570765a6e19.19.o" "/shared/dev/rust/cargo-update/target/debug/deps/cargo_install_update-57a6e570765a6e19.2.o" "/shared/dev/rust/cargo-update/target/debug/deps/cargo_install_update-57a6e570765a6e19.20.o" "/shared/dev/rust/cargo-update/target/debug/deps/cargo_install_update-57a6e570765a6e19.21.o" "/shared/dev/rust/cargo-update/target/debug/deps/cargo_install_update-57a6e570765a6e19.22.o" "/shared/dev/rust/cargo-update/target/debug/deps/cargo_install_update-57a6e570765a6e19.23.o" "/shared/dev/rust/cargo-update/target/debug/deps/cargo_install_update-57a6e570765a6e19.24.o" "/shared/dev/rust/cargo-update/target/debug/deps/cargo_install_update-57a6e570765a6e19.25.o" "/shared/dev/rust/cargo-update/target/debug/deps/cargo_install_update-57a6e570765a6e19.26.o" "/shared/dev/rust/cargo-update/target/debug/deps/cargo_install_update-57a6e570765a6e19.27.o" "/shared/dev/rust/cargo-update/target/debug/deps/cargo_install_update-57a6e570765a6e19.28.o" "/shared/dev/rust/cargo-update/target/debug/deps/cargo_install_update-57a6e570765a6e19.29.o" "/shared/dev/rust/cargo-update/target/debug/deps/cargo_install_update-57a6e570765a6e19.3.o" "/shared/dev/rust/cargo-update/target/debug/deps/cargo_install_update-57a6e570765a6e19.30.o" "/shared/dev/rust/cargo-update/target/debug/deps/cargo_install_update-57a6e570765a6e19.31.o" "/shared/dev/rust/cargo-update/target/debug/deps/cargo_install_update-57a6e570765a6e19.4.o" "/shared/dev/rust/cargo-update/target/debug/deps/cargo_install_update-57a6e570765a6e19.5.o" "/shared/dev/rust/cargo-update/target/debug/deps/cargo_install_update-57a6e570765a6e19.6.o" "/shared/dev/rust/cargo-update/target/debug/deps/cargo_install_update-57a6e570765a6e19.7.o" "/shared/dev/rust/cargo-update/target/debug/deps/cargo_install_update-57a6e570765a6e19.8.o" "/shared/dev/rust/cargo-update/target/debug/deps/cargo_install_update-57a6e570765a6e19.9.o" "-o" "/shared/dev/rust/cargo-update/target/debug/deps/cargo_install_update-57a6e570765a6e19" "/shared/dev/rust/cargo-update/target/debug/deps/cargo_install_update-57a6e570765a6e19.crate.allocator.o" "-Wl,--gc-sections" "-pie" "-Wl,-z,relro,-z,now" "-nodefaultlibs" "-L" "/shared/dev/rust/cargo-update/target/debug/deps" "-L" "/shared/dev/rust/cargo-update/target/debug/build/libgit2-sys-6de3d123e45316aa/out/lib" "-L" "/shared/dev/rust/cargo-update/target/debug/build/curl-sys-84aa1e71a1536699/out/lib" "-L" "/usr/lib/x86_64-linux-gnu" "-L" "/shared/dev/rust/cargo-update/target/debug/build/libssh2-sys-412f4f6569050b4d/out/lib" "-L" "/home/mateon/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-Wl,-Bstatic" "/shared/dev/rust/cargo-update/target/debug/deps/libcargo_update-4746cde4b42e820d.rlib" "/shared/dev/rust/cargo-update/target/debug/deps/libsemver-e53f43027bdf5de5.rlib" "/shared/dev/rust/cargo-update/target/debug/deps/libtoml-5c1efc3f93dcca95.rlib" "/shared/dev/rust/cargo-update/target/debug/deps/libtabwriter-85f3a439c09cca47.rlib" "/shared/dev/rust/cargo-update/target/debug/deps/libarray_tool-609cac6e811cb760.rlib" "/shared/dev/rust/cargo-update/target/debug/deps/libregex-1656d855b9dd05c7.rlib" "/shared/dev/rust/cargo-update/target/debug/deps/libregex_syntax-a7a33b86ff46bef4.rlib" "/shared/dev/rust/cargo-update/target/debug/deps/libthread_local-18fe0019537d53b9.rlib" "/shared/dev/rust/cargo-update/target/debug/deps/libaho_corasick-fb3a4479521b21b4.rlib" "/shared/dev/rust/cargo-update/target/debug/deps/libgit2-21f8b08057f9c6e5.rlib" "/shared/dev/rust/cargo-update/target/debug/deps/libopenssl_probe-d9f34778aed4005e.rlib" "/shared/dev/rust/cargo-update/target/debug/deps/liblibgit2_sys-43d2af59bd111131.rlib" "/shared/dev/rust/cargo-update/target/debug/deps/liburl-2987059321d511ce.rlib" "/shared/dev/rust/cargo-update/target/debug/deps/libidna-dcfc9f6dfe0d001f.rlib" "/shared/dev/rust/cargo-update/target/debug/deps/libunicode_bidi-b313e9dba924b858.rlib" "/shared/dev/rust/cargo-update/target/debug/deps/libpercent_encoding-eb2f12c06d057f4f.rlib" "/shared/dev/rust/cargo-update/target/debug/deps/libjson-9b343d686f7f2770.rlib" "/shared/dev/rust/cargo-update/target/debug/deps/liblazy_static-04b07083fafb6ec0.rlib" "/shared/dev/rust/cargo-update/target/debug/deps/libsemver_parser-b3fbb8a6c60b3f6a.rlib" "/shared/dev/rust/cargo-update/target/debug/deps/libmemchr-e5aa213f1e5491ea.rlib" "/shared/dev/rust/cargo-update/target/debug/deps/libunreachable-39c7b7dc17e155d2.rlib" "/shared/dev/rust/cargo-update/target/debug/deps/libvoid-ff4651cec9d33a56.rlib" "/shared/dev/rust/cargo-update/target/debug/deps/libutf8_ranges-1d0bc8652cb6f0c1.rlib" "/shared/dev/rust/cargo-update/target/debug/deps/libmatches-dbda3a44eb8ab06c.rlib" "/shared/dev/rust/cargo-update/target/debug/deps/libunicode_normalization-e48b94f8f7f21be0.rlib" "/shared/dev/rust/cargo-update/target/debug/deps/liblibssh2_sys-684f4326f010136e.rlib" "/shared/dev/rust/cargo-update/target/debug/deps/libcurl_sys-d8ac113e4f8eeae5.rlib" "/shared/dev/rust/cargo-update/target/debug/deps/libopenssl_sys-831fdc82fcd4f6e7.rlib" "/shared/dev/rust/cargo-update/target/debug/deps/liblibz_sys-6f951fdc6676f574.rlib" "/shared/dev/rust/cargo-update/target/debug/deps/libclap-fb2fde4630d3db42.rlib" "/shared/dev/rust/cargo-update/target/debug/deps/libatty-309a2d349398de9f.rlib" "/shared/dev/rust/cargo-update/target/debug/deps/libvec_map-91da5dee0b1a6b59.rlib" "/shared/dev/rust/cargo-update/target/debug/deps/libbitflags-07a643aa17ad0e58.rlib" "/shared/dev/rust/cargo-update/target/debug/deps/libansi_term-4ac8aafed5ebd279.rlib" "/shared/dev/rust/cargo-update/target/debug/deps/libstrsim-6052164a99b02013.rlib" "/shared/dev/rust/cargo-update/target/debug/deps/libtextwrap-a2296c3af0fedeba.rlib" "/shared/dev/rust/cargo-update/target/debug/deps/libterm_size-6b1a312023f7cd96.rlib" "/shared/dev/rust/cargo-update/target/debug/deps/liblibc-c2dce38df5f110a4.rlib" "/shared/dev/rust/cargo-update/target/debug/deps/libunicode_width-5293b3149293834b.rlib" "/shared/dev/rust/cargo-update/target/debug/deps/libserde-2074a929e7de8390.rlib" "/shared/dev/rust/cargo-update/target/debug/deps/liblazysort-c2a7cf39672b73cc.rlib" "/home/mateon/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-4417e9730e1582e6.rlib" "/home/mateon/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libpanic_unwind-e8dfba60977a6436.rlib" "/home/mateon/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/liballoc_jemalloc-221fb859d65ee0c2.rlib" "/home/mateon/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libunwind-e2e14a8cd94d84f0.rlib" "/home/mateon/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/liballoc_system-168184ab67c3c4bf.rlib" "/home/mateon/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/liblibc-9a79f9937b41db10.rlib" "/home/mateon/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/liballoc-ddada564b34025bf.rlib" "/home/mateon/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd_unicode-19e07afc4bd461f5.rlib" "/home/mateon/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/librand-49240518d06d7735.rlib" "/home/mateon/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcore-dd5bba80e2402629.rlib" "/home/mateon/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcompiler_builtins-e043d51b15904669.rlib" "-Wl,-Bdynamic" "-l" "ssl" "-l" "crypto" "-l" "z" "-l" "util" "-l" "dl" "-l" "rt" "-l" "pthread" "-l" "pthread" "-l" "gcc_s" "-l" "c" "-l" "m" "-l" "rt" "-l" "pthread" "-l" "util"
= note: /shared/dev/rust/cargo-update/target/debug/deps/libcurl_sys-d8ac113e4f8eeae5.rlib(libcurl_la-url.o): In function `fix_hostname':
/home/mateon/.cargo/registry/src/github.com-1ecc6299db9ec823/curl-sys-0.3.15/curl/lib/url.c:4044: undefined reference to `idn2_check_version'
/home/mateon/.cargo/registry/src/github.com-1ecc6299db9ec823/curl-sys-0.3.15/curl/lib/url.c:4054: undefined reference to `idn2_lookup_ul'
/home/mateon/.cargo/registry/src/github.com-1ecc6299db9ec823/curl-sys-0.3.15/curl/lib/url.c:4061: undefined reference to `idn2_strerror'
/shared/dev/rust/cargo-update/target/debug/deps/libcurl_sys-d8ac113e4f8eeae5.rlib(libcurl_la-url.o): In function `free_fixed_hostname':
/home/mateon/.cargo/registry/src/github.com-1ecc6299db9ec823/curl-sys-0.3.15/curl/lib/url.c:4087: undefined reference to `idn2_free'
/shared/dev/rust/cargo-update/target/debug/deps/libcurl_sys-d8ac113e4f8eeae5.rlib(libcurl_la-version.o): In function `curl_version':
/home/mateon/.cargo/registry/src/github.com-1ecc6299db9ec823/curl-sys-0.3.15/curl/lib/version.c:115: undefined reference to `idn2_check_version'
/home/mateon/.cargo/registry/src/github.com-1ecc6299db9ec823/curl-sys-0.3.15/curl/lib/version.c:116: undefined reference to `idn2_check_version'
/shared/dev/rust/cargo-update/target/debug/deps/libcurl_sys-d8ac113e4f8eeae5.rlib(libcurl_la-version.o): In function `curl_version_info':
/home/mateon/.cargo/registry/src/github.com-1ecc6299db9ec823/curl-sys-0.3.15/curl/lib/version.c:374: undefined reference to `idn2_check_version'
collect2: error: ld returned 1 exit status
from cargo-update.
That sounds like an issue for the curl-sys
maintainers, do please post the link thereto here when you open one.
Unfortunately, the errors I've had with curl-sys
before aren't the same as this, so I can't help you myself.
from cargo-update.
@nabijaczleweli Unfortunately, this build failure is not reproducible with git clone https://github.com/alexcrichton/curl-rust; cd curl-rust; cargo build
I verified that cargo-update still fails to build, so it's not the case that curl-sys updated in the meantime.
Looking at cargo tree
, curl-sys
is used by libgit2-sys
, then git2
.
I'll check whether one of these crates is the cause.
Edit: Unfortunately, git2-rs
builds fine, so the issue must be in this crate.
from cargo-update.
Make sure you have libidn2 installed (on Ubuntu it's called libidn2-0
).
from cargo-update.
@mati865
I have libidn2-0
, libidn2-0-dev
and libidn2-dev
installed, so that's not the issue.
from cargo-update.
If you clone and build git2-rs in release mode there is no error?
Compare versions of crate dependences and post your OS version.
from cargo-update.
Yes, there is no error when building git2-rs in release mode.
I'm using Debian sid inside a chroot environment (created with debootstrap
). My uname is Linux hydra 4.9.13 #1-NixOS SMP Sun Feb 26 10:11:18 UTC 2017 x86_64 GNU/Linux
.
The crate dependency versions seem identical:
/shared/dev/rust/git2-rs$ cargo tree
git2 v0.6.8 (file:///shared/dev/rust/git2-rs)
├── bitflags v0.9.1
├── libc v0.2.32
├── libgit2-sys v0.6.16 (file:///shared/dev/rust/git2-rs/libgit2-sys)
│ ├── curl-sys v0.3.15
│ │ ├── libc v0.2.32 (*)
│ │ ├── libz-sys v1.0.17
│ │ │ └── libc v0.2.32 (*)
│ │ └── openssl-sys v0.9.19
│ │ └── libc v0.2.32 (*)
│ ├── libc v0.2.32 (*)
│ ├── libssh2-sys v0.2.6
│ │ ├── libc v0.2.32 (*)
│ │ ├── libz-sys v1.0.17 (*)
│ │ └── openssl-sys v0.9.19 (*)
│ ├── libz-sys v1.0.17 (*)
│ └── openssl-sys v0.9.19 (*)
├── openssl-probe v0.1.1
├── openssl-sys v0.9.19 (*)
└── url v1.5.1
├── idna v0.1.4
│ ├── matches v0.1.6
│ ├── unicode-bidi v0.3.4
│ │ └── matches v0.1.6 (*)
│ └── unicode-normalization v0.1.5
├── matches v0.1.6 (*)
└── percent-encoding v1.0.0
/shared/dev/rust/cargo-update$ cargo tree -p git2
git2 v0.6.8
├── bitflags v0.9.1
├── libc v0.2.32
├── libgit2-sys v0.6.16
│ ├── curl-sys v0.3.15
│ │ ├── libc v0.2.32 (*)
│ │ ├── libz-sys v1.0.17
│ │ │ └── libc v0.2.32 (*)
│ │ └── openssl-sys v0.9.19
│ │ └── libc v0.2.32 (*)
│ ├── libc v0.2.32 (*)
│ ├── libssh2-sys v0.2.6
│ │ ├── libc v0.2.32 (*)
│ │ ├── libz-sys v1.0.17 (*)
│ │ └── openssl-sys v0.9.19 (*)
│ ├── libz-sys v1.0.17 (*)
│ └── openssl-sys v0.9.19 (*)
├── openssl-probe v0.1.1
├── openssl-sys v0.9.19 (*)
└── url v1.5.1
├── idna v0.1.4
│ ├── matches v0.1.6
│ ├── unicode-bidi v0.3.4
│ │ └── matches v0.1.6 (*)
│ └── unicode-normalization v0.1.5
├── matches v0.1.6 (*)
└── percent-encoding v1.0.0
Full dependency tree for cargo-update
cargo-update v1.3.0 (file:///shared/dev/rust/cargo-update)
├── array_tool v0.4.1
├── clap v2.26.2
│ ├── ansi_term v0.9.0
│ ├── atty v0.2.3
│ │ └── libc v0.2.32
│ ├── bitflags v0.9.1
│ ├── strsim v0.6.0
│ ├── term_size v0.3.0
│ │ └── libc v0.2.32 (*)
│ ├── textwrap v0.8.0
│ │ ├── term_size v0.3.0 (*)
│ │ └── unicode-width v0.1.4
│ ├── unicode-width v0.1.4 (*)
│ └── vec_map v0.8.0
├── git2 v0.6.8
│ ├── bitflags v0.9.1 (*)
│ ├── libc v0.2.32 (*)
│ ├── libgit2-sys v0.6.16
│ │ ├── curl-sys v0.3.15
│ │ │ ├── libc v0.2.32 (*)
│ │ │ ├── libz-sys v1.0.17
│ │ │ │ └── libc v0.2.32 (*)
│ │ │ └── openssl-sys v0.9.19
│ │ │ └── libc v0.2.32 (*)
│ │ ├── libc v0.2.32 (*)
│ │ ├── libssh2-sys v0.2.6
│ │ │ ├── libc v0.2.32 (*)
│ │ │ ├── libz-sys v1.0.17 (*)
│ │ │ └── openssl-sys v0.9.19 (*)
│ │ ├── libz-sys v1.0.17 (*)
│ │ └── openssl-sys v0.9.19 (*)
│ ├── openssl-probe v0.1.1
│ ├── openssl-sys v0.9.19 (*)
│ └── url v1.5.1
│ ├── idna v0.1.4
│ │ ├── matches v0.1.6
│ │ ├── unicode-bidi v0.3.4
│ │ │ └── matches v0.1.6 (*)
│ │ └── unicode-normalization v0.1.5
│ ├── matches v0.1.6 (*)
│ └── percent-encoding v1.0.0
├── json v0.11.10
├── lazy_static v0.2.9
├── lazysort v0.1.1
│ └── rand v0.3.17
│ └── libc v0.2.32 (*)
├── regex v0.2.2
│ ├── aho-corasick v0.6.3
│ │ └── memchr v1.0.1
│ │ └── libc v0.2.32 (*)
│ ├── memchr v1.0.1 (*)
│ ├── regex-syntax v0.4.1
│ ├── thread_local v0.3.4
│ │ ├── lazy_static v0.2.9 (*)
│ │ └── unreachable v1.0.0
│ │ └── void v1.0.2
│ └── utf8-ranges v1.0.0
├── semver v0.8.0
│ └── semver-parser v0.7.0
├── serde v1.0.15
├── serde_derive v1.0.15
│ ├── quote v0.3.15
│ ├── serde_derive_internals v0.16.0
│ │ ├── syn v0.11.11
│ │ │ ├── quote v0.3.15 (*)
│ │ │ ├── synom v0.11.3
│ │ │ │ └── unicode-xid v0.0.4
│ │ │ └── unicode-xid v0.0.4 (*)
│ │ └── synom v0.11.3 (*)
│ └── syn v0.11.11 (*)
├── tabwriter v1.0.3
│ └── unicode-width v0.1.4 (*)
└── toml v0.4.5
└── serde v1.0.15 (*)
from cargo-update.
Related Issues (20)
- Failure when using source replacement HOT 3
- error: registry index was not found in any configuration: `rsproxy-sparse` HOT 5
- Keep the features HOT 3
- Fails behind corporate proxy (but plain cargo install works) HOT 10
- respect previously defined feature flags when updating HOT 6
- Installing from source causes `cargo install` PATH warning on Windows due to path canonicalization HOT 7
- Internal matching of custom registry and source for sparse indices fails HOT 1
- Auto configuration error HOT 6
- Build fails on macOS 14.4.1 HOT 1
- build fails on arch linux 6.8.7-arch1-1 HOT 1
- `install.root` is not properly followed HOT 2
- Is there a way to list only packages in need of update? HOT 1
- Add --rate-limit flag HOT 2
- Unable to list/update packages after installing package using cargo binstall --git HOT 5
- When called from topgrade `cargo-install-update` under WSL fails to find some file or directory. HOT 5
- Prompt user before performing updates HOT 1
- FR: An option to disable some of `cargo binstall`'s strategies HOT 1
- Update to newer prerelease HOT 2
- cargo install-update doesn't install updates. HOT 8
- unnecessary configurations written to ~/.cargo/.install_config.toml HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cargo-update.