Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 699224 - mail-client/thunderbird-68.2.1 - src_configure(): rustup which rustc: error: multiple input filenames provided (first two filenames are `which` and `rustc`)
Summary: mail-client/thunderbird-68.2.1 - src_configure(): rustup which rustc: error: ...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Mozilla Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-11-03 13:06 UTC by Lik
Modified: 2019-11-03 17:49 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
thunderbird-68.2.1/temp/build.log (build.log,29.92 KB, text/plain)
2019-11-03 14:58 UTC, Lik
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Lik 2019-11-03 13:06:50 UTC
Unable to compile thunderbird due to absent 'rustup'. There is no ebuild available to install rustup in main portage tree and looks like will never be. Is there any workaround or patch available to overcome rustup requirement?

Reproducible: Always

Steps to Reproduce:
1. emerge =mail-client/thunderbird-68.2.1




$ equery l dev-lang/rust
 * Searching for rust in dev-lang ...
[IP-] [  ] dev-lang/rust-1.38.0:stable/1.38

$ rustup
bash: rustup: command not found

```
0:12.27 checking for rustc... /usr/bin/rustc
0:12.27 checking for cargo... /usr/bin/cargo
0:12.41 DEBUG: Executing: `rustup which rustc`
0:12.41 DEBUG: The command returned non-zero exit status 1.
0:12.41 DEBUG: Its error output was:
0:12.41 DEBUG: | error: multiple input filenames provided (first two filenames are `which` and `rustc`)
0:12.41 DEBUG: |
0:12.41 ERROR: Command `rustup which rustc` failed with exit status 1.
0:12.47 *** Fix above errors and then restart with\
0:12.47                "./mach build"
0:12.47 gmake: *** [client.mk:115: configure] Error 1
* ERROR: mail-client/thunderbird-68.2.1::gentoo failed (configure phase):
*   (no error message)
*
* Call stack:
*     ebuild.sh, line 125:  Called src_configure
*   environment, line 5399:  Called die
* The specific snippet of code:
*       SHELL="${SHELL:-${EPREFIX}/bin/bash}" MOZ_NOSPAM=1 ./mach configure || die
```
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2019-11-03 14:51:09 UTC
Please attach the entire build log to this bug report.
Comment 2 Lik 2019-11-03 14:58:01 UTC
Created attachment 594954 [details]
thunderbird-68.2.1/temp/build.log

Build log for =thunderbird-68.2.1
Comment 3 Thomas Deutschmann (RETIRED) gentoo-dev 2019-11-03 16:42:20 UTC
Please check your rust installation. It looks like your rust isn't working...
Comment 4 Jory A. Pratt gentoo-dev 2019-11-03 17:21:17 UTC
run eselect rust select 1 and test again.
Comment 5 Lik 2019-11-03 17:49:07 UTC
Really, rustc failed to compile "hello world" example, because it is still linked to LLVM8 (removed from system), not LLVM9 (current in system).

$ rustc --version
rustc 1.38.0

$ cat hello.rs
fn main() {
    println!("Hello, world!");
}

$ rustc hello.rs
error: couldn't load codegen backend "/usr/lib64/rust-1.38.0/rustlib/x86_64-unknown-linux-gnu/codegen-backends/librustc_codegen_llvm-llvm.so": "libLLVMX86AsmParser.so.8: cannot open shared object file: No such file or directory"

Re-emerged dev-lang/rust and now thunderbird compiles without errors.
Feel free to close this bug.