Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 44007 - Floating Point Error when trying to compile a52dec (with emerging along with k3b)
Summary: Floating Point Error when trying to compile a52dec (with emerging along with ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Jeremy Huddleston (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-03-07 22:42 UTC by Stephen Lau
Modified: 2004-03-09 10:31 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 Stephen Lau 2004-03-07 22:42:45 UTC
Output during compile:

....

gcc -DHAVE_CONFIG_H -I. -I. -I../include -I../include -I../include -march=pentium3 -fprefetch-loop-arrays -funroll-loops -pipe -fPIC -O3 -fomit-frame-pointer -mcpu=pentium -c imdct.c -o imdct.lo
gcc -DHAVE_CONFIG_H -I. -I. -I../include -I../include -I../include -march=pentium3 -fprefetch-loop-arrays -funroll-loops -pipe -fPIC -O3 -fomit-frame-pointer -mcpu=pentium -c bitstream.c -o bitstream.lo
imdct.c: In function `a52_imdct_512':
imdct.c:286: internal compiler error: Floating point exception
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://bugs.gentoo.org/> for instructions.
Preprocessed source stored into /var/tmp/portage/a52dec-0.7.4/temp/ccPkajbt.out file, please attach this to your bugreport
make[1]: *** [imdct.lo] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory `/var/tmp/portage/a52dec-0.7.4/work/a52dec-0.7.4/liba52'
make: *** [all-recursive] Error 1
 
!!! ERROR: media-libs/a52dec-0.7.4 failed.
!!! Function src_compile, Line 29, Exitcode 2
!!! emake failed


Reproducible: Always
Steps to Reproduce:
1. emerge k3b
or emerge a52dec


Actual Results:  
The same error is displayed

Expected Results:  
Compiled successfully

Portage 2.0.50-r1 (default-x86-1.4, gcc-3.3.3, glibc-2.3.3_pre20040207-r0,
2.4.22-gentoo-r5)
=================================================================
System uname: 2.4.22-gentoo-r5 i686 Pentium III (Coppermine)
Gentoo Base System version 1.4.3.13p1
Autoconf: sys-devel/autoconf-2.59-r3
Automake: sys-devel/automake-1.8.2
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-O3 -march=pentium3 -fprefetch-loop-arrays -funroll-loops -pipe"
CHOST="i586-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3.1/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config
/usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O3 -march=pentium3 -fprefetch-loop-arrays -funroll-loops -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="http://mirror.pacific.net.au/linux/Gentoo/
ftp://203.16.234.20/pub/gentoo/ ftp://203.16.234.19/pub/gentoo/
ftp://ftp.vic.keypoint.com.au"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X aalib apm arts avi berkdb cdr crypt cups encode esd foomaticdb gdbm gif
gnome gpm gtk gtk2 imlib java jpeg kde libg++ libwww mad mikmod motif mozilla
mpeg ncurses nls oggvorbis opengl oss pam pdflib perl png python qt quicktime
readline sdl slang spell ssl svga tcltk tcpd truetype x86 xml2 xmms xv zlib"
Comment 1 Seemant Kulleen (RETIRED) gentoo-dev 2004-03-07 23:02:27 UTC
can you trim your CFLAGS a bit and try again, please
specifically, take out the -funroll-loops and -fprefetch-loop-arrays
you may also want to go back down to -O2
Comment 2 Stephen Lau 2004-03-08 01:04:29 UTC
thanks alot, a52dec compiled successfully after removing "-funroll-loops" and "-fprefetch-loop-arrays" in the CFLAGS, and after setting back to "-O2"

(that was the first setting I tried after the reply, so I don't know which was the specific CFLAGS option that caused it)
Comment 3 Jeremy Huddleston (RETIRED) gentoo-dev 2004-03-08 04:03:32 UTC
Please retry to tell us which specific flag caused the error so we can filter it out.
Comment 4 Stephen Lau 2004-03-08 22:25:19 UTC
Sorry about that:
i took out the CXXFLAGS option "-fprefetch-loop-arrays" while leaving the rest of the options above unchanged and a52dec-0.74 compiled sucessfully.
Comment 5 Jeremy Huddleston (RETIRED) gentoo-dev 2004-03-09 10:31:42 UTC
ok, thanks... now  filtering out that cfag...