public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug bootstrap/25470]  New: fixincludes/ subdirectory not cleaned by "make distclean"
@ 2005-12-17 23:47 ssen at opendarwin dot org
  2005-12-17 23:48 ` [Bug bootstrap/25470] [4.2 Regression] " pinskia at gcc dot gnu dot org
                   ` (14 more replies)
  0 siblings, 15 replies; 16+ messages in thread
From: ssen at opendarwin dot org @ 2005-12-17 23:47 UTC (permalink / raw)
  To: gcc-bugs

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


^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2010-05-22 18:16 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-12-17 23:47 [Bug bootstrap/25470] New: fixincludes/ subdirectory not cleaned by "make distclean" ssen at opendarwin dot org
2005-12-17 23:48 ` [Bug bootstrap/25470] [4.2 Regression] " pinskia at gcc dot gnu dot org
2005-12-18  1:07 ` joseph at codesourcery dot com
2005-12-18  5:32 ` ssen at opendarwin dot org
2005-12-19  8:28 ` bonzini at gnu dot org
2006-01-28 20:23 ` pinskia at gcc dot gnu dot org
2006-05-01  6:24 ` pinskia at gcc dot gnu dot org
2006-06-04 17:26 ` mmitchel at gcc dot gnu dot org
2007-05-14 21:31 ` [Bug bootstrap/25470] [4.2/4.3 " mmitchel at gcc dot gnu dot org
2007-07-20  3:50 ` mmitchel at gcc dot gnu dot org
2007-10-09 19:30 ` mmitchel at gcc dot gnu dot org
2008-02-01 16:54 ` jsm28 at gcc dot gnu dot org
2008-05-19 20:24 ` [Bug bootstrap/25470] [4.2/4.3/4.4 " jsm28 at gcc dot gnu dot org
2009-03-31 19:05 ` [Bug bootstrap/25470] [4.3/4.4/4.5 " jsm28 at gcc dot gnu dot org
2009-08-04 12:35 ` rguenth at gcc dot gnu dot org
2010-05-22 18:31 ` [Bug bootstrap/25470] [4.3/4.4/4.5/4.6 " rguenth at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).