Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 113342 - confcache-0.3.3 breaks mysql-5.0.16 at innobase configure
Summary: confcache-0.3.3 breaks mysql-5.0.16 at innobase configure
Status: RESOLVED CANTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Brian Harring (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-11-23 04:24 UTC by Ed Catmur
Modified: 2006-02-08 21:42 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ed Catmur 2005-11-23 04:24:19 UTC
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
Comment 1 Brian Harring (RETIRED) gentoo-dev 2005-11-23 06:48:27 UTC
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?
Comment 2 Francesco R. (RETIRED) gentoo-dev 2005-11-24 15:49:08 UTC
If I add  "--cache-file=/dev/null" at configure in the ebuilds could that help ?
Comment 3 Francesco R. (RETIRED) gentoo-dev 2005-11-24 18:09:41 UTC
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
Comment 4 Brian Harring (RETIRED) gentoo-dev 2006-01-15 03:28:44 UTC
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?
Comment 5 Diego Elio Pettenò (RETIRED) gentoo-dev 2006-01-15 04:15:58 UTC
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.
Comment 6 Brian Harring (RETIRED) gentoo-dev 2006-02-08 21:42:36 UTC
Fix via adding RESTRICT="confcache"