While emerging gnome-base/control-center-2.12.2 I get ----- make[2]: Entering directory `/var/tmp/portage/control-center-2.12.2/work/control-center-2.12.2/libsounds' if i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -DORBIT2=1 -pthread -I/usr/include/libgnomeui-2.0 -I/usr/include/libgnome-2.0 -I/usr/include/libgnomecanvas-2.0 -I/usr/include/gtk-2.0 -I/usr/include/libart-2.0 -I/usr/include/gconf/2 -I/usr/include/libbonoboui-2.0 -I/usr/include/gnome-vfs-2.0 -I/usr/lib/gnome-vfs-2.0/include -I/usr/include/gnome-keyring-1 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/orbit-2.0 -I/usr/include/libbonobo-2.0 -I/usr/include/bonobo-activation-2.0 -I/usr/include/pango-1.0 -I/usr/include/freetype2 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/libxml2 -march=pentium3 -pipe -fomit-frame-pointer -O2 -mmmx -msse2 -Wall -Wextra -MT sound-event.o -MD -MP -MF ".deps/sound-event.Tpo" -c -o sound-event.o sound-event.c; \ then mv -f ".deps/sound-event.Tpo" ".deps/sound-event.Po"; else rm -f ".deps/sound-event.Tpo"; exit 1; fi cc1: error: unrecognized option `-Wextra' make[2]: *** [sound-event.o] Error 1 ----- Basically, after searching the forums, I think that -Wextra is first introduced in gcc-3.4. Is upgrading to gcc-3.4* required to have Gnome-2.12* installed? If so, some gcc-dep should be introduced/updated; at least I guess so... ;-) If not, how can I circumvent this? regards, Florian Schricker Reproducible: Always Steps to Reproduce: Reproducable when compiling gnome-base/control-center-2.12.2 with gcc-3.3.6 Portage 2.0.51.22-r3 (default-linux/x86/2005.0, gcc-3.3.6, glibc-2.3.5-r2, 2.6.12-suspend2-r6 i686) ================================================================= System uname: 2.6.12-suspend2-r6 i686 Intel(R) Pentium(R) M processor 1400MHz Gentoo Base System version 1.6.13 ccache version 2.3 [enabled] dev-lang/python: 2.4.2 sys-apps/sandbox: 1.2.12 sys-devel/autoconf: 2.13, 2.59-r6 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1 sys-devel/binutils: 2.16.1 sys-devel/libtool: 1.5.20 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-march=pentium3 -pipe -fomit-frame-pointer -O2 -mmmx -msse2 " CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla-firefox/searchplugins /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/splash /etc/terminfo /etc/env.d" CXXFLAGS="-march=pentium3 -pipe -fomit-frame-pointer -O2 -mmmx -msse2 " DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig ccache distlocks sandbox sfperms strict" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/Linux/distributions/gentoo" LANG="en_US@euro" LC_ALL="en_US" 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="x86 X aalib acpi alsa apache2 apm artworkextra asf audiofile avi bash-completion berkdb bitmap-fonts bonobo bzip2 cdr crypt cups curl dbus dga directfb divx4linux dvd eds emboss encode esd evo exif expat fam ffmpeg firefox flac flash foomaticdb fortran gd gdbm gif glut gnome gphoto2 gpm gstreamer gtk gtk2 gtkhtml guile hal howl idn imagemagick imap imlib java jpeg junit kde lcms libg++ libwww mad mhash mikmod ming mmx mng motif mp3 mpeg mysql nas ncurses nls nntp nptl nptlonly ogg oggvorbis opengl oss pam pcmcia pcre pdflib perl png pnp python qt quicktime readline recode samba sdl slang spell sqlite sse sse2 ssl svga tcltk tcpd tetex tiff truetype truetype-fonts type1-fonts udev unicode usb vcd vorbis win32codecs wmf xine xinerama xml2 xprint xv xvid zlib userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, LDFLAGS, LINGUAS
It would appear that, if -Wall is not in the CFLAGS, it adds -Wall -Wextra. A workaround for now would be to add -Wall to your CFLAGS and re-emerge.
Adding "-Wall" solved it for me; shall I close this bug for now or is there some interest to "really fix[tm]" that (in that case I think I could be used as a tester)? regards, Florian Schricker
here is a link from latexer that shows how another distro is dealing with it: http://www.mail-archive.com/pld-cvs-commit@lists.pld-linux.org/msg24787.html
committed a patch, in CVS.
*** Bug 114598 has been marked as a duplicate of this bug. ***