During the qmerge of ilmbase the following tracedump is produced: make[2]: Leaving directory '/var/tmp/portage/media-libs/ilmbase-2.3.0/work/ilmbase-2.3.0-abi_x86_64.amd64' make[1]: Leaving directory '/var/tmp/portage/media-libs/ilmbase-2.3.0/work/ilmbase-2.3.0-abi_x86_64.amd64' * Final size of build directory: 6728 KiB (6.5 MiB) * Final size of installed tree: 1324 KiB (1.2 MiB) Traceback (most recent call last): File "/usr/lib64/python3.6/site-packages/portage/dbapi/_MergeProcess.py", line 234, in _spawn prev_mtimes=self.prev_mtimes, counter=counter) File "/usr/lib64/python3.6/site-packages/portage/dbapi/vartree.py", line 1677, in wrapper return f(self, *args, **kwargs) File "/usr/lib64/python3.6/site-packages/portage/dbapi/vartree.py", line 5176, in merge counter=counter) File "/usr/lib64/python3.6/site-packages/portage/dbapi/vartree.py", line 4417, in treewalk preserve_paths=preserve_paths) File "/usr/lib64/python3.6/site-packages/portage/dbapi/vartree.py", line 1677, in wrapper return f(self, *args, **kwargs) File "/usr/lib64/python3.6/site-packages/portage/dbapi/vartree.py", line 2100, in unmerge preserve_paths=preserve_paths) File "/usr/lib64/python3.6/site-packages/portage/dbapi/vartree.py", line 1939, in _prune_plib_registry unmerge_no_replacement) File "/usr/lib64/python3.6/site-packages/portage/dbapi/vartree.py", line 3292, in _find_unused_preserved_libs for c in self.vartree.dbapi._linkmap.findConsumers(f): File "/usr/lib64/python3.6/site-packages/portage/util/_dyn_libs/LinkageMapELF.py", line 798, in findConsumers raise KeyError("%s (%s) not in object list" % (obj_key, obj)) KeyError: '<portage.util._dyn_libs.LinkageMapELF.LinkageMapELF._ObjectKey object at 0x7fed2859c7f8> (/usr/lib64/libIlmThread-2_2.so.12.0.0) not in object list' * * The following package has failed to build, install, or execute postinst: * * (media-libs/ilmbase-2.3.0:0/24::gentoo, ebuild scheduled for merge), Log file: * '/var/log/portage/media-libs:ilmbase-2.3.0:20190417-084453.log' * These files are present: $ ls -l /usr/lib64/libIlm* lrwxrwxrwx 1 root root 23 31 jan 2018 /usr/lib64/libIlmImf-2_2.so.22 -> libIlmImf-2_2.so.22.0.0 -rwxr-xr-x 1 root root 2935224 31 jan 2018 /usr/lib64/libIlmImf-2_2.so.22.0.0 lrwxrwxrwx 1 root root 23 13 apr 19:27 /usr/lib64/libIlmImf-2_3.so.24 -> libIlmImf-2_3.so.24.0.0 -rwxr-xr-x 1 root root 2955688 13 apr 19:27 /usr/lib64/libIlmImf-2_3.so.24.0.0 lrwxrwxrwx 1 root root 23 13 apr 19:27 /usr/lib64/libIlmImf.so -> libIlmImf-2_3.so.24.0.0 lrwxrwxrwx 1 root root 27 13 apr 19:27 /usr/lib64/libIlmImfUtil-2_3.so.24 -> libIlmImfUtil-2_3.so.24.0.0 -rwxr-xr-x 1 root root 151520 13 apr 19:27 /usr/lib64/libIlmImfUtil-2_3.so.24.0.0 lrwxrwxrwx 1 root root 27 13 apr 19:27 /usr/lib64/libIlmImfUtil.so -> libIlmImfUtil-2_3.so.24.0.0 lrwxrwxrwx 1 root root 26 31 jan 2018 /usr/lib64/libIlmThread-2_2.so.12 -> libIlmThread-2_2.so.12.0.0 -rwxr-xr-x 1 root root 27056 31 jan 2018 /usr/lib64/libIlmThread-2_2.so.12.0.0 lrwxrwxrwx 1 root root 26 17 apr 10:45 /usr/lib64/libIlmThread-2_3.so.24 -> libIlmThread-2_3.so.24.0.0 -rwxr-xr-x 1 root root 31080 17 apr 10:45 /usr/lib64/libIlmThread-2_3.so.24.0.0 lrwxrwxrwx 1 root root 26 17 apr 10:45 /usr/lib64/libIlmThread.so -> libIlmThread-2_3.so.24.0.0
removing the mentioned (old file) didn't help.
Other (re)emerges do work though. $ eselect python list Available Python interpreters, in order of preference: [1] python3.6 [2] python2.7 [3] python2.7 [4] python3.5 (fallback) [5] jython2.7 (fallback)
[I] sys-apps/portage Available versions: 2.3.40-r1 2.3.49 2.3.51-r1 2.3.62 ~2.3.62-r1 ~2.3.63 **9999 {build doc epydoc gentoo-dev +ipc +native-extensions +rsync-verify selinux xattr KERNEL="linux" PYTHON_TARGETS="pypy python2_7 python3_5 python3_6 python3_7"} Installed versions: 2.3.62(11:24:03 17-04-19)(ipc native-extensions rsync-verify xattr -build -doc -epydoc -gentoo-dev -selinux KERNEL="linux" PYTHON_TARGETS="python2_7 python3_5 python3_6 -pypy -python3_7") Homepage: https://wiki.gentoo.org/wiki/Project:Portage Description: Portage is the package management and distribution system for Gentoo Removing stale ilmbase files make ilmbase work again.
I suspect this is fixed in 2.5.2 which is cmake-based and properly split by upstream.
The LinkageMapELF KeyError looks like a portage bug, which we can consider as a duplicate of bug 521968 since the traceback is practically identical.