Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 34337 - tvtime-0.9.10-r1 doesn't compile (compiler optimization bug?)
Summary: tvtime-0.9.10-r1 doesn't compile (compiler optimization bug?)
Status: RESOLVED CANTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Television related Applications in Gentoo's Portage
URL:
Whiteboard:
Keywords:
: 38833 (view as bug list)
Depends on:
Blocks:
 
Reported: 2003-11-25 07:28 UTC by Andreas Sahlbach
Modified: 2004-01-20 15:53 UTC (History)
2 users (show)

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


Attachments
config.log (config.log,79.30 KB, text/plain)
2003-11-25 07:34 UTC, Andreas Sahlbach
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Andreas Sahlbach 2003-11-25 07:28:38 UTC
I'm using gentoo 1.4 with the gs-gentoo kernel 2.4.23_pre8-gss. I'm getting 
compiler errors during "emerge tvtime" 

Reproducible: Always
Steps to Reproduce:
1.emerge tvtime 
2. 
3. 
Actual Results:  
source='vbidata.c' object='vbidata.o' libtool=no \ 
depfile='.deps/vbidata.Po' tmpdepfile='.deps/vbidata.TPo' \ 
depmode=gcc3 /bin/sh ../depcomp \ 
gcc -DHAVE_CONFIG_H -I. -I. -I..    -I/usr/include/SDL -D_REENTRANT 
`/usr/bin/freetype-config --cflags`  -Wall -I. -pedantic 
-DDATADIR="\"/usr/share/tvtime\"" -DCONFDIR="\"/etc/tvtime\"" 
-DFIFODIR="\"/var/run/tvtime\"" -D_LARGEFILE64_SOURCE -I../plugins 
`directfb-config --cflags` -I/usr/X11R6/include -I/usr/include/libxml2  
-I/usr/include/directfb -D_REENTRANT  -march=pentium4 -funroll-loops 
-fprefetch-loop-arrays -pipe -O3 -fomit-frame-pointer -std=gnu99 
-mcpu=pentiumpro -c `test -f 'vbidata.c' || echo './'`vbidata.c 
{standard input}: Assembler messages: 
{standard input}:10241: Error: suffix or operands invalid for `movd' 
make[3]: *** [speedy.o] Error 1 
make[3]: *** Waiting for unfinished jobs.... 
make[3]: Leaving directory 
`/var/tmp/portage/tvtime-0.9.10-r1/work/tvtime-0.9.10/src' 
make[2]: *** [all-recursive] Error 1 
make[2]: Leaving directory 
`/var/tmp/portage/tvtime-0.9.10-r1/work/tvtime-0.9.10/src' 
make[1]: *** [all-recursive] Error 1 
make[1]: Leaving directory 
`/var/tmp/portage/tvtime-0.9.10-r1/work/tvtime-0.9.10' 
make: *** [all] Error 2 
 
!!! ERROR: media-tv/tvtime-0.9.10-r1 failed. 
!!! Function src_compile, Line 34, Exitcode 2 
!!! compile problem 
 

Expected Results:  
an installed tvtime 

I called "make" in the working directory manually. The problem is the file 
speedy.c and the -O3 flag. If I compile just this file with -O1 and then 
compile the rest with -O3 everything compiles and links like expected. 
Here is my emerge info: 
Portage 2.0.49-r15 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r3, 
2.4.23_pre8-gss) 
================================================================= 
System uname: 2.4.23_pre8-gss i686 Intel(R) Pentium(R) 4 CPU 2.60GHz 
Gentoo Base System version 1.4.3.10 
ACCEPT_KEYWORDS="x86" 
AUTOCLEAN="yes" 
CFLAGS="-O3 -march=pentium4 -funroll-loops -fprefetch-loop-arrays -pipe" 
CHOST="i686-pc-linux-gnu" 
COMPILER="gcc3" 
CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config 
/usr/kde/3/share/config /usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config 
/usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ 
/usr/share/config" 
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" 
CXXFLAGS="-O3 -march=pentium4 -funroll-loops -fprefetch-loop-arrays -pipe" 
DISTDIR="/usr/portage/distfiles" 
FEATURES="sandbox ccache autoaddcvs" 
GENTOO_MIRRORS="http://mirrors.sec.informatik.tu-darmstadt.de/gentoo 
ftp://ftp.tu-clausthal.de/pub/linux/gentoo/ 
ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror/ 
http://212.219.56.146/sites/www.ibiblio.org/gentoo/" 
MAKEOPTS="-j2" 
PKGDIR="/usr/portage/packages" 
PORTAGE_TMPDIR="/var/tmp" 
PORTDIR="/usr/portage" 
PORTDIR_OVERLAY="" 
SYNC="rsync://rsync.gentoo.org/gentoo-portage" 
USE="x86 crypt cups foomaticdb libg++ spell directfb gdbm berkdb slang tetex 
bonobo tcltk postgres sdl gpm tcpd pam imlib motif opengl cdr X -gtk kde 
-gnome mysql apm alsa arts crd avi curl doc dvd dvdr encode esd fbcon gif 
gphoto2 java jikes jpeg libwww lirc mad matrox mikmod mpeg nas ncurses nls 
oggvorbis oss pdflib perl png python qt quicktime readline ruby samba ssl svga 
tiff truetype usb xml xml2 xmms xv zlib sse"
Comment 1 SpanKY gentoo-dev 2003-11-25 07:33:02 UTC
yes, it looks like with gcc 3.2.3 often times you'll need -mno-sse2 in your CFLAGS

this has been fixed in 3.3.2
Comment 2 Andreas Sahlbach 2003-11-25 07:34:10 UTC
Created attachment 21264 [details]
config.log
Comment 3 Max Kalika (RETIRED) gentoo-dev 2003-12-11 08:56:24 UTC
Is this still a problem with 0.9.12?
Comment 4 Andreas Sahlbach 2003-12-11 12:16:43 UTC
Can't answer this, I'm sorry. This was for a personal video recorder based on mythtv. I had to switch to a ready-to-install mythtv distrubution (based on knoppix), because of my pretty complicated hardware setup. 
So I can't retry the compilation, because I don't have a P4 gentoo system anymore. I'm pretty sure I could set everything up based on gentoo now, but it was hard work and get it running, so I wll not touch it again :-)
Comment 5 Seemant Kulleen (RETIRED) gentoo-dev 2003-12-11 12:45:21 UTC
then closing this bug
Comment 6 Vermyndax 2003-12-22 13:47:15 UTC
I have this problem now as well (using gcc 3.2.3).  The maintainer of tvtime was just made aware of this bug.  It's a problem, for sure... request that this bug be reopened.
Comment 7 Max Kalika (RETIRED) gentoo-dev 2003-12-22 13:50:00 UTC
reopened at user request
Comment 8 Vermyndax 2003-12-22 14:00:53 UTC
In speaking with Max on IRC, we discovered that changing my -march=pentium4 to -march=pentium3 in /etc/make.conf yielded a successful compile of tvtime-0.9.10-r1 and 0.9.12.

Looks like the choices are to set that temporarily and compile it or just upgrade your gcc to 3.3.2.
Comment 9 Max Kalika (RETIRED) gentoo-dev 2004-01-14 10:12:03 UTC
See comment #8.
Comment 10 Max Kalika (RETIRED) gentoo-dev 2004-01-20 15:53:06 UTC
*** Bug 38833 has been marked as a duplicate of this bug. ***