[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#433301: marked as done (gcc-4.1: default target of -M generated rule lacks path)



Your message dated Mon, 17 Sep 2007 04:19:55 +0200
with message-id <20070917021955.GA729@capsaicin.mamane.lu>
and subject line Bug#433301: gcc-4.1: default target of -M generated rule lacks path
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--- Begin Message ---
Package: gcc-4.1
Version: 4.1.2-13
Severity: normal

"info --node '(gcc.info.gz)Preprocessor Options'" says:

`-MT TARGET'
     Change the target of the rule emitted by dependency generation. By
     default CPP takes the name of the main input file, including any
     path, deletes any file suffix such as `.c', and appends the
     platform's usual object suffix.  The result is the target.

But the behaviour is that the path is stripped. E.g., the following
command:

 "gcc" -MM -I "/usr/lib/ocaml/3.09.2"/caml kernel/byterun/coq_memory.c

gives:

 coq_memory.o: kernel/byterun/coq_memory.c kernel/byterun/coq_gc.h

instead of

 kernel/byterun/coq_memory.o: kernel/byterun/coq_memory.c kernel/byterun/coq_gc.h

-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'stable'), (200, 'experimental')
Architecture: i386 (x86_64)

Kernel: Linux 2.6.21+deb-4+64bit
Locale: LANG=fr_LU.UTF-8, LC_CTYPE=fr_LU.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages gcc-4.1 depends on:
ii  binutils               2.17cvs20070426-8 The GNU assembler, linker and bina
ii  cpp-4.1                4.1.2-13          The GNU C preprocessor
ii  gcc-4.1-base           4.1.2-13          The GNU Compiler Collection (base 
ii  libc6                  2.6-2             GNU C Library: Shared libraries
ii  libgcc1                1:4.2-20070707-1  GCC support library

Versions of packages gcc-4.1 recommends:
ii  libc6-dev                     2.6-2      GNU C Library: Development Librari
pn  libmudflap0-dev               <none>     (no description available)

-- no debconf information


--- End Message ---
--- Begin Message ---
Version: 4.3-20070902-1

On Sun, Sep 16, 2007 at 05:17:52PM +0200, Matthias Klose wrote:

>  - you cite -MT, but use -MM, is that really what you mean?

Yes. The documentation of -MT says "by default FOO", which I
understand as "if you do not pass an -MT argument, then FOO", as -MT's
role is to override said default. Now that I read the documentation
carefully again, the documentation of -M does indeed document the
actual behaviour, so I suppose this bug becomes "documentation of -MT
contradicts the one of -M and actual behaviour".

>  - please recheck with 4.2 and 4.3/snapshot

Ah. The documentation is correct in 4.3:

 By default CPP takes the name of the main input file, deletes any
 directory components (...)

-- 
Lionel


--- End Message ---

Reply to: