When i try to emerge guppi, it fails complaining about "guppi-view-interval.c:230: error: label at end of compound statement" it seems that in a switch statement, there is a default: with no action taken that gcc 3.4 doesn't like much... I'm using an amd64 but I don't think it's hardware related. Reproducible: Always Steps to Reproduce: 1.emerge guppi 2. 3. Actual Results: compilation failed Portage 2.0.50-r8 (default-amd64-2004.0, gcc-3.4.0, glibc-2.3.4.20040605-r0, 2.6.7-gentoo-r5) ================================================================= System uname: 2.6.7-gentoo-r5 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="amd64 ~amd64" AUTOCLEAN="yes" CFLAGS="-O2 -pipe -fomit-frame-pointer -march=athlon64 -fweb -ftracer" CHOST="x86_64-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/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 /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -pipe -fomit-frame-pointer -march=athlon64 -fweb -ftracer" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache sandbox" GENTOO_MIRRORS="ftp://mirrors.sec.informatik.tu-darmstadt.de/gentoo/ http://ftp.snt.utwente.nl/pub/os/linux/gentoo http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X alsa amd64 apm arts avi berkdb cdr crypt cups dvd encode faac faad foomaticdb gdbm gif gphoto2 gpm gtk2 gtkhtml imlib jpeg kde libg++ libwww linguas_fr lirc mikmod mozilla moznocompose moznoirc moznomail mozsvg mpeg ncurses nls nogcj oggvorbis opengl openssh pam pdflib perl png python qt quicktime readline samba sdl spell ssl tcltk tcpd truetype xinerama xml2 xmms xosd xv zlib"
Created attachment 35938 [details, diff] gcc341.diff This patch should fix it (with compliments from sourcemage).
Well, I think I could have done it myself, ;-) but I don't know how to use the patch directly with emerge... If you don't mind, could you give me some hints ? Do i have to modify the .ebuild to add the patch cmd and emerge /full/path/to/gnucash.ebuild ? Is there a cleaner way ? Thx (I will maybe try a search on bugs.gentoo.org, i don't think i'm the first to ask ;-), what a lazy guy i am...)
Created attachment 38525 [details, diff] another gcc34 patch This is another fix for the build. The big diffrence is that the other one adds a ;; so that default is not at the end of the switch. My patch out right removes default as the switch will fall though anyways if none of the cases are true. Or I think that is how it works, haven't used switch in a while.
Created attachment 38526 [details] ebuild that will patch I renamed the guppi ebuild to -r3, it has a patch so I thought it made sense, and it won't collide with anything in portage now. The way I would recommend to installing it is with a portage overlay. First change PORTDIR_OVERLAY="" in make.conf to PORTDIR_OVERLAY=/usr/local/portage or make it if it doesn't exist. Do 'mkdir -p /usr/local/portage/gnome-extra/guppi' and copy the ebuild in there. Then do 'ebuild /usr/local/portage/gnome-extra/guppi/guppi-0.40.3-r3.ebuild digest'. Now copy the patch (either one will work I think, it is just a matter of which one the gentoo devs feel is more right) into /usr/local/portage/gnome-extra/guppi/files. Although make sure that the patch is named guppi-0.40.3-gcc34.patch. I just think that this method is the way that is right, and you will have an overlay to do similar things in the future.
this patch works for me on x86 Portage 2.0.51_rc1 (default-x86-1.4, gcc-3.4.2, glibc-2.3.4.20040619-r1, 2.6.8-rc2-bk9 i686) ================================================================= System uname: 2.6.8-rc2-bk9 i686 Unknown CPU Typ Gentoo Base System version 1.4.16 distcc 2.16 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] ccache version 2.3 [disabled] Autoconf: sys-devel/autoconf-2.59-r4 Automake: sys-devel/automake-1.8.5-r1 Binutils: sys-devel/binutils-2.14.90.0.8-r1 Headers: sys-kernel/linux26-headers-2.6.8.1 Libtools: sys-devel/libtool-1.5.2-r5 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-march=athlon-xp -O2 -fomit-frame-pointer -pipe" CHOST="i686-pc-linux-gnu" COMPILER="" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /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/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/bind /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=athlon-xp -O2 -fomit-frame-pointer -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs fixpackages sandbox" GENTOO_MIRRORS="http://gentoo.llarian.net/ http://gentoo.binarycompass.org http://mirror.datapipe.net/gentoo http://gentoo.eliteitminds.com" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/mdhd/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/mdhd/portage.local" SYNC="rsync://vox.net/gentoo-portage" USE="3dnow X acpi alsa apache2 avi berkdb bitmap-fonts bonobo canna cdr crypt cups dvd dvdread encode esd foomaticdb gd gd-external gdbm ggi gif gnome gphoto2 gpm gtk gtk2 gtkhtml guile imlib ipv6 jpeg kde ldap libg++ libwww mad matroska mikmod mmx mmx2 motif mozilla mpeg mysql ncurses network nls nptl oggvorbis oss pam pdflib perl png python qt quicktime readline sdl slang spell sse ssl tcltk tcpd tetex theora tiff truetype userlocales v4l v4l2 x86 xml2 xmms xprint xv xvid zlib linguas_en linguas_ja"
fix is in portage thanks everyone for making patches and testing thanks Matthew