Make distclean does not remove intl/config.cache

Bug #936536 reported by Christoffer Dall
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Linaro GDB
Fix Released
Undecided
Unassigned

Bug Description

For example,

if incorrectly doing:

./configure --host=arm-linux
make

it complains if you don't have a cross-compiler with that prefix, and you realize your mistake and do:

make distclean
./configure --host=arm-linux-gnueabi
make

Then it says that your build environment has changed and you need to do make distclean, which you just did.

Thanks,
Christoffer

Revision history for this message
Christoffer Dall (cdall) wrote :

My make distclean output looks like this:

make[1]: Entering directory `/home/christoffer/src/kvmarm/gdb-linaro-7.4-2012.02'
Doing distclean in etc
make[2]: Entering directory `/home/christoffer/src/kvmarm/gdb-linaro-7.4-2012.02/etc'
rm -f *.aux *.cp *.cps *.dvi *.fn *.fns *.ky *.kys *.log
rm -f *.pg *.pgs *.toc *.tp *.tps *.vr *.vrs
rm -f configdev.txt configbuild.txt
rm -f configdev.eps configbuild.eps
rm -f configdev.jpg configbuild.jpg
rm -f Makefile config.status config.cache
make[2]: Leaving directory `/home/christoffer/src/kvmarm/gdb-linaro-7.4-2012.02/etc'
Doing distclean in intl
make[2]: Entering directory `/home/christoffer/src/kvmarm/gdb-linaro-7.4-2012.02/intl'
rm -f *.a *.la *.o *.obj *.lo core core.* libintl.h
rm -f config.status config.cache config.log config.intl config.h
rm -f Makefile ID TAGS
make[2]: Leaving directory `/home/christoffer/src/kvmarm/gdb-linaro-7.4-2012.02/intl'
make[1]: Nothing to be done for `distclean-target'.
make[1]: Leaving directory `/home/christoffer/src/kvmarm/gdb-linaro-7.4-2012.02'
rm -f *.a TEMP errs core *.o *~ \#* TAGS *.E *.log
rm -f Makefile config.status config.cache mh-frag mt-frag
rm -f maybedep.tmp serdep.tmp
if [ "arm-linux-gnueabi" != "." ]; then \
   rm -rf arm-linux-gnueabi; \
 else true; fi
rm -rf build-x86_64-unknown-linux-gnu
if [ "." != "." ]; then \
   rm -rf .; \
 else true; fi
rm -f texinfo/po/Makefile texinfo/po/Makefile.in texinfo/info/Makefile
rm -f texinfo/doc/Makefile texinfo/po/POTFILES
rmdir texinfo/doc texinfo/info texinfo/intl texinfo/lib 2>/dev/null
make: [local-distclean] Error 1 (ignored)
rmdir texinfo/makeinfo texinfo/po texinfo/util 2>/dev/null
make: [local-distclean] Error 1 (ignored)
rmdir fastjar gcc libiberty texinfo zlib 2>/dev/null
make: [local-distclean] Error 1 (ignored)
find . -name config.cache -exec rm -f {} \; \; 2>/dev/null
make: [local-distclean] Error 1 (ignored)

Revision history for this message
Muhammad Omair Javaid (omair-javaid) wrote :

** Test Host
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=12.04
DISTRIB_CODENAME=precise
DISTRIB_DESCRIPTION="Ubuntu 12.04.1 LTS"

** gdb-linaro revno 39073

Unable to reproduce with following steps:

#1)
omjavaid@omjavaid-ThinkPad-T420:~/output/check/gdb-linaro$ ./configure --host=arm-linux
omjavaid@omjavaid-ThinkPad-T420:~/output/check/gdb-linaro$ make

#2)
omjavaid@omjavaid-ThinkPad-T420:~/output/check/gdb-linaro$ find . -name config.cache
./sim/config.cache
./opcodes/config.cache
./libdecnumber/config.cache
./gdb/config.cache
./gdb/build-gnulib/config.cache
./intl/config.cache
./libiberty/config.cache
./etc/config.cache
./readline/config.cache
./bfd/config.cache

#3
omjavaid@omjavaid-ThinkPad-T420:~/output/check/gdb-linaro$ make distclean

#4
omjavaid@omjavaid-ThinkPad-T420:~/output/check/gdb-linaro$ find . -name config.cache
./gdb/config.cache
./gdb/build-gnulib/config.cache

Changed in gdb-linaro:
status: New → Incomplete
Revision history for this message
Will Newton (will-newton) wrote :

The above sequence seems to work with current versions of binutils. If problems remain then please open an issue at bugs.linaro.org.

Changed in gdb-linaro:
status: Incomplete → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.