Issue with sys-libs/libunwind and llvm-runtimes/libunwind

Problems with emerge or ebuilds? Have a basic programming question about C, PHP, Perl, BASH or something else?
Post Reply
Nima0908
Tux's lil' helper
Tux's lil' helper
Posts: 97
Joined: Mon Feb 24, 2025 7:47 pm

Issue with sys-libs/libunwind and llvm-runtimes/libunwind

Post by Nima0908 »

Hello,
iam trying to install the .NET framework to compile and run a programm to run on my system, but iam running into the following roadblock:

Code: Select all

marius@gentoo ~ $ sudo emerge -avt dotnet-sdk
Password:

 * IMPORTANT: 1 news items need reading for repository 'librewolf'.
 * IMPORTANT: 7 news items need reading for repository 'gentoo'.
 * Use eselect news read to view new items.


These are the packages that would be merged, in reverse order:

Calculating dependencies... done!
Dependency resolution took 3.97 s (backtrack: 0/20).

[ebuild  N     ] dev-dotnet/dotnet-sdk-9.0.111:9.0/9.0.10::gentoo  LLVM_SLOT="20 -19" 0 KiB
[nomerge       ] llvm-core/clang-20.1.8:20/20.1::gentoo [18.1.8-r7:18/18.1::gentoo, 21.1.8:21/21.1::gentoo] USE="extra (pie) static-analyzer -debug -doc (-ieee-long-double) -test -verify-sig -xml" LLVM_TARGETS="(AArch64) (AMDGPU) (ARM) (AVR) (BPF) (Hexagon) (Lanai) (LoongArch) (MSP430) (Mips) (NVPTX) (PowerPC) (RISCV) (SPIRV) (Sparc) (SystemZ) (VE) (WebAssembly) (X86) (XCore) -ARC -CSKY -DirectX -M68k -Xtensa" PYTHON_SINGLE_TARGET="python3_13 -python3_12 -python3_14"
[ebuild  NS    ]  llvm-runtimes/clang-runtime-20.1.8-r1:20::gentoo [18.1.8-r1:18::gentoo, 21.1.8:21::gentoo] USE="compiler-rt (default-compiler-rt) (default-libcxx) (default-lld) libcxx (llvm-libunwind) openmp -offload -polly -sanitize" 0 KiB
[ebuild  NS    ]   llvm-runtimes/clang-rtlib-config-20:20::gentoo [18:18::gentoo, 21:21::gentoo] USE="(default-compiler-rt)" 0 KiB
[ebuild  NS    ]    llvm-runtimes/compiler-rt-20.1.8-r1:20::gentoo [18.1.8-r2:18::gentoo, 21.1.8:21::gentoo] USE="atomic-builtins (clang) -debug -test -verify-sig" 0 KiB
[ebuild  NS    ]     llvm-core/clang-linker-config-20:20::gentoo [18:18::gentoo, 21:21::gentoo] USE="(default-lld)" 0 KiB
[nomerge       ] llvm-core/lld-20.1.8:20/20.1::gentoo [18.1.8:18/18.1::gentoo, 21.1.8:21/21.1::gentoo] USE="zstd -debug -test -verify-sig" LLVM_TARGETS="(AArch64) (AMDGPU) (ARM) (AVR) (BPF) (Hexagon) (Lanai) (LoongArch) (MSP430) (Mips) (NVPTX) (PowerPC) (RISCV) (SPIRV) (Sparc) (SystemZ) (VE) (WebAssembly) (X86) (XCore) -ARC -CSKY -DirectX -M68k -Xtensa"
[ebuild  NS    ]  llvm-core/lld-toolchain-symlinks-20:20::gentoo [18:18::gentoo, 21:21::gentoo] USE="(native-symlinks) -multilib-symlinks" 0 KiB
[ebuild  NS    ]   llvm-core/lld-20.1.8:20/20.1::gentoo [18.1.8:18/18.1::gentoo, 21.1.8:21/21.1::gentoo] USE="zstd -debug -test -verify-sig" LLVM_TARGETS="(AArch64) (AMDGPU) (ARM) (AVR) (BPF) (Hexagon) (Lanai) (LoongArch) (MSP430) (Mips) (NVPTX) (PowerPC) (RISCV) (SPIRV) (Sparc) (SystemZ) (VE) (WebAssembly) (X86) (XCore) -ARC -CSKY -DirectX -M68k -Xtensa" 0 KiB
[nomerge       ] llvm-core/clang-20.1.8:20/20.1::gentoo [18.1.8-r7:18/18.1::gentoo, 21.1.8:21/21.1::gentoo] USE="extra (pie) static-analyzer -debug -doc (-ieee-long-double) -test -verify-sig -xml" LLVM_TARGETS="(AArch64) (AMDGPU) (ARM) (AVR) (BPF) (Hexagon) (Lanai) (LoongArch) (MSP430) (Mips) (NVPTX) (PowerPC) (RISCV) (SPIRV) (Sparc) (SystemZ) (VE) (WebAssembly) (X86) (XCore) -ARC -CSKY -DirectX -M68k -Xtensa" PYTHON_SINGLE_TARGET="python3_13 -python3_12 -python3_14"
[ebuild  NS    ]  llvm-core/clang-toolchain-symlinks-20:20::gentoo [18:18::gentoo, 21:21::gentoo] USE="(native-symlinks) -gcc-symlinks -multilib-symlinks" 0 KiB
[ebuild  NS    ]   llvm-core/clang-20.1.8:20/20.1::gentoo [18.1.8-r7:18/18.1::gentoo, 21.1.8:21/21.1::gentoo] USE="extra (pie) static-analyzer -debug -doc (-ieee-long-double) -test -verify-sig -xml" LLVM_TARGETS="(AArch64) (AMDGPU) (ARM) (AVR) (BPF) (Hexagon) (Lanai) (LoongArch) (MSP430) (Mips) (NVPTX) (PowerPC) (RISCV) (SPIRV) (Sparc) (SystemZ) (VE) (WebAssembly) (X86) (XCore) -ARC -CSKY -DirectX -M68k -Xtensa" PYTHON_SINGLE_TARGET="python3_13 -python3_12 -python3_14" 0 KiB
[nomerge       ] llvm-core/llvm-20.1.8:20/20.1::gentoo [18.1.8-r6:18/18.1::gentoo, 21.1.8:21/21.1::gentoo] USE="libffi zstd -binutils-plugin -debug (-debuginfod) -doc -exegesis -libedit -test -verify-sig -xml -z3" LLVM_TARGETS="(AArch64) (AMDGPU) (ARM) (AVR) (BPF) (Hexagon) (Lanai) (LoongArch) (MSP430) (Mips) (NVPTX) (PowerPC) (RISCV) (SPIRV) (Sparc) (SystemZ) (VE) (WebAssembly) (X86) (XCore) -ARC -CSKY -DirectX -M68k -Xtensa"
[ebuild  NS    ]  llvm-core/llvm-toolchain-symlinks-20-r1:20::gentoo [18-r1:18::gentoo, 21:21::gentoo] USE="(native-symlinks) -multilib-symlinks" 0 KiB
[ebuild  NS    ]   llvm-core/llvm-20.1.8:20/20.1::gentoo [18.1.8-r6:18/18.1::gentoo, 21.1.8:21/21.1::gentoo] USE="libffi zstd -binutils-plugin -debug (-debuginfod) -doc -exegesis -libedit -test -verify-sig -xml -z3" LLVM_TARGETS="(AArch64) (AMDGPU) (ARM) (AVR) (BPF) (Hexagon) (Lanai) (LoongArch) (MSP430) (Mips) (NVPTX) (PowerPC) (RISCV) (SPIRV) (Sparc) (SystemZ) (VE) (WebAssembly) (X86) (XCore) -ARC -CSKY -DirectX -M68k -Xtensa" 0 KiB
[nomerge       ] dev-dotnet/dotnet-sdk-9.0.111:9.0/9.0.10::gentoo  LLVM_SLOT="20 -19"
[ebuild  N     ]  dev-libs/rapidjson-1.1.0-r5::gentoo  USE="-doc -examples -test" 0 KiB
[ebuild  N     ]  app-crypt/mit-krb5-1.21.3-r1::gentoo  USE="keyutils nls pkinit -doc -lmdb -openldap (-selinux) -test -xinetd" CPU_FLAGS_X86="aes" 0 KiB
[ebuild  N     ]  dev-util/lttng-ust-2.14.0:0/2.14::gentoo  USE="-examples -numa -test -verify-sig" 0 KiB
[nomerge       ] app-crypt/mit-krb5-1.21.3-r1::gentoo  USE="keyutils nls pkinit -doc -lmdb -openldap (-selinux) -test -xinetd" CPU_FLAGS_X86="aes"
[ebuild  N     ]  dev-libs/libverto-0.3.2::gentoo  USE="libev threads -glib -libevent" 0 KiB
[ebuild  N     ]   dev-libs/libev-4.33::gentoo  USE="-static-libs" 0 KiB
[nomerge       ] dev-dotnet/dotnet-sdk-9.0.111:9.0/9.0.10::gentoo  LLVM_SLOT="20 -19"
[ebuild  N     ]  app-eselect/eselect-dotnet-1.0.1::gentoo  0 KiB
[nomerge       ] llvm-runtimes/clang-runtime-20.1.8-r1:20::gentoo [18.1.8-r1:18::gentoo, 21.1.8:21::gentoo] USE="compiler-rt (default-compiler-rt) (default-libcxx) (default-lld) libcxx (llvm-libunwind) openmp -offload -polly -sanitize"
[ebuild  NS    ]  llvm-runtimes/clang-stdlib-config-20:20::gentoo [18:18::gentoo, 21:21::gentoo] USE="(default-libcxx)" 0 KiB
[nomerge       ] dev-dotnet/dotnet-sdk-9.0.111:9.0/9.0.10::gentoo  LLVM_SLOT="20 -19"
[ebuild  N     ]  sys-libs/libunwind-1.8.2-r1:0/8::gentoo  USE="zlib -debug -debug-frame -doc -libatomic -lzma -static-libs -test" 986 KiB
[nomerge       ] llvm-runtimes/clang-runtime-20.1.8-r1:20::gentoo [18.1.8-r1:18::gentoo, 21.1.8:21::gentoo] USE="compiler-rt (default-compiler-rt) (default-libcxx) (default-lld) libcxx (llvm-libunwind) openmp -offload -polly -sanitize"
[ebuild  NS    ]  llvm-runtimes/clang-unwindlib-config-20:20::gentoo [18:18::gentoo, 21:21::gentoo] USE="(default-compiler-rt) (llvm-libunwind)" 0 KiB
[nomerge       ] dev-dotnet/dotnet-sdk-9.0.111:9.0/9.0.10::gentoo  LLVM_SLOT="20 -19"
[ebuild  N     ]  dev-dotnet/dotnet-runtime-nugets-9.0.10:9.0.10::gentoo  0 KiB
[ebuild  N     ]  dev-dotnet/dotnet-runtime-nugets-8.0.21:8.0.21::gentoo  0 KiB
[ebuild  N     ]  dev-dotnet/dotnet-runtime-nugets-7.0.20:7.0.20::gentoo  0 KiB
[ebuild  N     ]  dev-dotnet/dotnet-runtime-nugets-6.0.36:6.0.36::gentoo  0 KiB
[blocks B      ] sys-libs/libunwind ("sys-libs/libunwind" is soft blocking llvm-runtimes/libunwind-21.1.8)

Total: 24 packages (12 new, 12 in new slots), Size of downloads: 986 KiB
Conflict: 1 block (1 unsatisfied)

 * Error: The above package list contains packages which cannot be
 * installed at the same time on the same system.

  (sys-libs/libunwind-1.8.2-r1:0/8::gentoo, ebuild scheduled for merge) pulled in by
    sys-libs/libunwind required by (dev-dotnet/dotnet-sdk-9.0.111:9.0/9.0.10::gentoo, ebuild scheduled for merge) USE="" LLVM_SLOT="20 -19"

  (llvm-runtimes/libunwind-21.1.8:0/0::gentoo, installed) pulled in by
    >=llvm-runtimes/libunwind-20[static-libs] required by (llvm-runtimes/clang-unwindlib-config-20:20/20::gentoo, ebuild scheduled for merge) USE="(default-compiler-rt) (llvm-libunwind)"
    llvm-runtimes/libunwind:0/0= required by (dev-lang/rust-1.92.0_p1-r1:1.92.0/1.92.0::gentoo, installed) USE="(llvm-libunwind) lto rust-src rustfmt system-llvm (-big-endian) -clippy -debug -dist -doc -rust-analyzer -test -verify-sig" CPU_FLAGS_X86="sse2" LLVM_SLOT="(21)" LLVM_TARGETS="(X86) -AArch64 -AMDGPU -ARC -ARM -AVR -BPF -CSKY -DirectX -Hexagon -Lanai -LoongArch -M68k -MSP430 -Mips -NVPTX -PowerPC -RISCV -SPIRV -Sparc -SystemZ -VE -WebAssembly -XCore -Xtensa" RUST_SYSROOTS="-bpf -wasm"
    >=llvm-runtimes/libunwind-18[static-libs] required by (llvm-runtimes/clang-unwindlib-config-18:18/18::gentoo, installed) USE="(default-compiler-rt) (llvm-libunwind)"
    llvm-runtimes/libunwind:= required by (dev-lang/rust-1.92.0_p1-r1:1.92.0/1.92.0::gentoo, installed) USE="(llvm-libunwind) lto rust-src rustfmt system-llvm (-big-endian) -clippy -debug -dist -doc -rust-analyzer -test -verify-sig" CPU_FLAGS_X86="sse2" LLVM_SLOT="(21)" LLVM_TARGETS="(X86) -AArch64 -AMDGPU -ARC -ARM -AVR -BPF -CSKY -DirectX -Hexagon -Lanai -LoongArch -M68k -MSP430 -Mips -NVPTX -PowerPC -RISCV -SPIRV -Sparc -SystemZ -VE -WebAssembly -XCore -Xtensa" RUST_SYSROOTS="-bpf -wasm"
    llvm-runtimes/libunwind[static-libs] required by (llvm-core/clang-common-21.1.8:0/0::gentoo, installed) USE="(default-compiler-rt) (default-libcxx) (default-lld) (llvm-libunwind) -bootstrap-prefix (-cet) -emacs -hardened -verify-sig"
    llvm-runtimes/libunwind required by @system
    >=llvm-runtimes/libunwind-21[static-libs] required by (llvm-runtimes/clang-unwindlib-config-21:21/21::gentoo, installed) USE="(default-compiler-rt) (llvm-libunwind)"


For more information about Blocked Packages, please refer to the following
section of the Gentoo Linux x86 Handbook (architecture is irrelevant):

https://wiki.gentoo.org/wiki/Handbook:X86/Working/Portage#Blocked_packages

marius@gentoo ~ $ sudo emerge --depclean --verbose llvm-runtimes/libunwind

Calculating dependencies... done!
  llvm-runtimes/libunwind-21.1.8 pulled in by:
    @system requires llvm-runtimes/libunwind
    dev-lang/rust-1.92.0_p1-r1 requires llvm-runtimes/libunwind:0/0=, llvm-runtimes/libunwind:=
    llvm-core/clang-common-21.1.8 requires llvm-runtimes/libunwind[static-libs]
    llvm-runtimes/clang-unwindlib-config-18 requires >=llvm-runtimes/libunwind-18[static-libs]
    llvm-runtimes/clang-unwindlib-config-21 requires >=llvm-runtimes/libunwind-21[static-libs]

>>> No packages selected for removal by depclean
As you can see, llvm-runtimes/libunwind is blocking sys-libs/libunwind and i cant remove llvm-runtimes/libunwind because its required by some other programms. I also cat use dotnet-sdk-bin because its compilled against some gcc symbols and i dont have gcc at all. I have absolutely no clue how to solve this, so i would be glad to get any help i can get. Thank you for your time and help :)
User avatar
sam_
Developer
Developer
Posts: 2808
Joined: Fri Aug 14, 2020 12:33 am

Post by sam_ »

Nothing on your system should need llvm-libunwind unless you're on LLVM profiles (which are labelled everywhere as experimental and likely to have problems like this). If you do need llvm-libunwind, there's no easy way around this, as it's truly not coinstallable with libunwind.
Post Reply