kdegraphics emerge fails with an emake error Reproducible: Always Steps to Reproduce: 1. emerge kdegraphics 2. 3. Actual Results: kdegraphics errored with the below output (I will be attaching /var/tmp/portage/kdegraphics-3.2.3/temp/cc0R6FdZ .out after submitting the bug.) Expected Results: obviously one would expect a "Stable" package to compile, but hey it happens. /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 -D QT_THREAD_SUPPORT -D_REENTRANT -Wnon-virtual-dtor -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts - Wall -W -Wpointer-arith -Wwrite-strings -DNDEBUG -DNO_DEBUG -O2 -Os -Wformat-sec urity -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_TRANSLATI ON -c -o gammactrl.lo gammactrl.cpp xvidextwrap.cpp: In member function `int XVidExtWrap::_ScreenCount()': xvidextwrap.cpp:99: error: insn does not satisfy its constraints: (insn:TI 1202 1196 1205 0x2a997a2720 (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 11 12 (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. /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 -D QT_THREAD_SUPPORT -D_REENTRANT -Wnon-virtual-dtor -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts - Wall -W -Wpointer-arith -Wwrite-strings -DNDEBUG -DNO_DEBUG -O2 -Os -Wformat-sec urity -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_TRANSLATI ON -c -o kgamma.lo kgamma.cpp Preprocessed source stored into /var/tmp/portage/kdegraphics-3.2.3/temp/cc0R6FdZ .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.3/work/kdegraphics- 3.2.3/kgamma/kcmkgamma' make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory `/var/tmp/portage/kdegraphics-3.2.3/work/kdegraphics- 3.2.3/kgamma/kcmkgamma' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/var/tmp/portage/kdegraphics-3.2.3/work/kdegraphics- 3.2.3/kgamma' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/kdegraphics-3.2.3/work/kdegraphics- 3.2.3' make: *** [all] Error 2 !!! ERROR: kde-base/kdegraphics-3.2.3 failed. !!! Function kde_src_compile, Line 129, Exitcode 2 !!! died running emake, kde_src_compile:make gentoo64 root # emerge info Portage 2.0.50-r8 (default-amd64-2004.0, gcc-3.3.3, glibc-2.3.4.20040605-r0, 2.6.5-gentoo-r1) ================================================================= System uname: 2.6.5-gentoo-r1 x86_64 4 Gentoo Base System version 1.4.16 ccache version 2.3 [enabled] Autoconf: sys-devel/autoconf-2.59-r4 Automake: sys-devel/automake-1.8.5 ACCEPT_KEYWORDS="amd64 ~amd64" AUTOCLEAN="yes" CFLAGS="-Os" CHOST="x86_64-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /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/terminfo /etc/env.d" CXXFLAGS="-Os" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache sandbox" GENTOO_MIRRORS="ftp://gentoo.agsn.ca/ ftp://ftp.ndlug.nd.edu/pub/gentoo/ ftp://gentoo.netnitco.net/pub/mirrors/gentoo/source/ http://gentoo.netnitco.net http://mirrors.tds.net/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 acpi acpi4linux aim alsa amd64 apm arts artswrappersuid audiofile avantgo avi berkdb bonobo cddb cdr crypt cups curl dv dvd encode esd ethereal ffmpeg foomaticdb freetype fs gdbm gif glade glut gnome gpm gstreamer gtk gtk2 gtkhtml icq imlib java javascript jpeg kde libg++ libwww mikmod motif mozilla mpeg ncurses nls nogcj nptl oggvorbis opengl oss pam pda pdflib perl png pthreads python qt quicktime readline sdl slang spell ssl svg tcpd tiff truetype xml2 xmms xv zlib" gentoo64 root #
Created attachment 33354 [details] attachment requested by ebuild
I'm getting the exact same error with kdegraphics-3.3.0 on amd64, and I'm also using -Os in my CFLAGS/CXXFLAGS. Changing it to -O2 makes everything work fine, so I think we just need a cflags filter in the ebuild for -Os.
We need a CFLAGS filter for -Os on x86_64. See http://www.gentoo.org/proj/en/base/amd64/technotes.xml?part=2&chap=5
-Os does not work on amd64. Using it will surely break packages. please see http://www.gentoo.org/proj/en/base/amd64/technotes.xml?part=2&chap=3#doc_chap9 section 3.i