Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 684072

Summary: dev-util/cbindgen-0.8.2 fails to compile: cargo: command not found (dev-lang/rust-1.34.0-r2)
Product: Gentoo Linux Reporter: Sebastian Pipping <sping>
Component: Current packagesAssignee: Gentoo Rust Project <rust>
Status: RESOLVED DUPLICATE    
Severity: normal CC: mozilla
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: build log

Description Sebastian Pipping gentoo-dev 2019-04-21 22:41:41 UTC
Created attachment 573758 [details]
build log

This is with:
- virtual/rust-1.34.0
- dev-lang/rust-1.34.0-r2

I do have /usr/bin/cargo-1.34.0 but no /usr/bin/cargo.
Comment 1 Sebastian Pipping gentoo-dev 2019-04-21 22:43:16 UTC
PS: Meant to say virtual/cargo-1.34.0 (but virtual/rust-1.34.0).
Comment 2 Arfrever Frehtes Taifersar Arahesis 2019-04-22 00:28:45 UTC
You probably recently made larger upgrade of dev-lang/rust (from <1.30.1 to >=1.30.1) and forgot to run 'eselect rust set ...'.

*** This bug has been marked as a duplicate of bug 671182 ***
Comment 3 Sebastian Pipping gentoo-dev 2019-04-22 13:19:59 UTC
Looks like you're right, `sudo eselect rust set rust-1.34.0` fixed my problem. Thanks!
Comment 4 Thomas Deutschmann (RETIRED) gentoo-dev 2019-04-22 16:02:24 UTC
Can you please share more details? I thought we have addressed that problem with eselect-rust upgrade and forced upgraded to that version.

1) What packages of rust were installed?

2) Which version of eselect-rust was installed?

3) Your upgrade path?

I really hope you ignored the forced upgrade from 2019-03-11...
Comment 5 Sebastian Pipping gentoo-dev 2019-04-22 16:36:41 UTC
Hi Thomas, does this help?:

# qlop --list --unlist | grep 'rust\|cargo\|cbind' | fgrep 2019
Sat Apr 20 14:51:37 2019 <<< app-eselect/eselect-rust-0.3_pre20150428
Sat Apr 20 14:51:42 2019 >>> app-eselect/eselect-rust-20190311
Sun Apr 21 17:05:49 2019 <<< dev-lang/rust-1.28.0-r1
Sun Apr 21 17:05:58 2019 >>> dev-lang/rust-1.34.0-r2
Sun Apr 21 17:06:21 2019 <<< dev-util/cargo-0.30.0
Sun Apr 21 17:07:03 2019 <<< virtual/cargo-1.29.2
Sun Apr 21 17:07:09 2019 >>> virtual/cargo-1.34.0
Sun Apr 21 20:58:56 2019 <<< virtual/rust-1.28.0
Sun Apr 21 20:59:00 2019 >>> virtual/rust-1.34.0
Mon Apr 22 15:29:39 2019 <<< dev-util/cbindgen-0.6.7
Mon Apr 22 15:29:43 2019 >>> dev-util/cbindgen-0.8.2
Comment 6 Thomas Deutschmann (RETIRED) gentoo-dev 2019-04-22 19:00:35 UTC
OK, problem was that you were still on =dev-util/cargo-0.30.0 which was removed from repository 2019-03-11... so you were missing https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b0a7fbefcd8e03543df2f3b7a2c893596ca79b27