If I emerge games-puzzle/cuyo-1.8.5 with CFLAGS="-march=k8 -Os -pipe" it fails on startup, giving an error message. After reemerging with CFLAGS="-march=k8 -O2 -pipe" it works without problems. Reproducible: Always Steps to Reproduce: 1. set CFLAGS="-march=k8 -Os -pipe" in /etc/make.conf 2. emerge =cuyo-1.8.5 3. start cuyo Actual Results: error message: terminate called after throwing an instance of 'Fehler' Aborted Expected Results: open game window
reopen with the output from emerge --info please. works fine for me.
godot root # emerge --info Portage 2.0.51-r15 (default-linux/amd64/2004.3, gcc-3.4.3, glibc-2.3.4.20040808-r1, 2.6.9-gentoo-r9 x86_64) ================================================================= System uname: 2.6.9-gentoo-r9 x86_64 AMD Athlon(tm) 64 Processor 3000+ Gentoo Base System version 1.4.16 Python: dev-lang/python-2.2.3-r5,dev-lang/python-2.3.4 [2.3.4 (#1, Oct 21 2004, 08:12:56)] ccache version 2.3 [enabled] dev-lang/python: 2.2.3-r5, 2.3.4 sys-devel/autoconf: 2.13, 2.59-r6 sys-devel/automake: 1.6.3, 1.8.5-r3, 1.7.9-r1, 1.4_p6, 1.5, 1.9.4 sys-devel/binutils: 2.15.92.0.2-r1 sys-devel/libtool: 1.5.10-r4 virtual/os-headers: 2.6.8.1-r2 ACCEPT_KEYWORDS="amd64" AUTOCLEAN="yes" CFLAGS="-march=k8 -Os -pipe -fomit-frame-pointer -frename-registers -fweb" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.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/lib/mozilla/defaults/pref /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/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=k8 -Os -pipe -fomit-frame-pointer -frename-registers -fweb" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms userpriv usersandbox" GENTOO_MIRRORS="ftp://ftp.uni-kl.de/pub/linux/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://ftp.uni-kl.de/ftp/linux/gentoo-portage" USE="amd64 X aalib acpi alsa apache2 avi berkdb bitmap-fonts cdr crypt doc dvd dvdr emacs encode f77 fam flac font-server fortran gdbm gif gnome gpm gstreamer gtk gtk2 imagemagick imlib java jp2 jpeg leim libwww lzw lzw-tiff mad mbox mng motif mozilla mpeg mule multilib mysql ncurses nls oggvorbis opengl pam pdflib perl png python qt readline sdl slang ssl svg tcltk tcpd tetex theora tiff truetype truetype-fonts type1-fonts unicode usb userlocales wmf xface xml2 xpm xrandr xv xvid zlib" Unset: ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS Remark: I also tried with the CFLAGS stated in the original report (withot -f*). This had no influence on the results.
But it does build if you make it -O2, right?
It builds all of the time, the error occurs at startup. With -O2 there are no problems at all (independent of the -f*-flags, as I just verified).
don't use -Os: http://www.gentoo.org/proj/en/base/amd64/technotes.xml?part=2&chap=3#doc_chap9