emerge apache fails with configure error Reproducible: Always Steps to Reproduce: 1.emerge apache 2.0.50-r2 2. 3. Actual Results: * Enabling ipv6 * /etc/apache2/apache2-builtin-mods options: --disable-example --enable-access=shared --enable-auth=shared --enable-auth_dbm=shared --enable-auth_anon=shared --enable-auth_digest=shared --enable-alias=shared --enable-file-cache=shared --enable-echo=shared --enable-charset-lite=shared --enable-cache=shared --enable-disk-cache=shared --enable-mem-cache=shared --enable-ext-filter=shared --enable-case_filter=shared --enable-case-filter-in=shared --enable-deflate=shared --enable-mime-magic=shared --enable-cern-meta=shared --enable-expires=shared --enable-headers=shared --enable-usertrack=shared --enable-unique-id=shared --enable-proxy=shared --enable-proxy-connect=shared --enable-proxy-ftp=shared --enable-proxy-http=shared --enable-ssl=shared --disable-optional-hook-export --disable-optional-hook-import --disable-optional-fn-import --disable-optional-fn-export --disable-bucketeer --enable-info=shared --enable-include=shared --enable-cgi=shared --enable-cgid=shared --enable-dav=shared --enable-dav-fs=shared --enable-vhost-alias=shared --enable-speling=shared --enable-rewrite=shared --enable-log_config=shared --enable-logio=shared --enable-env=shared --enable-setenvif=shared --enable-mime=shared --enable-status=shared --enable-autoindex=shared --enable-asis=shared --enable-negotiation=shared --enable-dir=shared --enable-imap=shared --enable-actions=shared --enable-userdir=shared --enable-so=yes configure: WARNING: If you wanted to set the --build type, don't use --host. If a cross compiler is detected then cross compile mode will be used. configure: loading cache /var/tmp/portage/apache-2.0.50-r2/work/httpd-2.0.50/config.cache checking for chosen layout... Gentoo checking for working mkdir -p... yes checking build system type... i686-pc-linux-gnu checking host system type... i686-pc-linux-gnu checking target system type... i686-pc-linux-gnu Configuring Apache Portable Runtime library ... checking for APR... reconfig updating cache /var/tmp/portage/apache-2.0.50-r2/work/httpd-2.0.50/config.cache configuring package in srclib/apr now configure: WARNING: If you wanted to set the --build type, don't use --host. If a cross compiler is detected then cross compile mode will be used. configure: loading cache /var/tmp/portage/apache-2.0.50-r2/work/httpd-2.0.50/config.cache configure: error: `CFLAGS' has changed since the previous run: configure: former value: -O3 -march=athlon-xp -m3dnow -msse -mmmx -mfpmath=sse,387 -funroll-loops -fforce-addr -ffast-math -funit-at-a-time -fprefetch-loop-arrays -pipe -ftracer -fomit-frame-pointer -finline-limit=800 configure: current value: -O3 -march=athlon-xp -m3dnow -msse -mmmx -mfpmath=sse,387 -funroll-loops -fforce-addr -ffast-math -funit-at-a-time -fprefetch-loop-arrays -pipe -ftracer -fomit-frame-pointer -finline-limit=800 configure: error: changes in the environment can compromise the build configure: error: run `make distclean' and/or `rm /var/tmp/portage/apache-2.0.50-r2/work/httpd-2.0.50/config.cache' and start over configure failed for srclib/apr !!! ERROR: net-www/apache-2.0.50-r2 failed. !!! Function src_compile, Line 182, Exitcode 1 !!! bad ./configure please submit bug report to bugs.gentoo.org. Include your config.layout. Portage 2.0.50-r11 (gcc34-x86-2004.2, gcc-3.4.2, glibc-2.3.4.20040808-r0, 2.6.8-gentoo-r4) ================================================================= System uname: 2.6.8-gentoo-r4 i686 AMD Athlon(TM) XP2200+ Gentoo Base System version 1.5.3 Autoconf: sys-devel/autoconf-2.59-r4 Automake: sys-devel/automake-1.8.5-r1 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-O3 -march=athlon-xp -m3dnow -msse -mmmx -mfpmath=sse,387 -funroll-loops -fforce-addr -ffast-math -funit-at-a-time -fprefetch-loop-arrays -pipe -ftracer -fomit-frame-pointer -finline-limit=800" 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/share/config /var/qmail/alias /var/qmail/control /var/vpopmail/domains /var/vpopmail/etc" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O3 -march=athlon-xp -m3dnow -msse -mmmx -mfpmath=sse,387 -funroll-loops -fforce-addr -ffast-math -funit-at-a-time -fprefetch-loop-arrays -pipe -ftracer -fomit-frame-pointer -finline-limit=800" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache sandbox" GENTOO_MIRRORS="http://open-systems.ufl.edu/mirrors/gentoo http://mirror.datapipe.net/gentoo http://mirror.datapipe.net/gentoo ftp://ftp.gtlib.cc.gatech.edu/pub/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://raven.gentoo.org/gentoo-portage" USE="X alsa apache2 apm avi berkdb bitmap-fonts cdr cpdflib crypt cups dba encode esd foomaticdb gd gdbm gif gnome gpm gtk gtk2 imlib ipv6 java jpeg libg++ libwww mad mikmod motif mpeg mysql ncurses nls nowin nptl oggvorbis opengl pam pdflib perl png python quicktime readline sdl slang spell ssl svga tcpd truetype x86 xml2 xmms xprint xv zlib"
This is also same error in release 3 ... has anyone thought of checking the ebuilds before adding them to the portage tree.
This turns out to be an error were CFLAGS expanded two lines once correcting the CFLAGS line to be one again emerge works fine.
HOLY COW I'M TOTALLY GOING SO FAST OH F***