https://wiki.gentoo.org/wiki/Upgrading_GCC only mentions revdep-rebuild --library 'libstdc++.so.6' -- --exclude gcc usage, but, when migrating from gcc6 to gcc7, a plain "revdep-rebuild" run is needed: # revdep-rebuild -p -v * This is the new python coded version * Please report any bugs found using it. * The original revdep-rebuild script is installed as revdep-rebuild.sh * Please file bugs at: https://bugs.gentoo.org/ * Found a valid cache, skipping collecting phase * Scanning files * Checking dynamic linking consistency * Broken files that require: libgfortran.so.3 (64 bits) * /usr/lib64/R/lib/libRlapack.so * /usr/lib64/blas/reference/libblas.so.0.0.0 * /usr/lib64/lapack/reference/liblapack.so.0.0.0 * /usr/lib64/libmpi_usempi_ignore_tkr.so.20.1.0 * /usr/lib64/libmpi_usempif08.so.20.1.0 * Assign files to packages * /usr/lib64/R/lib/libRlapack.so -> dev-lang/R-3.4.1 * /usr/lib64/blas/reference/libblas.so.0.0.0 -> sci-libs/blas-reference-20070226-r4 * /usr/lib64/lapack/reference/liblapack.so.0.0.0 -> sci-libs/lapack-reference-3.2.1-r4 * /usr/lib64/libmpi_usempi_ignore_tkr.so.20.1.0 -> sys-cluster/openmpi-2.0.2 * /usr/lib64/libmpi_usempif08.so.20.1.0 -> sys-cluster/openmpi-2.0.2 emerge --pretend --verbose --oneshot --complete-graph=y sci-libs/blas-reference:0 sci-libs/lapack-reference:0 dev-lang/R:0 sys-cluster/openmpi:0 These are the packages that would be merged, in order: Calculating dependencies... done! [ebuild R ] sci-libs/blas-reference-20070226-r4::gentoo USE="-doc" 0 KiB [ebuild R ] sci-libs/lapack-reference-3.2.1-r4::gentoo USE="-doc" 0 KiB [ebuild R ] sys-cluster/openmpi-2.0.2::gentoo USE="cxx fortran numa romio threads -cma (-cuda) -heterogeneous -ipv6 -java -mpi-threads" ABI_X86="(64) -32 (-x32)" OPENMPI_FABRICS="(-knem) (-ofed) (-psm)" OPENMPI_OFED_FEATURES="(-connectx-xrc) (-control-hdr-padding) (-dynamic-sl) (-failover) (-rdmacm) (-udcm)" OPENMPI_RM="(-pbs) (-slurm)" 0 KiB [ebuild R ] dev-lang/R-3.4.1::gentoo USE="X cairo jpeg nls openmp png readline tiff tk -doc -icu -java -lapack -minimal -perl (-prefix) -profile -static-libs" 0 KiB Total: 4 packages (4 reinstalls), Size of downloads: 0 KiB I would then add a note to the documentation page (probably it would even be safer to simply suggest people to run "revdep-rebuild" in general after any gcc upgrade (i.e show it under https://wiki.gentoo.org/wiki/Upgrading_GCC#Short_version section) Thanks
*** Bug 659092 has been marked as a duplicate of this bug. ***
https://wiki.gentoo.org/index.php?title=Upgrading_GCC&type=revision&diff=723826&oldid=712032