Darcnes failed to compile complaining of a label at the end of a compound statement in video_x.c. It seems that GCC doesn't like the Default: label at the end of the switch statement if there are no actions to be performed. After removing the label Darcnes compiled cleanly. Removing the label should have no effect as the default operation for a switch statement that fails all branches is to pass through without any operation performed. Reproducible: Always Steps to Reproduce: 1. emerge darcnes 2. 3. Actual Results: --snip-- gcc -c -march=athlon-xp -O3 -pipe -fomit-frame-pointer -momit-leaf-frame-pointer -ftracer -fno-crossjumping -falign-functions=16 -falign-loops=16 -falign-jumps=16 -fno-align-labels -maccumulate-outgoing-args -fmove-all-movables -fprefetch-loop-arrays -funit-at-a-time -I/usr/X11R6/include -Wall -g -march=athlon-xp -O3 -pipe -fomit-frame-pointer -momit-leaf-frame-pointer -ftracer -fno-crossjumping -falign-functions=16 -falign-loops=16 -falign-jumps=16 -fno-align-labels -maccumulate-outgoing-args -fmove-all-movables -fprefetch-loop-arrays -funit-at-a-time -DLSB_FIRST -DMACH_TYPES=\"types-i386.h\" -DPCE_CD_SUPPORT -DSOUND video_x.c gcc -c -march=athlon-xp -O3 -pipe -fomit-frame-pointer -momit-leaf-frame-pointer -ftracer -fno-crossjumping -falign-functions=16 -falign-loops=16 -falign-jumps=16 -fno-align-labels -maccumulate-outgoing-args -fmove-all-movables -fprefetch-loop-arrays -funit-at-a-time -I/usr/X11R6/include -Wall -g -march=athlon-xp -O3 -pipe -fomit-frame-pointer -momit-leaf-frame-pointer -ftracer -fno-crossjumping -falign-functions=16 -falign-loops=16 -falign-jumps=16 -fno-align-labels -maccumulate-outgoing-args -fmove-all-movables -fprefetch-loop-arrays -funit-at-a-time -DLSB_FIRST -DMACH_TYPES=\"types-i386.h\" -DPCE_CD_SUPPORT -DSOUND ui_x.c video_x.c: In function `handle_joypad_key': video_x.c:369: error: label at end of compound statement make: *** [video_x.o] Error 1 make: *** Waiting for unfinished jobs.... ui_x.c: In function `initialize_window': ui_x.c:127: warning: implicit declaration of function `video_init' ui_x.c: In function `do_file_exit': ui_x.c:244: warning: implicit declaration of function `exit' !!! ERROR: games-emulation/darcnes-0401-r2 failed. !!! Function src_compile, Line 43, Exitcode 2 !!! compile target Linux_X failed !!! !!! /var/log/portage/4075-darcnes-0401-r2.log may contain !!! useful informations for debugging or bug reporting. Expected Results: Compiled cleanly and installed. Portage 2.0.50-r9 (gcc34-x86-2004.2, gcc-3.4.1, glibc-2.3.4.20040619-r0, 2.6.7-mm6) ================================================================= System uname: 2.6.7-mm6 i686 AMD Athlon(tm) Gentoo Base System version 1.5.1 distcc 2.16 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] ccache version 2.3 [enabled] Autoconf: sys-devel/autoconf-2.59-r4 Automake: sys-devel/automake-1.8.5-r1 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-march=athlon-xp -O3 -pipe -fomit-frame-pointer -momit-leaf-frame-pointer -ftracer -fno-crossjumping -falign-functions=16 -falign-loops=16 -falign-jumps=16 -fno-align-labels -maccumulate-outgoing-args -fmove-all-movables -fprefetch-loop-arrays -funit-at-a-time" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.1/share/config /usr/kde/3.2/share/config /usr/kde/3.3/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" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=athlon-xp -O3 -pipe -fomit-frame-pointer -momit-leaf-frame-pointer -ftracer -fno-crossjumping -falign-functions=16 -falign-loops=16 -falign-jumps=16 -fno-align-labels -maccumulate-outgoing-args -fmove-all-movables -fprefetch-loop-arrays -funit-at-a-time" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache quiet sandbox" GENTOO_MIRRORS="http://gentoo.osuosl.org http://www.ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="3dnow X aac aalib acl acpi acpi4linux aim alsa apache2 apm arts artswrappersuid audiofile avi berkdb bonobo bzlib caps cddb cdparanoia cdr chroot clamav crypt cscope cups dga directfb divx4linux dnd dvd dvdr dvdread emacs encode escreen esd ethereal exif f77 faac faad fam fbcon ffmpeg flac foomaticdb ftp gcj gdbm gif gnome gnomedb gpm gstreamer gtk gtk2 icq idea imap imlib ipv6 jabber jack jack-tmpfs java jce joystick jpeg kde ladcca ldap libcaca libg++ libgda libsamplerate libwww lirc live mad maildir matroska md5sum mdb mikmod milter mmx mng monkey mono motif mozilla moznocompose moznomail moznoxft mozp3p mozsvg mozxmlterm mpeg mpeg4 mplayer msn mysql mythtv nas ncurses network nptl ntlm objc odbc offensive oggvorbis openal opengl oscar oss pam pdflib perl pg-hier php png postgres ppds prelude procmail python qt quicktime radeon radius readline rtc ruby samba sasl sdl slang spell sse ssl svg svga tcltk tcpd tetex theora tiff truetype unicode usb uudeview v4l vim-with-x virus-scan wmf wxwin wxwindows x86 xface xine xml xml2 xmms xosd xrandr xv xvid yahoo zlib" --- video_x.c 2000-10-30 17:15:34.000000000 -0500 +++ video_x.c.new 2004-07-28 22:21:05.040662720 -0400 @@ -365,7 +365,6 @@ ui_joypad->data &= ~ui_joypad->button_template->buttons[0]; } - default: } }
Created attachment 38857 [details, diff] darcnes-gcc-3.4.patch patch to fix >=gcc-3.4 compiling
Commited to CVS. Thanks for reporting.