Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 58718 - Darcnes 0401-r2 fails to compile with GCC 3.4.1-r1
Summary: Darcnes 0401-r2 fails to compile with GCC 3.4.1-r1
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GCC Porting (show other bugs)
Hardware: x86 Linux
: High normal
Assignee: Please assign to toolchain
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-07-28 19:29 UTC by Anthony Mirabella
Modified: 2004-09-03 16:53 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
darcnes-gcc-3.4.patch (darcnes-gcc-3.4.patch,213 bytes, patch)
2004-09-03 16:29 UTC, Bjarke Istrup Pedersen (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Anthony Mirabella 2004-07-28 19:29:38 UTC
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:
     }
 }
Comment 1 Bjarke Istrup Pedersen (RETIRED) gentoo-dev 2004-09-03 16:29:22 UTC
Created attachment 38857 [details, diff]
darcnes-gcc-3.4.patch

patch to fix >=gcc-3.4 compiling
Comment 2 Sven Wegener gentoo-dev 2004-09-03 16:53:33 UTC
Commited to CVS. Thanks for reporting.