Summary: | sys-apps/portage: llvm-11.1.0 and clang-11.1.0 dependency conflict when upgrading from 11.0.1 versions | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | jospezial <jospezial> |
Component: | Current packages | Assignee: | Portage team <dev-portage> |
Status: | UNCONFIRMED --- | ||
Severity: | normal | CC: | admnd, chris, davidbryant, gentoo.2019, grknight, idarktemplar, ionen, Jiahao_XU, jstein, krzysztof, llvm, sam |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
See Also: | https://bugs.gentoo.org/show_bug.cgi?id=791745 | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: | same error here |
Description
jospezial
2021-02-18 01:18:14 UTC
(In reply to jospezial from comment #0) > I disabled NVPTX. > That is not an issue at all here. > WARNING: One or more updates/rebuilds have been skipped due to a dependency > conflict: > > sys-devel/llvm:11 > > (sys-devel/llvm-11.1.0:11/11::gentoo, ebuild scheduled for merge) > USE="libffi ncurses xml -debug -doc -exegesis -gold -libedit -test -xar -z3" > ABI_X86="32 (64) (-x32)" LLVM_TARGETS="AMDGPU BPF (X86) -AArch64 (-ARC) -ARM > -AVR -Hexagon -Lanai -MSP430 -Mips -NVPTX -PowerPC -RISCV -Sparc -SystemZ > (-VE) -WebAssembly -XCore" conflicts with > ~sys-devel/llvm-11.0.1:11[llvm_targets_X86] required by > (sys-devel/clang-11.0.1:11/11::gentoo, installed) USE="static-analyzer xml > -debug -default-compiler-rt -default-libcxx -default-lld -doc -test" > ABI_X86="32 (64) (-x32)" LLVM_TARGETS="AMDGPU BPF (X86) -AArch64 (-ARC) -ARM > -AVR -Hexagon -Lanai -MSP430 -Mips -NVPTX -PowerPC -RISCV -Sparc -SystemZ > (-VE) -WebAssembly -XCore" PYTHON_SINGLE_TARGET="python3_8 -python3_7 > -python3_9" > ^ ^^^^^^ > ~sys-devel/llvm-11.0.1:11[llvm_targets_AMDGPU] required by > (sys-devel/clang-11.0.1:11/11::gentoo, installed) USE="static-analyzer xml > -debug -default-compiler-rt -default-libcxx -default-lld -doc -test" > ABI_X86="32 (64) (-x32)" LLVM_TARGETS="AMDGPU BPF (X86) -AArch64 (-ARC) -ARM > -AVR -Hexagon -Lanai -MSP430 -Mips -NVPTX -PowerPC -RISCV -Sparc -SystemZ > (-VE) -WebAssembly -XCore" PYTHON_SINGLE_TARGET="python3_8 -python3_7 > -python3_9" > ^ ^^^^^^ > ~sys-devel/llvm-11.0.1:11[llvm_targets_BPF] required by > (sys-devel/clang-11.0.1:11/11::gentoo, installed) USE="static-analyzer xml > -debug -default-compiler-rt -default-libcxx -default-lld -doc -test" > ABI_X86="32 (64) (-x32)" LLVM_TARGETS="AMDGPU BPF (X86) -AArch64 (-ARC) -ARM > -AVR -Hexagon -Lanai -MSP430 -Mips -NVPTX -PowerPC -RISCV -Sparc -SystemZ > (-VE) -WebAssembly -XCore" PYTHON_SINGLE_TARGET="python3_8 -python3_7 > -python3_9" > ^ ^^^^^^ > ~sys-devel/llvm-11.0.1:11/11=[-debug,abi_x86_32(-),abi_x86_64(-)] > required by (sys-devel/clang-11.0.1:11/11::gentoo, installed) > USE="static-analyzer xml -debug -default-compiler-rt -default-libcxx > -default-lld -doc -test" ABI_X86="32 (64) (-x32)" LLVM_TARGETS="AMDGPU BPF > (X86) -AArch64 (-ARC) -ARM -AVR -Hexagon -Lanai -MSP430 -Mips -NVPTX > -PowerPC -RISCV -Sparc -SystemZ (-VE) -WebAssembly -XCore" > PYTHON_SINGLE_TARGET="python3_8 -python3_7 -python3_9" > ^ ^^^^^^ > ~sys-devel/llvm-11.0.1:11=[-debug,abi_x86_32(-),abi_x86_64(-)] required > by (sys-devel/clang-11.0.1:11/11::gentoo, installed) USE="static-analyzer > xml -debug -default-compiler-rt -default-libcxx -default-lld -doc -test" > ABI_X86="32 (64) (-x32)" LLVM_TARGETS="AMDGPU BPF (X86) -AArch64 (-ARC) -ARM > -AVR -Hexagon -Lanai -MSP430 -Mips -NVPTX -PowerPC -RISCV -Sparc -SystemZ > (-VE) -WebAssembly -XCore" PYTHON_SINGLE_TARGET="python3_8 -python3_7 > -python3_9" > ^ ^^^^^^ > > > !!! The following update(s) have been skipped due to unsatisfied dependencies > !!! triggered by backtracking: > > sys-devel/clang:11 > sys-devel/lld:0 The real reason is that sys-devel/clang is not being upgraded to version 11.1.0 at the same time for some yet to be determined reason. LLVM and clang versions must be in lock-step (except Gentoo revisions, -r#) If I remove LLVM_TARGETS="AMDGPU BPF X86" in /etc/portage/make.conf then the update calculation looks well. But that line was the only way for me to disable NVPTX. (In reply to jospezial from comment #2) > But that line was the only way for me to disable NVPTX. Note removing something from use expand typically makes more sense in package.use e.g. "*/* LLVM_TARGETS: -NVPTX" This keeps the other defaults without you needing to set them. (In reply to Ionen Wolkens from comment #3) > (In reply to jospezial from comment #2) > > But that line was the only way for me to disable NVPTX. > Note removing something from use expand typically makes more sense in > package.use > > e.g. "*/* LLVM_TARGETS: -NVPTX" > > This keeps the other defaults without you needing to set them. I did not know that syntax with ":" . Is that new? But that produces the same output with skipped updates. qt-creator is not installed. All clang and llvm packages already have 11.1.0 but some are stuff for some reason on 11.0.1. This is a poor and silly W/A but un-emerging clang and llvm and running emerge --ask --tree --update --newuse --changed-use --deep @world will pull everything that's needed with the new versions. (In reply to Amit Ugol from comment #6) > All clang and llvm packages already have 11.1.0 but some are stuff for some > reason on 11.0.1. > This is a poor and silly W/A but un-emerging clang and llvm and running > emerge --ask --tree --update --newuse --changed-use --deep @world will pull > everything that's needed with the new versions. some are stuck* (In reply to Amit Ugol from comment #6) > All clang and llvm packages already have 11.1.0 but some are stuff for some > reason on 11.0.1. > This is a poor and silly W/A but un-emerging clang and llvm and running > emerge --ask --tree --update --newuse --changed-use --deep @world will pull > everything that's needed with the new versions. I had the same issue but with LLVM_TARGETS left as default. Same W/A worked for me as well. (In reply to Norman Back from comment #8) > I had the same issue but with LLVM_TARGETS left as default. Same W/A worked > for me as well. Same here. I wonder if a larger --backtrack setting is helpful or not. It may be related to one or more of the previous llvm/clang missed update bugs such as bug 584626, bug 612772, bug 612874, or bug 706278. This problem has been the subject of some discussion on the Gentoo Forums (https://forums.gentoo.org/viewtopic-t-1132284.html?sid=935654c36b760a3317f5ca39b26b2851) It appears that this command: emerge -1 sys-devel/clang:11 sys-devel/lld:0 will force Portage to update all three packages at one fell swoop. At least, it worked for me. (In reply to David C. Bryant from comment #11) > This problem has been the subject of some discussion on the Gentoo Forums > (https://forums.gentoo.org/viewtopic-t-1132284. > html?sid=935654c36b760a3317f5ca39b26b2851) > > It appears that this command: > > emerge -1 sys-devel/clang:11 sys-devel/lld:0 > > will force Portage to update all three packages at one fell swoop. At least, > it worked for me. I suspect that this is close to bug 612874 which was fixed by this patch: https://gitweb.gentoo.org/proj/portage.git/commit/?id=35208d80a55228a50ea4ac64904465ce4651e381 It's in the check_reverse_dependencies function which is error prone and has required numerous adjustments. *** Bug 771315 has been marked as a duplicate of this bug. *** Created attachment 693282 [details]
same error here
I also got the same errors in a world update two days ago. This is what I've got.
(In reply to David C. Bryant from comment #11) > This problem has been the subject of some discussion on the Gentoo Forums > (https://forums.gentoo.org/viewtopic-t-1132284. > html?sid=935654c36b760a3317f5ca39b26b2851) > > It appears that this command: > > emerge -1 sys-devel/clang:11 sys-devel/lld:0 > > will force Portage to update all three packages at one fell swoop. At least, > it worked for me. It appears it also works for me too, I didn't trigger the update but here's what emerge spat: emerge -1a sys-devel/clang:11 sys-devel/lld:0 These are the packages that would be merged, in order: Calculating dependencies... done! [ebuild U ] sys-devel/llvm-11.1.0 [11.0.1] [ebuild U ] sys-libs/libomp-11.1.0 [11.0.1] [ebuild U ] sys-devel/lld-11.1.0 [11.0.1] [ebuild r U ] sys-devel/clang-11.1.0 [11.0.1] [ebuild NS ] sys-libs/compiler-rt-11.1.0 [11.0.0, 11.0.1] [ebuild NS ] sys-libs/compiler-rt-sanitizers-11.1.0 [11.0.0, 11.0.1] [ebuild NS ] sys-devel/clang-runtime-11.1.0 [11.0.0, 11.0.1] [ebuild rR ] media-libs/mesa-20.3.4 The following packages are causing rebuilds: (sys-devel/clang-11.1.0:11/11.1::gentoo, ebuild scheduled for merge) causes rebuilds for: (media-libs/mesa-20.3.4:0/0::gentoo, ebuild scheduled for merge) Would you like to merge these packages? [Yes/No] n In my case, `emerge -av sys-devel/clang sys-devel/lld` allows me to upgrade: ``` [nobodyxu@gentoo:~]$ sudo emerge -av sys-devel/clang sys-devel/lld These are the packages that would be merged, in order: Calculating dependencies... done! [ebuild U ] sys-devel/llvm-11.1.0:11::gentoo [11.0.1:11::gentoo] USE="gold libffi ncurses -debug -doc -exegesis -libedit -test -xar -xml -z3" ABI_X86="(64) -32 (-x32)" LLVM_TARGETS="AMDGPU BPF NVPTX (X86) -AArch64 (-ARC) -ARM -AVR -Hexagon -Lanai -MSP430 -Mips -PowerPC -RISCV -Sparc -SystemZ (-VE) -WebAssembly -XCore" 188 KiB [ebuild U ] sys-devel/lld-11.1.0::gentoo [11.0.1::gentoo] USE="-test" 0 KiB [ebuild r U ] sys-devel/clang-11.1.0:11/11.1::gentoo [11.0.1:11/11::gentoo] USE="static-analyzer -debug -default-compiler-rt -default-libcxx -default-lld -doc -test -xml" ABI_X86="(64) -32 (-x32)" LLVM_TARGETS="AMDGPU BPF NVPTX (X86) -AArch64 (-ARC) -ARM -AVR -Hexagon -Lanai -MSP430 -Mips -PowerPC -RISCV -Sparc -SystemZ (-VE) -WebAssembly -XCore" PYTHON_SINGLE_TARGET="python3_8 -python3_7 -python3_9" 0 KiB [ebuild NS ] sys-libs/compiler-rt-sanitizers-11.1.0:11.1.0::gentoo [11.0.1:11.0.1::gentoo] USE="asan cfi clang dfsan gwp-asan hwasan libfuzzer msan profile safestack scudo tsan ubsan xray (-lsan) (-shadowcallstack) -test" 0 KiB [ebuild NS ] sys-devel/clang-runtime-11.1.0:11.1.0::gentoo [11.0.1:11.0.1::gentoo] USE="compiler-rt openmp sanitize -libcxx" ABI_X86="(64) -32 (-x32)" 0 KiB [ebuild rR ] dev-db/postgresql-13.2:13::gentoo USE="llvm nls pam python readline server ssl systemd threads uuid xml zlib -debug -doc -icu -kerberos -ldap (-libressl) -perl (-selinux) -static-libs -tcl" PYTHON_SINGLE_TARGET="python3_8 -python3_7 -python3_9" 0 KiB Total: 6 packages (3 upgrades, 2 in new slots, 1 reinstall), Size of downloads: 188 KiB The following packages are causing rebuilds: (sys-devel/clang-11.1.0:11/11.1::gentoo, ebuild scheduled for merge) causes rebuilds for: (dev-db/postgresql-13.2:13/13::gentoo, ebuild scheduled for merge) Would you like to merge these packages? [Yes/No] ``` Works great now on world update with portage-9999 and llvm/clang-12 release. No workaround needed. Can somebody confirm that with portage release and stable? |