Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 75114 - emerge mythtv fails - crashes the build shell after ~3hrs compilation
Summary: emerge mythtv fails - crashes the build shell after ~3hrs compilation
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: Television related Applications in Gentoo's Portage
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-12-20 15:56 UTC by Sten Herrlin
Modified: 2005-02-01 09:08 UTC (History)
0 users

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 Sten Herrlin 2004-12-20 15:56:06 UTC
When I run 'emerge mythtv' the compilation fails after ~3hrs and the login shell crashes.

Reproducible: Always
Steps to Reproduce:
1. emerge mythtv

Actual Results:  
Logged out after ~3hrs compilation

Expected Results:  
!

Gentoo Base System version 1.6.8
Portage 2.0.51-r8 (default-linux/x86/2004.3, gcc-3.3.4, glibc-2.3.4.20041102-
r0, 2.6.9-gentoo-r9 i686)
=================================================================
System uname: 2.6.9-gentoo-r9 i686 Pentium III (Katmai)
Python:              dev-lang/python-2.3.4 [2.3.4 (#1, Dec 18 2004, 19:12:14)]
dev-lang/python:     2.3.4
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.5, 1.8.5-r2, 1.6.3, 1.7.9, 1.4_p6, 1.9.3
sys-devel/binutils:  2.15.92.0.2-r2
sys-devel/libtool:   1.5.10-r2
virtual/os-headers:  2.6.8.1-r1
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-march=pentium3 -O3 -pipe"
CHOST="i386-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.
3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config /
usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=pentium3 -O3 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms"
GENTOO_MIRRORS="http://ftp.du.se/pub/os/gentoo ftp://ftp6.uni-
erlangen.de/pub/mirrors/gentoo ftp://chod.cwru.edu/gentoo 
http://vlaai.snt.ipv6.utwente.nl/pub/os/linux/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X alsa apm arts avi berkdb bitmap-fonts crypt cups encode f77 foomaticdb 
fortran gdbm gif gnome gpm gtk gtk2 imlib ithreads jpeg kde libg++ libwww mad 
mikmod motif mpeg mysql ncurses nls oggvorbis opengl oss pam pdflib perl png 
python qt quicktime readline sdl spell ssl svga tcpd tiff truetype x86 xml2 
xmms xv zlib"
Comment 1 Doug Goldstein (RETIRED) gentoo-dev 2004-12-21 06:52:41 UTC
so basically your shell closes? I've never heard of this. And without more info, it's going to be impossible to track this down. One thing I can tell you is to lower from -O3 to -O2 in CFLAGS.

Also based on the fact that it's taking 3 hours to compile and the fact you've got a Katmai based P3 means you've got a really slow setup. Straight from the MythTV user guide, if you've got a PIII/733mhz it will allow for encoding 1 stream and NOT watch it at the sametime.

If bash is crashing from a compile, it sounds like you have deeper issues. Try running memtest overnight.
Comment 2 Doug Goldstein (RETIRED) gentoo-dev 2004-12-21 06:59:35 UTC
Something ferringb and I noticed, that I forgot to comment on before is that you have CHOST set for i386 yet an -march=Pentium3. So you've got some interesting binaries coming out. You're CHOST should really be i686 if you're going to target the Pentium3.
Comment 3 Roger 2005-01-08 16:34:13 UTC
FYI 
The latest stable cflags for pentium3 are:

/etc/make.conf
CFLAGS="-march=pentium3 -O3 -pipe -fomit-frame-pointer -mfpmath=sse"
Comment 4 Doug Goldstein (RETIRED) gentoo-dev 2005-01-09 01:01:50 UTC
stable according to who?

stable is "-march=pentium3 -O2 -pipe" and that's it. MythTV is KNOWN to have issues with -O3, so there's no way to say that -O3 is stable. -mfpmath=sse has also been called into question because of another set of directly written assembly code.

So your statement is about as far off the mark as it can get.
Comment 5 Sten Herrlin 2005-02-01 09:08:04 UTC
Thanks for your help. I already resolved the problem myself, but I forgot to
change the status of this bug-report. I tried using a 2.4 kernel first (since
it was in the example of the gentoo installation handbook) and later realized
I needed a 2.6 kernel to get the ivtv-drivers working. I then made the mistake
to use 'The complete Gentoo Linux 2.6 migration guide' , http://www.gentoo.org/doc/en/migration-to-2.6.xml, where the line 'emerge -a glibc' put gremlins in my machine.

I now have an even slower setup: PII 450 MHz. This is possible since I use
the Hauppauge PVR350 with mpeg2 hardware decoder+encoder. Except from stability
problems (possibly) with the ivtv-fb driver it is working fine.