Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
emerging gcc 9 with lto enabled creates many proccesses
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
jeffss
n00b
n00b


Joined: 13 Sep 2019
Posts: 30

PostPosted: Fri Nov 29, 2019 7:48 pm    Post subject: emerging gcc 9 with lto enabled creates many proccesses Reply with quote

I am stuck on building gcc 9 with lto USE flag, because it is creating over 30 lto processes when I try to do so; at this point I have to reboot my PC. I think it may have to do with the new features, as specified here: https://gcc.gnu.org/gcc-9/changes.html (go for Link-time optimization improvements). I have already tried to manage it by providing COMMON_FLAGS with
Code:
--param lto-max-streaming-parallelism=3
but looking on the build log, when it starts building it changes the arguments:

Code:
 * Package:    sys-devel/gcc-9.2.0-r2
 * Repository: gentoo
 * Maintainer: toolchain@gentoo.org
 * USE:        abi_x86_64 amd64 cxx d debug doc elibc_glibc fortran go graphite kernel_linux lto multilib nls nptl openmp pch pgo pie sanitize ssp systemtap userland_GNU vtv
 * FEATURES:   network-sandbox preserve-libs sandbox userpriv usersandbox
>>> Unpacking source...
>>> Unpacking gcc-9.2.0.tar.xz to /var/tmp/portage/sys-devel/gcc-9.2.0-r2/work
>>> Unpacking gcc-9.2.0-patches-3.tar.bz2 to /var/tmp/portage/sys-devel/gcc-9.2.0-r2/work
>>> Source unpacked in /var/tmp/portage/sys-devel/gcc-9.2.0-r2/work
>>> Preparing source in /var/tmp/portage/sys-devel/gcc-9.2.0-r2/work/gcc-9.2.0 ...
 * Applying Gentoo patches ...
 * Applying 01_all_default-fortify-source.patch ...
 [ ok ]
 * Applying 02_all_default-warn-format-security.patch ...
 [ ok ]
 * Applying 03_all_default-warn-trampolines.patch ...
 [ ok ]
 * Applying 04_all_default-ssp-fix.patch ...
 [ ok ]
 * Applying 05_all_alpha-mieee-default.patch ...
 [ ok ]
 * Applying 06_all_ia64_note.GNU-stack.patch ...
 [ ok ]
 * Applying 07_all_i386_libgcc_note.GNU-stack.patch ...
 [ ok ]
 * Applying 08_all_libiberty-asprintf.patch ...
 [ ok ]
 * Applying 09_all_libiberty-pic.patch ...
 [ ok ]
 * Applying 10_all_nopie-all-flags.patch ...
 [ ok ]
 * Applying 11_all_extra-options.patch ...
 [ ok ]
 * Applying 12_all_pr55930-dependency-tracking.patch ...
 [ ok ]
 * Applying 13_all_sh-drop-sysroot-suffix.patch ...
 [ ok ]
 * Applying 14_all_ia64-TEXTREL.patch ...
 [ ok ]
 * Applying 15_all_disable-systemtap-switch.patch ...
 [ ok ]
 * Applying 16_all_m68k-textrel-on-libgcc.patch ...
 [ ok ]
 * Applying 17_all_respect-build-cxxflags.patch ...
 [ ok ]
 * Applying 18_all_libgfortran-Werror.patch ...
 [ ok ]
 * Applying 19_all_libgomp-Werror.patch ...
 [ ok ]
 * Applying 20_all_libitm-Werror.patch ...
 [ ok ]
 * Applying 21_all_libatomic-Werror.patch ...
 [ ok ]
 * Applying 22_all_libbacktrace-Werror.patch ...
 [ ok ]
 * Applying 23_all_libsanitizer-Werror.patch ...
 [ ok ]
 * Applying 24_all_libstdcxx-no-vtv.patch ...
 [ ok ]
 * Applying 25_all_ia64-bootstrap.patch ...
 [ ok ]
 * Applying 26_all_disable-riscv32-ABIs.patch ...
 [ ok ]
 * Applying 28_all_sparc-fpu-subregs-91269.patch ...
 [ ok ]
 * Applying 29_all_mips_split_move-SEGV.patch ...
 [ ok ]
 * Applying 30_all_arm64-march-native.patch ...
 [ ok ]
 * Updating gcc to use automatic PIE building ...
 * Updating gcc to use automatic SSP building ...
 * using upstream multilib; disabling lib32 autodetection
 * Running elibtoolize in: gcc-9.2.0/
 *   Applying portage/2.2 patch ...
 *   Applying sed/1.5.6 patch ...
 *   Applying as-needed/2.2.6 patch ...
 * Using GNU config files from /usr/share/gnuconfig
 *   Updating config.sub
 [ ok ]
 *   Updating config.guess
 [ ok ]
 * Fixing misc issues in configure files
 * Remove texinfo (bug #198182, bug ##464008)
 * Applying gcc-configure-texinfo.patch ...
 [ ok ]
 * Touching generated files
 *   Touching gcc/configure
 *   Touching gcc/cstamp-h.in
 *   Touching gcc/config.in
 *   Touching libgfortran/aclocal.m4
 *   Touching libgfortran/Makefile.in
 *   Touching libquadmath/Makefile.in
 *   Touching libgfortran/configure
 *   Touching libgomp/aclocal.m4
 *   Touching libgomp/Makefile.in
 *   Touching libgomp/testsuite/Makefile.in
 *   Touching libgomp/configure
 *   Touching libgomp/config.h.in
 *   Touching libitm/aclocal.m4
 *   Touching libitm/Makefile.in
 *   Touching libitm/testsuite/Makefile.in
 *   Touching libitm/configure
 *   Touching libitm/config.h.in
 *   Touching libatomic/aclocal.m4
 *   Touching libatomic/Makefile.in
 *   Touching libatomic/testsuite/Makefile.in
 *   Touching libatomic/configure
 *   Touching libatomic/auto-config.h.in
 *   Touching libbacktrace/aclocal.m4
 *   Touching libbacktrace/Makefile.in
 *   Touching libbacktrace/configure
 *   Touching libbacktrace/config.h.in
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/sys-devel/gcc-9.2.0-r2/work/gcc-9.2.0 ...
 * strip-flags: CFLAGS: changed '-O3 -pipe -march=native --param lto-max-streaming-parallelism=3' to '-pipe -march=native -O2'
 * strip-flags: CXXFLAGS: changed '-O3 -pipe -march=native --param lto-max-streaming-parallelism=3' to '-pipe -march=native -O2'
 * strip-flags: FFLAGS: changed '-O3 -pipe -march=native --param lto-max-streaming-parallelism=3' to '-pipe -march=native -O2'
 * strip-flags: FCFLAGS: changed '-O3 -pipe -march=native --param lto-max-streaming-parallelism=3' to '-pipe -march=native -O2'
 * CFLAGS="-pipe -march=native -O2"
 * CXXFLAGS="-pipe -march=native -O2"
 * LDFLAGS="-Wl,-O1 -Wl,--as-needed"

 * PREFIX:          /usr
 * BINPATH:         /usr/x86_64-pc-linux-gnu/gcc-bin/9.2.0
 * LIBPATH:         /usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0
 * DATAPATH:        /usr/share/gcc-data/x86_64-pc-linux-gnu/9.2.0
 * STDCXX_INCDIR:   /usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/include/g++-v9

 * Languages:       c,c++,d,go,fortran

 * Configuring GCC with:
 *    --host=x86_64-pc-linux-gnu
 *    --build=x86_64-pc-linux-gnu
 *    --prefix=/usr
 *    --bindir=/usr/x86_64-pc-linux-gnu/gcc-bin/9.2.0
 *    --includedir=/usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/include
 *    --datadir=/usr/share/gcc-data/x86_64-pc-linux-gnu/9.2.0
 *    --mandir=/usr/share/gcc-data/x86_64-pc-linux-gnu/9.2.0/man
 *    --infodir=/usr/share/gcc-data/x86_64-pc-linux-gnu/9.2.0/info
 *    --with-gxx-include-dir=/usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/include/g++-v9
 *    --with-python-dir=/share/gcc-data/x86_64-pc-linux-gnu/9.2.0/python
 *    --enable-languages=c,c++,d,go,fortran
 *    --enable-obsolete
 *    --enable-secureplt
 *    --disable-werror
 *    --with-system-zlib
 *    --enable-nls
 *    --without-included-gettext
 *    --enable-checking=yes
 *    --with-bugurl=https://bugs.gentoo.org/
 *    --with-pkgversion=Gentoo 9.2.0-r2 p3
 *    --disable-esp
 *    --enable-libstdcxx-time
 *    --with-build-config=bootstrap-lto
 *    --enable-shared
 *    --enable-threads=posix
 *    --enable-__cxa_atexit
 *    --enable-clocale=gnu
 *    --enable-multilib
 *    --with-multilib-list=m32,m64
 *    --disable-altivec
 *    --disable-fixed-point
 *    --enable-targets=all
 *    --enable-libgomp
 *    --disable-libmudflap
 *    --disable-libssp
 *    --enable-systemtap
 *    --enable-vtable-verify
 *    --enable-lto
 *    --with-isl
 *    --disable-isl-version-check
 *    --enable-default-pie
 *    --enable-default-ssp

/var/tmp/portage/sys-devel/gcc-9.2.0-r2/work/gcc-9.2.0/configure --host=x86_64-pc-linux-gnu --build=x86_64-pc-linux-gnu --prefix=/usr --bindir=/usr/x86_64-pc-linux-gnu/gcc-bin/9.2.0 --includedir=/usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/include --datadir=/usr/share/gcc-data/x86_64-pc-linux-gnu/9.2.0 --mandir=/usr/share/gcc-data/x86_64-pc-linux-gnu/9.2.0/man --infodir=/usr/share/gcc-data/x86_64-pc-linux-gnu/9.2.0/info --with-gxx-include-dir=/usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/include/g++-v9 --with-python-dir=/share/gcc-data/x86_64-pc-linux-gnu/9.2.0/python --enable-languages=c,c++,d,go,fortran --enable-obsolete --enable-secureplt --disable-werror --with-system-zlib --enable-nls --without-included-gettext --enable-checking=yes --with-bugurl=https://bugs.gentoo.org/ --with-pkgversion=Gentoo 9.2.0-r2 p3 --disable-esp --enable-libstdcxx-time --with-build-config=bootstrap-lto --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu --enable-multilib --with-multilib-list=m32,m64 --disable-altivec --disable-fixed-point --enable-targets=all --enable-libgomp --disable-libmudflap --disable-libssp --enable-systemtap --enable-vtable-verify --enable-lto --with-isl --disable-isl-version-check --enable-default-pie --enable-default-ssp


emerge --info:

Code:
Portage 2.3.76 (python 3.6.9-final-0, default/linux/amd64/17.1/desktop/plasma, gcc-8.3.0, glibc-2.29-r2, 4.19.72-gentoo x86_64)
=================================================================
System uname: Linux-4.19.72-gentoo-x86_64-Intel-R-_Core-TM-_i3-3240_CPU_@_3.40GHz-with-gentoo-2.6
KiB Mem:     3905996 total,    124996 free
KiB Swap:    8388600 total,   8387832 free
Timestamp of repository gentoo: Mon, 25 Nov 2019 14:00:01 +0000
Head commit of repository gentoo: 05190a98831ef53d13d2b37871e36421e0548cff
Timestamp of repository eclipse: Wed, 06 Nov 2019 23:42:49 +0000
Head commit of repository eclipse: 9388a26392b9b814a0829ecc13f05201de175f05

sh bash 4.4_p23-r1
ld GNU ld (Gentoo 2.32 p2) 2.32.0
app-shells/bash:          4.4_p23-r1::gentoo
dev-java/java-config:     2.2.0-r4::gentoo
dev-lang/perl:            5.28.2-r1::gentoo
dev-lang/python:          2.7.16::gentoo, 3.6.9::gentoo
dev-util/cmake:           3.14.6::gentoo
sys-apps/baselayout:      2.6-r1::gentoo
sys-apps/openrc:          0.41.2::gentoo
sys-apps/sandbox:         2.13::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.69-r4::gentoo
sys-devel/automake:       1.11.6-r3::gentoo, 1.16.1-r1::gentoo
sys-devel/binutils:       2.32-r1::gentoo
sys-devel/gcc:            8.3.0-r1::gentoo, 9.2.0-r2::gentoo
sys-devel/gcc-config:     2.1::gentoo
sys-devel/libtool:        2.4.6-r3::gentoo
sys-devel/make:           4.2.1-r4::gentoo
sys-kernel/linux-headers: 4.19::gentoo (virtual/os-headers)
sys-libs/glibc:           2.29-r2::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-verify-max-age: 24
    sync-rsync-verify-metamanifest: yes
    sync-rsync-extra-opts:
    sync-rsync-verify-jobs: 1

eclipse
    location: /var/db/repos/eclipse
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/eclipse.git
    masters: gentoo

localrepo
    location: /var/db/repos/localrepo
    masters: gentoo
    priority: 0

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="@FREE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O3 -pipe -march=native --param lto-max-streaming-parallelism=3"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /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/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O3 -pipe -march=native --param lto-max-streaming-parallelism=3"
DISTDIR="/var/cache/distfiles"
EMERGE_DEFAULT_OPTS="--jobs 2"
ENV_UNSET="DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
FCFLAGS="-O3 -pipe -march=native --param lto-max-streaming-parallelism=3"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O3 -pipe -march=native --param lto-max-streaming-parallelism=3"
GENTOO_MIRRORS="https://gentoo.c3sl.ufpr.br/ https://mirror.sjc02.svwh.net/gentoo/"
LANG="pt_BR"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j2 --load-average=3.10"
PKGDIR="/var/cache/binpkgs"
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 acl acpi activities alisp alsa amd64 berkdb bluetooth branding bzip2 cairo cdda cdr cli consolekit crypt cups cxx dbus declarative dri dts dvd dvdr emboss encode exif fam flac fortran gdbm gif gles gpm gtk hardened iconv icu ipv6 jpeg julia kde kipi kwallet lcms ldap libnotify libtirpc lua mad mng mp3 mp4 mpeg multilib ncurses nls nptl ogg opengl openmp pam pango pcre pdf phonon plasma png policykit ppds pt-BR pulseaudio python qml qt4 qt5 readline sdl sdl2 seccomp semantic-desktop spell split-usr ssl startup-notification svg tcpd thread-safety tiff truetype udev udisks unicode upower usb vorbis widgets wxwidgets x264 xattr xcb xcomposite xml xv xvid zlib" ABI_X86="64" ADA_TARGET="gnat_2018" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" 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="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="libinput" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" NETBEANS_MODULES="apisupport cnd groovy gsf harness ide identity j2ee java mobility nb php profiler soa visualweb webcommon websvccommon xml" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-2" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_6" PYTHON_TARGETS="python2_7 python3_6" RUBY_TARGETS="ruby24 ruby25" 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, LINGUAS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS


I found it used -flto-jobserver. Could something be bringing problem on the identification of the processor? it lets the gcc identificate the processor features. Also is there some flag not filtered that I could use to resolve the issue?
Back to top
View user's profile Send private message
elsandosgrande
Tux's lil' helper
Tux's lil' helper


Joined: 18 May 2019
Posts: 144
Location: Sarajevo 71000, Bosnia and Herzegovina

PostPosted: Sat Nov 30, 2019 12:04 am    Post subject: Reply with quote

Most flags will gets stripped, unless they're from BOOT_CFLAGS. At least that's what I gather from the discussions I've read over on the GentooLTO issue tracker. Try adding `--param lto-max-streaming-parallelism=3` to BOOT_CFLAGS and see if it helps.

Regarding the actual underlying issue, Shane, the maintainer of the GentooLTO overlay and the person who actually made the LTO USE flag a thing for GCC, is likelier to know what's going on that I am. jiblime might have a clue as well. Anyway, I will mention this on Gitter and see if Shane responds (he's busy with academia, so...), or if jiblime responds with any insights.

Good luck!
Back to top
View user's profile Send private message
Ionen
Developer
Developer


Joined: 06 Dec 2018
Posts: 1903

PostPosted: Sat Nov 30, 2019 1:20 am    Post subject: Reply with quote

The whole auto-detection of threads available sure can be a problem at times, I run out of ram on firefox because of too many threads while it tries to use LTO (which I fixed with a user patch instead, could be an option here as well if can't find the clean way to pass the flags). GCC doesn't use nearly as much ram with lto flag so it hasn't been a problem (for me) at least.

Also the LTO build process is entirely implemented and supported by gcc itself, that's why Shane was able to get it added on official gentoo somewhat easily.
Back to top
View user's profile Send private message
axl
Veteran
Veteran


Joined: 11 Oct 2002
Posts: 1072
Location: Romania

PostPosted: Sat Nov 30, 2019 1:29 am    Post subject: Reply with quote

I wont waste time explaining what is lto, but i will try to explain how it behaves on ... let's say 9980xe with 128 of RAM. it doesn't magically create more threads than -j thingie. but it will spend time... like good amount of minutes doing that stuff.

lower on the foodchain, on an i980, it's like 30 minutes to an hour of optimizations in that lto thingie.

you can of course, just mount the root on another machine, cross compile... there's tones of blades in the gentoo swiss army knife.

but the point is... that lto thingy takes time because it supposed to take time. and if you dont know what it is maybe you shouldn't use it. u're system would run just fine without lto.
Back to top
View user's profile Send private message
Ionen
Developer
Developer


Joined: 06 Dec 2018
Posts: 1903

PostPosted: Sat Nov 30, 2019 1:57 am    Post subject: Reply with quote

axl wrote:
I wont waste time explaining what is lto, but i will try to explain how it behaves on ... let's say 9980xe with 128 of RAM. it doesn't magically create more threads than -j thingie. but it will spend time... like good amount of minutes doing that stuff.
Well, sometimes it does depending on how it is called (like firefox would use automagic to add -flto=36 with this cpu). -flto=jobserver (that gcc uses) however is "supposed" to try to inherit from GNU make, so it "shouldn't" do more than -j indeed. Not that I really ever tested how it behaves.

Given talking of rebooting, I'm assuming the original poster is left with it working in swap which likely takes more time than it should and likely slowing down the system. Simply not using lto is of course an option (this flag isn't for gcc to support lto, but build gcc itself with it), but given the heavy use of gcc on gentoo, it's "nice" to have it with lto+pgo to save time on the long run.
Back to top
View user's profile Send private message
elsandosgrande
Tux's lil' helper
Tux's lil' helper


Joined: 18 May 2019
Posts: 144
Location: Sarajevo 71000, Bosnia and Herzegovina

PostPosted: Sat Nov 30, 2019 2:23 am    Post subject: Reply with quote

axl, jeffss wasn't talking about it taking a long time, he was talking about how -flto=jobserver allocates thirty processes, which is way more processes than his/her processor has cores. If you want to talk about long periods of time, just try building LTO-ed Mesa on a multilib system, or try building LTO-ed MAME to see what a real memory hog looks like.

Ionen, he should be able to pass through what he wants to pass through by using BOOT_CFLAGS instead of the regular CFLAGS in make.conf (here I am, sounding like a broken record).
Back to top
View user's profile Send private message
elsandosgrande
Tux's lil' helper
Tux's lil' helper


Joined: 18 May 2019
Posts: 144
Location: Sarajevo 71000, Bosnia and Herzegovina

PostPosted: Sat Nov 30, 2019 2:56 pm    Post subject: Reply with quote

elsandosgrande wrote:
@InBetweenNames @jiblime Here's a tricky one for ya: https://forums.gentoo.org/viewtopic-p-8393456.html#8393456
It's regarding GCC compilation with the LTO USE flag causing thirty processes to be created on the original poster's computer.

jiblime wrote:
Not really an issue unless your core count is imbalanced compared to your ram
Configuring gcc with LTO uses jobserver instead of a defined number. Just lower the ‘-flto’ to fit the system for other packages and either patch GCC to not use jobserver or use a lower makeopts


As I woke up an hour ago and he replied four hours ago, I haven't yet gotten clarification as to whether he only had a glance, or whether he took a long, hard look at the original post.
Back to top
View user's profile Send private message
jeffss
n00b
n00b


Joined: 13 Sep 2019
Posts: 30

PostPosted: Sun Dec 01, 2019 10:14 pm    Post subject: Reply with quote

many thanks, I am compiling again right now and BOOT_CFLAGS was not stripped as the others, so my options are passing through. Fairly, lto1-ltrans does follows what is specified on make.conf but then there is a later lto-... process that is the one which appears beyound 30 times in a rush
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum