<?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>54270</bug_id>
          
          <creation_ts>2004-06-17 22:37 0000</creation_ts>
          <short_desc>xmame 0.83.1 fails to compile on amd64 with gcc 3.4</short_desc>
          <delta_ts>2004-06-18 14:44:39 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>AMD64</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>andrew@alshain.org.uk</reporter>
          <assigned_to>games@gentoo.org</assigned_to>
          <cc>amd64@gentoo.org</cc>

      

      
          <long_desc isprivate="0">
            <who>andrew@alshain.org.uk</who>
            <bug_when>2004-06-17 22:37:13 0000</bug_when>
            <thetext>xmame 0.83.1 compiles for a while before exiting with an error at the file src/sound/fm.c. 

Reproducible: Always
Steps to Reproduce:
1. emerge -u games-emulation/xmame
2.
3.
Actual Results:  
src/sound/fm.c: In function `FM_STATUS_FLAG&apos;: 
src/sound/fm.c:853: internal compiler error: Segmentation fault 
Please submit a full bug report, 
with preprocessed source if appropriate. 
See &lt;URL:http://bugs.gentoo.org/&gt; for instructions. 
Compiling src/sound/hc55516.c ... 
Preprocessed source stored 
into /data/port_tmp/portage/xmame-0.83.1/temp/ccZK30WV.out file, please attach 
this to your bugreport. 
make: *** [xmame.obj/sound/fm.o] Error 1 
make: *** Waiting for unfinished jobs.... 
 
!!! ERROR: games-emulation/xmame-0.83.1 failed. 
!!! Function src_compile, Line 160, Exitcode 2 
!!! emake failed (SDL) 
 
Contents of ccZK30WV.out can be found here: 
http://www.star.ucl.ac.uk/~adcw/ccZK30WV.out 
 
 

Expected Results:  
compiled 

Portage 2.0.50-r8 (gcc34-amd64-2004.1, gcc-3.4.0, 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-r1 
ACCEPT_KEYWORDS=&quot;amd64 ~amd64&quot; 
AUTOCLEAN=&quot;yes&quot; 
CFLAGS=&quot;-O2 -march=athlon64 -mtune=athlon64 -pipe -maccumulate-outgoing-args 
-fomit-frame-pointer -fweb&quot; 
CHOST=&quot;x86_64-pc-linux-gnu&quot; 
COMPILER=&quot;gcc3&quot; 
CONFIG_PROTECT=&quot;/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 /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&quot; 
CONFIG_PROTECT_MASK=&quot;/etc/gconf /etc/terminfo /etc/env.d&quot; 
CXXFLAGS=&quot;-O2 -march=athlon64 -mtune=athlon64 -pipe -maccumulate-outgoing-args 
-fomit-frame-pointer -fweb&quot; 
DISTDIR=&quot;/usr/portage/distfiles&quot; 
FEATURES=&quot;autoaddcvs ccache sandbox&quot; 
GENTOO_MIRRORS=&quot;http://gentoo.blueyonder.co.uk 
http://www.mirror.ac.uk/sites/www.ibiblio.org/gentoo 
http://www.ibiblio.org/pub/Linux/distributions/gentoo&quot; 
MAKEOPTS=&quot;-j2&quot; 
PKGDIR=&quot;/usr/portage/packages&quot; 
PORTAGE_TMPDIR=&quot;/data/port_tmp&quot; 
PORTDIR=&quot;/usr/portage&quot; 
PORTDIR_OVERLAY=&quot;/usr/local/portage&quot; 
SYNC=&quot;rsync://rsync.europe.gentoo.org/gentoo-portage&quot; 
USE=&quot;X aalib alsa amd64 apache2 apm arts ati avi berkdb bonobo breakme cdr 
crypt cups dga dga2 doc dvd dvdr encode esd foomaticdb gdbm ggi gif gimpprint 
gnome gnome2 gphoto2 gpm gstreamer gtk gtk2 gtkhtml guile imap imlib jpeg kde 
ldap libg++ libwww maildir mikmod motif mozilla mpeg nas ncurses nls oggvorbis 
opengl oss pam pdflib perl png python qt quicktime radeon readline sdl slang 
spell ssl tcltk tcpd tetex theora truetype unicode v4l v4l2 wmf xml xml2 xmms 
xv xvid zlib&quot;</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>mr_bones_@gentoo.org</who>
            <bug_when>2004-06-17 22:46:30 0000</bug_when>
            <thetext>src/sound/fm.c:853: internal compiler error: Segmentation fault

Smells like bad hardware to me.  Does this box pass overnight memtest86?</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>andrew@alshain.org.uk</who>
            <bug_when>2004-06-17 23:43:13 0000</bug_when>
            <thetext>I thought memtest86 was only for the x86. Certainly it causes my machine to reboot instantly. Everything else works fine.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>mr_bones_@gentoo.org</who>
            <bug_when>2004-06-18 00:06:08 0000</bug_when>
            <thetext>memtest86-3.0-r1.ebuild claims to be stable on amd64.  Please try it out.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>andrew@alshain.org.uk</who>
            <bug_when>2004-06-18 08:11:52 0000</bug_when>
            <thetext>From the memtest86 Changelog:

  18 Jun 2004; Jeremy Huddleston &lt;eradicator@gentoo.org&gt;
  memtest86-3.0-r1.ebuild:
  This contains 32bit x86 assembly and won&apos;t work on amd64.

I seriously doubt it&apos;s a hardware problem as 0.82.1 compiles and I have no problem compiling any other software on my machine, and it&apos;s extremely stable.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>andrew@alshain.org.uk</who>
            <bug_when>2004-06-18 14:22:27 0000</bug_when>
            <thetext>Okay, I think I&apos;ve solved the problem. Looking at the top level Makefile shows a line:

CFLAGS=-O2 -march=athlon64 -mtune=athlon64 -pipe -maccumulate-outgoing-args -fomit-frame-pointer -fweb -Wno-unused -fomit-frame-pointer -fstrict-aliasing -fstrength-reduce -ffast-math -falign-functions=2 -falign-jumps=2 -falign-loops=2 -O -Wall -Wno-unused

If I remove -ffast-math it appears to compile correctly. I&apos;ve noticed that another program that uses the -ffast-math option, xephem-3.6, also segfaults. This also compiles correctly when I remove -ffast-math, so maybe it&apos;s a compiler bug. I&apos;m using gcc-3.4.0-r6.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>mr_bones_@gentoo.org</who>
            <bug_when>2004-06-18 14:44:39 0000</bug_when>
            <thetext>Nice work.  Thanks for tracking it down.  I&apos;ve taken out the -fast-math stuff
for amd64 in the ebuild.  No rev bump since it&apos;s such a beast to compile (at least for everyone except amd64).</thetext>
          </long_desc>
      
    </bug>

</bugzilla>