Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 943495 - www-client/chromium-131.0.6778.33:0/stable fails to correctly deploy check toolchain components when LLVM_SLOT for rust vs chromium mismatch
Summary: www-client/chromium-131.0.6778.33:0/stable fails to correctly deploy check to...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Chromium Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-11-14 03:15 UTC by tdr
Modified: 2024-11-15 02:36 UTC (History)
2 users (show)

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


Attachments
build log reporting the error (chromium-fail.log.txt.gz,44.84 KB, application/gzip)
2024-11-14 03:17 UTC, tdr
Details
emerge--info output (tdr-emerge--info.txt,6.54 KB, text/plain)
2024-11-14 03:22 UTC, tdr
Details

Note You need to log in before you can comment on or make changes to this bug.
Description tdr 2024-11-14 03:15:01 UTC
Dep graph calculation with LLVM_SLOT setting mismatch between <all rust versions> and chromium did not adequately check the llvm toolchain stack so build was attempted rather than either pulling additional packages or reporting incompatible settings.



Reproducible: Always

Steps to Reproduce:
see additional info
Actual Results:  
Error was:

ld.lld: error: obj/third_party/protobuf/protoc_java/enum_field.o: Invalid attribute group entry (Producer: 'LLVM19.1.3' Reader: 'LLVM 18.1.8')
x86_64-pc-linux-gnu-clang++-19: error: linker command failed with exit code 1 (use -v to see invocation)




Ebuild does inherit the rust eclass:

    inherit check-reqs chromium-2 desktop flag-o-matic llvm-r1 multiprocessing ninja-utils pax-utils
    inherit python-any-r1 qmake-utils readme.gentoo-r1 rust systemd toolchain-funcs virtualx xdg-utils



LLVM_SLOT is not set global
    chromium was set: -llvm_slot_17 llvm_slot_18
    installed rust versions was/are set:
        dev-lang/rust-1.82.0-r100 llvm_slot_19 
        dev-lang/rust-bin-1.82.0-r100 llvm_slot_19
        dev-lang/rust-bin-1.81.0-r100 llvm_slot_18


Setting chromium -llvm_slot_17 -llvm_slot_18 llvm_slot_19 has got past previous failure point but pulled 2 additional packages for llvm 19 toolchain:

    sys-devel/lld-19.1.3
    sys-devel/lld-toolchain-symlinks-19
Comment 1 tdr 2024-11-14 03:17:56 UTC
Created attachment 908689 [details]
build log reporting the error
Comment 2 tdr 2024-11-14 03:22:20 UTC
Created attachment 908690 [details]
emerge--info output

I removed  lld-19.1.3  from emerge --info since it reports lld versions and that one was not installed when the build failure happened
Comment 3 Larry the Git Cow gentoo-dev 2024-11-15 02:36:41 UTC
The bug has been closed via the following commit(s):

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

commit c230ea6b261ac220942c5cfc0e8ca7a786c2548f
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2024-11-15 02:35:53 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2024-11-15 02:36:20 +0000

    www-client/chromium: set RUST_NEEDS_LLVM
    
    This was set in 129, 130 but not 131 or 132.
    
    Closes: https://bugs.gentoo.org/943495
    Signed-off-by: Sam James <sam@gentoo.org>

 www-client/chromium/chromium-131.0.6778.33.ebuild | 1 +
 www-client/chromium/chromium-132.0.6821.2.ebuild  | 1 +
 2 files changed, 2 insertions(+)