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

Bug 631442

Summary: www-client/firefox-52.3.0 : Install failure : "Error while running startup cache precompilation"
Product: Gentoo Linux Reporter: Wade Cline <wadecline>
Component: Current packagesAssignee: Mozilla Gentoo Team <mozilla>
Status: RESOLVED INVALID    
Severity: normal CC: bkohler
Priority: Normal    
Version: unspecified   
Hardware: ARM   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: build log
Install failure
FF segfault via 'script' and 'gdb'
backtrace + gdb
Build.log

Description Wade Cline 2017-09-19 20:14:41 UTC
Portage 2.3.6 (python 3.4.5-final-0, hardened/linux/arm/armv7a, gcc-5.4.0, glibc-2.23-r4, 4.7.2-novena_hardened-r3-gnu armv7l)
=================================================================
                         System Settings
=================================================================
System uname: Linux-4.7.2-novena_hardened-r3-gnu-armv7l-ARMv7_Processor_rev_10_-v7l-with-gentoo-2.3
KiB Mem:     3882320 total,   2054944 free
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Mon, 18 Sep 2017 00:45:02 +0000
sh bash 4.3_p48-r1
ld GNU ld (Gentoo 2.28.1 p1.0) 2.28.1
app-shells/bash:          4.3_p48-r1::gentoo
dev-lang/perl:            5.24.1-r2::gentoo
dev-lang/python:          2.7.12::gentoo, 3.4.5::gentoo
dev-util/cmake:           3.7.2::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.3::gentoo
sys-apps/openrc:          0.28::gentoo
sys-apps/sandbox:         2.10-r3::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69::gentoo
sys-devel/automake:       1.15-r2::gentoo
sys-devel/binutils:       2.28.1::gentoo
sys-devel/gcc:            5.4.0-r3::gentoo
sys-devel/gcc-config:     1.7.3::gentoo
sys-devel/libtool:        2.4.6-r3::gentoo
sys-devel/make:           4.2.1::gentoo
sys-kernel/linux-headers: 4.4::gentoo (virtual/os-headers)
sys-libs/glibc:           2.23-r4::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://127.0.0.1:873/gentoo-portage
    priority: -1000

novena
    location: /usr/local/portage/novena
    sync-type: git
    sync-uri: https://github.com/sakaki-/novena-overlay.git
    masters: gentoo
    priority: 100

ACCEPT_KEYWORDS="arm"
ACCEPT_LICENSE="* -@EULA"
CBUILD="armv7a-hardfloat-linux-gnueabi"
CFLAGS="-O2 -pipe -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard"
CHOST="armv7a-hardfloat-linux-gnueabi"
CONFIG_PROTECT="/etc /etc/stunnel/stunnel.conf /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/portage /etc/revdep-rebuild /etc/sandbox.d /etc/ssl/certs /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -pipe -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe -march=armv7-a"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe -march=armv7-a"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
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="acl alsa arm armv5te armv6 armv6t2 berkdb bmp bzip2 cli cracklib crypt cxx dri gdbm gif hardened iconv ipv6 jpeg jpeg2k modules ncurses nls nptl openmp pam pax_kernel pcre pic pie png postscript readline seccomp session ssl ssp svg tcpd unicode urandom webm wifi wireless xattr xtpax zlib" 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_ARM="edsp thumb thumb2 v4 v5 v6 v7 vfp" 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" INPUT_DEVICES="evdev" KERNEL="linux" 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" POSTGRES_TARGETS="postgres9_5" PYTHON_SINGLE_TARGET="python3_4" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby22" SANE_BACKENDS="epson epson2" USERLAND="GNU" VIDEO_CARDS="armada fbdev" 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, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS




[ebuild     U ] www-client/firefox-52.3.0 [40.0.3] USE="hardened jemalloc%* -bindist -custom-cflags -custom-optimization -dbus -debug (-gmp-autoupdate) -gtk2% -hwaccel% -jack% -neon (-pgo) -pulseaudio (-rust) (-selinux) -startup-notification (-system-cairo) -system-harfbuzz% -system-icu -system-jpeg -system-libevent% -system-libvpx -system-sqlite {-test} -wifi* (-egl%) (-gstreamer%) (-gstreamer-0%) (-jemalloc3%*) (-jit%) (-minimal%*)" L10N="-ach% -af% -an% -ar% -as% -ast% -az% -bg% -bn-BD% -bn-IN% -br% -bs% -ca% -cak% -cs% -cy% -da% -de% -dsb% -el% -en-GB% -en-ZA% -eo% -es-AR% -es-CL% -es-ES% -es-MX% -et% -eu% -fa% -ff% -fi% -fr% -fy% -ga% -gd% -gl% -gn% -gu% -he% -hi% -hr% -hsb% -hu% -hy% -id% -is% -it% -ja% -ka% -kab% -kk% -km% -kn% -ko% -lij% -lt% -lv% -mai% -mk% -ml% -mr% -ms% -nb% -nl% -nn% -or% -pa% -pl% -pt-BR% -pt-PT% -rm% -ro% -ru% -si% -sk% -sl% -son% -sq% -sr% -sv% -ta% -te% -th% -tr% -uk% -uz% -vi% -xh% -zh-CN% -zh-TW%" LINGUAS="(-af%) (-ar%) (-as%) (-ast%) (-be%) (-bg%) (-bn_BD%) (-bn_IN%) (-br%) (-bs%) (-ca%) (-cs%) (-cy%) (-da%) (-de%) (-el%) (-en_GB%) (-en_ZA%) (-eo%) (-es_AR%) (-es_CL%) (-es_ES%) (-es_MX%) (-et%) (-eu%) (-fa%) (-fi%) (-fr%) (-fy_NL%) (-ga_IE%) (-gd%) (-gl%) (-gu_IN%) (-he%) (-hi_IN%) (-hr%) (-hu%) (-hy_AM%) (-id%) (-is%) (-it%) (-ja%) (-kk%) (-km%) (-kn%) (-ko%) (-lt%) (-lv%) (-mai%) (-mk%) (-ml%) (-mr%) (-nb_NO%) (-nl%) (-nn_NO%) (-or%) (-pa_IN%) (-pl%) (-pt_BR%) (-pt_PT%) (-rm%) (-ro%) (-ru%) (-si%) (-sk%) (-sl%) (-son%) (-sq%) (-sr%) (-sv_SE%) (-ta%) (-te%) (-th%) (-tr%) (-uk%) (-vi%) (-xh%) (-zh_CN%) (-zh_TW%)"
Comment 1 Wade Cline 2017-09-19 20:21:11 UTC
build.log too big to be attached, find it here instead:

https://www.frostsnow.net/files/build.log
Comment 2 Mike Gilbert gentoo-dev 2017-09-19 21:12:28 UTC
Please compress the build log using gzip, bzip2, or xz and attach it.
Comment 3 Wade Cline 2017-09-20 00:41:51 UTC
Created attachment 495478 [details]
build log

...that idea seems so obvious in retrospect.
Comment 4 Ben Kohler gentoo-dev 2017-09-28 14:44:47 UTC
Is it possible you ran out of memory here? (check dmesg)
Comment 5 Wade Cline 2017-09-28 23:15:04 UTC
I'm not seeing anything in /var/log/messages (the machine has been rebooted, so it won't be in regular dmesg).  It's also not a "Killed" message like I've sometimes gotten when I forget to enable swap on my other low-memory machines, and the error occurs consistently with the Python traceback, unlike the OOM-killer, which strikes pseudo-randomly and usually kills GCC.

FWIW, the machine has 4GB RAM without swap.
Comment 6 Ian Stakenvicius (RETIRED) gentoo-dev 2017-09-29 14:13:46 UTC
Unlike other occurrences of this error, I'm not seeing any root error being reported, just the python error saying there was a problem.  An OOM issue could definitely trigger that so maybe that's it.

After it fails, please see if it'll finish by running:  ebuild /usr/portage/www-client/firefox/firefox-52.3.0.ebuild install , and you can check dmesg, the filesystem, etc. etc. if it errors out.
Comment 7 Wade Cline 2017-09-30 05:38:07 UTC
Created attachment 497144 [details]
Install failure

Definitely not an OOM problem as there's nothing in dmesg.  I also added a 4GB swap file for good measure, but to no avail.
Comment 8 tt_1 2017-10-09 11:16:18 UTC
Correct me I am wrong, but you do try to compile on armv7a with hardfloat and hardened profile, right? In this case, and if it is not a lack of memory as a reason for this build failure, you might want to try to hand over --disable-startupcache via /etc/portage/env/ , drop a textfile named firefox with EXTRA_ECONF="--disable-startupcache" into env/www-client if you don't know how to do that. 

I found this hint in the arm overlay, which is outdated and focusses a lot on patches and fixes for softfloat, but it might be worth a try? There is also a tiny patch available (https://github.com/gentoo/arm/blob/master/www-client/firefox/files/firefox-52.0.1-disable_cachegen.patch) but I think that this simply makes --disable-startupcache the default value instead of enabling it during src_configure.
Comment 9 Wade Cline 2017-10-11 19:42:26 UTC
Auuugh, I thought that I had previously added '--disable-startupcache' but I left out the second 'E' in 'EXTRA_ECONF', thinking it was just 'EXTRA_CONF'.  It worked for me when I added that.
Comment 10 Wade Cline 2017-10-12 23:43:26 UTC
Created attachment 498486 [details]
FF segfault via 'script' and 'gdb'

I might have spoken too soon; although Firefox was installed and merged correctly, the program simply segfaults.  This attachment should contain output of a gdb session capture via 'script' (currently posting via Lynx); the issue *appears* to be in 'libxul.so'.  I'll see about getting a meaningful backtrace when able.
Comment 11 Wade Cline 2017-10-20 04:36:31 UTC
Created attachment 499346 [details]
backtrace + gdb

This is the backtrace that I'm getting.  The problem appears to be from the Google protobuf code, found in 'firefox-52.4.0esr/toolkit/components/protobuf/src/google/protobuf/stubs/once.cc'.  I couldn't figure out gdb well enough to get the 'status' variable, but I'm guessing that the protobuf hasn't been initalized and isn't set and it's trying to call the 'run' function (note how the final frame has an address 0xffff0fc0, suggesting to me that Closure* is NULL and 'run' is offset by about f000).
Comment 12 Wade Cline 2017-10-27 02:23:46 UTC
Created bug https://bugzilla.mozilla.org/show_bug.cgi?id=1412169 .  Also, note that, since opening this bug, the ebuild has moved to 52.4.0 (should I update the title?) and I enabled the 'eme-free' flag accordingly.
Comment 13 Jory A. Pratt gentoo-dev 2017-10-27 03:06:42 UTC
(In reply to Wade Cline from comment #12)
> Created bug https://bugzilla.mozilla.org/show_bug.cgi?id=1412169 .  Also,
> note that, since opening this bug, the ebuild has moved to 52.4.0 (should I
> update the title?) and I enabled the 'eme-free' flag accordingly.

updating the bug info will not change the fact we do not have anyone in the Mozilla team that has a fully working arms machine to help debug the issue at the moment. I will try and find time to update my chrome book and test.
Comment 14 Wade Cline 2017-10-27 06:38:38 UTC
(In reply to Jory A. Pratt from comment #13)
> updating the bug info will not change the fact we do not have anyone in the
> Mozilla team that has a fully working arms machine to help debug the issue
> at the moment. I will try and find time to update my chrome book and test.

I see.  I opened a bug with Mozilla in case they happen to know something about it or are able to provide ideas or hopefully patches.
Comment 15 Werner Meisner 2017-10-31 22:30:28 UTC
Created attachment 501506 [details]
Build.log
Comment 16 Werner Meisner 2017-10-31 22:34:58 UTC
Have same problem on PPC:


Portage 2.3.8 (python 2.7.12-final-0, default/linux/powerpc/ppc32/13.0, gcc-4.9.3, glibc-2.25-r8, 4.6.0 ppc64)
=================================================================
System uname: Linux-4.6.0-ppc64-PPC970MP,_altivec_supported-with-gentoo-2.4.1
KiB Mem:     2453764 total,   1635380 free
KiB Swap:    2097148 total,   2092952 free
Timestamp of repository gentoo: Sun, 29 Oct 2017 13:45:01 +0000
Head commit of repository gentoo: 4df908b29cf97e728c5217f1e405ed65c87bdae0
sh bash 4.3_p48-r1
ld GNU ld (Gentoo 2.28.1 p1.0) 2.28.1
app-shells/bash:          4.3_p48-r1::gentoo
dev-lang/perl:            5.24.3::gentoo
dev-lang/python:          2.7.12::gentoo, 3.4.5::gentoo
dev-util/cmake:           3.8.2::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.4.1-r2::gentoo
sys-apps/openrc:          0.32.1::gentoo
sys-apps/sandbox:         2.10-r4::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69::gentoo
sys-devel/automake:       1.11.6-r2::gentoo, 1.15.1-r1::gentoo
sys-devel/binutils:       2.28.1::gentoo
sys-devel/gcc:            4.9.3::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.4::gentoo (virtual/os-headers)
sys-libs/glibc:           2.25-r8::gentoo
Repositories:

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

private
    location: /usr/local/portdir_overlay
    masters: gentoo

Installed sets: @my-emacs-base, @my-latex-base, @my-sys-base, @my-x11-base
ACCEPT_KEYWORDS="ppc"
ACCEPT_LICENSE="* -@EULA"
CBUILD="powerpc-unknown-linux-gnu"
CFLAGS="-mcpu=G5 -O2 -ggdb"
CHOST="powerpc-unknown-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-mcpu=G5 -O2 -ggdb"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync multilib-strict news parallel-fetch preserve-libs protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://gd.tuwien.ac.at/opsys/linux/gentoo/ http://distfiles.gentoo.org http://www.ibiblio.org/pub/Linux/distributions/gentoo"
LANG="C"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_COMPRESS="gzip"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_EXTRA_OPTS=" --verbose "
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 acl alsa altivec berkdb big-endian bzip2 caps cli cracklib crypt cxx dri emacs fortran gdbm iconv ipv6 modules ncurses nls nptl openmp openssl pam pcre perl ppc python readline seccomp session ssl tcl tcpd tk unicode xattr zlib" ABI_PPC="32" ALSA_CARDS="aoa aoa-fabric-layout aoa-onyx aoa-soundbus aoa-soundbus-i2s aoa-tas aoa-toonie powermac usb-audio via82xx" 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" 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" INPUT_DEVICES="evdev keyboard mouse" KERNEL="linux" 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" POSTGRES_TARGETS="postgres9_5" PYTHON_SINGLE_TARGET="python3_4" PYTHON_TARGETS="python2_7 python3_4" QEMU_SOFTMMU_TARGETS="arm mips mipsel" QEMU_USER_TARGETS="arm armeb" RUBY_TARGETS="ruby22" USERLAND="GNU" VIDEO_CARDS="nouveau" 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, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS_FLAGS


[ebuild     U ] www-client/firefox-52.4.0 [45.8.0] USE="debug* gtk2%* jemalloc%* system-jpeg* system-libevent* system-libvpx* -bindist -custom-cflags -custom-optimization -dbus -eme-free% -gmp-autoupdate -hardened -hwaccel -jack% (-neon) (-pgo) -pulseaudio (-rust) (-selinux) -startup-notification (-system-cairo) -system-harfbuzz -system-icu -system-sqlite {-test} -wifi (-ffmpeg%*) (-gstreamer%) (-jemalloc3%) (-jit%)" L10N="-ach -af -an -ar -as -ast -az -bg -bn-BD -bn-IN -br -bs -ca -cak% -cs -cy -da -de -dsb% -el -en-GB -en-ZA -eo -es-AR -es-CL -es-ES -es-MX -et -eu -fa -ff% -fi -fr -fy -ga -gd -gl -gn% -gu -he -hi -hr -hsb -hu -hy -id -is -it -ja -ka% -kab% -kk -km -kn -ko -lij% -lt -lv -mai -mk -ml -mr -ms -nb -nl -nn -or -pa -pl -pt-BR -pt-PT -rm -ro -ru -si -sk -sl -son -sq -sr -sv -ta -te -th -tr -uk -uz -vi -xh -zh-CN -zh-TW (-be%)"

my Build.log is attachmet upside!
Comment 17 Jory A. Pratt gentoo-dev 2019-03-31 20:06:15 UTC
Please feel free to reopen and update any bug report that can be duplicated with current esr builds, 60.x. If you feel your feature needs to be re looked at in any of these bugs reopen and update, please attach patches when appropriate. Thank you Mozilla Team