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: Jim Wilson <wilson at specifixinc dot com>
- To: sashan <sashang at ihug dot co dot nz>
- Cc: gcc at gcc dot gnu dot org
- Date: Mon, 29 Mar 2004 16:11:31 -0800
- Subject: Re: [Newb] Building with debug info and no optimization
- References: <405B99BE.904@ihug.co.nz>
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