Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 109340 - mozilla and firefox build failure: xpidl segmentation fault
Summary: mozilla and firefox build failure: xpidl segmentation fault
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: Mozilla Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-10-15 01:14 UTC by Török Edwin
Modified: 2006-09-25 10:07 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Török Edwin 2005-10-15 01:14:38 UTC
When I emerge 
mozilla (1.7.12-r2),mozilla-firefox(1.0.7-r2, and 1.0.6) my build fails.
It says xpidl did a segmentation fault. 
I have a lot of CFLAGS in /etc/make.conf, so I tried without any CFLAGS, but
it still gave the same error.
I also tried : chpax -pemrxs xpidl, and then ebuild merge again, but still the 
same error.
Note: I use gcc 3.4.4 (with ssp, and pie patches), but my kernel doesn't have 
the pax patches.
Mozilla also blocks openoffice from building, since it wants to emerge mozilla 
before openoffice.

Reproducible: Always
Steps to Reproduce:
Each of these 3 cases cause a build failure:
1.emerge mozilla-firefox
2.emerge mozilla
3.CFLAGS="" CXXFLAGS="" MAKEOPTS="-j1" emerge mozilla-firefox

Actual Results:  
Creating _xpidlgen/.done
nsIConsoleListener.idl
../../dist/bin/xpidl -m header -w -I. -I../../dist/idl -o _xpidlgen/
nsIConsoleListener nsIConsoleListener.idl
gmake[3]: *** [_xpidlgen/nsIConsoleListener.h] Segmentation fault
gmake[3]: *** Deleting file `_xpidlgen/nsIConsoleListener.h'
gmake[3]: Leaving directory `/var/tmp/portage/mozilla-firefox-1.0.7-r2/work/
mozilla/xpcom/base'
gmake[2]: *** [export] Error 2
gmake[2]: Leaving directory `/var/tmp/portage/mozilla-firefox-1.0.7-r2/work/
mozilla/xpcom'
gmake[1]: *** [tier_2] Error 2
gmake[1]: Leaving directory `/var/tmp/portage/mozilla-firefox-1.0.7-r2/work/
mozilla'
make: *** [default] Error 2


Expected Results:  
build mozilla, and install

Gentoo Base System version 1.6.13
Portage 2.0.51.22-r3 (default-linux/x86/2005.1, gcc-3.4.4, glibc-2.3.5-r2, 2.6.
13-ck7 i686)
=================================================================
System uname: 2.6.13-ck7 i686 AMD Athlon(tm) XP 2100+
ccache version 2.3 [enabled]
dev-lang/python:     2.3.5-r2, 2.4.1-r1
sys-apps/sandbox:    1.2.11
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.15.92.0.2-r10
sys-devel/libtool:   1.5.20
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O3 -march=athlon-xp -fomit-frame-pointer -pipe -fforce-addr -momit-
leaf-frame-pointer -ftracer -fno-ident -funroll-loops -maccumulate-outgoing-args 
-fprefetch-loop-arrays -malign-double -ffast-math"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/
share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /
usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/splash /etc/terminfo /etc/env.d"
CXXFLAGS="-O3 -march=athlon-xp -fomit-frame-pointer -pipe -fforce-addr -momit-
leaf-frame-pointer -ftracer -fno-ident -funroll-loops -maccumulate-outgoing-args 
-fprefetch-loop-arrays -malign-double -ffast-math -fvisibility-inlines-hidden"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://ftp.roedu.net/pub/mirrors/gentoo.org/ http://ftp.lug.ro/
gentoo/"
LDFLAGS=""
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 3dnow X Xaw3d acpi alsa apm arts avi bash-completion berkdb bitmap-
fonts bzip2 caps cdr clamav crypt cups curl curlwrappers dbus dga dio directfb 
dlloader dri eds emacs emacs-w3 emboss encode esd exif expat fam fbcon 
foomaticdb fortran ftp gb gdbm geoip gif ginac glut gnome gnutls gpm gstreamer 
gtk gtk2 gtkhtml hal icq idn imagemagick imap imlib ipv6 jabber java jpeg kde 
lesstif libg++ libwww lm_sensors mad mikmod mime mmap mmx motif mozilla mp3 mpeg 
ncurses nls nocd nptl nptlonly nsplugin ogg oggvorbis openal opengl oscar oss 
pam pcntl pcre pdflib perl plotutils png posix python qt quicktime readline sdl 
session sharedmem skey slang sockets socks5 spell sse ssl symlink sysvipc tcltk 
tcpd threads tiff truetype truetype-fonts type1-fonts vcd vorbis xine xml2 xmms 
xosd xprint xv yahoo zlib userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LINGUAS
Comment 1 Stuart Longland (RETIRED) gentoo-dev 2006-09-25 05:51:47 UTC
Have you tried the later Firefox releases 1.0.7-r4 or 1.5.0.x at all?

The other thing you might like to try, is turning down those CFLAGS.  Something like "-O3 -march=athlon-xp -pipe", or even -O2.

-ffastmath should definately be taken out, it's known to cause issues... in fact, I can be almost certain that it's causing problems here.

Can you try the suggestions above (newer ebuild and reducing CFLAGS) and report back?

Thanks.
Comment 2 Török Edwin 2006-09-25 10:07:49 UTC
(In reply to comment #1)
> Have you tried the later Firefox releases 1.0.7-r4 or 1.5.0.x at all?

I opened this bug a year ago. Since then I compiled firefox successfully, but I forgot to close this bugreport.