public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug build/12440] New: `make distclean' failing - with patch
@ 2011-01-26  0:10 fmn at oneiroi dot net
  2011-01-26  0:14 ` [Bug build/12440] " fmn at oneiroi dot net
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: fmn at oneiroi dot net @ 2011-01-26  0:10 UTC (permalink / raw)
  To: gdb-prs

http://sourceware.org/bugzilla/show_bug.cgi?id=12440

           Summary: `make distclean' failing - with patch
           Product: gdb
           Version: 7.2
            Status: NEW
          Severity: minor
          Priority: P2
         Component: build
        AssignedTo: unassigned@sourceware.org
        ReportedBy: fmn@oneiroi.net


after compilation `make distclean' is failing to remove old config.caches:


gdb-7.2]$: find . -name config.cache 
./bfd/config.cache
./etc/config.cache
./gdb/config.cache
./intl/config.cache
./libdecnumber/config.cache
./libiberty/config.cache
./opcodes/config.cache
./readline/config.cache
./sim/config.cache

gdb-7.2]$: make distclean
make[1]: Entering directory `/home/milo/srcs/gdb-7.2'
make[1]: Nothing to be done for `distclean-target'.
make[1]: Leaving directory `/home/milo/srcs/gdb-7.2'
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 [ "x86_64-unknown-linux-gnu" != "." ]; then \
      rm -rf x86_64-unknown-linux-gnu; \
    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)

gdb-7.2]$: find . -name config.cache 
./bfd/config.cache
./etc/config.cache
./gdb/config.cache
./intl/config.cache
./libdecnumber/config.cache
./libiberty/config.cache
./opcodes/config.cache
./readline/config.cache
./sim/config.cache


that's because of repeated `\;' in find invocation:

Makefile.in:2661:    -find . -name config.cache -exec rm -f {} \; \;
2>/dev/null
Makefile.tpl:774:    -find . -name config.cache -exec rm -f {} \; \;
2>/dev/null



silly one but patch attached anyway.

-- 
Regards,
Milo

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


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

* [Bug build/12440] `make distclean' failing - with patch
  2011-01-26  0:10 [Bug build/12440] New: `make distclean' failing - with patch fmn at oneiroi dot net
@ 2011-01-26  0:14 ` fmn at oneiroi dot net
  2022-02-27 23:39 ` tromey at sourceware dot org
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: fmn at oneiroi dot net @ 2011-01-26  0:14 UTC (permalink / raw)
  To: gdb-prs

http://sourceware.org/bugzilla/show_bug.cgi?id=12440

--- Comment #1 from Milo Nowak <fmn at oneiroi dot net> 2011-01-26 00:14:02 UTC ---
Created attachment 5212
  --> http://sourceware.org/bugzilla/attachment.cgi?id=5212
patch

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


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

* [Bug build/12440] `make distclean' failing - with patch
  2011-01-26  0:10 [Bug build/12440] New: `make distclean' failing - with patch fmn at oneiroi dot net
  2011-01-26  0:14 ` [Bug build/12440] " fmn at oneiroi dot net
@ 2022-02-27 23:39 ` tromey at sourceware dot org
  2022-02-27 23:50 ` tromey at sourceware dot org
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: tromey at sourceware dot org @ 2022-02-27 23:39 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=12440

Tom Tromey <tromey at sourceware dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |noloader at gmail dot com

--- Comment #2 from Tom Tromey <tromey at sourceware dot org> ---
*** Bug 12869 has been marked as a duplicate of this bug. ***

-- 
You are receiving this mail because:
You are on the CC list for the bug.

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

* [Bug build/12440] `make distclean' failing - with patch
  2011-01-26  0:10 [Bug build/12440] New: `make distclean' failing - with patch fmn at oneiroi dot net
  2011-01-26  0:14 ` [Bug build/12440] " fmn at oneiroi dot net
  2022-02-27 23:39 ` tromey at sourceware dot org
@ 2022-02-27 23:50 ` tromey at sourceware dot org
  2022-02-28  0:27 ` tromey at sourceware dot org
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: tromey at sourceware dot org @ 2022-02-27 23:50 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=12440

Tom Tromey <tromey at sourceware dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |tromey at sourceware dot org

--- Comment #3 from Tom Tromey <tromey at sourceware dot org> ---
distclean has some issues in gdb.
Those we can fix but the other ones have to be done via binutils
or, in one case, upstream in gcc.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

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

* [Bug build/12440] `make distclean' failing - with patch
  2011-01-26  0:10 [Bug build/12440] New: `make distclean' failing - with patch fmn at oneiroi dot net
                   ` (2 preceding siblings ...)
  2022-02-27 23:50 ` tromey at sourceware dot org
@ 2022-02-28  0:27 ` tromey at sourceware dot org
  2022-02-28  0:34 ` tromey at sourceware dot org
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: tromey at sourceware dot org @ 2022-02-28  0:27 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=12440

--- Comment #4 from Tom Tromey <tromey at sourceware dot org> ---
One issue with fixing 'distclean' is that we can't remove
$(YYFILES) since that will break the case of a source distribution
with included yacc-generated files when configured in-tree.
In this case we'd delete files that came from the dist.

It seems to me that "distclean" is only really useful in-tree.
Out-of-tree, I just delete the whole build directory and start over.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

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

* [Bug build/12440] `make distclean' failing - with patch
  2011-01-26  0:10 [Bug build/12440] New: `make distclean' failing - with patch fmn at oneiroi dot net
                   ` (3 preceding siblings ...)
  2022-02-28  0:27 ` tromey at sourceware dot org
@ 2022-02-28  0:34 ` tromey at sourceware dot org
  2022-03-01 23:54 ` cvs-commit at gcc dot gnu.org
  2022-03-01 23:55 ` tromey at sourceware dot org
  6 siblings, 0 replies; 8+ messages in thread
From: tromey at sourceware dot org @ 2022-02-28  0:34 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=12440

Tom Tromey <tromey at sourceware dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Assignee|unassigned at sourceware dot org   |tromey at sourceware dot org

--- Comment #5 from Tom Tromey <tromey at sourceware dot org> ---
I sent a patch for what I could

-- 
You are receiving this mail because:
You are on the CC list for the bug.

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

* [Bug build/12440] `make distclean' failing - with patch
  2011-01-26  0:10 [Bug build/12440] New: `make distclean' failing - with patch fmn at oneiroi dot net
                   ` (4 preceding siblings ...)
  2022-02-28  0:34 ` tromey at sourceware dot org
@ 2022-03-01 23:54 ` cvs-commit at gcc dot gnu.org
  2022-03-01 23:55 ` tromey at sourceware dot org
  6 siblings, 0 replies; 8+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2022-03-01 23:54 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=12440

--- Comment #6 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Tom Tromey <tromey@sourceware.org>:

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=c675db743ec2634f1f5f185fa8a6e73eb59447f7

commit c675db743ec2634f1f5f185fa8a6e73eb59447f7
Author: Tom Tromey <tom@tromey.com>
Date:   Sun Feb 27 17:31:54 2022 -0700

    Some "distclean" fixes in gdb

    PR build/12440 points out that "make distclean" is broken in gdb.
    Most of the breakage comes from other projects in the tree, but we can
    fix some of the issues, which is what this patch does.

    Note that the yacc output files, like c-exp.c, are left alone.  In a
    source distribution, these are included in the tarball, and if the
    user builds in-tree, we would not want to remove them.

    While that seems a bit obscure, it seems to me that "distclean" is
    only really useful for in-tree builds anyway -- out-of-tree I simply
    delete the entire build directory and start over.

    Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=12440

-- 
You are receiving this mail because:
You are on the CC list for the bug.

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

* [Bug build/12440] `make distclean' failing - with patch
  2011-01-26  0:10 [Bug build/12440] New: `make distclean' failing - with patch fmn at oneiroi dot net
                   ` (5 preceding siblings ...)
  2022-03-01 23:54 ` cvs-commit at gcc dot gnu.org
@ 2022-03-01 23:55 ` tromey at sourceware dot org
  6 siblings, 0 replies; 8+ messages in thread
From: tromey at sourceware dot org @ 2022-03-01 23:55 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=12440

Tom Tromey <tromey at sourceware dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |12.1
         Resolution|---                         |FIXED
             Status|NEW                         |RESOLVED

--- Comment #7 from Tom Tromey <tromey at sourceware dot org> ---
This is as close to fixed as we can (probably) reasonably make it.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

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

end of thread, other threads:[~2022-03-01 23:55 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-01-26  0:10 [Bug build/12440] New: `make distclean' failing - with patch fmn at oneiroi dot net
2011-01-26  0:14 ` [Bug build/12440] " fmn at oneiroi dot net
2022-02-27 23:39 ` tromey at sourceware dot org
2022-02-27 23:50 ` tromey at sourceware dot org
2022-02-28  0:27 ` tromey at sourceware dot org
2022-02-28  0:34 ` tromey at sourceware dot org
2022-03-01 23:54 ` cvs-commit at gcc dot gnu.org
2022-03-01 23:55 ` tromey at sourceware 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).