emerge gcc fails for gcc-3.3.2-r5 on one of my hosts due to the invalid option '-O2-pipe' (yes, no blank between the two options). make.conf and make.glob als are okay (and were not changed by me recently), but I don't know where this-O2-pipe option comes from. Reproducible: Always Steps to Reproduce: 1. emerge '=gcc-3.3.2-r5 Happens on one of my PCs only, though. Others compile fine. But as I think this is not my fault, I thought I'd report it. Actual Results: [...] * Scanning 25 of 25 /var/qmail/bin... * No binaries with suspicious libgcc __guard@GCC dependencies detected >>> Source unpacked. * Configuring GCC... Created "Makefile" in /var/tmp/portage/gcc-3.3.2-r5/work/build using "mt-frag" cc1: invalid option `-O2-pipe' distcc[32632] ERROR: compile on localhost failed *** The command 'gcc -o conftest -mcpu=i586 -O2-pipe conftest.c' failed. *** You must set the environment variable CC to a working compiler. !!! ERROR: sys-devel/gcc-3.3.2-r5 failed. !!! Function src_compile, Line 402, Exitcode 1 !!! (no error message) Expected Results: It should have installed gcc 3.3.2-r5. root@zone:/etc emerge --info Portage 2.0.50 (default-x86-1.4, gcc-3.2.3, glibc-2.2.5-r2,2.3.2-r9, 2.4.25_pre6-gss) ================================================================= System uname: 2.4.25_pre6-gss i686 Pentium III (Katmai) Gentoo Base System version 1.4.3.10p1 distcc 2.11.1 i586-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled] ccache version 2.3 [enabled] Autoconf: sys-devel/autoconf-2.58 Automake: sys-devel/automake-1.7.7 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-mcpu=i586 -O -pipe -fomit-frame-pointer" CHOST="i586-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/share/config /usr/share/config /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /var/bind /var/qmail /var/qmail/alias /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" CXXFLAGS="-mcpu=i586 -O -pipe -fomit-frame-pointer" DISTDIR="/data/portage/distfiles" FEATURES="autoaddcvs buildpkg ccache distcc sandbox userpriv usersandbox" GENTOO_MIRRORS="ftp://ftp.snt.utwente.nl/pub/os/linux/gentoo ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror/ http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/" MAKEOPTS="-j2" PKGDIR="/data/portage/rsync/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/data/portage/rsync" PORTDIR_OVERLAY="" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="X aalib apm avi berkdb bonobo crypt cups dga doc encode esd foomaticdb gdbm gif gpm gtk gtk2 guile imlib java jpeg libg++ libwww linguas_de mad matrox mikmod mmx motif mozilla mpeg mysql ncurses nls oggvorbis opengl oss pam pdflib perl png python qt quicktime readline samba sdl slang spell ssl svga tcltk tcpd tetex truetype vga x86 xml2 xmms xv zlib"
Change CFLAGS to: CFLAGS="-mcpu=i586 -O2 -pipe -fomit-frame-pointer" and see if it works. I have a suspission where it comes from.
Yeah, changing -O to -O2 helped.
Worked for me too, thanks!
Fixed in CVS. Basic bash shell replacement nit. I replaced it with a sed.
*** Bug 41483 has been marked as a duplicate of this bug. ***