Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 652244 - dev-util/electron with lto checks for 5GiB but requires 8GiB
Summary: dev-util/electron with lto checks for 5GiB but requires 8GiB
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: No maintainer - Look at if you want to take care of it
Depends on:
Blocks: lto
  Show dependency tree
Reported: 2018-04-02 20:39 UTC by Jan Fikar
Modified: 2019-08-04 08:54 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Note You need to log in before you can comment on or make changes to this bug.
Description Jan Fikar 2018-04-02 20:39:51 UTC
dev-util/electron-1.6.16 checks for at least 5 GiB disk space, but it needs 11 GiB, maybe even more. It is possible that only when USE="lto" is enabled.

My tmpfs is 8 GiB and it is definitely not enough.
Comment 1 Elvis Pranskevichus 2018-04-03 18:23:07 UTC
Are you using gcc-7?  It seems to have regressed vastly in comparison to gcc-6 with respect to the disk space used by LTO object files.
Comment 2 Jan Fikar 2018-04-03 18:35:41 UTC
no, I have gcc-6.4.0

emerge --info                   
Portage 2.3.24 (python 2.7.14-final-0, default/linux/amd64/17.0/desktop/plasma, gcc-6.4.0, glibc-2.25-r11, 4.15.4-gentoo x86_64)
System uname: Linux-4.15.4-gentoo-x86_64-Intel-R-_Core-TM-_i5-2520M_CPU_@_2.50GHz-with-gentoo-2.4.1
KiB Mem:    16330872 total,   8103260 free
KiB Swap:   10239996 total,  10232168 free
Timestamp of repository gentoo: Tue, 03 Apr 2018 13:45:01 +0000
Head commit of repository gentoo: a7015c5a8e789b127a96149cf261810023d7c2b3
sh dash
ld GNU ld (Gentoo 2.29.1 p3) 2.29.1
ccache version 3.2.4 [enabled]
app-shells/bash:          4.4_p12::gentoo
dev-java/java-config:     2.2.0-r4::gentoo
dev-lang/perl:            5.24.3-r1::gentoo
dev-lang/python:          2.7.14-r1::gentoo, 3.5.4-r1::gentoo
dev-util/ccache:          3.2.4::gentoo
dev-util/cmake:           3.9.6::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.4.1-r2::gentoo
sys-apps/openrc:          0.34.11::gentoo
sys-apps/sandbox:         2.13::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r4::gentoo
sys-devel/automake:       1.11.6-r3::gentoo, 1.15.1-r2::gentoo
sys-devel/binutils:       2.29.1-r1::gentoo
sys-devel/gcc:            6.4.0-r1::gentoo, 7.2.0-r1::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.13::gentoo (virtual/os-headers)
sys-libs/glibc:           2.25-r11::gentoo

    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://
    priority: -1000
    sync-rsync-verify-metamanifest: no

CFLAGS="-O2 -pipe -march=native -mtune=native"
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="-O2 -pipe -O2 -pipe -march=native -mtune=native"
EMERGE_DEFAULT_OPTS="--jobs=4 --keep-going=y --complete-graph"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs candy ccache cgroup config-protect-if-modified distlocks fixlafiles merge-sync multilib-strict news parallel-fetch parallel-install preserve-libs protect-owned sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS=" rsync:// rsync://"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -s -Wl,-O2,--sort-common,--hash-style=gnu,--as-needed -O2 -pipe -march=native -mtune=native"
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"
USE="X a52 aac acl acpi activities alsa ambisonics amd64 audiofile avx btrfs bzip2 cairo caps cdda cdr cgroups clang cleartype_hinting cli consolekit corefonts cracklib crypt cryptsetup cups cxx dbus declarative distinct-l djbfft djvu dri dri3 dts dvb dvd dvdr ebook egl eglfs emboss encode exif ext4 f2fs fam fat flac fortran fuse gif glamor gles gles2 gmp gold gzip hfs hwaccel hwloc iconv ithreads jemalloc jemalloc3 jit jpeg justify kde kipi kwallet lapack largepages libnotify libzfs lm_sensors lto lz4 lzma mad mem-scramble metric mktemp mmx mng mobi modules mp3 mp4 mpeg mpi multilib natspec ncurses networkmanager nptl ntfs ocl-icd ocl20 offensive ogg openal opengl openmp optimization opus osmesa pam pango pch pcre pdf pgo pgp phonon plasma png policykit ppds pulseaudio pwquality qml qt3support qt5 readline reencrypt resolvconf romio rtlsdr rust s3tc sdl seccomp smp snappy sndfile sox sse sse2 ssl staging strong-optimization svg system-cairo system-icu system-jpeg system-sqlite szip tcmalloc tcpd threads tiff truetype udev unicode upower usb uxa vaapi vdpau vlc vorbis vulkan wayland webp widgets wifi x264 x265 xa xcb xcomposite xfs xml xv xvid xvmc zlib" ABI_X86="64" 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" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx mcx16 msahf mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4.1 sse4_2 sse4.2 ssse3" 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="synaptics evdev" KERNEL="linux" L10N="en" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6 php7-0" POSTGRES_TARGETS="postgres9_5" PYTHON_SINGLE_TARGET="python3_5" PYTHON_TARGETS="python2_7 python3_5" QEMU_USER_TARGETS="arm" RUBY_TARGETS="ruby22 ruby23" USERLAND="GNU" VIDEO_CARDS="intel i965" XFCE_PLUGINS="brightness clock trash" 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"
Comment 3 Jan Fikar 2018-04-06 05:51:24 UTC
Quick check using du -s every 30 seconds gives for dev-util/electron-1.6.16/ this:

gcc6 +lto       11171596
gcc7 +lto       107594488
gcc6 -lto       4263696
gcc7 -lto       4275704

so there is definitely a problem using lto and gcc7.