(I have an up-to-date Gentoo installation.) I first discovered that my newly installed GCC 8.3.0 was huge. My initial thought was that this is related to changes between GCC 7.3.0 and 8.3.0. However, recompiling GCC 7.3.0 made that package huge too. The reason turned out to be that the files included debug_info and were unstripped. I haven't changed USE flags since the original installation so I don't understand, and I don't see any related changes to the toolchain eclasses. What is going on? PS! Read my forum post for some more info - https://forums.gentoo.org/viewtopic-t-1096932.html
It's an effect of https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=97f0db2416f531bcfbc20c64d64bde384c1aab23. We'll fix it when toolchain.eclass gets EAPI=7 support and ability to call dostrip to selectively disabling stripping.
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cd38a4bf6a3a966d4066645279dbbe118823368f commit cd38a4bf6a3a966d4066645279dbbe118823368f Author: Sergei Trofimovich <slyfox@gentoo.org> AuthorDate: 2019-10-19 21:10:52 +0000 Commit: Sergei Trofimovich <slyfox@gentoo.org> CommitDate: 2019-10-19 21:20:35 +0000 toolchain.eclass: enable selective stipping for EAPI=7 Before the change we stripped no binaries or object files for gcc on any EAPI. After the change we strip all native binaries, libraries and object files (only on EAPI=7). Non-native binaries (cross-compiler case) is skipped by means of 'dostrip -x'. Bug: https://bugs.gentoo.org/686512 Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org> eclass/toolchain.eclass | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-)
EAPI=7 gcc ebuilds should do nicer stripping now. But there are none in the ::gentoo tree yet :)
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b45ba56a178ea77723a10983d9887381e3d6127c commit b45ba56a178ea77723a10983d9887381e3d6127c Author: Sergei Trofimovich <slyfox@gentoo.org> AuthorDate: 2019-11-04 09:07:16 +0000 Commit: Sergei Trofimovich <slyfox@gentoo.org> CommitDate: 2019-11-04 09:07:46 +0000 sys-devel/gcc: 8.3.0: cut 3 patchset Dropped patch: - 27_all_sparc-PIC-constant-PR91472.patch: restore python codegen on sparc While at it switched to EAPI=7 to add support for selective stripping. Closes: https://bugs.gentoo.org/697708 Closes: https://bugs.gentoo.org/686512 Package-Manager: Portage-2.3.78, Repoman-2.3.17 Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org> sys-devel/gcc/Manifest | 1 + sys-devel/gcc/gcc-8.3.0-r3.ebuild | 24 ++++++++++++++++++++++++ 2 files changed, 25 insertions(+) Additionally, it has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5322b7cf3ceaa44b9effa479de112f4a47044a33 commit 5322b7cf3ceaa44b9effa479de112f4a47044a33 Author: Sergei Trofimovich <slyfox@gentoo.org> AuthorDate: 2019-11-04 09:05:04 +0000 Commit: Sergei Trofimovich <slyfox@gentoo.org> CommitDate: 2019-11-04 09:07:44 +0000 sys-devel/gcc: 9.2.0: cut 3 patchset New patch: + 30_all_arm64-march-native.patch: fix -march= ordering handling on arm64 Dropped patch: - 27_all_sparc-PIC-constant-PR91472.patch: restore python codegen on sparc While at it switched to EAPI=7 to add support for selective stripping. Bug: https://bugs.gentoo.org/697708 Bug: https://bugs.gentoo.org/695420 Bug: https://bugs.gentoo.org/686512 Package-Manager: Portage-2.3.78, Repoman-2.3.17 Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org> sys-devel/gcc/Manifest | 1 + sys-devel/gcc/gcc-9.2.0-r2.ebuild | 19 +++++++++++++++++++ 2 files changed, 20 insertions(+)