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

Bug 61950

Summary: failed to compile libmpeg2-0.4.0b. (internal compiler error: Floating point exception)
Product: Gentoo Linux Reporter: Christoph Fürstaller <chrisi159>
Component: [OLD] LibraryAssignee: Gentoo Media-video project <media-video>
Status: RESOLVED NEEDINFO    
Severity: critical    
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
URL: http://nopaste.php.cd/27246
Whiteboard:
Package list:
Runtime testing required: ---

Description Christoph Fürstaller 2004-08-27 10:17:41 UTC
When i try to emerge libmpeg2-0.4.0b, I get an internal compiler error: Floating point exception.

Reproducible: Always
Steps to Reproduce:
1.emerge libmpeg2-0.4.0b
2.
3.

Actual Results:  
Emerge stopps with an Error.

Expected Results:  
Emerge this software.

Portage 2.0.50-r10 (default-x86-2004.2, gcc-3.3.3, glibc-2.3.3.20040420-r1, 2.6.
8.1)
=================================================================
System uname: 2.6.8.1 i686 Intel(R) Pentium(R) M processor 1600MHz
Gentoo Base System version 1.4.16
distcc 2.13 i386-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
Autoconf: sys-devel/autoconf-2.59-r4
Automake: sys-devel/automake-1.8.5-r1
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -march=pentium3 -pipe -fomit-frame-pointer -fforce-addr -frename-
registers -fprefetch-loop-arrays -falign-functions=64"
CHOST="i386-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.
2/share/config /usr/kde/3.3/share/config:/usr/kde/3.3/env:/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="-O2 -march=pentium3 -pipe -fomit-frame-pointer -fforce-addr -frename-
registers -fprefetch-loop-arrays -falign-functions=64"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="http://gentoo.inode.at"
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 cdr crypt cups dvd encode foomaticdb gdbm gif 
gpm gtk2 imlib jpeg kde libg++ libwww mad mikmod motif mpeg ncurses nls 
oggvorbis opengl osspam pdflib perl png python qt quicktime readline sdl slang 
spell ssl svga tcpd truetype usb x86 xml2 xmms xv zlib"
Comment 1 Christoph Fürstaller 2004-08-27 10:44:36 UTC
I tried to upload the two files several times, but it did'n work : |
Comment 2 Javier Valencia 2004-11-26 05:08:07 UTC
You have gcc-3.3.3 (me too) and libmpeg2 searches for gcc-3.3.2 libs (in my situation):

gcc -Wall -march=i686 -mcpu=i686 -pipe -O3 -fomit-frame-pointer -fno-common -mcpu=pentiumpro -I/usr/X11R6/include -I/usr/include/SDL -D_REENTRANT -o extract_mpeg2 extract_mpeg2.o getopt.o 
/bin/sh ../libtool --mode=link gcc -Wall -march=i686 -mcpu=i686  -pipe -O3 -fomit-frame-pointer -fno-common -mcpu=pentiumpro -I/usr/X11R6/include -I/usr/include/SDL -D_REENTRANT    -o corrupt_mpeg2  corrupt_mpeg2.o getopt.o  
libtool: link: cannot find the library `/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/libstdc++.la'
make[1]: *** [mpeg2dec] Error 1
make[1]: *** Waiting for unfinished jobs....

I have gcc version 3.3.3 20040412 (Gentoo Linux 3.3.3-r6, ssp-3.3.2-2, pie-8.7.6)
Comment 3 Javier Valencia 2004-11-26 05:28:25 UTC
I made a link from 3.3.3 dir to 3.3.2 and worked for me. Also, 'grep -R "3.3.2" *' in the mpeg-0.4.0b directory didn't give any result. The same in /etc, but libmpeg always try to use 3.3.2 libs. 
Comment 4 Jan Brinkmann (RETIRED) gentoo-dev 2005-01-27 11:39:59 UTC
Javier:

the following command will fix your problem:

'# fix_libtool_files.sh 3.3.2'

Comment 5 Jan Brinkmann (RETIRED) gentoo-dev 2005-01-27 11:46:51 UTC
Christoph F
Comment 6 Jan Brinkmann (RETIRED) gentoo-dev 2005-01-27 11:46:51 UTC
Christoph Fürstaller:

do you also have problems compiling it when you set your CFLAGS to "-O2 -march=pentium3 -pipe" ?
Comment 7 Jan Brinkmann (RETIRED) gentoo-dev 2005-03-12 17:33:07 UTC
feel free to reopen if this is still an issue if you compile things with sane cflags.