Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 391025 - mail-client/thunderbird-8.0-r1 fails to install (precompile_cache.js)
Summary: mail-client/thunderbird-8.0-r1 fails to install (precompile_cache.js)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Mozilla Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-19 16:35 UTC by Small_Penguin
Modified: 2011-12-23 19:49 UTC (History)
0 users

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


Attachments
Build log (bzip2) (build.log.bz2,229.55 KB, application/octet-stream)
2011-11-20 13:18 UTC, Small_Penguin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Small_Penguin 2011-11-19 16:35:37 UTC
Last messages of the build log:

[...]
  adding: defaults/pref/smime.js (deflated 50%)
  adding: defaults/profile/ (stored 0%)
  adding: defaults/profile/prefs.js (deflated 35%)
  adding: defaults/profile/localstore.rdf (deflated 19%)
  adding: defaults/profile/mimeTypes.rdf (deflated 64%)
  adding: greprefs.js (deflated 73%)
/bin/sh: line 1: 13777 Segmentation fault      /var/tmp/portage/mail-client/thunderbird-8.0-r1/work/comm-release/mail/installer/../../mozilla/dist/bin/run-mozilla.sh /var/tmp/portage/mail-client/thunderbird-8.0-r1/work/comm-release/mozilla/dist/bin/xpcshell -g "$PWD" -a "$PWD" -f /var/tmp/portage/mail-client/thunderbird-8.0-r1/work/comm-release/mozilla/toolkit/mozapps/installer/precompile_cache.js -e "populate_startupcache('GreD', 'omni.jar', 'startupCache.zip');"
make[1]: *** [install] Error 139
make[1]: Leaving directory `/var/tmp/portage/mail-client/thunderbird-8.0-r1/work/comm-release/mail/installer'
make: *** [install] Error 2
emake failed
 * ERROR: mail-client/thunderbird-8.0-r1 failed (install phase):
 *   emake install failed
 * 
 * Call stack:
 *     ebuild.sh, line  84:  Called src_install
 *   environment, line 6360:  Called die
 * The specific snippet of code:
 *       emake DESTDIR="${D}" install || die "emake install failed";
 * 
 * If you need support, post the output of 'emerge --info =mail-client/thunderbird-8.0-r1',
 * the complete build log and the output of 'emerge -pqv =mail-client/thunderbird-8.0-r1'.
 * The complete build log is located at '/var/log/portage/mail-client:thunderbird-8.0-r1:20111119-152658.log'.
 * The ebuild environment file is located at '/var/tmp/portage/mail-client/thunderbird-8.0-r1/temp/environment'.
 * S: '/var/tmp/portage/mail-client/thunderbird-8.0-r1/work/comm-release'
 * QA Notice: command not found:
 * 
 *      ./db/makefiles.sh: line 38: $'\r': command not found


What is strange is that it compiled fine on another machine (amd64 multilib).

Portage 2.2.0_alpha76 (default/linux/amd64/10.0/no-multilib, gcc-4.6.2, glibc-2.13-r4, 3.2.0-rc1+ x86_64)
=================================================================
System uname: Linux-3.2.0-rc1+-x86_64-Intel-R-_Core-TM-2_Duo_CPU_T9550_@_2.66GHz-with-gentoo-2.1
Timestamp of tree: Sat, 19 Nov 2011 14:15:01 +0000
app-shells/bash:          4.2_p10
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.7.2-r3, 3.2.2
dev-util/cmake:           2.8.6-r3
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.1
sys-apps/openrc:          0.9.4
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.9.6-r3, 1.11.1-r1
sys-devel/binutils:       2.21.1-r1
sys-devel/gcc:            4.6.2
sys-devel/gcc-config:     1.5-r2
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r3
sys-kernel/linux-headers: 2.6.39 (virtual/os-headers)
sys-libs/glibc:           2.13-r4
Repositories: gentoo x11 misc
Installed sets: @system
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=native -msse4.1 -pipe -fno-ident"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/env.d/java/ /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 -march=native -msse4.1 -pipe -fno-ident"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs collision-protect distlocks ebuild-locks fixlafiles news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox"
LANG="de_DE.UTF-8"
LC_ALL="de_DE.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -Wl,--sort-common -Wl,-z,-now"
LINGUAS="de"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local/x11 /usr/portage/local/misc"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="7zip X a52 aac acpi alsa amd64 apache2 bash-completion berkdb bzip2 cairo cdparanoia cdr cli consolekit cracklib crypt cups curl custom-cflags custom-cxxflags cxx dbus dri dvd dvdr dvdread emacs encode exif ffmpeg firefox flac fortran ftp gdbm gif glitz gs gtk iconv idn imagemagick imap ipv6 java javascript jikes jpeg kdehiddenvisibility libnotify lm_sensors lzma matroska mime mmkeys mmx mng modules mp3 mudflap musepack ncurses nls nptl nptlonly nsplugin ogg openal opengl openmp pam pch pcre pdf png policykit pppd readline recode session shorten sndfile speex sse sse2 sse3 ssl ssse3 startup-notification svg sysfs tcpd tetex theroa threads tidy tiff truetype udev unicode usb vcd vdpau vorbis wmf x264 xcomposite xine xinerama xorg xpm xprint xscreensaver xv xvid zlib" ALSA_CARDS="intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="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 stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="evdev synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="radeon" XFCE_PLUGINS="brightness logout menu 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:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS



Reproducible: Always
Comment 1 Small_Penguin 2011-11-19 16:40:24 UTC
Similar failure with the latest firefox ebuild:

  adding: defaults/profile/mimeTypes.rdf (deflated 44%)
  adding: defaults/profile/bookmarks.html (deflated 73%)
  adding: defaults/profile/chrome/ (stored 0%)
  adding: defaults/profile/chrome/userChrome-example.css (deflated 46%)
  adding: defaults/profile/chrome/userContent-example.css (deflated 47%)
  adding: greprefs.js (deflated 73%)
/bin/sh: line 1: 18342 Segmentation fault      /var/tmp/portage/www-client/firefox-8.0/work/mozilla-release/obj-x86_64-unknown-linux-gnu/dist/bin/run-mozilla.sh /var/tmp/portage/www-client/firefox-8.0/work/mozilla-release/obj-x86_64-unknown-linux-gnu/dist/bin/xpcshell -g "$PWD" -a "$PWD" -f /var/tmp/portage/www-client/firefox-8.0/work/mozilla-release/toolkit/mozapps/installer/precompile_cache.js -e "populate_startupcache('GreD', 'omni.jar', 'startupCache.zip');"
make[1]: *** [install] Error 139
make[1]: Leaving directory `/var/tmp/portage/www-client/firefox-8.0/work/mozilla-release/obj-x86_64-unknown-linux-gnu/browser/installer'
make: *** [install] Error 2
emake failed
 * ERROR: www-client/firefox-8.0 failed (install phase):
 *   emake install failed
 * 
 * Call stack:
 *     ebuild.sh, line  84:  Called src_install
 *   environment, line 6749:  Called die
 * The specific snippet of code:
 *       MOZ_MAKE_FLAGS="${MAKEOPTS}" emake DESTDIR="${D}" install || die "emake install failed";
 * 
 * If you need support, post the output of 'emerge --info =www-client/firefox-8.0',
 * the complete build log and the output of 'emerge -pqv =www-client/firefox-8.0'.
 * The complete build log is located at '/var/log/portage/www-client:firefox-8.0:20111119-160203.log'.
 * The ebuild environment file is located at '/var/tmp/portage/www-client/firefox-8.0/temp/environment'.
 * S: '/var/tmp/portage/www-client/firefox-8.0/work/mozilla-release'
Comment 2 Small_Penguin 2011-11-19 21:31:00 UTC
Sorry, I just notified I used custom-flags and masked gcc. Don't know when I enabled that. Again sorry, I'll try a valid configuration and reopen if the problem persists.
Comment 3 Small_Penguin 2011-11-20 13:12:19 UTC
Ok, reopen bug. It doesn't build with gcc-4.5.3 and -custom-cflags either, producing the same error message.
Comment 4 Small_Penguin 2011-11-20 13:18:24 UTC
Created attachment 293209 [details]
Build log (bzip2)

Additionally, on all builds that worked on other machines, lightning was only available in english, not in german. I had to manually download and install the add-on from mozilla to get it translated to german. Should I file another bug for this?
Comment 5 Jory A. Pratt gentoo-dev 2011-11-20 19:59:30 UTC

*** This bug has been marked as a duplicate of bug 391051 ***
Comment 6 Jory A. Pratt gentoo-dev 2011-11-21 15:09:48 UTC
reopening. Please refer to http://www.gentoo.org/proj/en/qa/backtraces.xml
Comment 7 Small_Penguin 2011-12-03 23:05:20 UTC
Ok, I tried to do a backtrace, however the following is not very helpful, right?

Reading symbols from /var/tmp/portage/www-client/firefox-8.0/work/mozilla-release/obj-x86_64-unknown-linux-gnu/dist/bin/xpcshell...done.
(gdb) run
Starting program: /var/tmp/portage/www-client/firefox-8.0/work/mozilla-release/obj-x86_64-unknown-linux-gnu/dist/bin/xpcshell -f /var/tmp/portage/www-client/firefox-8.0/work/mozilla-release/toolkit/mozapps/installer/precompile_cache.js -e populate_startupcache\(\'GreD\',\ \'omni.jar\',\ \'startupCache.zip\'\)\;
[Thread debugging using libthread_db enabled]
Error while reading shared library symbols for /var/tmp/portage/www-client/firefox-8.0/work/mozilla-release/obj-x86_64-unknown-linux-gnu/dist/bin/libxul.so:
Dwarf Error: Cannot handle DW_FORM_<unknown> in DWARF reader [in module /var/tmp/portage/www-client/firefox-8.0/work/mozilla-release/obj-x86_64-unknown-linux-gnu/dist/bin/libxul.so]

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff66d8fdc in ?? ()
   from /var/tmp/portage/www-client/firefox-8.0/work/mozilla-release/obj-x86_64-unknown-linux-gnu/dist/bin/libxul.so
(gdb) set logging file /tmp/backtrace.log
(gdb) set logging on
Copying output to /tmp/backtrace.log.
(gdb) bt
#0  0x00007ffff66d8fdc in ?? ()
   from /var/tmp/portage/www-client/firefox-8.0/work/mozilla-release/obj-x86_64-unknown-linux-gnu/dist/bin/libxul.so
#1  0x00007ffff66d7381 in ?? ()
   from /var/tmp/portage/www-client/firefox-8.0/work/mozilla-release/obj-x86_64-unknown-linux-gnu/dist/bin/libxul.so
#2  0x0000000000000005 in ?? ()
#3  0x00007ffff6027bd0 in ?? ()
   from /var/tmp/portage/www-client/firefox-8.0/work/mozilla-release/obj-x86_64-unknown-linux-gnu/dist/bin/libxul.so
#4  0x0000000000000001 in ?? ()
#5  0x00007ffff7de9ece in ?? () from /lib64/ld-linux-x86-64.so.2
#6  0x00007ffff7de9fb6 in ?? () from /lib64/ld-linux-x86-64.so.2
#7  0x00007ffff7ddd65a in ?? () from /lib64/ld-linux-x86-64.so.2
#8  0x0000000000000005 in ?? ()
#9  0x00007fffffffd805 in ?? ()
#10 0x00007fffffffd871 in ?? ()
#11 0x00007fffffffd874 in ?? ()
#12 0x00007fffffffd8df in ?? ()
#13 0x00007fffffffd8e2 in ?? ()
#14 0x0000000000000000 in ?? ()
(gdb) thread apply all bt full

Thread 1 (Thread 0x7ffff7fb8900 (LWP 19805)):
#0  0x00007ffff66d8fdc in ?? ()
   from /var/tmp/portage/www-client/firefox-8.0/work/mozilla-release/obj-x86_64-unknown-linux-gnu/dist/bin/libxul.so
No symbol table info available.
#1  0x00007ffff66d7381 in ?? ()
   from /var/tmp/portage/www-client/firefox-8.0/work/mozilla-release/obj-x86_64-unknown-linux-gnu/dist/bin/libxul.so
No symbol table info available.
#2  0x0000000000000005 in ?? ()
No symbol table info available.
#3  0x00007ffff6027bd0 in ?? ()
   from /var/tmp/portage/www-client/firefox-8.0/work/mozilla-release/obj-x86_64-unknown-linux-gnu/dist/bin/libxul.so
No symbol table info available.
#4  0x0000000000000001 in ?? ()
No symbol table info available.
#5  0x00007ffff7de9ece in ?? () from /lib64/ld-linux-x86-64.so.2
No symbol table info available.
#6  0x00007ffff7de9fb6 in ?? () from /lib64/ld-linux-x86-64.so.2
No symbol table info available.
#7  0x00007ffff7ddd65a in ?? () from /lib64/ld-linux-x86-64.so.2
No symbol table info available.
#8  0x0000000000000005 in ?? ()
No symbol table info available.
#9  0x00007fffffffd805 in ?? ()
No symbol table info available.
#10 0x00007fffffffd871 in ?? ()
No symbol table info available.
#11 0x00007fffffffd874 in ?? ()
No symbol table info available.
#12 0x00007fffffffd8df in ?? ()
No symbol table info available.
#13 0x00007fffffffd8e2 in ?? ()
No symbol table info available.
#14 0x0000000000000000 in ?? ()
---Type <return> to continue, or q <return> to quit---
No symbol table info available.

Ok, I did the backtrace for firefox-8.0, but the error is the same as with thunderbird (in fact I tried debugging both packages).
FEATURES="nostrip"
CFLAGS="-O2 -march=native -pipe -fno-ident -ggdb"

What's that DWARF error about? What packages should I rebuild to resolve the "missing symbol table" issues? What is ?? ()? Did I make a mistake following instructions provided by backtrace.xml? Any ideas what else I could try?

xulrunner-2.0.1-r1 compiles fine, this only concerns firefox and thunderbird. I've tried to build version 7 of firefox and thunderbird, and they now bring up the same error. I switched to thunderbird-bin for now.
Comment 8 Jory A. Pratt gentoo-dev 2011-12-13 17:22:10 UTC
check dmesg for the reason of segfault, also how much space is avaliable for your compile?
Comment 9 Small_Penguin 2011-12-14 11:02:07 UTC
Thanks for your response.

dmesg shows similar messages:
xpcshell[19023]: segfault at 0 ip 00007f7499c70c0c sp 00007fff9fabd248 error 6 in libxul.so[7f749905c000+1855000]
xpcshell[30330]: segfault at 0 ip 00007f5f78546c0c sp 00007fff3afdcb18 error 6 in libxul.so[7f5f77932000+1855000]
xpcshell[22989]: segfault at 0 ip 00007fa078e43c0c sp 00007fff7606db88 error 6 in libxul.so[7fa07822f000+1855000]

Strange, the compiled libxul.so seems quite big (480MiB) for a library.

I've already rebuild my toolchain because I've switched back to multilib from no-multilib. Additionally "emerge -e firefox" with debugging information (splitdebug now). However, this did not make the error go away, nor did it provide more debugging information.

There should be enough space, as libreoffice compiles fine; df:
/dev/sda10   16768288    211649   16556639    2% /var/tmp
Comment 10 Small_Penguin 2011-12-14 11:53:05 UTC
find -type f -iname "libxul.so" | xargs ls -la:
-rwxr-xr-x 1 root    root    486193936 14. Dez 12:46 ./mozilla-release/obj-x86_64-unknown-linux-gnu/dist/firefox/libxul.so
-rwxr-xr-x 1 portage portage 486193936 14. Dez 12:44 ./mozilla-release/obj-x86_64-unknown-linux-gnu/toolkit/library/libxul.so

find -type f -iname "libxul.so" | xargs file:
./mozilla-release/obj-x86_64-unknown-linux-gnu/toolkit/library/libxul.so: ELF 64-bit LSB shared object, x86-64, version 1 (GNU/Linux), dynamically linked, not stripped
./mozilla-release/obj-x86_64-unknown-linux-gnu/dist/firefox/libxul.so:    ELF 64-bit LSB shared object, x86-64, version 1 (GNU/Linux), dynamically linked, not stripped

This is for firefox, but I guess it's the same or similar for thunderbird.

Anything else I could try/provide?
Comment 11 Small_Penguin 2011-12-22 21:50:22 UTC
At last! firefox-9 builds again. I guess thunderbird-9 will too when it gets released. At least I hope so. I will report back then.
Comment 12 Small_Penguin 2011-12-23 19:49:06 UTC
Thunderbird-8.0-r1 builds again too. I'm not sure about this, but I believe my problems were caused by a bug in dev-libs/nss, which was fixed in 3.13.1-r1:

equery c nss:

  19 Dec 2011; Jory A. Pratt <anarchy@gentoo.org> -nss-3.13.1.ebuild,
  +nss-3.13.1-r1.ebuild, +files/nss-3.13.1-pkcs11n-header-fix.patch:
  Fix pkcs11n header, fix mulitlib portage compilation

Anyways, thanks for your help, I'm glad building firefox and thunderbird works again.