Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 652244

Summary: dev-util/electron with lto checks for 5GiB but requires 8GiB
Product: Gentoo Linux Reporter: Jan Fikar <j.fikar>
Component: Current packagesAssignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it <maintainer-needed>
Status: RESOLVED FIXED    
Severity: normal CC: kripton, treecleaner
Priority: Normal Keywords: PMASKED
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 618550    
Deadline: 2020-04-29   

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 0.5.9.1-r3
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
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.europe.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-verify-metamanifest: no
    sync-rsync-extra-opts: 

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=native -mtune=native"
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="-O2 -pipe -O2 -pipe -march=native -mtune=native"
DISTDIR="/usr/portage/distfiles"
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="http://gentoo.inode.at/ http://mirror.netcologne.de/gentoo/ http://gentoo.mirror.web4u.cz/ http://ftp.fi.muni.cz/pub/linux/gentoo/ http://91.121.189.201/gentoo-distfiles/ http://mirror.qubenet.net/mirror/gentoo/ rsync://ftp.snt.utwente.nl/gentoo ftp://91.121.189.201/gentoo-distfiles/ rsync://mirror.netcologne.de/gentoo/ ftp://mirror.leaseweb.com/gentoo/ ftp://ftp.halifax.rwth-aachen.de/gentoo/"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -s -Wl,-O2,--sort-common,--hash-style=gnu,--as-needed -O2 -pipe -march=native -mtune=native"
LINGUAS="en"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_COMPRESS="xz"
PORTAGE_COMPRESS_FLAGS="-9e"
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="/tmp/"
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"
Unset:  CC, CPPFLAGS, CTARGET, CXX, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_RSYNC_EXTRA_OPTS
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.
Comment 4 Larry the Git Cow gentoo-dev 2020-04-29 12:44:57 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=10f79d2d9b224342346080628e9ca4b5b4acd38b

commit 10f79d2d9b224342346080628e9ca4b5b4acd38b
Author:     Mikle Kolyada <zlogene@gentoo.org>
AuthorDate: 2020-04-29 12:35:59 +0000
Commit:     Mikle Kolyada <zlogene@gentoo.org>
CommitDate: 2020-04-29 12:44:00 +0000

    dev-util/electron: remove last-rited pkg
    
    Closes: https://bugs.gentoo.org/show_bug.cgi?id=622020
    Closes: https://bugs.gentoo.org/show_bug.cgi?id=652244
    Closes: https://bugs.gentoo.org/show_bug.cgi?id=678066
    Closes: https://bugs.gentoo.org/show_bug.cgi?id=690006
    Closes: https://bugs.gentoo.org/show_bug.cgi?id=692146
    Closes: https://bugs.gentoo.org/show_bug.cgi?id=701958
    Closes: https://bugs.gentoo.org/show_bug.cgi?id=675578
    Closes: https://bugs.gentoo.org/show_bug.cgi?id=681734
    Closes: https://bugs.gentoo.org/show_bug.cgi?id=694072
    Closes: https://bugs.gentoo.org/show_bug.cgi?id=706376
    Closes: https://bugs.gentoo.org/show_bug.cgi?id=714850
    Closes: https://bugs.gentoo.org/show_bug.cgi?id=713024
    Closes: https://bugs.gentoo.org/show_bug.cgi?id=699866
    
    Signed-off-by: Mikle Kolyada <zlogene@gentoo.org>

 dev-util/electron/Manifest                  |  13 -
 dev-util/electron/electron-2.0.17-r2.ebuild | 918 ----------------------------
 dev-util/electron/files/toolchain/BUILD.gn  |  37 --
 dev-util/electron/metadata.xml              |  21 -
 4 files changed, 989 deletions(-)