Summary: | sys-devel/gcc:13 compile time increase by 50% with lto | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Cănărău Constantin <canarauc> |
Component: | Current packages | Assignee: | Gentoo Toolchain Maintainers <toolchain> |
Status: | RESOLVED TEST-REQUEST | ||
Severity: | normal | CC: | gentoo, sam |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | AMD64 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Cănărău Constantin
2023-04-17 16:52:37 UTC
Could be because of: https://gitweb.gentoo.org/repo/gentoo.git/commit/eclass/toolchain.eclass?id=3f9a5248fb796417d63ae1c1234b534a88f22f14 It configures gcc with --enable-checking=yes,extra, which enables more checking logic. With no --enable-checking in configure phase time went down to 42 minutes. I suppose will have to wait to be officially released and see how things will going. * /bin/sh /var/tmp/portage/sys-devel/gcc-13.0.1_pre20230416/work/gcc-13-20230416/configure --host=x86_64-pc-linux-gnu --build=x86_64-pc-linux-gnu --prefix=/usr --bindir=/usr/x86_64-pc-linux-gnu/gcc-bin/13 --includedir=/usr/lib/gcc/x86_64-pc-linux-gnu/13/include --datadir=/usr/share/gcc-data/x86_64-pc-linux-gnu/13 --mandir=/usr/share/gcc-data/x86_64-pc-linux-gnu/13/man --infodir=/usr/share/gcc-data/x86_64-pc-linux-gnu/13/info --with-gxx-include-dir=/usr/lib/gcc/x86_64-pc-linux-gnu/13/include/g++-v13 --with-python-dir=/share/gcc-data/x86_64-pc-linux-gnu/13/python --enable-languages=c,c++ --enable-obsolete --enable-secureplt --disable-werror --with-system-zlib --enable-nls --without-included-gettext --disable-libunwind-exceptions --with-bugurl=https://bugs.gentoo.org/ --with-pkgversion=Gentoo 13.0.1_pre20230416 p9 --with-gcc-major-version-only --disable-esp --enable-libstdcxx-time --enable-lto --disable-libstdcxx-pch --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu --disable-multilib --with-multilib-list=m64 --disable-fixed-point --enable-targets=all --enable-libgomp --disable-libssp --disable-libada --disable-cet --disable-systemtap --disable-valgrind-annotations --disable-vtable-verify --disable-libvtv --with-zstd --with-isl --disable-isl-version-check --enable-default-pie --enable-default-ssp --with-build-config=bootstrap-lto (In reply to Cănărău Constantin from comment #3) > With no --enable-checking in configure phase time went down to 42 minutes. > I suppose will have to wait to be officially released and see how things > will going. > The RC (due out tomorrow) will be built with --enable-checking=release as usual because it's now a 'prerelease' rather than 'experimental'. You can set GCC_CHECKS_LIST="release" locally if you want for all GCCs but I don't recommend that. We've found a number of surprising bugs so far with the enhanced checking. Wed Apr 19 13:56:10 2023 >>> sys-devel/gcc-13.0.1_pre20230419 merge time: 30 minutes and 58 seconds. With --enable-checking=release everything is returning to normal. Sorry for the noise, but compiling time variation was big. Thank you! (In reply to Cănărău Constantin from comment #5) > Wed Apr 19 13:56:10 2023 >>> sys-devel/gcc-13.0.1_pre20230419 > merge time: 30 minutes and 58 seconds. > > With --enable-checking=release everything is returning to normal. > Sorry for the noise, but compiling time variation was big. > > Thank you! No worries, I'd rather you tell us to be safe :) I didn't take the decision to change it lightly, either, but we've found a few substantial bugs as a result which could've led to miscompilation, so it's been worth it. If you want to override it, you can set GCC_CHECKS_LIST="release" in /etc/portage/env (no need for EXTRA_ECONF, even). |