Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 70344 - transcode-0-6.13-r1 doesn't compile with gcc-3.4.2: postprocess_template.c:1158
Summary: transcode-0-6.13-r1 doesn't compile with gcc-3.4.2: postprocess_template.c:1158
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-11-07 05:09 UTC by Niels Burmeister
Modified: 2004-11-12 22:03 UTC (History)
0 users

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 Niels Burmeister 2004-11-07 05:09:51 UTC
trying to compile transcode-0.6.13-r1 with gcc-3.4.2-r2 fails with the following error concerning postprocess_template.c:1158

Reproducible: Always
Steps to Reproduce:
1. emerge sync
2. emerge -av transcode
3. 

Actual Results:  
Making all in pp
make[3]: Entering directory
`/var/tmp/portage/transcode-0.6.13-r1/work/transcode-0.6.13/filter/pp'
if /bin/sh ../../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I../.. 
-D_REENTRANT -I../.. -I../../filter -I../../src -I../../libvo   -Wall
-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -O2
-march=athlon-xp -pipe -fomit-frame-pointer -fforce-addr -fmove-all-movables
-mfpmath=387,sse -ffast-math -DDCT_YUV_PRECISION=1 -MT filter_pp.lo -MD -MP -MF
".deps/filter_pp.Tpo" -c -o filter_pp.lo filter_pp.c; \
then mv -f ".deps/filter_pp.Tpo" ".deps/filter_pp.Plo"; else rm -f
".deps/filter_pp.Tpo"; exit 1; fi
mkdir .libs
 gcc -DHAVE_CONFIG_H -I. -I. -I../.. -D_REENTRANT -I../.. -I../../filter
-I../../src -I../../libvo -Wall -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE
-D_FILE_OFFSET_BITS=64 -O2 -march=athlon-xp -pipe -fomit-frame-pointer
-fforce-addr -fmove-all-movables -mfpmath=387,sse -ffast-math
-DDCT_YUV_PRECISION=1 -MT filter_pp.lo -MD -MP -MF .deps/filter_pp.Tpo -c
filter_pp.c  -fPIC -DPIC -o .libs/filter_pp.o
if /bin/sh ../../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I../.. 
-D_REENTRANT -I../.. -I../../filter -I../../src -I../../libvo   -Wall
-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -O2
-march=athlon-xp -pipe -fomit-frame-pointer -fforce-addr -fmove-all-movables
-mfpmath=387,sse -ffast-math -DDCT_YUV_PRECISION=1 -MT postprocess.lo -MD -MP
-MF ".deps/postprocess.Tpo" -c -o postprocess.lo postprocess.c; \
then mv -f ".deps/postprocess.Tpo" ".deps/postprocess.Plo"; else rm -f
".deps/postprocess.Tpo"; exit 1; fi
 gcc -DHAVE_CONFIG_H -I. -I. -I../.. -D_REENTRANT -I../.. -I../../filter
-I../../src -I../../libvo -Wall -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE
-D_FILE_OFFSET_BITS=64 -O2 -march=athlon-xp -pipe -fomit-frame-pointer
-fforce-addr -fmove-all-movables -mfpmath=387,sse -ffast-math
-DDCT_YUV_PRECISION=1 -MT postprocess.lo -MD -MP -MF .deps/postprocess.Tpo -c
postprocess.c  -fPIC -DPIC -o .libs/postprocess.o
postprocess_template.c: In function `postProcess_3DNow':
postprocess_template.c:1158: error: can't find a register in class
`GENERAL_REGS' while reloading `asm'
make[3]: *** [postprocess.lo] Fehler 1
make[3]: Leaving directory
`/var/tmp/portage/transcode-0.6.13-r1/work/transcode-0.6.13/filter/pp'
make[2]: *** [all-recursive] Fehler 1
make[2]: Leaving directory
`/var/tmp/portage/transcode-0.6.13-r1/work/transcode-0.6.13/filter'
make[1]: *** [all-recursive] Fehler 1
make[1]: Leaving directory
`/var/tmp/portage/transcode-0.6.13-r1/work/transcode-0.6.13'
make: *** [all] Fehler 2


Expected Results:  
transcode should have compiled cleanly

Portage 2.0.51-r3 (default-linux/x86/2004.0, gcc-3.4.2, glibc-2.3.4.20040808-r1,
2.6.7 i686)
=================================================================
System uname: 2.6.7 i686 AMD Athlon(tm) XP 2400+
Gentoo Base System version 1.4.16
distcc 2.16 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632)
[disabled]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="-O2 -march=athlon-xp -pipe -fomit-frame-pointer -fforce-addr
-fmove-all-movables -mfpmath=387,sse -ffast-math"
CHOST="i686-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/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="-O2 -march=athlon-xp -pipe -fomit-frame-pointer -fforce-addr
-fmove-all-movables -mfpmath=387,sse -ffast-math"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs buildpkg ccache distlocks sandbox sfperms"
GENTOO_MIRRORS="ftp.tu-clausthal.de/pub/linux/gentoo
linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror
sunsite.informatik.rwth-aachen.de/pub/linux/gentoo
ftp.fhh-opensource-mirror.de/pub/gentoo.org
ftp://ftp.join.uni-muenster.de/pub/linux/distributions/gentoo
ftp://mirrors.sec.informatik.tu-darmstadt.de/gentoo/
ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/opt/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="3dnow X aalib acpi alsa audiofile avi berkdb bitmap-fonts bonobo bzlib cdr
crypt cups dga divx4linux dvd encode esd fam flac foomaticdb gd gdbm gif gnome
gpm gstreamer gtk gtk2 gtkhtml hal imagemagick imap imlib jpeg libg++ libwww mad
maildir mikmod mime mmx mozilla mpeg ncurses nls offensive oggvorbis opengl pam
pdflib perl pic png python quicktime readline samba sdl slang spell sqlite sse
ssl svga tcpd theora tiff truetype usb x86 xml xml2 xosd xv xvid zlib"


thank you,
Niels
Comment 1 Niels Burmeister 2004-11-07 06:29:08 UTC
compilation now works changing 
CFLAGS="-O2 -march=athlon-xp -pipe -fomit-frame-pointer -fforce-addr -fmove-all-movables -mfpmath=sse,387 -ffast-math"

to:
CFLAGS="-O3 -march=athlon-xp -pipe -fomit-frame-pointer -ffast-math -fforce-addr"

maybe too aggressive cflags should be stripped out by the ebuild 
Comment 2 Ben Meek 2004-11-12 22:03:17 UTC
I get the same failure.
---------------------------------------
Portage 2.0.51-r3 (default-linux/x86/2004.2, gcc-3.4.3, glibc-2.3.4.20041102-r0, 2.6.9-rc1-mm4 i686)
=================================================================
System uname: 2.6.9-rc1-mm4 i686 AMD Athlon(tm) XP 2000+
Gentoo Base System version 1.6.6
distcc 2.18 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]ccache version 2.3 [enabled]
Autoconf: sys-devel/autoconf-2.59-r5
Automake: sys-devel/automake-1.8.5-r1
Binutils: sys-devel/binutils-2.15.92.0.2-r1
Headers:  sys-kernel/linux26-headers-2.6.8.1-r1
Libtools: sys-devel/libtool-1.5.2-r7
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-O3 -march=athlon-xp -msse -mmmx -m3dnow -momit-leaf-frame-pointer -fomit-frame-pointer -funroll-loops -ftracer -ffast-math -fprefetch-loop-arrays -finline-limit=600 -mfpmath=387 -pipe"
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 /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O3 -march=athlon-xp -msse -mmmx -m3dnow -momit-leaf-frame-pointer -fomit-frame-pointer -funroll-loops -ftracer -ffast-math -fprefetch-loop-arrays -finline-limit=600 -mfpmath=387 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs candy ccache distlocks prelink sandbox sfperms"
GENTOO_MIRRORS="http://mirrors.tds.net/gentoo ftp://csociety-ftp.ecn.purdue.edu/pub/gentoo/ http://csociety-ftp.ecn.purdue.edu/pub/gentoo/ http://www.gtlib.cc.gatech.edu/pub/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage /usr/local/trunk"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 3dnow 3dnowex X alsa avi bitmap-fonts crypt cups dvd dvdr encode foomaticdb gif gtk gtk2 java jpeg mmx mmx2 mpeg ncurses network nls nptl nvidia oggvorbis opengl oss pam perl pic png ppds python quicktime samba spell sse ssl truetype usb xinerama xmms xprint xv xvid xvmc"
--------------------------------------------------

Seems like some cflags need to be filtered (-O3?)