* 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
Created attachment 700800 [details] emerge --info
Perhaps you should follow the instructions you quoted in comment 0?
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.
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(-)