Various parts of the gaming kernel do not compile with the newest gcc build thanks to the stricter inline requirements. Reproducible: Always Steps to Reproduce: 1. emerge gaming-sources; emerge gcc 2. make dep; make clean; make bzImage; make modules 3. bzImage and modules fail on various files Actual Results: kernel compile failed Expected Results: kernel should have compiled ***** This is my normal make.conf setting. During trial and error I tried only the march and O2 CFLAGS. ***** jvincent@john aic7xxx $ emerge info Portage 2.0.49-r10 (default-x86-1.4, gcc-3.3.1, glibc-2.3.2-r1, 2.4.20-gaming-r5) ================================================================= System uname: 2.4.20-gaming-r5 i686 Pentium III (Coppermine) Gentoo Base System version 1.4.3.10p1 distcc 2.11.1 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled] ccache version 2.3 [enabled] ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-march=pentium3 -O3 -pipe -fomit-frame-pointer -fforce-addr -falign-functions=4 -fprefetch-loop-arrays" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config /usr/kde/3/share/config /usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/config" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" CXXFLAGS="-march=pentium3 -O3 -pipe -fomit-frame-pointer -fforce-addr -falign-functions=4 -fprefetch-loop-arrays" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache sandbox distcc buildpkg cvs" GENTOO_MIRRORS="ftp://gentoo.mirrors.pair.com http://www.ibiblio.org/gentoo ftp://ftp.gtlib.cc.gatech.edu/pub/gentoo" MAKEOPTS="-j4" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.us.gentoo.org/gentoo-portage/" USE="x86 oss apm avi crypt encode foomaticdb gif jpeg libg++ mad mpeg ncurses png quicktime spell xml2 xmms xv zlib directfb gtkhtml gdbm berkdb slang readline arts bonobo tcltk guile tcpd libwww ssl perl python esd imlib oggvorbis qt opengl scanner moznoirc moznomail moznocomposer truetype ldap imap curl apache2 gd cups X mmx -gtk cdr gtk2 sse java sdl kde mozilla prelink objprelink -pam -pdflib -mikmod -gnome -svga -motif -doc -pda -aalib -mysql -tetex -gpm -acl -alsa -nls"
Created attachment 19207 [details] Fixes to aic7xxx_osm.c I forgot to create a backup. IF a kind maintainer could diff this one and make a real patch I would appreciate it. The changes are near the MODULE macro.
Created attachment 19208 [details] Fixes to ide-cd.h I forgot to backup the original. Could some kind developer diff this with the original?
*** Bug 30816 has been marked as a duplicate of this bug. ***
There are also a few other files that have problems with them, not just the ones attached to this. (i.e. super.c file under reiserfs)
more recent vanilla-kernels play nice with gcc, i'd expect the gaming-sources to start playing nice after they're based off of 2.4.22 instead of 2.4.20.
more discussion at http://forums.gentoo.org/viewtopic.php?p=537839&highlight=idecd+440#537839
I encountered the same problem. gaming-sources: 2.4.20-r5 gcc: 3.3.1-r5 /usr/src/linux-2.4.20-gaming-r5/fs/reiserfs/super.c: line 944-945: multi-line string literal. /usr/src/linux-2.4.20-gentoo-r6/drivers/ide/ide-cd.h: line 440: __u8 short slot_tablelen; should be __u16 slot_tablelen; ref: http://forums.gentoo.org/viewtopic.php?p=537839&highlight=idecd+440#537839 Cheers
*** Bug 32205 has been marked as a duplicate of this bug. ***
*** Bug 32212 has been marked as a duplicate of this bug. ***
gaming-sources-r6 with GCC 3.3 patches is now in CVS.