[Newb] Building with debug info and no optimization

Jim Wilson wilson@specifixinc.com
Tue Mar 30 01:16:00 GMT 2004


sashan wrote:
> configure: error: `CFLAGS' has changed since the previous run:
> configure:   former value:  -g -O2
> configure:   current value: -g
> configure: error: changes in the environment can compromise the build
> configure: error: run `make distclean' and/or `rm ./config.cache' and 
> start over

If you look at the errors carefully, you will see that the problem is 
not in the toplevel but rather in one of the subdirectories.  So the 
problem is not ./config.cache but rather subdir/config.cache, where you 
can get subdir from the make output.  You can try deleting them one at a 
time, but if one is broken probably all are broken.  So you may want to 
try something like "rm */config.cache".

It is probably safer to just configure a new tree though.  Delete the 
old build tree and configure a new one, instead of trying to reconfigure 
a build tree after a cvs update.
-- 
Jim Wilson, GNU Tools Support, http://www.SpecifixInc.com



More information about the Gcc mailing list