This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug bootstrap/25470] New: fixincludes/ subdirectory not cleaned by "make distclean"
- From: "ssen at opendarwin dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 17 Dec 2005 23:47:09 -0000
- Subject: [Bug bootstrap/25470] New: fixincludes/ subdirectory not cleaned by "make distclean"
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
Using the "gcc-4.2-20051217" core snapshot on Mac OS X 10.4.3, using the Apple
gcc 5026 (4.0 based) as the bootstrap complier.
After doing a "make" in a separate build directory, following by a "make
distclean", config caches are left behind in fixincludes/. A subsequent attempt
to configure and bootstrap in that directly will fail because "make distclean"
did not actually leave the directory in a pristine state.
Steps to reproduce:
1) Config as above
2) Extract gcc-core-4.2-20051217.tar.bz2 tarball
3) In a separate build directory:
$ mkdir gcc-build
$ cd gcc-build
$ ../gcc-4.2-20051217/configure --enable-languages=c --disable-checking
--prefix=/usr/local/foo
...
$ make
4) Run "make distclean" and note left-over files
$ make distclean
rm -rf stage1-*
rm -rf stage2-*
rm -rf stage3-* compare
rm -rf stage4-* compare3
rm -rf stageprofile-*
rm -rf stagefeedback-*
Doing distclean in fixincludes
rm -f *.o *-stamp applyfix fixincl *~ fixinc.sh
rm -f mkheaders mkheaders.almost
rm -f Makefile config.h config.log config.status stamp-h
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 [ "powerpc-apple-darwin8.3.0" != "." ]; then \
rm -rf powerpc-apple-darwin8.3.0; \
else true; fi
rm -rf build-powerpc-apple-darwin8.3.0
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 .
.
./fixincludes
./fixincludes/config.cache
./gcc
./intl
./libcpp
./libdecnumber
./libiberty
./prev-gcc
./prev-intl
./prev-libcpp
./prev-libdecnumber
./prev-libiberty
./prev-powerpc-apple-darwin8.3.0
./stage3-gcc
./stage3-intl
./stage3-libcpp
./stage3-libdecnumber
./stage3-libiberty
./stage3-powerpc-apple-darwin8.3.0
./stage_current
./stage_final
./stage_last
5) Try to run configure/make again, this time with a different --prefix.
$ ../gcc-4.2-20051217/configure --enable-languages=c --disable-checking
--prefix=/usr/local/bar
...
$ make
...
#-rm -rf stage2-* ; echo timestamp > stage2-lean
Configuring in ./fixincludes
configure: loading cache ./config.cache
configure: error: `CC' has changed since the previous run:
configure: former value: /Volumes/Darwin/gcc-build/./gcc/xgcc
-B/Volumes/Darwin/gcc-build/./gcc/
-B/usr/local/foo/powerpc-apple-darwin8.3.0/bin/
-B/usr/local/foo/powerpc-apple-darwin8.3.0/lib/ -isystem
/usr/local/foo/powerpc-apple-darwin8.3.0/include -isystem
/usr/local/foo/powerpc-apple-darwin8.3.0/sys-include
configure: current value: /Volumes/Darwin/gcc-build/./gcc/xgcc
-B/Volumes/Darwin/gcc-build/./gcc/
-B/usr/local/bar/powerpc-apple-darwin8.3.0/bin/
-B/usr/local/bar/powerpc-apple-darwin8.3.0/lib/ -isystem
/usr/local/bar/powerpc-apple-darwin8.3.0/include -isystem
/usr/local/bar/powerpc-apple-darwin8.3.0/sys-include
configure: error: changes in the environment can compromise the build
configure: error: run `make distclean' and/or `rm ./config.cache' and start
over
make[1]: *** [configure-fixincludes] Error 1
make: *** [all] Error 2
$
--
Summary: fixincludes/ subdirectory not cleaned by "make
distclean"
Product: gcc
Version: 4.2.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: bootstrap
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: ssen at opendarwin dot org
GCC build triplet: powerpc-apple-darwin8.3.0
GCC host triplet: powerpc-apple-darwin8.3.0
GCC target triplet: powerpc-apple-darwin8.3.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25470