<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>67929</bug_id>
          
          <creation_ts>2004-10-17 13:42 0000</creation_ts>
          <short_desc>gnubg-0.14.2 segfaults with -ffast-math</short_desc>
          <delta_ts>2004-12-09 19:21:44 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Games</component>
          <version>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>calchan@gentoo.org</reporter>
          <assigned_to>games@gentoo.org</assigned_to>
          <cc>gentoo-bugs@digital-trauma.de</cc>

      

      
          <long_desc isprivate="0">
            <who>calchan@gentoo.org</who>
            <bug_when>2004-10-17 13:42:28 0000</bug_when>
            <thetext>gnubg-0.14.2 doesn&apos;t like being compiled with -ffast-math in CFLAGS. It compiles OK, but segfaults when you run it. Also tried with gnubg-0.14.3 (just copied the ebuild + emerge digest), it does the same thing. When -ffast-math is removed, both 0.14.2 and 0.14.3 compile and run properly (except for a floating point exception when gnubg is asked for an evaluation, but that, I think, should be reported upstream).

Reproducible: Always
Steps to Reproduce:
1. Add -ffast-math to CFLAGS
2. emerge gnubg
3. run gnubg

Actual Results:  
gnubg starts, shows a splash screen, and then segfaults before displaying the
main window.

Expected Results:  
games-board/gnubg-0.14.2 should filter -ffast-math from CFLAGS.

Portage 2.0.51_rc9 (default-x86-2004.0, gcc-3.4.2, glibc-2.3.4.20041006-r0,
2.6.8.1-klak6 i686)
=================================================================
System uname: 2.6.8.1-klak6 i686 AMD Athlon(tm) XP 1600+
Gentoo Base System version 1.5.3
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-r5
ACCEPT_KEYWORDS=&quot;x86 ~x86&quot;
AUTOCLEAN=&quot;yes&quot;
CFLAGS=&quot;-Os -march=athlon-xp -fomit-frame-pointer -pipe -ffast-math -ftracer&quot;
CHOST=&quot;i686-pc-linux-gnu&quot;
COMPILER=&quot;&quot;
CONFIG_PROTECT=&quot;/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&quot;
CONFIG_PROTECT_MASK=&quot;/etc/gconf /etc/terminfo /etc/env.d&quot;
CXXFLAGS=&quot;-Os -march=athlon-xp -fomit-frame-pointer -pipe -ffast-math -ftracer&quot;
DISTDIR=&quot;/usr/portage/distfiles&quot;
FEATURES=&quot;autoaddcvs ccache distlocks sandbox&quot;
GENTOO_MIRRORS=&quot;http://gentoo.osuosl.org
http://distro.ibiblio.org/pub/Linux/distributions/gentoo&quot;
MAKEOPTS=&quot;-j2&quot;
PKGDIR=&quot;/usr/portage/packages&quot;
PORTAGE_TMPDIR=&quot;/var/tmp&quot;
PORTDIR=&quot;/usr/portage&quot;
PORTDIR_OVERLAY=&quot;/usr/local/portage&quot;
SYNC=&quot;rsync://rsync.gentoo.org/gentoo-portage&quot;
USE=&quot;3dnow 3dnowex X acpi alsa apm avi berkdb bitmap-fonts canna cdparanoia cdr
cjk crypt dmx dv dvd dvdr eds encode f77 fam flac foomaticdb gd gdbm gif gnome
gpm gtk gtk2 hal imlib java jpeg libg++ libwww live mad mikmod mime mmx mmx2 mng
motif mozcalendar mozilla mozsvg mpeg nas ncurses network nls nptl nvidia
oggvorbis opengl oss pam pdflib perl pic png python quicktime readline rtc sdl
slang speex spell sse ssl svg tcltk tcpd theora tiff truetype unicode usb wmf
x86 xml2 xmms xprint xv xvid zlib&quot;</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>gentoo-bugs@digital-trauma.de</who>
            <bug_when>2004-10-24 17:45:27 0000</bug_when>
            <thetext>Created an attachment (id=42526)
Patch to depend on gtkglext

If you just use this patch against the ebuild in portage, you get the compile
errors mentioned in this bug. Without this patch configure silently omits 3d
board support if it doesn&apos;t find gtkglext.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>gentoo-bugs@digital-trauma.de</who>
            <bug_when>2004-10-24 17:47:22 0000</bug_when>
            <thetext>Damn! bugzilla fooled me - this attachment was supposed to go to bug #47039 - Sorry.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>mr_bones_@gentoo.org</who>
            <bug_when>2004-12-09 19:21:44 0000</bug_when>
            <thetext>filter-flags -ffast-math added to the ebuild in CVS.  Thanks for the bug report.</thetext>
          </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>42526</attachid>
            <date>2004-10-24 17:45 0000</date>
            <desc>Patch to depend on gtkglext</desc>
            <filename>patch</filename>
            <type>text/plain</type>
            <data encoding="base64">LS0tIGdudWJnLTAuMTQuMi5lYnVpbGQub3JnCTIwMDQtMTAtMjUgMDI6Mjg6NDMuMjQ5Nzg4ODQ4
ICswMjAwCisrKyBnbnViZy0wLjE0LjIuZWJ1aWxkCTIwMDQtMTAtMjUgMDI6MzE6MzMuODMzODU2
MTI4ICswMjAwCkBAIC0xNyw3ICsxNyw3IEBACiAKICMtYW1kNjQ6IHNlZ2ZhdWx0IG9uIGdhbWUg
c3RhcnQgLS0gZXJhZGljYXRvcgogS0VZV09SRFM9In54ODYgfnNwYXJjIC1hbWQ2NCIKLUlVU0U9
Imd0ayBndGsyIHJlYWRsaW5lIHB5dGhvbiBndWlsZSBYIGdkYm0gdHJ1ZXR5c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