After installing sys-devel/gcc-7.2.0, whenever I run revdep-rebuild (or the bash version revdep-rebuild.sh) I get: # revdep-rebuild -p -i * 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/ * Collecting system binaries and libraries * Checking dynamic linking consistency * Assign files to packages !!! Broken orphaned files: No installed package was found for the following: * /usr/lib64/gcc/x86_64-pc-linux-gnu/7.2.0/plugin/libcp1plugin.la emerge --pretend --oneshot --complete-graph=y sys-devel/gcc:7.2.0 These are the packages that would be merged, in order: Calculating dependencies... done! [ebuild R ~] sys-devel/gcc-7.2.0 # revdep-rebuild.sh -p -i Password: * Configuring search environment for revdep-rebuild * Checking reverse dependencies * Packages containing binaries and libraries broken by a package update * will be emerged. * Collecting system binaries and libraries * Generated new 1_files.rr * Collecting complete LD_LIBRARY_PATH * Generated new 2_ldpath.rr * Checking dynamic linking consistency [ 24% ] * broken /usr/lib64/gcc/x86_64-pc-linux-gnu/7.2.0/plugin/libcp1plugin.la (requires /usr/lib/../lib64/libstdc++.la) [ 97% ] * broken /usr/lib/gcc/x86_64-pc-linux-gnu/7.2.0/plugin/libcp1plugin.la (requires /usr/lib/../lib64/libstdc++.la) [ 100% ] * Generated new 3_broken.rr * Assigning files to packages * /usr/lib64/gcc/x86_64-pc-linux-gnu/7.2.0/plugin/libcp1plugin.la -> sys-devel/gcc * /usr/lib/gcc/x86_64-pc-linux-gnu/7.2.0/plugin/libcp1plugin.la -> sys-devel/gcc * Generated new 4_raw.rr and 4_owners.rr * Cleaning list of packages to rebuild * Generated new 4_pkgs.rr * Assigning packages to ebuilds * Generated new 4_ebuilds.rr * Evaluating package order * Generated new 5_order.rr * All prepared. Starting rebuild emerge --complete-graph=y --oneshot --keep-going y --with-bdeps y --pretend sys-devel/gcc:7.2.0 These are the packages that would be merged, in order: Calculating dependencies... done! [ebuild R ~] sys-devel/gcc-7.2.0 * Now you can remove -p (or --pretend) from arguments and re-run revdep-rebuild. Allowing the rebuild to proceed yields no solution and the following revdep-rebuild asks again to rebuild sys-devel/gcc-7.2.0. # emerge --info =sys-devel/gcc-7.2.0 emerge --info =sys-devel/gcc-7.2.0 Portage 2.3.13 (python 3.5.4-final-0, default/linux/amd64/13.0/desktop/plasma/systemd, gcc-7.2.0, glibc-2.25-r9, 4.12.12-gentoo x86_64) ================================================================= System Settings ================================================================= System uname: Linux-4.12.12-gentoo-x86_64-Intel-R-_Core-TM-_i7-2600_CPU_@_3.40GHz-with-gentoo-2.4.1 KiB Mem: 15864960 total, 5430892 free KiB Swap: 8171516 total, 8135760 free Timestamp of repository gentoo: Mon, 20 Nov 2017 07:45:01 +0000 Head commit of repository gentoo: 771285a9b67a87ff1c83833027aca305680700e0 sh dash 0.5.9.1-r3 ld GNU gold (Gentoo 2.28.1 p1.0 2.28.1) 1.14 distcc 3.2rc1 x86_64-pc-linux-gnu [enabled] ccache version 3.3.4 [disabled] app-shells/bash: 4.3_p48-r1::gentoo dev-java/java-config: 2.2.0-r3::gentoo dev-lang/perl: 5.26.1-r1::gentoo dev-lang/python: 2.7.14::gentoo, 3.5.4::gentoo dev-util/ccache: 3.3.4-r1::gentoo dev-util/cmake: 3.8.2::gentoo dev-util/pkgconfig: 0.29.2::gentoo sys-apps/baselayout: 2.4.1-r2::gentoo sys-apps/sandbox: 2.10-r4::gentoo sys-devel/autoconf: 2.13::gentoo, 2.69::gentoo sys-devel/automake: 1.15-r2::gentoo sys-devel/binutils: 2.28.1::gentoo sys-devel/gcc: 6.4.0::gentoo, 7.2.0::gentoo sys-devel/gcc-config: 1.8-r1::gentoo sys-devel/libtool: 2.4.6-r3::gentoo sys-devel/make: 4.2.1::gentoo sys-kernel/linux-headers: 4.10::gentoo (virtual/os-headers) sys-libs/glibc: 2.25-r9::gentoo Repositories: gentoo location: /usr/portage sync-type: rsync sync-uri: rsync://rsync.europe.gentoo.org/gentoo-portage priority: -1000 sync-rsync-extra-opts: x-portage location: /usr/local/portage masters: gentoo priority: 0 ACCEPT_KEYWORDS="amd64" ACCEPT_LICENSE="* -@EULA" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -pipe -march=sandybridge -msahf --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=8192 -flto=8 -fuse-linker-plugin" 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/php/apache2-php7.0/ext-active/ /etc/php/cgi-php7.0/ext-active/ /etc/php/cli-php7.0/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo" CXXFLAGS="-O2 -pipe -march=sandybridge -msahf --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=8192 -flto=8 -fuse-linker-plugin" DISTDIR="/usr/portage/distfiles" EMERGE_DEFAULT_OPTS="--keep-going y --with-bdeps y" FCFLAGS="-O2 -pipe" FEATURES="assume-digests binpkg-logs cgroup compress-build-logs config-protect-if-modified distcc distlocks ebuild-locks ipc-sandbox merge-sync multilib-strict news parallel-fetch protect-owned sandbox sfperms split-elog split-log strict test unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr" FFLAGS="-O2 -pipe" GENTOO_MIRRORS="http://tux.rainside.sk/gentoo/ http://mirror.leaseweb.com/gentoo/ http://ftp.uni-erlangen.de/pub/mirrors/gentoo http://ftp.spline.inf.fu-berlin.de/mirrors/gentoo/" LANG="it_IT.UTF-8" LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu -Wl,--sort-common -flto=8 -fuse-linker-plugin" MAKEOPTS="-j11 -l8" PKGDIR="/usr/portage/packages" 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 aalib acl acpi activities adns alsa amd64 ao audiofile bash-completion bluetooth branding bzip2 cairo caps cdda cddb cdparanoia cdr cli cracklib crypt css cups curl cxx dbus declarative dga djvu dri dts dvd dvdr emboss encode exif expat fbcon ffmpeg fftw firefox flac fontconfig foomaticdb fortran ftp gd gdbm geoip gif gimp glamor gmp gnutls gphoto2 gpm graphviz gtk handbook iconv icu idn imagemagick imlib ipv6 java javascript jbig jpeg jpeg2k kde kipi kwallet lame lcms libass libcaca libnotify libsamplerate lm_sensors lua lzma lzo mad mmap mng modules mp3 mp4 mpeg mplayer multilib musicbrainz ncurses nls nptl nsplugin offensive ogg openal openexr opengl openmp pam pango pcre pdf phonon plasma png policykit postscript ppds pulseaudio qml qt3support qt4 qt5 rdesktop readline recode samba sctp sdl seccomp session sndfile sockets speex spell sqlite ssl startup-notification subversion svg symlink syslog systemd sysvipc taglib theora threads tidy tiff truetype udev udisks unicode upower usb vaapi vcd vim-syntax vnc vorbis wayland widgets win32codecs wmf wxwidgets x264 xattr xcb xcomposite xine xinerama xml xpm xscreensaver xv xvid yahoo zlib" ABI_X86="64" ALSA_CARDS="hda-intel virmidi" 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="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="kodak ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" CURL_SSL="gnutls" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="pc" INPUT_DEVICES="libinput" KERNEL="linux" L10N="it en" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="nlpsolver" LINGUAS="it it_IT" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6 php7-0" POSTGRES_TARGETS="postgres9_5" PYTHON_TARGETS="python2_7 python3_5 pypy pypy3" RUBY_TARGETS="ruby22" USERLAND="GNU" VIDEO_CARDS="intel i965" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" Unset: CC, CPPFLAGS, CTARGET, CXX, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS ================================================================= Package Settings ================================================================= sys-devel/gcc-7.2.0::gentoo was built with the following: USE="cxx fortran graphite (multilib) nls nptl openmp pch pgo pie sanitize ssp vtv (-altivec) (-awt) -cilk -debug -doc (-fixed-point) (-gcj) -go (-hardened) (-jit) (-libssp) -mpx -objc -objc++ -objc-gc -regression-test -vanilla" ABI_X86="(64)" CFLAGS="-O2 -pipe -march=sandybridge" CXXFLAGS="-O2 -pipe -march=sandybridge" LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu -Wl,--sort-common" # emerge -1pqv =sys-devel/gcc-7.2.0 [ebuild R ] sys-devel/gcc-7.2.0 USE="cxx fortran graphite (multilib) nls nptl openmp pch pgo pie sanitize ssp vtv (-altivec) (-awt) -cilk -debug -doc (-fixed-point) (-gcj) -go (-hardened) (-jit) (-libssp) -mpx -objc -objc++ -objc-gc -regression-test -vanilla"
Created attachment 505062 [details] gcc-7.2.0:20171120-095743.log.xz
confirm with cave fix-linkage report: localhost packages # cave fix-linkage Searching: 11 directories, 76909 files * sys-devel/gcc-7.2.0::installed /usr/lib64/gcc/x86_64-pc-linux-gnu/7.2.0/plugin/libcp1plugin.la (requires /usr/lib/../lib64/libstdc++.la) Done: 1257 steps, 13 metadata (13 Gserver-pbins) These are the actions I will take, in order: r sys-devel/gcc:7.2.0::Gserver-pbins 7.2.0 to ::installed replacing 7.2.0 (-altivec) (-awt) (-cilk) (cxx) (-debug) (-doc) (-fixed-point) (fortran) (-gcj) (-go) (-graphite) (-hardened) (-jit) (-libssp) (-mpx) (-multilib) (nls) (nptl) (-objc) (-objc++) (-objc-gc) (openmp) (pch) (-pgo) (-pie) (-regression-test) (sanitize) (ssp) (-vanilla) (vtv) build_options: (-optional_tests) -trace work=tidyup Reasons: target (/usr/lib/../lib64/libstdc++.la) Total: 1 reinstalls Executing pretend actions: 1 of 1 * No unread news items found localhost packages # eix sys-devel/gcc [I] sys-devel/gcc Available versions: (2.95.3) [M]~*2.95.3-r10^s (3.3.6) [M](~)3.3.6-r1^s (3.4.6) [M]3.4.6-r2^s (4.0.4) [M]**4.0.4^s (4.1.2) [M]4.1.2^s (4.2.4) [M](~)4.2.4-r1^s (4.3.6) [M]4.3.6-r1^s (4.4.7) [M]4.4.7^s (4.5.4) [M]4.5.4^s (4.6.4) [M]4.6.4^s (4.7.4) [M]4.7.4^s (4.8.5) [M]4.8.5^s (4.9.4) 4.9.4^s (5.4.0) 5.4.0-r3^s (6.3.0) (~)6.3.0^s (6.4.0) 6.4.0^s (7.2.0) (~)7.2.0^s {altivec awt boundschecking cilk +cxx d debug doc fixed-point +fortran gcj go graphite hardened jit libssp mpx mudflap multilib +nls nopie nossp +nptl objc objc++ objc-gc +openmp +pch pgo +pie regression-test +sanitize +ssp vanilla +vtv} Installed versions: 5.4.0-r3(5.4.0)^s(10:24:27 PM 03/26/2017)(cxx fortran nls nptl openmp sanitize vtv -altivec -awt -cilk -debug -doc -fixed-point -gcj -go -graphite -hardened -jit -libssp -mpx -multilib -nopie -nossp -objc -objc++ -objc-gc -regression-test -vanilla) 6.4.0(6.4.0)^s(10:53:09 AM 10/11/2017)(cxx fortran nls nptl openmp pch sanitize ssp vtv -altivec -awt -cilk -debug -doc -fixed-point -gcj -go -graphite -hardened -jit -libssp -mpx -multilib -objc -objc++ -objc-gc -pgo -pie -regression-test -vanilla) 7.2.0(7.2.0)^s(11:14:43 PM 12/06/2017)(cxx fortran nls nptl openmp pch sanitize ssp vtv -altivec -awt -cilk -debug -doc -fixed-point -gcj -go -graphite -hardened -jit -libssp -mpx -multilib -objc -objc++ -objc-gc -pgo -pie -regression-test -vanilla) Homepage: https://gcc.gnu.org/ Description: The GNU Compiler Collection
Same thing, of course, with gcc-7.30 and gcc-7.3.0-r1
Yeah, those are clearly untracked: $ qfile -o /usr/lib*/gcc/*/*/plugin/libcp1plugin.la /usr/lib64/gcc/aarch64-unknown-linux-gnu/7.2.0/plugin/libcp1plugin.la /usr/lib64/gcc/aarch64-unknown-linux-gnu/7.3.0/plugin/libcp1plugin.la /usr/lib64/gcc/alpha-unknown-linux-gnu/7.2.0/plugin/libcp1plugin.la /usr/lib64/gcc/alpha-unknown-linux-gnu/7.3.0/plugin/libcp1plugin.la /usr/lib64/gcc/arm-none-eabi/7.2.0/plugin/libcp1plugin.la /usr/lib64/gcc/arm-none-eabi/7.3.0/plugin/libcp1plugin.la
I think mismatch here happens because gcc installs it into lib and not lib64: $ /var/db/pkg/cross-arm-none-eabi:fgrep -R libcp1plugin.la gcc-7.3.0-r1/CONTENTS:obj /usr/lib/gcc/arm-none-eabi/7.3.0/plugin/libcp1plugin.la 6669441d9b1b924250f8fbd5a590f2da 1520817034 gcc-7.2.0-r1/CONTENTS:obj /usr/lib/gcc/arm-none-eabi/7.2.0/plugin/libcp1plugin.la 8c28fa8ffbacfa357f1f70062d449713 1520910667 Thus the files are not orphan but are installed over symlink path.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=599e4bb20b3718ba7d18260ee7891701034e2ee2 commit 599e4bb20b3718ba7d18260ee7891701034e2ee2 Author: Sergei Trofimovich <slyfox@gentoo.org> AuthorDate: 2018-04-13 23:23:08 +0000 Commit: Sergei Trofimovich <slyfox@gentoo.org> CommitDate: 2018-04-13 23:25:08 +0000 toolchain.eclass: don't install libcp1plugin.la Don't install plugin's .la file. Plugins are meant to be loaded at runtime (they all export the same sympols, etc.). Plugins don't have static library equivalent. Drop 'libcp1plugin.la'. Reported-by: Paolo Pedroni Closes: https://bugs.gentoo.org/638216 Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org> eclass/toolchain.eclass | 2 ++ 1 file changed, 2 insertions(+)