Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 71173 - libvorbis-1.1.0 crashed during compile, reporting internal compiler (gcc 3.4.2) error (Floating point exception) on mdct.c and smallft.c
Summary: libvorbis-1.1.0 crashed during compile, reporting internal compiler (gcc 3.4....
Status: RESOLVED WORKSFORME
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: x86 Linux
: High normal
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-11-14 08:27 UTC by Tomasz Mloduchowski
Modified: 2004-11-14 09:34 UTC (History)
0 users

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


Attachments
Preprocessed source file (cc1mbsui.out,93.77 KB, text/plain)
2004-11-14 08:29 UTC, Tomasz Mloduchowski
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Tomasz Mloduchowski 2004-11-14 08:27:34 UTC
During emerge libvorbis (1.1.0 version selected as newest by portage) compilation fails due to compiler error (FPE) when compiling mdct.c and smallft.c

I use i586-linux-gnu-3.4.2 with following flags and uses:
CFLAGS="-O3 -march=pentium3 -mmmx -msse -fomit-frame-pointer -pipe -fforce-addr -fforce-mem -ffast-math -mfpmath=sse,387 -fprefetch-loop-arrays -fmove-all-movables -freduce-all-givs -momit-leaf-frame-pointer -ftracer -fno-crossjumping -maccumulate-outgoing-args"
USE="-nls mmx sse -directfb -ggi -postgres -kde dvd avi encode ncurses samba usb zlib xvid pnp network crypt imap"

Reproducible: Always
Steps to Reproduce:
1. Put the following into /etc/make.conf, 
CFLAGS="-O3 -march=pentium3 -mmmx -msse -fomit-frame-pointer -pipe -fforce-addr -fforce-mem -ffast-math -mfpmath=sse,387 -fprefetch-loop-arrays -fmove-all-movables -freduce-all-givs -momit-leaf-frame-pointer -ftracer -fno-crossjumping -maccumulate-outgoing-args"
USE="-nls mmx sse -directfb -ggi -postgres -kde dvd avi encode ncurses samba usb zlib xvid pnp network crypt imap"
2. emerge -e libvorbis (You need -e to recompile the gcc etc. using new flags IMHO)

Actual Results:  
 gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../include -O20 -ffast-math -D_REENTRANT
-fsigned-char -O3 -mmmx -msse -fomit-frame-pointer
-pipe -fforce-addr -fforce-mem -ffast-math -mfpmath=sse,387
-fprefetch-loop-arrays -fmove-all-movables -freduce-all-givs
-momit-leaf-frame-pointer -ftracer -fno-crossjumping -maccumulate-outgoing-args
-mno-sse2 -fPIC -DUSE_MEMORY_H -MT smallft.lo -MD -MP -MF .deps/smallft.Tpo -c
smallft.c  -fPIC -DPIC -o .libs/smallft.o
smallft.c: In function `dradf2':
smallft.c:167: 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.


Expected Results:  
Go to next file in sequence.

Portage 2.0.51-r3 (default-x86-2004.2, gcc-3.4.2, glibc-2.3.4.20040808-r1,
2.6.9-gentoo-r3 i686)
=================================================================
System uname: 2.6.9-gentoo-r3 i686 Pentium III (Coppermine)
Gentoo Base System version 1.4.16
Autoconf: sys-devel/autoconf-2.59-r5
Automake: sys-devel/automake-1.8.5-r1
Binutils: sys-devel/binutils-2.14.90.0.8-r1
Headers:  sys-kernel/linux-headers-2.4.21-r1
Libtools: sys-devel/libtool-1.5.2-r5
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O3 -march=pentium3 -mmmx -msse -fomit-frame-pointer -pipe -fforce-addr
-fforce-mem -ffast-math -mfpmath=sse,387 -fprefetch-loop-arrays
-fmove-all-movables -freduce-all-givs -momit-leaf-frame-pointer -ftracer
-fno-crossjumping -maccumulate-outgoing-args"
CHOST="i686-pc-linux-gnu"
COMPILER=""
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 /usr/share/texmf/dvipdfm/config/
/usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/
/usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/bind
/var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O3 -march=pentium3 -mmmx -msse -fomit-frame-pointer -pipe
-fforce-addr -fforce-mem -ffast-math -mfpmath=sse,387 -fprefetch-loop-arrays
-fmove-all-movables -freduce-all-givs -momit-leaf-frame-pointer -ftracer
-fno-crossjumping -maccumulate-outgoing-args"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache distlocks sandbox"
GENTOO_MIRRORS="ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo
http://ftp-mirror.internap.com/pub/gentoo/ http://mirrors.acm.cs.rpi.edu/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 bonobo crypt cups dvd encode esd
f77 foomaticdb fortran gdbm gif gnome gpm gtk gtk2 gtkhtml guile imap imlib java
jpeg libg++ libwww mad mikmod mmx motif mpeg ncurses network oggvorbis opengl
oss pam pdflib perl png pnp python qt quicktime readline samba scanner sdl slang
spell sse ssl svga tcltk tcpd tetex truetype usb x86 xml2 xmms xv
xvid zlib"
Comment 1 Tomasz Mloduchowski 2004-11-14 08:29:54 UTC
Created attachment 43933 [details]
Preprocessed source file
Comment 2 Carsten Lohrke (RETIRED) gentoo-dev 2004-11-14 09:34:34 UTC
Try it with a reduced set of compiler flags. We can and do not test/strip all possible stupid flags one can apply.