Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 40771

Summary: kdegraphics-3.2.0 failes on amd64
Product: Gentoo Linux Reporter: Jan Schubert <Jan.Schubert>
Component: [OLD] KDEAssignee: Gentoo KDE team <kde>
Status: RESOLVED INVALID    
Severity: normal CC: amd64
Priority: High    
Version: unspecified   
Hardware: AMD64   
OS: All   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: preprocesed source

Description Jan Schubert 2004-02-07 16:28:13 UTC
/bin/sh ../../libtool --silent --mode=compile --tag=CXX g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I/usr/kde/3.2/include -I/usr/qt/3/include -I/usr/X11R6/include   -DQT_THREAD_SUPPORT  -D_REENTRANT  -Wnon-virtual-dtor -Wno-long-long -Wundef -Wall -W -Wpointer-arith -Wwrite-strings -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -DNDEBUG -DNO_DEBUG -O2 -Os -pipe -funroll-all-loops -Wformat-security -Wmissing-format-attribute -fno-exceptions -fno-check-new -fno-common -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION  -c -o kgamma.lo `test -f 'kgamma.cpp' || echo './'`kgamma.cpp
xvidextwrap.cpp: In member function `int XVidExtWrap::_ScreenCount()':
xvidextwrap.cpp:99: error: insn does not satisfy its constraints:
(insn:TI 1202 1196 1205 0x2a99b357e0 (set (reg:DI 5 rdi [260])
        (plus:DI (plus:DI (reg:DI 7 rsp [209])
                (const_int 16 [0x10]))
            (reg:DI 0 rax [258]))) 189 {*lea_2_rex64} (insn_list:REG_DEP_ANTI 1112 (insn_list:REG_DEP_OUTPUT 1109 (insn_list 1196 (nil))))
    (expr_list:REG_DEAD (reg:DI 0 rax [258])
        (nil)))
xvidextwrap.cpp:99: internal compiler error: in extract_constrain_insn_cached,
   at recog.c:2090
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/kdegraphics-3.2.0/temp/cch8bSmr.out file, please attach this to your bugreport
make[4]: *** [xvidextwrap.lo] Error 1
make[4]: *** Waiting for unfinished jobs....
make[4]: Leaving directory `/var/tmp/portage/kdegraphics-3.2.0/work/kdegraphics-3.2.0/kgamma/kcmkgamma'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/var/tmp/portage/kdegraphics-3.2.0/work/kdegraphics-3.2.0/kgamma/kcmkgamma'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/kdegraphics-3.2.0/work/kdegraphics-3.2.0/kgamma'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/kdegraphics-3.2.0/work/kdegraphics-3.2.0'
make: *** [all] Error 2

!!! ERROR: kde-base/kdegraphics-3.2.0 failed.
!!! Function kde_src_compile, Line 127, Exitcode 2
!!! died running emake, kde_src_compile:make
Comment 1 Jan Schubert 2004-02-07 17:44:56 UTC
mars portage # emerge info
Portage 2.0.50 (default-amd64-2004.0, gcc-3.3.2, glibc-2.3.3_pre20040117-r0, 2.6.1-gentoo-r1)
=================================================================
System uname: 2.6.1-gentoo-r1 x86_64 4
Gentoo Base System version 1.4.3.12
Autoconf: sys-devel/autoconf-2.59
Automake: sys-devel/automake-1.8.2
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CFLAGS="-Os -pipe -funroll-all-loops"
CHOST="x86_64-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /opt/tomcat/conf /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/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-Os -pipe -funroll-all-loops"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="http://zayra.ds.de/ http://ftp.easynet.nl/mirror/gentoo/ ftp://gentoo.inode.at/source/ http://gentoo.linux.no/"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://zayra.ds.de/gentoo-portage"
USE="X aalib alsa amd64 apache2 apm avi berkdb bonobo cdr crypt dvdr encode esd foomaticdb gdbm gif gnome gpm gtk gtk2 gtkhtml imlib jpeg kde libg++ libwww mikmod motif mozilla mpeg multilib ncurses nls nvidia oggvorbis opengl oss pam pdflib perl png python qt quicktime readline scanner sdl slang spell ssl tcltk tcpd truetype vi vim xfree86 xml2 xmms xv zlib"
Comment 2 Jan Schubert 2004-02-21 10:09:29 UTC
Created attachment 26055 [details]
preprocesed source

still there
Comment 3 Brad House 2004-02-22 10:00:10 UTC
think this was already fixed, reopen if not
Comment 4 Jan Schubert 2004-02-22 11:29:52 UTC
still there (last sync about 3 hours ago)
Comment 5 Brad House 2004-02-22 13:06:13 UTC
just emerged fine here
update your rsync
do an emerge -UD world
then retry kdegraphics
also report your USE flags and if you're running amd64 or ~amd64
Comment 6 Jan Schubert 2004-02-22 13:17:33 UTC
Brad, i'm doing an 'emerge -UD world' for weeks now. Please find my USE flags in the first post...

this is a current one:

mars kdm # emerge info
Portage 2.0.50-r1 (default-amd64-2004.0, gcc-3.3.3, glibc-2.3.3_pre20040207-r0, 2.6.3-gentoo-r1)
=================================================================
System uname: 2.6.3-gentoo-r1 x86_64 4
Gentoo Base System version 1.4.3.13
Autoconf: sys-devel/autoconf-2.59-r3
Automake: sys-devel/automake-1.8.2
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CFLAGS="-Os -pipe -funroll-all-loops"
CHOST="x86_64-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /opt/tomcat/conf /usr/X11R6/lib/X11/xkb /usr/kde/2/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/env.d"
CXXFLAGS="-Os -pipe -funroll-all-loops"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="http://jan/ http://zayra.ds.de/ http://ftp.easynet.nl/mirror/gentoo/ ftp://gentoo.inode.at/source/ http://gentoo.linux.no/"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://jan/gentoo-portage"
USE="X aalib alsa amd64 apache2 apm avi berkdb bonobo cdr crypt dvdr encode esd foomaticdb gdbm gif gnome gpm gtk gtk2 gtkhtml imlib jpeg kde libg++ libwww linguas_de mikmod motif mozilla mpeg multilib ncurses nls nvidia oggvorbis opengl oss pam pdflib perl png python qt quicktime readline scanner sdl slang spell ssl tcltk tcpd truetype vi vim xfree86 xml2 xmms xv zlib"

I'll try another emerge and will even an 'emerge -e world', but i guess it will be still there.
Comment 7 Jan Schubert 2004-02-23 01:17:44 UTC
emerge -e stopped exactly at the same position!
Comment 8 Brad House 2004-02-25 17:00:27 UTC
again, it's something with your system ... most likely your cflags ...
no one else has reported this ...

-Brad
Comment 9 Jan Schubert 2004-02-28 08:28:34 UTC
Brad, to be honest: This is _not_ fixed. It might be invalid from your point of view, but not fixed.
However, i did some research and figured out, that once again -Os seems to be the bad guy in this game. Switching to -O2 _fixed_ the problem. So i recommend, to fix this by replacing -Os by -O2 on amd64 in the ebuild.

Thx,
Jan
Comment 10 Brad House 2004-02-28 08:36:17 UTC
hmm, -Os should NEVER be used on amd64.
This is not something I'm going to add to every
ebuild to fix ... just DO NOT USE IT.
It should have been in my old tech notes, but I'll
make sure it gets incorporated into amd64.gentoo.org.
Comment 11 Jan Schubert 2004-02-28 08:50:39 UTC
So please make really sure that no one uses it! -Os is recommend quite often in the forum and several other places.

BTW: Replacing already takes place in portage: Check out cups-1.1.20 for instance, where a similar problem is fixed be replacing -Os on amd64...
Comment 12 Jan Schubert 2004-02-28 08:54:35 UTC
An other addendum: There would be no need to add this to every ebuild. cups and kdegraphics seems to be the only two ebuilds which are affected at the moment. I used to to run with -Os for month now...

BTW: Whats the problem with -Os on amd64? Is it compiler specific?