<?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>116113</bug_id>
          
          <creation_ts>2005-12-19 18:17 0000</creation_ts>
          <short_desc>games-emulation/dgen-sdl: Compile Fails with &quot;Label at End of Compound Statement&quot; in star.c</short_desc>
          <delta_ts>2005-12-24 19:40:56 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>2005.0</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>JakubSadowski@GMail.com</reporter>
          <assigned_to>games@gentoo.org</assigned_to>
          <cc>magnade@gmail.com</cc>

      

      
          <long_desc isprivate="0">
            <who>JakubSadowski@GMail.com</who>
            <bug_when>2005-12-19 18:17:06 0000</bug_when>
            <thetext>Emerging dgen with gcc &gt;= 3.4 produces the following error:
emerge dgen-sdl
.
*snip*
.
outgoing-args -pipe -I/usr/include/SDL -D_REENTRANT  -Umemcpy -c m68kopnz.c
rm -f libmusa68.a
ar cru libmusa68.a m68kcpu.o m68kops.o m68kopac.o m68kopdm.o m68kopnz.o
ranlib libmusa68.a
make[1]: Leaving directory `/var/tmp/portage/dgen-sdl-1.23/work/dgen-sdl-1.23/musa&apos;
Making all in star
make[1]: Entering directory `/var/tmp/portage/dgen-sdl-1.23/work/dgen-sdl-1.23/star&apos;
gcc -o star star.c
star.c: In function `selective_usereg&apos;:
star.c:1935: error: label at end of compound statement
make[1]: *** [star] Error 1
make[1]: Leaving directory `/var/tmp/portage/dgen-sdl-1.23/work/dgen-sdl-1.23/star&apos;
make: *** [all-recursive] Error 1

!!! ERROR: games-emulation/dgen-sdl-1.23 failed.
!!! Function src_compile, Line 29, Exitcode 2
!!! emake failed
!!! If you need support, post the topmost build error, NOT this status message.

The &quot;emerge --info&quot; from the test system:
Portage 2.0.51.22-r3 (default-linux/x86/2005.0, gcc-3.4.3, glibc-2.3.4.20041102-r0, 2.6.11-ck7 i686)
=================================================================
System uname: 2.6.11-ck7 i686 Pentium III (Coppermine)
Gentoo Base System version 1.6.12
dev-lang/python:     2.3.4
sys-apps/sandbox:    1.2.8
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9, 1.8.5-r2, 1.9.3
sys-devel/binutils:  2.15.92.0.2-r2
sys-devel/libtool:   1.5.10-r2
virtual/os-headers:  2.4.19-r1, 2.6.8.1
ACCEPT_KEYWORDS=&quot;x86&quot;
AUTOCLEAN=&quot;yes&quot;
CBUILD=&quot;i686-pc-linux-gnu&quot;
CFLAGS=&quot;-O3 -march=pentium3 -fforce-addr -mmmx -msse -mfpmath=sse -momit-leaf-frame-pointer -minline-all-stringops -maccumulate-outgoing-args -pipe&quot;
CHOST=&quot;i686-pc-linux-gnu&quot;
CONFIG_PROTECT=&quot;/etc /usr/KDE/share/config /usr/kde/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/X11/xkb /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;-O3 -march=pentium3 -fforce-addr -mmmx -msse -mfpmath=sse -momit-leaf-frame-pointer -minline-all-stringops -maccumulate-outgoing-args -pipe&quot;
DISTDIR=&quot;/usr/portage/distfiles&quot;
FEATURES=&quot;autoconfig distlocks sandbox sfperms strict&quot;
GENTOO_MIRRORS=&quot;ftp://cs.ubishops.ca/pub/gentoo ftp://ibiblio.org/pub/Linux/distributions/gentoo/ http://mirror.clarkson.edu/pub/distributions/gentoo/&quot;
PKGDIR=&quot;/usr/portage/packages&quot;
PORTAGE_TMPDIR=&quot;/var/tmp&quot;
PORTDIR=&quot;/usr/portage&quot;
SYNC=&quot;rsync://rsync.gentoo.org/gentoo-portage&quot;
USE=&quot;x86 3dfx X Xaw3d aac aalib accessibility acl acpi adns aim alsa apache2 apm atlas audiofile avi bcmath berkdb bidi bitmap-fonts bonobo bzip2 bzlibcalendar cdparanoia cdr cpdflib crypt cscope cups curl curlwrappers dga directfb divx4linux dvb dvd dvdr dvdread eds emboss encode ethereal evo exif expat fam fastcgi fbcon ffmpeg fftw flac flash foomaticdb fortran ftp gb gd gdbm ggi gif ginac glut gmp gnome gnutls gphoto2 gpm gps gstreamer gtk gtk2 gtkhtml guile iconv icq idn imagemagick imap imlib innodb ipv6 ithreads jabberjack java jikes joystick jpeg junit kde kerberos krb4 ladcca lcms ldap libg++ libgda libwww lirc mad mcal mcve mikmod mime ming mmap mmx mng motif mozilla mp3 mpeg mpi msn mysql nas ncurses nis nls nocd odbc offensive ogg oggvorbis openal opengl oscar oss pam pcntl pcre pda pdflib perl pfpro php pie plotutils png posix postgres ppds prelude python qt quicktime readline recode ruby samba sasl scanner sdl session shared sharedmem simplexml slang slp snmp soap sockets speex spell spl sse ssl svg svga sysvipc szip tcltk tcpd tetex theora tidy tiff truetype truetype-fonts type1-fonts udev unicode usb videos vorbis wmf wxwindows xface xine xinerama xml xml2 xmlrpc xmms xosd xpm xsl xv xvid yahoo zeo zlib userland_GNU kernel_linux elibc_glibc&quot;
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS, PORTDIR_OVERLAY

This bug can always be reproduced.  The package compiles perfectly on an identical system with the (older) versions of gcc, binutils, and glibc.  I suspect it has something to do with this gcc bug report:  http://gcc.gnu.org/ml/gcc-patches/2004-01/msg01212.html</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>magnade@gmail.com</who>
            <bug_when>2005-12-24 11:34:49 0000</bug_when>
            <thetext>Created an attachment (id=75461)
dgen-gcc34.patch

patch that should allow dgen to compile with gcc 3.4</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>mr_bones_@gentoo.org</who>
            <bug_when>2005-12-24 19:40:56 0000</bug_when>
            <thetext>fixed in CVS.  Thanks for the bug report.</thetext>
          </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>75461</attachid>
            <date>2005-12-24 11:34 0000</date>
            <desc>dgen-gcc34.patch</desc>
            <filename>dgen-gcc4.patch</filename>
            <type>text/plain</type>
            <data encoding="base64">LS0tIGRnZW4tc2RsLTEuMjMvc3Rhci9zdGFyLmMub2xkCTIwMDUtMTItMjQgMTE6MzA6MTMuMDAw
MDAwMDAwIC0wODAwCisrKyBkZ2VuLXNkbC0xLjIzL3N0YXIvc3Rhci5jCTIwMDUtMTItMjQgMTE6
MzA6NDIuMDAwMDAwMDAwIC0wODAwCkBAIC0xOTMyLDYgKzE5MzIsNyBAQAogCWNhc2UgYWRzcDog
Y2FzZSBheGRwOgogCQl1c2VyZWcoKTsKIAlkZWZhdWx0OgorCQlicmVhazsKIAl9CiB9CiAK
</data>        

          </attachment>
    </bug>

</bugzilla>