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

Bug 671794

Summary: dev-lang/rust-1.30.1-r1 is buggy so that building dev-util/cbindgen-0.6.7 fails
Product: Gentoo Linux Reporter: aion1223
Component: Current packagesAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description aion1223 2018-11-24 05:32:52 UTC
The build fails, and what seems suspicious is here:

 >>> Configuring source in /var/tmp/portage/dev-util/cbindgen-0.6.7/work/cbindgen-0.6.7 ...
>>> Source configured.
>>> Compiling source in /var/tmp/portage/dev-util/cbindgen-0.6.7/work/cbindgen-0.6.7 ...
/var/tmp/portage/dev-util/cbindgen-0.6.7/temp/environment: line 422: cargo: command not found
 

I guess the "cargo" might be supposed to be included in "dev-lang/rust." Here's mine:
[I] dev-lang/rust
     Available versions:  (stable) 1.29.1-r1(stable/1.29) (~)1.29.2-r1(stable/1.29) (~)1.30.1-r1(stable/1.30)
       {cargo clippy debug doc +jemalloc libressl rls rustfmt system-llvm wasm ABI_MIPS="n32 n64 o32" ABI_PPC="32 64" ABI_S390="32 64" ABI_X86="32 64 x32" CPU_FLAGS_X86="sse2" LLVM_TARGETS="AArch64 AMDGPU ARM BPF Hexagon Lanai MSP430 Mips NVPTX PowerPC Sparc SystemZ X86 XCore"}
     Installed versions:  1.30.1-r1(stable/1.30)(01:44:47 AM 11/24/2018)(jemalloc -clippy -debug -doc -libressl -rls -rustfmt -system-llvm -wasm ABI_MIPS="-n32 -n64 -o32" ABI_PPC="-32 -64" ABI_S390="-32 -64" ABI_X86="64 -32 -x32" CPU_FLAGS_X86="sse2" LLVM_TARGETS="AArch64 AMDGPU ARM BPF Hexagon MSP430 Mips NVPTX PowerPC Sparc SystemZ X86 XCore -Lanai")
     Homepage:            https://www.rust-lang.org/
     Description:         Systems programming language from Mozilla


However, I guess the package might forget to make a symbolic link of /usr/bin/cargo to /usr/bin/cargo-1.30.1.

localhost /usr/src/linux # equery files dev-lang/rust | egrep "/bin/cargo"
/usr/bin/cargo-1.30.1

After making the symbolic link, emerge -v cbindgen proceeded successfully.
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2018-11-24 11:37:55 UTC

*** This bug has been marked as a duplicate of bug 671182 ***