Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Portage & Programming
  • Search

how to remove llvm-20.1.0?

Problems with emerge or ebuilds? Have a basic programming question about C, PHP, Perl, BASH or something else?
Post Reply
Advanced search
9 posts • Page 1 of 1
Author
Message
saski4711
Apprentice
Apprentice
Posts: 214
Joined: Thu Jun 24, 2004 8:23 am

how to remove llvm-20.1.0?

  • Quote

Post by saski4711 » Fri Mar 14, 2025 10:51 am

hello,

recently emerge pulled llvm-20.1.0 parallel to llvm-19 although there is no obvious dependency for llvm-20. How can I safely unmerge and mask llvm-20 and keep llvm-19?

I've tried LLVM_SLOT="19" in ym make.conf but that didn't do anything. Any advice?

cheers
nic
Top
krumpf
Apprentice
Apprentice
User avatar
Posts: 268
Joined: Sun Jul 15, 2018 11:21 pm

  • Quote

Post by krumpf » Fri Mar 14, 2025 11:50 am

Try emerge -pvc =llvm-core/llvm-20.1.0 to see if nothing depends on it.
Afaik, each version of clang is tied to a llvm version, so it might require to also remove clang-20 as well as all the llvm/clang associated toolchain to get back to 19 - it can turn messy.
Dragon Princess Music Games Heroes and villains
Top
logrusx
Advocate
Advocate
User avatar
Posts: 3539
Joined: Thu Feb 22, 2018 2:29 pm

Re: how to remove llvm-20.1.0?

  • Quote

Post by logrusx » Fri Mar 14, 2025 12:24 pm

saski4711 wrote:hello,

recently emerge pulled llvm-20.1.0 parallel to llvm-19 although there is no obvious dependency for llvm-20. How can I safely unmerge and mask llvm-20 and keep llvm-19?

I've tried LLVM_SLOT="19" in ym make.conf but that didn't do anything. Any advice?
That does not do anything on its own. First provide the output of the command suggested above as well as your emerge --info. I can't believe a user registered more than 20 years ago would provide so little context.

A recent thread about a circular dependency pops in my mind but I need more context.

Best Regards,
Georgi
Top
sam_
Developer
Developer
User avatar
Posts: 2820
Joined: Fri Aug 14, 2020 12:33 am

  • Quote

Post by sam_ » Fri Mar 14, 2025 12:26 pm

(As a hint for others helping the user when more information is provided: it's possible that there's some packages installed which still use llvm.eclass.)
Top
logrusx
Advocate
Advocate
User avatar
Posts: 3539
Joined: Thu Feb 22, 2018 2:29 pm

  • Quote

Post by logrusx » Fri Mar 14, 2025 12:48 pm

sam_ wrote:(As a hint for others helping the user when more information is provided: it's possible that there's some packages installed which still use llvm.eclass.)
Thanks for the hint but this looks like a ~ system as 20.0.1 is still not stable, at least on my system. I guess older packages do not require a testing clang/llvm.

Best Regards,
Georgi
Top
saski4711
Apprentice
Apprentice
Posts: 214
Joined: Thu Jun 24, 2004 8:23 am

Re: how to remove llvm-20.1.0?

  • Quote

Post by saski4711 » Fri Mar 14, 2025 2:14 pm

logrusx wrote:
saski4711 wrote:hello,

recently emerge pulled llvm-20.1.0 parallel to llvm-19 although there is no obvious dependency for llvm-20. How can I safely unmerge and mask llvm-20 and keep llvm-19?

I've tried LLVM_SLOT="19" in ym make.conf but that didn't do anything. Any advice?
That does not do anything on its own. First provide the output of the command suggested above as well as your emerge --info. I can't believe a user registered more than 20 years ago would provide so little context.

A recent thread about a circular dependency pops in my mind but I need more context.

Best Regards,
Georgi
My apologies for being a little short on details :wink: .

Aside from clang I can see no other dependencies tied to llvm.

Code: Select all

emerge -pvc =llvm-core/llvm-20.1.0

Calculating dependencies... done!
  llvm-core/llvm-20.1.0 pulled in by:
    llvm-core/clang-20.1.0-r1 requires ~llvm-core/llvm-20.1.0[llvm_targets_XCore], ~llvm-core/llvm-20.1.0[llvm_targets_Mips], ~llvm-core/llvm-20.1.0:20=[-debug,abi_x86_64(-)], ~llvm-core/llvm-20.1.0[llvm_targets_VE], ~llvm-core/llvm-20.1.0[llvm_targets_RISCV], ~llvm-core/llvm-20.1.0[llvm_targets_AVR], ~llvm-core/llvm-20.1.0[llvm_targets_MSP430], ~llvm-core/llvm-20.1.0[llvm_targets_SystemZ], ~llvm-core/llvm-20.1.0[llvm_targets_LoongArch], ~llvm-core/llvm-20.1.0[llvm_targets_WebAssembly], ~llvm-core/llvm-20.1.0[llvm_targets_BPF], ~llvm-core/llvm-20.1.0[llvm_targets_NVPTX], ~llvm-core/llvm-20.1.0[llvm_targets_ARM], ~llvm-core/llvm-20.1.0[llvm_targets_X86], ~llvm-core/llvm-20.1.0[llvm_targets_Lanai], ~llvm-core/llvm-20.1.0[llvm_targets_AMDGPU], ~llvm-core/llvm-20.1.0[llvm_targets_Hexagon], ~llvm-core/llvm-20.1.0[llvm_targets_Sparc], ~llvm-core/llvm-20.1.0[llvm_targets_PowerPC], ~llvm-core/llvm-20.1.0:20/20.1=[-debug,abi_x86_64(-)], ~llvm-core/llvm-20.1.0[llvm_targets_AArch64]
    llvm-core/llvm-toolchain-symlinks-20-r1 requires llvm-core/llvm:20
    llvm-core/llvmgold-20 requires llvm-core/llvm:20[binutils-plugin]
    llvm-runtimes/compiler-rt-20.1.0 requires llvm-core/llvm:20
    llvm-runtimes/compiler-rt-sanitizers-20.1.0 requires llvm-core/llvm:20

emerge --info:

Code: Select all

Portage 3.0.67 (python 3.12.9-final-0, default/linux/amd64/23.0/split-usr, gcc-14, glibc-2.41, 6.14.0-rc6 x86_64)
=================================================================
System uname: Linux-6.14.0-rc6-x86_64-Intel-R-_Core-TM-_i9-9900T_CPU_@_2.10GHz-with-glibc2.41
KiB Mem:    32726320 total,   7941528 free
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Fri, 14 Mar 2025 11:45:00 +0000
Head commit of repository gentoo: c122c99c249027ff52a33717d1783a75e6d6adcb
sh bash 5.2_p37
ld GNU ld (Gentoo 2.44 p1) 2.44.0
app-misc/pax-utils:        1.3.8::gentoo
app-shells/bash:           5.2_p37::gentoo
dev-build/autoconf:        2.72-r1::gentoo
dev-build/automake:        1.16.5-r2::gentoo, 1.17-r2::gentoo
dev-build/cmake:           3.31.6-r1::gentoo
dev-build/libtool:         2.5.4::gentoo
dev-build/make:            4.4.1-r100::gentoo
dev-build/meson:           1.7.0::gentoo
dev-lang/perl:             5.40.1::gentoo
dev-lang/python:           3.12.9::gentoo
dev-lang/rust-bin:         1.85.0-r1::gentoo
llvm-core/clang:           19.1.7::gentoo, 20.1.0-r1::gentoo
llvm-core/llvm:            19.1.7::gentoo, 20.1.0::gentoo
sys-apps/baselayout:       2.17::gentoo
sys-apps/openrc:           0.60.1::gentoo
sys-apps/sandbox:          2.45::gentoo
sys-devel/binutils:        2.44::gentoo
sys-devel/binutils-config: 5.5.2::gentoo
sys-devel/gcc:             14.2.1_p20250301::gentoo
sys-devel/gcc-config:      2.12.1::gentoo
sys-kernel/linux-headers:  6.13::gentoo (virtual/os-headers)
sys-libs/glibc:            2.41::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    volatile: False
    sync-rsync-extra-opts:
    sync-rsync-verify-jobs: 1
    sync-rsync-verify-metamanifest: yes
    sync-rsync-verify-max-age: 3

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/tmp/portage/cache/distfiles"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GDK_PIXBUF_MODULE_FILE GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR XDG_STATE_HOME"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg-live config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync merge-wait multilib-strict network-sandbox news parallel-fetch pid-sandbox pkgdir-index-trusted preserve-libs protect-owned qa-unresolved-soname-deps sandbox strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="C.UTF8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs"
LEX="flex"
MAKEOPTS="-j6"
PKGDIR="/tmp/binpkgs"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/tmp"
SHELL="/bin/bash"
USE="X acl alsa amd64 bzip2 cairo cet crypt cups dbus dri3 egl elogind gdbm glamor gnome-keyring gtk iconv ipv6 libtirpc multilib ncurses nls opengl openmp openvpn pam pcre policykit readline sdl2 seccomp split-usr ssl test-rust threads truetype udev unicode vaapi wifi x264 x265 xattr xinerama xorg zlib" ABI_X86="64" ADA_TARGET="gcc_14" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_anon authn_dbm authn_file authz_dbm authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir env expires ext_filter file_cache filter headers include info log_config logio mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax navcom oceanserver oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 tsip tripmate tnt ublox" GRUB_PLATFORMS="efi-64" GUILE_SINGLE_TARGET="3-0" GUILE_TARGETS="3-0" INPUT_DEVICES="libinput" KERNEL="linux" LCD_DEVICES="bayrad cfontz glk hd44780 lb216 lcdm001 mtxorb text" LLVM_SLOT="19" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php8-2" POSTGRES_TARGETS="postgres16" PYTHON_SINGLE_TARGET="python3_12" PYTHON_TARGETS="python3_12" RUBY_TARGETS="ruby32" SANE_BACKENDS="hp" VIDEO_CARDS="intel" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipp2p iface geoip fuzzy condition tarpit sysrq proto logmark ipmark dhcpmac delude chaos account"
Unset:  ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EMERGE_DEFAULT_OPTS, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LFLAGS, LIBTOOL, LINGUAS, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PYTHONPATH, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS
Top
logrusx
Advocate
Advocate
User avatar
Posts: 3539
Joined: Thu Feb 22, 2018 2:29 pm

Re: how to remove llvm-20.1.0?

  • Quote

Post by logrusx » Fri Mar 14, 2025 2:42 pm

saski4711 wrote: My apologies for being a little short on details :wink: .

Aside from clang I can see no other dependencies tied to llvm.

Code: Select all

emerge -pvc =llvm-core/llvm-20.1.0

Calculating dependencies... done!
  llvm-core/llvm-20.1.0 pulled in by:
    llvm-core/clang-20.1.0-r1 requires ~llvm-core/llvm-20.1.0[llvm_targets_XCore], ~llvm-core/llvm-20.1.0[llvm_targets_Mips], ~llvm-core/llvm-20.1.0:20=[-debug,abi_x86_64(-)], ~llvm-core/llvm-20.1.0[llvm_targets_VE], ~llvm-core/llvm-20.1.0[llvm_targets_RISCV], ~llvm-core/llvm-20.1.0[llvm_targets_AVR], ~llvm-core/llvm-20.1.0[llvm_targets_MSP430], ~llvm-core/llvm-20.1.0[llvm_targets_SystemZ], ~llvm-core/llvm-20.1.0[llvm_targets_LoongArch], ~llvm-core/llvm-20.1.0[llvm_targets_WebAssembly], ~llvm-core/llvm-20.1.0[llvm_targets_BPF], ~llvm-core/llvm-20.1.0[llvm_targets_NVPTX], ~llvm-core/llvm-20.1.0[llvm_targets_ARM], ~llvm-core/llvm-20.1.0[llvm_targets_X86], ~llvm-core/llvm-20.1.0[llvm_targets_Lanai], ~llvm-core/llvm-20.1.0[llvm_targets_AMDGPU], ~llvm-core/llvm-20.1.0[llvm_targets_Hexagon], ~llvm-core/llvm-20.1.0[llvm_targets_Sparc], ~llvm-core/llvm-20.1.0[llvm_targets_PowerPC], ~llvm-core/llvm-20.1.0:20/20.1=[-debug,abi_x86_64(-)], ~llvm-core/llvm-20.1.0[llvm_targets_AArch64]
    llvm-core/llvm-toolchain-symlinks-20-r1 requires llvm-core/llvm:20
    llvm-core/llvmgold-20 requires llvm-core/llvm:20[binutils-plugin]
    llvm-runtimes/compiler-rt-20.1.0 requires llvm-core/llvm:20
    llvm-runtimes/compiler-rt-sanitizers-20.1.0 requires llvm-core/llvm:20
Anything of those in world or sets? If not, try depcleaning all of them at once. If it doesn't succeed, provide the output, if there's something other than the usual resume that nothing will be removed.
emerge --info:

Code: Select all

ACCEPT_KEYWORDS="amd64 ~amd64"
Confirmed my suspicion that this is a testing system, I'm not sure if Sam's hint applies, nor I know how to identify if there are packages still using llvm.eclass.

Best Regards,
Georgi
Top
krumpf
Apprentice
Apprentice
User avatar
Posts: 268
Joined: Sun Jul 15, 2018 11:21 pm

  • Quote

Post by krumpf » Fri Mar 14, 2025 3:49 pm

Here's the list of llvm/clang toolchain I know, some packages might not be installed depending on your USE flags. Just remember to add a = and package version such as "=llvm-core/llvm-20.1.0" for each one of them. Or I think (not sure) you can try with just the :20 suffix "llvm-core/clang:20". Portage will probably offer to downgrade (and not remove) those who are not slotted.

Code: Select all

llvm-core/clang
llvm-core/clang-common
llvm-core/clang-runtime
llvm-core/clang-toolchain-symlinks
llvm-core/lld
llvm-core/lld-toolchain-symlinks
llvm-core/llvm
llvm-core/llvm-common
llvm-core/llvm-toolchain-symlinks
llvm-core/llvmgold
llvm-runtimes/compiler-rt
llvm-runtimes/compiler-rt-sanitizers
llvm-runtimes/openmp
llvm-runtimes/libunwind
llvm-runtimes/libcxx
llvm-runtimes/libcxxabi
Dragon Princess Music Games Heroes and villains
Top
logrusx
Advocate
Advocate
User avatar
Posts: 3539
Joined: Thu Feb 22, 2018 2:29 pm

  • Quote

Post by logrusx » Fri Mar 14, 2025 4:29 pm

I recalled the thread that popped in my mind and found it, but it might not be that relevant as I thought:

viewtopic-t-1171400.html

Best Regards,
Georgi
Top
Post Reply

9 posts • Page 1 of 1

Return to “Portage & Programming”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic