<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>44007</bug_id>
          
          <creation_ts>2004-03-07 22:42 0000</creation_ts>
          <short_desc>Floating Point Error when trying to compile a52dec (with emerging along with k3b)</short_desc>
          <delta_ts>2004-03-09 10:31:42 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Ebuilds</component>
          <version>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>steverulz55@hotmail.com</reporter>
          <assigned_to>eradicator@gentoo.org</assigned_to>
          <cc>sound@gentoo.org</cc>

      

      
          <long_desc isprivate="0">
            <who>steverulz55@hotmail.com</who>
            <bug_when>2004-03-07 22:42:45 0000</bug_when>
            <thetext>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&apos;:
imdct.c:286: internal compiler error: Floating point exception
Please submit a full bug report,
with preprocessed source if appropriate.
See &lt;URL:http://bugs.gentoo.org/&gt; 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&apos;
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=&quot;x86 ~x86&quot;
AUTOCLEAN=&quot;yes&quot;
CFLAGS=&quot;-O3 -march=pentium3 -fprefetch-loop-arrays -funroll-loops -pipe&quot;
CHOST=&quot;i586-pc-linux-gnu&quot;
COMPILER=&quot;gcc3&quot;
CONFIG_PROTECT=&quot;/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&quot;
CONFIG_PROTECT_MASK=&quot;/etc/gconf /etc/terminfo /etc/env.d&quot;
CXXFLAGS=&quot;-O3 -march=pentium3 -fprefetch-loop-arrays -funroll-loops -pipe&quot;
DISTDIR=&quot;/usr/portage/distfiles&quot;
FEATURES=&quot;autoaddcvs ccache sandbox&quot;
GENTOO_MIRRORS=&quot;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&quot;
MAKEOPTS=&quot;-j2&quot;
PKGDIR=&quot;/usr/portage/packages&quot;
PORTAGE_TMPDIR=&quot;/var/tmp&quot;
PORTDIR=&quot;/usr/portage&quot;
PORTDIR_OVERLAY=&quot;&quot;
SYNC=&quot;rsync://rsync.gentoo.org/gentoo-portage&quot;
USE=&quot;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&quot;</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>seemant@gentoo.org</who>
            <bug_when>2004-03-07 23:02:27 0000</bug_when>
            <thetext>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</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>steverulz55@hotmail.com</who>
            <bug_when>2004-03-08 01:04:29 0000</bug_when>
            <thetext>thanks alot, a52dec compiled successfully after removing &quot;-funroll-loops&quot; and &quot;-fprefetch-loop-arrays&quot; in the CFLAGS, and after setting back to &quot;-O2&quot;

(that was the first setting I tried after the reply, so I don&apos;t know which was the specific CFLAGS option that caused it)</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>eradicator@gentoo.org</who>
            <bug_when>2004-03-08 04:03:32 0000</bug_when>
            <thetext>Please retry to tell us which specific flag caused the error so we can filter it out.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>steverulz55@hotmail.com</who>
            <bug_when>2004-03-08 22:25:19 0000</bug_when>
            <thetext>Sorry about that:
i took out the CXXFLAGS option &quot;-fprefetch-loop-arrays&quot; while leaving the rest of the options above unchanged and a52dec-0.74 compiled sucessfully.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>eradicator@gentoo.org</who>
            <bug_when>2004-03-09 10:31:42 0000</bug_when>
            <thetext>ok, thanks... now  filtering out that cfag...</thetext>
          </long_desc>
      
    </bug>

</bugzilla>