config.status: creating config.h config.status: executing depfiles commands config.status: executing default commands configure: configuring in innobase configure: running /bin/sh './configure' --prefix=/usr '--prefix=/usr' '--host=i686-pc-linux-gnu' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--datadir=/usr/share' '--sysconfdir=/etc' '--localstatedir=/var/lib' '--program-suffix=' '--libexecdir=/usr/sbin' '--sysconfdir=/etc/mysql' '--localstatedir=/var/lib/mysql' '--sharedstatedir=/usr/share/mysql' '--libdir=/usr/lib/mysql' '--includedir=/usr/include/mysql' '--with-low-memory' '--enable-assembler' '--enable-local-infile' '--with-mysqld-user=mysql' '--with-client-ldflags=-lstdc++' '--enable-thread-safe-client' '--with-comment=Gentoo Linux mysql-5.0.16' '--with-unix-socket-path=/var/run/mysqld/mysqld.sock' '--with-zlib-dir=/usr' '--with-lib-ccflags=-fPIC' '--without-readline' '--without-docs' '--enable-shared' '--enable-static' '--without-libwrap' '--with-openssl' '--without-debug' '--with-bench' '--with-server' '--with-embedded-server' '--with-extra-tools' '--with-innodb' '--with-raid' '--with-extra-charsets=all' '--with-berkeley-db=./bdb' '--with-geometry' '--without-ndbcluster' '--with-big-tables' '--without-big-tables' '--build=i686-pc-linux-gnu' '--cache-file' 'config.cache' 'CFLAGS=-ggdb3 -O1 -O2 -O3 -pipe -march=athlon-xp -mmmx -msse -m3dnow -DHAVE_ERRNO_AS_DEFINE=1' 'CXXFLAGS=-ggdb3 -O1 -O2 -O3 -pipe -march=athlon-xp -mmmx -msse -m3dnow -DHAVE_ERRNO_AS_DEFINE=1 -felide-constructors -fno-exceptions -fno-rtti -fno-implicit-templates' 'build_alias=i686-pc-linux-gnu' 'host_alias=i686-pc-linux-gnu' CFLAGS='-O3 -DDBUG_OFF -ggdb3 -O1 -O2 -O3 -pipe -march=athlon-xp -mmmx -msse -m3dnow -DHAVE_ERRNO_AS_DEFINE=1 ' CXXFLAGS='-O3 -DDBUG_OFF -ggdb3 -O1 -O2 -O3 -pipe -march=athlon-xp -mmmx -msse -m3dnow -DHAVE_ERRNO_AS_DEFINE=1 -felide-constructors -fno-exceptions -fno-rtti -fno-implicit-templates -fno-implicit-templates -fno-exceptions -fno-rtti' --cache-file=../config.cache --srcdir=. configure: loading cache ../config.cache configure: error: `CC' was not set in the previous run configure: error: `CFLAGS' has changed since the previous run: configure: former value: -ggdb3 -O1 -O2 -O3 -pipe -march=athlon-xp -mmmx -msse -m3dnow -DHAVE_ERRNO_AS_DEFINE=1 configure: current value: -O3 -DDBUG_OFF -ggdb3 -O1 -O2 -O3 -pipe -march=athlon-xp -mmmx -msse -m3dnow -DHAVE_ERRNO_AS_DEFINE=1 configure: error: `CXXFLAGS' has changed since the previous run: configure: former value: -ggdb3 -O1 -O2 -O3 -pipe -march=athlon-xp -mmmx -msse -m3dnow -DHAVE_ERRNO_AS_DEFINE=1 -felide-constructors -fno-exceptions -fno-rtti -fno-implicit-templates configure: current value: -O3 -DDBUG_OFF -ggdb3 -O1 -O2 -O3 -pipe -march=athlon-xp -mmmx -msse -m3dnow -DHAVE_ERRNO_AS_DEFINE=1 -felide-constructors -fno-exceptions -fno-rtti -fno-implicit-templates -fno-implicit-templates -fno-exceptions -fno-rtti configure: error: `CXX' was not set in the previous run configure: error: `LDFLAGS' was not set in the previous run configure: error: changes in the environment can compromise the build configure: error: run `make distclean' and/or `rm ../config.cache' and start over configure: error: /bin/sh './configure' failed for innobase oh yeah, if I unset CFLAGS CXXFLAGS the error is pretty much the same: configure: loading cache ../config.cache configure: error: `CC' was not set in the previous run configure: error: `CFLAGS' has changed since the previous run: configure: former value: -DHAVE_ERRNO_AS_DEFINE=1 configure: current value: -O3 -DDBUG_OFF -DHAVE_ERRNO_AS_DEFINE=1 configure: error: `CXXFLAGS' has changed since the previous run: configure: former value: -DHAVE_ERRNO_AS_DEFINE=1 -felide-constructors -fno-exceptions -fno-rtti -fno-implicit-templates configure: current value: -O3 -DDBUG_OFF -DHAVE_ERRNO_AS_DEFINE=1 -felide-constructors -fno-exceptions -fno-rtti -fno-implicit-templates -fno-implicit-templates -fno-exceptions -fno-rtti configure: error: `CXX' was not set in the previous run configure: error: `LDFLAGS' was not set in the previous run configure: error: changes in the environment can compromise the build configure: error: run `make distclean' and/or `rm ../config.cache' and start over configure: error: /bin/sh './configure' failed for innobase
autoconf setup doesn't like cache, offhand. mono is the same way. Not sureabout how to fix this one besides introducing a RESTRICT="confcache" of some sort when portage integration occurs- thoughts?
If I add "--cache-file=/dev/null" at configure in the ebuilds could that help ?
no it does'nt help, ./configure [...] --cache-file=/dev/null [...] --build=i686-pc-linux-gnu --cache-file config.cache now if portage put it _before_ the ebuild defined options no other changes and documentation is needed. cheers
Diego, your change fixes this right? Ed, my bzr repo is at http://dev.gentoo.org/~ferringb/bzr/confcache , game for trying a checkout for verification?
Hmm no, my changes checks for CC before invalidating it and should resolve that part (basically it should ignore CC changing as long as it's the same that's cached) but the problem with CFLAGS remains. And it's not a problem of confcache, it's _really_ a problem of the buildsystem, CFLAGS shouldn't be abused in general, and in particular when using cygnus-style sub-configures.
Fix via adding RESTRICT="confcache"