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

Bug 784125

Summary: dev-lang/spidermonkey-78.10.0: LLVM version used by Rust (11) does not match with ld.lld version (12)
Product: Gentoo Linux Reporter: Andrei Slavoiu <ansla80>
Component: Current packagesAssignee: Mozilla Gentoo Team <mozilla>
Status: RESOLVED FIXED    
Severity: normal CC: floppym, kratos661, marek.bartosiewicz
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: emerge --info

Description Andrei Slavoiu 2021-04-19 12:14:40 UTC
* Using LLVM slot 12 to build
 * Rust is using LLVM version 11 but ld.lld version belongs to LLVM version 12.
 * You will be unable to link dev-lang/spidermonkey. To proceed you have the following options:
 *   - Manually switch rust version using 'eselect rust' to match used LLVM version
 *   - Switch to dev-lang/rust[system-llvm] which will guarantee matching version
 *   - Build dev-lang/spidermonkey without USE=lto
 * ERROR: dev-lang/spidermonkey-78.10.0::gentoo failed (setup phase):
 *   LLVM version used by Rust (11) does not match with ld.lld version (12)!


Reproducible: Always
Comment 1 Andrei Slavoiu 2021-04-19 12:16:07 UTC
Created attachment 700800 [details]
emerge --info
Comment 2 Mike Gilbert gentoo-dev 2021-04-19 18:33:26 UTC
Perhaps you should follow the instructions you quoted in comment 0?
Comment 3 rudolchr 2021-04-19 18:52:06 UTC
I do have the same bug using @amd64 system.
Rust is selected to the most actual version and USE=system-llvm is set but this does result in the same problem.

Building spidermonkey with USE=-lto does work.

I'm not an ebuild professional but it looks like rust is currently set to work with llvm up to llvm:11 for me.
Comment 4 Larry the Git Cow gentoo-dev 2021-04-19 21:35:45 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=93f3c5a9bd1f18946bfc3987db669b37e733b8e3

commit 93f3c5a9bd1f18946bfc3987db669b37e733b8e3
Author:     Thomas Deutschmann <whissi@gentoo.org>
AuthorDate: 2021-04-19 21:34:26 +0000
Commit:     Thomas Deutschmann <whissi@gentoo.org>
CommitDate: 2021-04-19 21:35:08 +0000

    dev-lang/spidermonkey: drop LLVM:12 support to aid smooth upgrading
    
    USE=lto requires that LLVM version used by rust matches used LLVM version.
    However, dev-lang/rust-1.51 does not support latest LLVM version (12) so
    there is currently no way to automatically enforce all depedencies.
    
    This seems to be too challenging for average Gentoo users so we are dropping
    LLVM:12 support for now to aid smooth upgrading.
    
    Bug: https://bugs.gentoo.org/784125
    Package-Manager: Portage-3.0.18, Repoman-3.0.3
    Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>

 dev-lang/spidermonkey/spidermonkey-78.10.0.ebuild | 9 +--------
 1 file changed, 1 insertion(+), 8 deletions(-)