Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Solved] Slot conflict while updating
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
mcnutty
Tux's lil' helper
Tux's lil' helper


Joined: 29 Dec 2009
Posts: 120

PostPosted: Thu Jun 17, 2021 12:55 am    Post subject: [Solved] Slot conflict while updating Reply with quote

I seem to have screwed up my system and now it won't update. From the error messages and knowledge about the tangled mess of python target use flags sprinkled through my zz-automask (and make.conf at one point), I suspect the problem has to do with conflicting python versions. I've tried commenting out any reference to python targets in my zz-automask file and also removing the PYTHON_TARGETS variable from my make.conf and rebuilding, but I'm still stuck.

Here is the result of trying to update:
Code:
>emerge -uaqDU --jobs=3 --with-bdeps=y --verbose-conflicts @world

!!! Multiple package instances within a single package slot have been pulled
!!! into the dependency graph, resulting in a slot conflict:

dev-libs/icu:0

  (dev-libs/icu-69.1:0/69.1::gentoo, installed) USE="-debug -doc -examples -static-libs" ABI_X86="32 (64) (-x32)" pulled in by
    >=dev-libs/icu-67.1:0/69.1= required by (dev-lang/spidermonkey-78.10.1:78/78::gentoo, installed) USE="jit lto -clang -debug -test" ABI_X86="(64)"
                       ^^^^^^^^                                                                                                                                                                                                                                                                           
    >=dev-libs/icu-51.2-r1:0/69.1=[abi_x86_32(-),abi_x86_64(-)] required by (dev-libs/libxml2-2.9.12-r3:2/2::gentoo, installed) USE="icu ipv6 python readline -debug -examples -lzma -static-libs -test -verify-sig" ABI_X86="32 (64) (-x32)" PYTHON_TARGETS="python3_9 -python3_8"
                          ^^^^^^^^                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 
    dev-libs/icu:0/69.1= required by (dev-qt/qtcore-5.15.2-r2:5/5.15.2::gentoo, installed) USE="icu -debug -old-kernel -systemd -test" ABI_X86="(64)"
                ^^^^^^^^                                                                                                                                                                                                                                                                                   
    dev-libs/icu:0/69.1= required by (dev-libs/libical-3.0.10:0/3::gentoo, installed) USE="berkdb glib introspection -doc -examples -static-libs -test -vala" ABI_X86="(64)"
                ^^^^^^^^                                                                                                                                                                                                                                                                                                                                                                   
    >=dev-libs/icu-51.2-r1:0/69.1=[abi_x86_32(-),abi_x86_64(-)] required by (media-libs/harfbuzz-2.8.1:0/0.9.18::gentoo, installed) USE="cairo glib graphite icu introspection truetype -debug -doc -static-libs -test" ABI_X86="32 (64) (-x32)"
                          ^^^^^^^^                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         
    dev-libs/icu:0/69.1=[abi_x86_64(-)] required by (dev-libs/re2-0.2021.04.01:0/9::gentoo, installed) USE="icu" ABI_X86="(64) -32 (-x32)"
                ^^^^^^^^                                                                                                                                                                                                                                 
    dev-libs/icu:0/69.1= required by (sys-fs/xfsprogs-5.10.0-r1:0/0::gentoo, installed) USE="icu nls (split-usr) -libedit" ABI_X86="(64)"
                ^^^^^^^^                                                                                                                                                                                                                                                   
    >=dev-libs/icu-69.1:= required by (www-client/chromium-91.0.4472.101:0/0::gentoo, ebuild scheduled for merge) USE="cups hangouts js-type-check (pic) proprietary-codecs suid system-ffmpeg system-icu (-component-build) -custom-cflags (-headless) -kerberos -official -pulseaudio -screencast (-selinux) -vaapi -wayland -widevine" ABI_X86="(64)" L10N="-am -ar -bg -bn -ca -cs -da -de -el -en-GB -es -es-419 -et -fa -fi -fil -fr -gu -he -hi -hr -hu -id -it -ja -kn -ko -lt -lv -ml -mr -ms -nb -nl -pl -pt-BR -pt-PT -ro -ru -sk -sl -sr -sv -sw -ta -te -th -tr -uk -vi -zh-CN -zh-TW"
    ^^             ^^^^                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             
    dev-libs/icu:0/69.1=[abi_x86_32(-),abi_x86_64(-)] required by (dev-db/sqlite-3.34.1:3/3::gentoo, installed) USE="icu readline secure-delete -debug -doc -static-libs -tcl -test -tools" ABI_X86="32 (64) (-x32)"
                ^^^^^^^^                                                                                                                                                                                                                                                                                                                                                                                                                                                                   
    dev-libs/icu:0/69.1= required by (sci-libs/libqalculate-3.18.0:0/21::gentoo, installed) USE="icu readline -curl -gnuplot" ABI_X86="(64)"
                ^^^^^^^^                                                                                                                                                                                                                                                       

  (dev-libs/icu-68.2:0/68.2::gentoo, ebuild scheduled for merge) USE="-debug -doc -examples -static-libs" ABI_X86="32 (64) (-x32)" pulled in by
    dev-libs/icu:0/68.2= required by (media-libs/libvisio-0.1.7:0/0::gentoo, installed) USE="-doc -static-libs -test -tools" ABI_X86="(64)"
                ^^^^^^^^                                                                                                                                                                                                                                                     
    >=dev-libs/icu-60.2:0/68.2= required by (net-libs/webkit-gtk-2.32.1:4/37::gentoo, installed) USE="X egl geolocation gstreamer introspection jpeg2k jumbo-build libnotify opengl (seccomp) spell (-aqua) -examples -gamepad -gles2-only -gnome-keyring -gtk-doc -systemd -test -wayland" ABI_X86="(64)"
                       ^^^^^^^^                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             

sys-devel/clang:11

  (sys-devel/clang-11.1.0:11/11.1::gentoo, ebuild scheduled for merge) USE="static-analyzer xml -debug -default-compiler-rt -default-libcxx -default-lld -doc -test" 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_9 -python3_8" pulled in by
    (no parents that aren't satisfied by other packages in this slot)

  (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="(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" pulled in by
    >=sys-devel/clang-6.0:11/11= required by (dev-util/kdevelop-5.6.2:5/56::gentoo, installed) USE="gdbui handbook plasma qmake -debug -hex -reviewboard -subversion -test" ABI_X86="(64)"
                         ^^^^^^^                                                                                                                                                                                                                                                                                                                                                                                           



emerge: there are no ebuilds to satisfy "~sys-devel/llvm-11.0.1:11/11=[-debug,abi_x86_64(-)]".
(dependency required by "sys-devel/clang-11.0.1::gentoo" [installed])
(dependency required by "dev-util/kdevelop-5.6.2::gentoo" [installed])
(dependency required by "@selected" [set])
(dependency required by "@world" [argument])


Here is my emerge --info:

Code:
Portage 3.0.18 (python 3.8.10-final-0, default/linux/amd64/17.1/desktop/plasma, gcc-10.3.0, glibc-2.33, 5.11.11-gentoo x86_64)
=================================================================
System uname: Linux-5.11.11-gentoo-x86_64-AMD_Ryzen_9_3900X_12-Core_Processor-with-glibc2.2.5
KiB Mem:    65836364 total,  57123296 free
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Wed, 16 Jun 2021 16:00:01 +0000
Head commit of repository gentoo: 432850387fab7d544046a33a5d49a72b662cb36b
Head commit of repository steam-overlay: c93a9167c9251ceceb6e7ee35cdf636cb59be6f4

sh bash 5.1_p8
ld GNU ld (Gentoo 2.35.2 p1) 2.35.2
app-shells/bash:          5.1_p8::gentoo
dev-java/java-config:     2.3.1::gentoo
dev-lang/perl:            5.32.1::gentoo
dev-lang/python:          2.7.18_p10::gentoo, 3.7.10_p3::gentoo, 3.8.10_p2::gentoo, 3.9.5_p2::gentoo
dev-lang/rust:            1.51.0-r2::gentoo
dev-util/cmake:           3.18.5::gentoo
sys-apps/baselayout:      2.7::gentoo
sys-apps/openrc:          0.42.1-r1::gentoo
sys-apps/sandbox:         2.24::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.69-r5::gentoo
sys-devel/automake:       1.16.3-r1::gentoo
sys-devel/binutils:       2.35.2::gentoo
sys-devel/gcc:            8.3.0-r3::gentoo, 10.3.0::gentoo
sys-devel/gcc-config:     2.4::gentoo
sys-devel/libtool:        2.4.6-r6::gentoo
sys-devel/make:           4.3::gentoo
sys-kernel/linux-headers: 5.11::gentoo (virtual/os-headers)
sys-libs/glibc:           2.33::gentoo
Repositories:

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

local
    location: /var/db/repos/local
    masters: gentoo

steam-overlay
    location: /usr/local/portage/steam-overlay
    sync-type: git
    sync-uri: https://github.com/anyc/steam-overlay.git
    masters: gentoo
    priority: 50

Installed sets: @steam
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="@FREE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /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 /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=native -O2 -pipe -fomit-frame-pointer"
DISTDIR="/var/cache/distfiles"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY 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"
FCFLAGS="-march=native -O2 -pipe -fomit-frame-pointer"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-march=native -O2 -pipe -fomit-frame-pointer"
GENTOO_MIRRORS="http://gentoo.osuosl.org/ http://www.gtlib.gatech.edu/pub/gentoo https://gentoo.osuosl.org/ http://mirrors.rit.edu/gentoo/ https://mirrors.rit.edu/gentoo/"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j16"
PKGDIR="/var/cache/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="/var/tmp"
USE="X a52 aac acl acpi activities alsa amd64 berkdb bluetooth branding bzip2 cairo cdda cdr cli colord crypt cups dbus declarative dri dts dvd dvdr elogind emboss encode exif flac fortran gdbm gif gpm gtk gui iconv icu ipv6 jpeg kde kipi kwallet lcms libglvnd libnotify libtirpc lm-sensors lto mad mng mp3 mp4 mpeg multilib ncurses nls nptl ogg opengl openmp pam pango pcre pdf phonon plasma png policykit ppds qml qt5 readline sdl seccomp semantic-desktop spell split-usr ssl startup-notification svg tcpd threads tiff truetype udev udisks unicode upower usb vorbis widgets wxwidgets x264 xattr xcb xml xv xvid zlib" ABI_X86="64" ADA_TARGET="gnat_2018" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache 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="mmx mmxext sse sse2" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="libinput" KERNEL="linux" L10N="en en-US" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-3 php7-4" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_9" PYTHON_TARGETS="python3_9" RUBY_TARGETS="ruby26" USERLAND="GNU" VIDEO_CARDS="nvidia" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq proto steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RUSTFLAGS


Any help is appreciated


Last edited by mcnutty on Wed Jun 23, 2021 9:56 pm; edited 1 time in total
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30905
Location: here

PostPosted: Thu Jun 17, 2021 7:39 am    Post subject: Reply with quote

It's not clear to me what is the problem but try to exclude kdevelop from the update.
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
Zucca
Moderator
Moderator


Joined: 14 Jun 2007
Posts: 3343
Location: Rasi, Finland

PostPosted: Thu Jun 17, 2021 12:07 pm    Post subject: Reply with quote

It may be that few icus with slot are in world.
Run
Code:
grep icu /var/lib/portage/world
to see it. Then you may run
Code:
emerge --deselect icu:<SLOT>
to remove such entries from world.
Also last time I had icu slot conflicts I used --backtrack=10000. It helped a lot to solve the rest of the conflicts.
_________________
..: Zucca :..
Gentoo IRC channels reside on Libera.Chat.
--
Quote:
I am NaN! I am a man!
Back to top
View user's profile Send private message
mcnutty
Tux's lil' helper
Tux's lil' helper


Joined: 29 Dec 2009
Posts: 120

PostPosted: Thu Jun 17, 2021 3:05 pm    Post subject: Reply with quote

Thanks for the responses :)

@Zucca
Strangely, icu is not in /var/lib/portage/world. However, it appears that only version 69.1 is installed.
Code:
# equery y icu
Keywords for dev-libs/icu:
        |                             |   u        | 
        | a   a     p s   a   r       |   n        | 
        | m   r h   p p   l i i m m s | e u s      | r
        | d a m p p c a x p a s 6 i 3 | a s l      | e
        | 6 r 6 p p 6 r 8 h 6 c 8 p 9 | p e o      | p
        | 4 m 4 a c 4 c 6 a 4 v k s 0 | i d t      | o
--------+-----------------------------+------------+-------
   68.2 | + + + + + + + + ~ ~ ~ ~ ~ ~ | 7 o 0/68.2 | gentoo
--------+-----------------------------+------------+-------
[I]69.1 | + + + ~ + + + + ~ ~ ~ ~ ~ ~ | 7 o 0/69.1 | gentoo


@fedeliallalinea
I'm not exactly sure how to exclude kdevelop from the update. I tried running:
Code:
emerge -uaqDU --jobs=3 --with-bdeps=y --exclude kdevelop --verbose-conflicts @world

But I get the same (or very similar) error message.
Back to top
View user's profile Send private message
asturm
Developer
Developer


Joined: 05 Apr 2007
Posts: 8935

PostPosted: Thu Jun 17, 2021 3:14 pm    Post subject: Reply with quote

Real problem: sys-devel/clang-11.0.1 is installed but should be slated for upgrade to 11.1.0.
Code:
emerge: there are no ebuilds to satisfy "~sys-devel/llvm-11.0.1:11/11=[-debug,abi_x86_64(-)]".
(dependency required by "sys-devel/clang-11.0.1::gentoo" [installed])
(dependency required by "dev-util/kdevelop-5.6.2::gentoo" [installed])
(dependency required by "@selected" [set])
(dependency required by "@world" [argument])


Needs more --backtrack, not less (don't --exclude).
Back to top
View user's profile Send private message
mcnutty
Tux's lil' helper
Tux's lil' helper


Joined: 29 Dec 2009
Posts: 120

PostPosted: Thu Jun 17, 2021 4:28 pm    Post subject: Reply with quote

@asturm

Still same problem with backtrack=1000.

The clang errors are why I thought it might be a python issue.

Code:
(sys-devel/clang-11.1.0:11/11.1::gentoo, ebuild scheduled for merge) USE="static-analyzer xml -debug -default-compiler-rt -default-libcxx -default-lld -doc -test" 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_9 -python3_8" pulled in by
    (no parents that aren't satisfied by other packages in this slot)

  (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="(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" pulled in by
    >=sys-devel/clang-6.0:11/11= required by (dev-util/kdevelop-5.6.2:5/56::gentoo, installed) USE="gdbui handbook plasma qmake -debug -hex -reviewboard -subversion -test" ABI_X86="(64)"


The first clang line says PYTHON_SINGLE_TARGET="python3_9 -python3_8" while the second one says PYTHON_SINGLE_TARGET="python3_8 -python3_7 -python3_9"

I'm not sure exactly what the error message is saying, but if it is saying that it needs clang with the single python target of python3.9 for something, but it needs it with python3.8 for something else, both can't be true at the same time.
Back to top
View user's profile Send private message
OldTango
l33t
l33t


Joined: 21 Feb 2004
Posts: 718

PostPosted: Thu Jun 17, 2021 6:58 pm    Post subject: Reply with quote

mcnutty wrote:
@asturm

Code:
(sys-devel/clang-11.1.0:11/11.1::gentoo, ebuild scheduled for merge) USE="static-analyzer xml -debug -default-compiler-rt -default-libcxx -default-lld -doc -test" 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_9 -python3_8" pulled in by
    (no parents that aren't satisfied by other packages in this slot)

  (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="(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" pulled in by
    >=sys-devel/clang-6.0:11/11= required by (dev-util/kdevelop-5.6.2:5/56::gentoo, installed) USE="gdbui handbook plasma qmake -debug -hex -reviewboard -subversion -test" ABI_X86="(64)"


The first clang line says PYTHON_SINGLE_TARGET="python3_9 -python3_8" while the second one says PYTHON_SINGLE_TARGET="python3_8 -python3_7 -python3_9"

I'm not sure exactly what the error message is saying, but if it is saying that it needs clang with the single python target of python3.9 for something, but it needs it with python3.8 for something else, both can't be true at the same time.


What is says is:
PYTHON_SINGLE_TARGET="python3_9 -python3_8 is necessary for (sys-devel/clang-11.1.0) the newer package upgrade
and
PYTHON_SINGLE_TARGET="python3_8 -python3_7 -python3_9" is necessary for (sys-devel/clang-11.0.1)the older package installed

NOTE the version difference.

Did you overlook the NEWS article concerning the upgrade from python 3.8 to 3.9

What happens if you add
Code:

*/* PYTHON_TARGETS: -* python3_9
*/* PYTHON_SINGLE_TARGET: -* python3_9
to /etc/portage/package.use then update
Code:
emerge -avuND --with-bdeps=y --backtrack=500 @world


The News Article wrote:

Forcing the upgrade
===================
To force the upgrade earlier, explicitly set Python 3.9 targets:

*/* PYTHON_TARGETS: -* python3_9
*/* PYTHON_SINGLE_TARGET: -* python3_9

However, it is important to remember to remove this after the defaults
change, as it will interfere with the automatic switch to the next
Python version in the future.

Safer upgrade procedure
=======================
A safer approach is to add Python 3.9 support to your system first,
and only then remove Python 3.8. However, note that involves two
rebuilds of all the affected packages, so it will take noticeably
longer.

First, enable both Python 3.8 and Python 3.9, and then run the upgrade
commands:

*/* PYTHON_TARGETS: -* python3_8 python3_9
*/* PYTHON_SINGLE_TARGET: -* python3_8

Then switch PYTHON_SINGLE_TARGET and run a second batch of upgrades:

*/* PYTHON_TARGETS: -* python3_8 python3_9
*/* PYTHON_SINGLE_TARGET: -* python3_9

Finally, switch to the final version and upgrade:

*/* PYTHON_TARGETS: -* python3_9
*/* PYTHON_SINGLE_TARGET: -* python3_9

You may wish to remove the target overrides after the defaults switch.
Alternatively, you can keep them to block the next automatic upgrade
to Python 3.10, and upgrade manually then.


Upgrade commands
================
The Python 3.8 cleanup requires that Python 3.8 is removed from complete
dependency trees in batch. If some of the installed packages using
an older Python version are not triaged for the upgrade, the package
manager will throw dependency conflicts. This makes it important that
the upgrade is carried via a --deep --changed-use @world upgrade,
as well as that any stray packages are removed prior to it, e.g.:

emerge --depclean
emerge -1vUD @world
emerge --depclean


Best Tango..... :)
Back to top
View user's profile Send private message
mcnutty
Tux's lil' helper
Tux's lil' helper


Joined: 29 Dec 2009
Posts: 120

PostPosted: Thu Jun 17, 2021 7:21 pm    Post subject: Reply with quote

@OldTango
Thanks for the suggestion. I didn't miss the news item and I thought I had performed the safe procedure, but apparently not (or at least I didn't follow the steps properly). It's possible I started the procedure, it took a long time and then I forgot about the second or third rebuilds.

Adding the lines to a file in /etc/portage/package.use still leads to the same error.
Back to top
View user's profile Send private message
OldTango
l33t
l33t


Joined: 21 Feb 2004
Posts: 718

PostPosted: Thu Jun 17, 2021 8:27 pm    Post subject: Reply with quote

If you started the safe upgrade option, but didn't complete it, continuing from where you left off may resolve the problem. You may even have to start from the beginning. On one of my systems the updates where automatic because I had never set PYTHON_TARGETS or PYTHON_SINGLE_TARGET in any config file on that system. My other system required me to take the safe upgrade option after I made sure to remove any PYTHON_TARGETS or PYTHON_SINGLE_TARGET I had set in the past. That upgrade took quit a while as it rebuilt like 384 packages twice, but it did clean up the system so I could safely remove python-3.8.

I started by removing all PYTHON_TARGETS form all configs then using only my /etc/portage/package.use file to set the PYTHON_TARGETS per the safe upgrade options step by step completing each process before moving on to the next. So unless you have some package installed on your system that requires an older version of python, the safe upgrade option should work even if its not ideal.

What's the output of
Code:
eselect python list


Best Tango..... :)
Back to top
View user's profile Send private message
mcnutty
Tux's lil' helper
Tux's lil' helper


Joined: 29 Dec 2009
Posts: 120

PostPosted: Thu Jun 17, 2021 8:38 pm    Post subject: Reply with quote

Code:
# eselect python list
Available Python interpreters, in order of preference:
  [1]   python3.9
  [2]   python3.8


I tried starting over by running emerge --depclean, but that threw an error. So, I unmerged kdevelop (emerge -C kdevelop), and then had to unmerge boost because of a similar error. This has at least enabled me to start the update process. If it completes properly, I'll try running the safe python upgrade procedure again and reinstall kdevelop and boost to see if that fixes the issue. I'll report back when I know if it works or not.
Back to top
View user's profile Send private message
mcnutty
Tux's lil' helper
Tux's lil' helper


Joined: 29 Dec 2009
Posts: 120

PostPosted: Thu Jun 17, 2021 9:54 pm    Post subject: Reply with quote

Making some progress, but PyQt5 fails to build while updating.

I can post the full error message, but I'm pretty sure these are the relevant lines:

Code:
Traceback (most recent call last):
  File "/usr/lib/python-exec/python3.8/sip5", line 33, in <module>
    sys.exit(load_entry_point('sip==5.5.0', 'console_scripts', 'sip5')())
  File "/usr/lib/python-exec/python3.8/sip5", line 25, in importlib_load_entry_point
    return next(matches).load()
StopIteration
Error: '/usr/bin/sip5 -V' did not generate any output.


I found this thread, but it doesn't seem to completely resolve the issue.

sip5 is installed by portage.

Running /usr/bin/sip5 -V produces output when run on the command line.
So does running /usr/lib/python-exec/python3.9/sip5 -V

However, running /user/lib/python-exec/python3.8/sip5 -V throws the same traceback exception as above.
Back to top
View user's profile Send private message
OldTango
l33t
l33t


Joined: 21 Feb 2004
Posts: 718

PostPosted: Fri Jun 18, 2021 1:29 am    Post subject: Reply with quote

I am not using PyQt5 on my system so I can't say for sure what may be going on here.
What is the output of emerge -pv sip sip:5 ?

What PYTHON_TARGETS if any do you have set in /usr/portage/package.use?

What is the exact emerge command you're using?
Have you tried to run revdep-rebuild to see if that helps?

Best Tango..... :)
Back to top
View user's profile Send private message
mcnutty
Tux's lil' helper
Tux's lil' helper


Joined: 29 Dec 2009
Posts: 120

PostPosted: Fri Jun 18, 2021 5:24 pm    Post subject: Reply with quote

Here's emerge sip:
Code:
# emerge -pv sip sip:5

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

Calculating dependencies... done!
[ebuild   R   ~] dev-python/sip-5.5.0-r1:5::gentoo  USE="-doc" PYTHON_TARGETS="python3_8 python3_9 -python3_10" 0 KiB

Total: 1 package (1 reinstall), Size of downloads: 0 KiB


And everything pertaining to PYTHON_TARGETS in /etc/portage/package.use (including commented entries):
Code:
# cat /etc/portage/package.use/* | grep "PYTHON_TARGET"
*/* PYTHON_TARGETS: -* python3_8 python3_9
dev-libs/boost PYTHON_TARGETS: python3_7
sys-devel/clang PYTHON_TARGETS: -python3_8 python3_9
# app-pda/libplist PYTHON_TARGETS: -python3_7 -python3_8
dev-python/matplotlib -wxwidgets PYTHON_TARGETS: python2_7 python3_7
dev-python/cycler PYTHON_TARGETS: python3_7
# dev-python/PyQt5 PYTHON_TARGETS: python3_9 -python3_8


Typically this is the command I use to update, but I have also tried increasing the backtracking:
Code:
emerge -uaqDU --jobs=3 --with-bdeps=y @world


Unfortunately, revdep-rebuild says there is nothing to emerge.
Back to top
View user's profile Send private message
OldTango
l33t
l33t


Joined: 21 Feb 2004
Posts: 718

PostPosted: Sat Jun 19, 2021 10:38 pm    Post subject: Reply with quote

Looks like the python updates did not go well for you, causing some portage confusion/conflicts.

Based on your earlier post you only have python-3.8 and python-3.9 installed on your system so why would you have anything set to python-3.7?

mcnutty wrote:
And everything pertaining to PYTHON_TARGETS in /etc/portage/package.use (including commented entries):
Code:

# cat /etc/portage/package.use/* | grep "PYTHON_TARGET"
*/* PYTHON_TARGETS: -* python3_8 python3_9
dev-libs/boost PYTHON_TARGETS: python3_7
sys-devel/clang PYTHON_TARGETS: -python3_8 python3_9
# app-pda/libplist PYTHON_TARGETS: -python3_7 -python3_8
dev-python/matplotlib -wxwidgets PYTHON_TARGETS: python2_7 python3_7
dev-python/cycler PYTHON_TARGETS: python3_7
# dev-python/PyQt5 PYTHON_TARGETS: python3_9 -python3_8


If it were me, I would remove everything except
Code:

*/* PYTHON_TARGETS: -* python3_8 python3_9
*/* PYTHON_SINGLE_TARGET: -* python3_9
You need the PYTHON_SINGLE_TARGET in there.

I would update with this as a minimum
Code:

emerge -avuND --jobs=3 --with-bdeps=y --backtrack=500 @world
This should hopefully get you going in the right direction.

Assuming all goes well, your still not finished. You would need to change the PYTHON_TARGETS in in your package.use file to
Code:

*/* PYTHON_TARGETS: -* python3_9
*/* PYTHON_SINGLE_TARGET: -* python3_9
and run the emerge command one more time.

After that --deepclean should complete without errors, which should clean python-3.8 from your system.

Best Tango..... :)
Back to top
View user's profile Send private message
mcnutty
Tux's lil' helper
Tux's lil' helper


Joined: 29 Dec 2009
Posts: 120

PostPosted: Mon Jun 21, 2021 12:35 am    Post subject: Reply with quote

Removing the cruft from /etc/portage/package.use pulled in some new packages to be (re)emerged, but it still fails on PyQt5 with the same error.
Back to top
View user's profile Send private message
OldTango
l33t
l33t


Joined: 21 Feb 2004
Posts: 718

PostPosted: Mon Jun 21, 2021 9:44 pm    Post subject: Reply with quote

mcnutty wrote:
Removing the cruft from /etc/portage/package.use pulled in some new packages to be (re)emerged, but it still fails on PyQt5 with the same error.
What's the output of
Code:
emerge -pv PyQt5


I just noticed that according to your above post you have
mcnutty wrote:
Calculating dependencies... done!
[ebuild R ~] dev-python/sip-5.5.0-r1:5::gentoo USE="-doc" PYTHON_TARGETS="python3_8 python3_9 -python3_10" 0 KiB]
Which is no longer in portage. Try downgrading sip or you could just remove it and let portage resolve it for you.
Code:
emerge -av =dev-python/sip-4.19.25


I can be helpful some times to add the --keep-going option to your emerge command.
Code:
emerge -avuND --jobs=3 --with-bdeps=y --backtrack=500 --keep-going @world


Best Tango..... :)
Back to top
View user's profile Send private message
mcnutty
Tux's lil' helper
Tux's lil' helper


Joined: 29 Dec 2009
Posts: 120

PostPosted: Tue Jun 22, 2021 8:23 pm    Post subject: Reply with quote

Downgrading sip to 4.19 seemed to work for PyQt5. However, several packages still fail. Thunderbird and Firefox fail because they want llvm 12 (for lto I think), but only version 11 is installed (12 is keyword masked). However, boost fails for an unknown reason to me. The full error log is in this pastbin.
Back to top
View user's profile Send private message
OldTango
l33t
l33t


Joined: 21 Feb 2004
Posts: 718

PostPosted: Wed Jun 23, 2021 1:22 am    Post subject: Reply with quote

mcnutty wrote:
Downgrading sip to 4.19 seemed to work for PyQt5. However, several packages still fail. Thunderbird and Firefox fail because they want llvm 12 (for lto I think), but only version 11 is installed (12 is keyword masked). However, boost fails for an unknown reason to me. The full error log is in this pastbin.

Your system is having troubles solving package dependencies for some reason. Your PyQt5 problem became obvious to me after I ran a pretend emerge on my own system.
Code:

~ $ USE="gui widgets" emerge -pv PyQt5

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

Calculating dependencies... done!
[ebuild  N     ] dev-python/PyQt5-sip-4.19.25:0/12::gentoo  PYTHON_TARGETS="python3_9 (-python3_10) -python3_8" 1,032 KiB
[ebuild  N     ] dev-python/sip-4.19.25:0/12::gentoo  USE="-doc" PYTHON_TARGETS="python3_9 (-python3_10) -python3_8" 0 KiB
[ebuild  N     ] dev-python/PyQt5-5.15.2::gentoo  USE="dbus gui opengl ssl svg widgets -bluetooth -debug -declarative -designer -examples -gles2-only -help -location -multimedia -network -networkauth -positioning -printsupport -sensors -serialport -sql -testlib -webchannel -webkit -websockets -x11extras -xmlpatterns" PYTHON_TARGETS="python3_9 -python3_8" 3,189 KiB
You can see that dev-python/PyQt5-sip and dev-python/sip are dependencies of dev-python/PyQt5, You had dev-python/sip-5.5.0-r1 installed even though not in portage any longer it still solved one of the dependencies of PyQt5. Removing it allowed PyQt5 to build.

Its possible you have more issues like the one above and may need to fix them first.

A lot of packages depend on boost and the errors in your build log don't hint at anything I understand. Someone else may have some insight into it. I have had boost fail on my system a couple of times during major updates but it always sorted itself out in the end. Sometimes packages fail during emerge on major package rebuilds that's when I use
Code:
emerge --resume
or
emerge --resume --skipfirst
to get past the failing package and after the system finishes, I get back to the failing package(s) later.

You should sink your portage because llvm 12 is ready.

You could pastbin the output of
Code:
emerge -pvuND --with-bdeps=y --backtrack=100 @world
We could see what packages and how many need to be emerged.

Best Tango..... :)
Back to top
View user's profile Send private message
mcnutty
Tux's lil' helper
Tux's lil' helper


Joined: 29 Dec 2009
Posts: 120

PostPosted: Wed Jun 23, 2021 4:05 pm    Post subject: Reply with quote

It turns out the mpi use flag was causing problems. Disabling it allowed boost to complete building. I'd prefer to have it set, but it's better for me that boost is installed than having the extra functionality, at least for now. Hopefully, everything else will build now.
Back to top
View user's profile Send private message
mcnutty
Tux's lil' helper
Tux's lil' helper


Joined: 29 Dec 2009
Posts: 120

PostPosted: Wed Jun 23, 2021 9:55 pm    Post subject: Reply with quote

Everything has finally emerged and appears to be working again (except boost with mpi enabled). Thanks for all the help :D
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum