This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: [Newb] Building with debug info and no optimization
- From: Mike Stump <mrs at apple dot com>
- To: Jim Wilson <wilson at specifixinc dot com>
- Cc: sashan <sashang at ihug dot co dot nz>, gcc at gcc dot gnu dot org
- Date: Mon, 29 Mar 2004 16:53:30 -0800
- Subject: Re: [Newb] Building with debug info and no optimization
On Monday, March 29, 2004, at 04:11 PM, Jim Wilson wrote:
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.
I think I hate the new code. :-( The times this kicks out errors from
make; cvs update make; cvs update; make; cvs update is just annoying.
In my experience, rm */config.cache; make restores the reliability of
the operation.