public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* The binutils ".gitignore" seems outdated & "make distclean" does not clean everything
@ 2023-02-16  8:37 Ulf Samuelsson
  2023-02-17 14:34 ` Michael Matz
  0 siblings, 1 reply; 3+ messages in thread
From: Ulf Samuelsson @ 2023-02-16  8:37 UTC (permalink / raw)
  To: binutils, Nick Clifton

I cloned the latest git

Ran a build script.

=================
#!/bin/bash
DEST_DIR=/home/ulf/projects/binutils/bin
mkdir        -p $DEST_DIR
rm             -fr $DEST_DIR/*
./configure --prefix $DEST_DIR
make -j 32
make install
=================

and then

$ git status

The result:

On branch CRC

Untracked files:

     Makefile
     bfd/Makefile
     bfd/doc/.dirstamp
     bfd/elf32-aarch64.c
     bfd/elf32-loongarch.c
     bfd/elf32-riscv.c
     bfd/elf64-aarch64.c
     bfd/elf64-loongarch.c
     bfd/elf64-riscv.c
     bfd/po/Makefile
     bfd/po/Makefile.in
     binutils/Makefile
     binutils/bfdtest1
     binutils/bfdtest2
     binutils/doc/.dirstamp
     binutils/po/Makefile
     binutils/po/Makefile.in
     binutils/testsuite/.dirstamp
     binutils/testsuite/gentestdlls
     etc/Makefile
     gas/Makefile
     gas/config/.dirstamp
     gas/doc/.dirstamp
     gas/po/Makefile
     gas/po/Makefile.in
     gdb/config.lt
     gdb/doc/GDBvn.texi
     gdb/doc/gcore.1
     gdb/doc/gdb-add-index.1
     gdb/doc/gdb-cfg.texi
     gdb/doc/gdb.1
     gdb/doc/gdbinit.5
     gdb/doc/gdbserver.1
     gdb/doc/version.subst
     gdb/gdb-gdb.py
     gdbserver/version-generated.cc
     gdbsupport/Makefile
     gnulib/Makefile
     gnulib/Makefile.gnulib.inc
     gnulib/import/Makefile
     gnulib/import/alloca.h
     gnulib/import/arpa/
     gnulib/import/ctype.h
     gnulib/import/dirent.h
     gnulib/import/fcntl.h
     gnulib/import/glob-libc.gl.h
     gnulib/import/glob.h
     gnulib/import/glthread/.dirstamp
     gnulib/import/inttypes.h
     gnulib/import/limits.h
     gnulib/import/locale.h
     gnulib/import/malloc/.dirstamp
     gnulib/import/malloc/scratch_buffer.gl.h
     gnulib/import/math.h
     gnulib/import/netdb.h
     gnulib/import/signal.h
     gnulib/import/stdio.h
     gnulib/import/stdlib.h
     gnulib/import/string.h
     gnulib/import/strings.h
     gnulib/import/sys/
     gnulib/import/time.h
     gnulib/import/unistd.h
     gnulib/import/wchar.h
     gnulib/import/wctype.h
     gprof/Makefile
     gprof/po/Makefile
     gprof/po/Makefile.in
     gprofng/Makefile
     gprofng/Simple.class
     gprofng/doc/Makefile
     gprofng/doc/gprofng.1
     gprofng/dummy.c
     gprofng/gp-display-html/Makefile
     gprofng/gp-display-html/gp-display-html
     gprofng/gp-display-html/gp-display-html.1
     gprofng/libcollector/Makefile
     gprofng/libcollector/lib-config.h
     gprofng/src/Makefile
     gprofng/src/QLParser.tab.cc
     gprofng/src/QLParser.tab.hh
     gprofng/src/gp-archive
     gprofng/src/gp-archive.1
     gprofng/src/gp-collect-app
     gprofng/src/gp-collect-app.1
     gprofng/src/gp-display-src
     gprofng/src/gp-display-src.1
     gprofng/src/gp-display-text
     gprofng/src/gp-display-text.1
     gprofng/src/gprofng
     gprofng/src/stack.hh
     intl/Makefile
     ld/Makefile
     ld/po/Makefile
     ld/po/Makefile.in
     libbacktrace/Makefile
     libbacktrace/backtrace-supported.h
     libbacktrace/gstdint.h
     libbacktrace/install-debuginfo-for-buildid.sh
     libctf/Makefile
     libctf/config.lt
     libctf/doc/.dirstamp
     libdecnumber/Makefile
     libiberty/Makefile
     libiberty/testsuite/Makefile
     libsframe/Makefile
     libsframe/doc/.dirstamp
     opcodes/Makefile
     opcodes/po/Makefile
     opcodes/po/Makefile.in
     readline/Makefile
     sim/Makefile
     sim/arch-subdir.mk
     sim/common/.dirstamp
     sim/common/version.c-stamp
     zlib/Makefile

If I then do a

$ make distclean

I get:

On branch CRC

     removed:     sim/ppc/.gdbinit

Untracked files:

     gdb/config.lt
     gdb/doc/GDBvn.texi
     gdb/doc/gcore.1
     gdb/doc/gdb-add-index.1
     gdb/doc/gdb.1
     gdb/doc/gdbinit.5
     gdb/doc/gdbserver.1
     gdb/doc/version.subst
     gprofng/Simple.class
     gprofng/doc/gprofng.1
     gprofng/dummy.c
     gprofng/gp-display-html/gp-display-html.1
     gprofng/src/QLParser.tab.cc
     gprofng/src/QLParser.tab.hh
     gprofng/src/gp-archive.1
     gprofng/src/gp-collect-app.1
     gprofng/src/gp-display-src.1
     gprofng/src/gp-display-text.1
     gprofng/src/stack.hh
     libbacktrace/gstdint.h

==========
Looks like they need some maintenance.

Best Regards
Ulf Samuelsson




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

* Re: The binutils ".gitignore" seems outdated & "make distclean" does not clean everything
  2023-02-16  8:37 The binutils ".gitignore" seems outdated & "make distclean" does not clean everything Ulf Samuelsson
@ 2023-02-17 14:34 ` Michael Matz
  2023-02-17 15:26   ` Ulf Samuelsson
  0 siblings, 1 reply; 3+ messages in thread
From: Michael Matz @ 2023-02-17 14:34 UTC (permalink / raw)
  To: Ulf Samuelsson; +Cc: binutils, Nick Clifton

[-- Attachment #1: Type: text/plain, Size: 756 bytes --]

Hey,

On Thu, 16 Feb 2023, Ulf Samuelsson via Binutils wrote:

> Ran a build script.
> 
> =================
> #!/bin/bash
> DEST_DIR=/home/ulf/projects/binutils/bin
> mkdir        -p $DEST_DIR
> rm             -fr $DEST_DIR/*
> ./configure --prefix $DEST_DIR
> make -j 32
> make install
> =================

Always build binutils in a separate build dir.  (Not doing so will usually 
work, except when it doesn't; but the general advise is always to build in 
separate dirs).  That alone will get rid of most (if not all) of the 
additional files you see.  make distclean will be similar.

(That doesn't mean that .gitignore might not want additions, but usually 
people don't notice this as they build in separate dirs)


Ciao,
Michael.

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

* Re: The binutils ".gitignore" seems outdated & "make distclean" does not clean everything
  2023-02-17 14:34 ` Michael Matz
@ 2023-02-17 15:26   ` Ulf Samuelsson
  0 siblings, 0 replies; 3+ messages in thread
From: Ulf Samuelsson @ 2023-02-17 15:26 UTC (permalink / raw)
  To: Michael Matz; +Cc: binutils, Nick Clifton


Den 2023-02-17 kl. 15:34, skrev Michael Matz:
> Hey,
>
> On Thu, 16 Feb 2023, Ulf Samuelsson via Binutils wrote:
>
>> Ran a build script.
>>
>> =================
>> #!/bin/bash
>> DEST_DIR=/home/ulf/projects/binutils/bin
>> mkdir        -p $DEST_DIR
>> rm             -fr $DEST_DIR/*
>> ./configure --prefix $DEST_DIR
>> make -j 32
>> make install
>> =================
> Always build binutils in a separate build dir.  (Not doing so will usually
> work, except when it doesn't; but the general advise is always to build in
> separate dirs).  That alone will get rid of most (if not all) of the
> additional files you see.  make distclean will be similar.

OK, that makes sense.

I usually build things with Yocto, so I seldom get exposed to this issue.

Thanks,

Ulf

> (That doesn't mean that .gitignore might not want additions, but usually
> people don't notice this as they build in separate dirs)
>
> Ciao,
> Michael.

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

end of thread, other threads:[~2023-02-17 15:26 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-02-16  8:37 The binutils ".gitignore" seems outdated & "make distclean" does not clean everything Ulf Samuelsson
2023-02-17 14:34 ` Michael Matz
2023-02-17 15:26   ` Ulf Samuelsson

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).