bugmake - Bugs: bug #65737, missing intermediate target...


bug #65737: missing intermediate target invalidates group

Submitter:  Stas Sergeev <stsp>
Submitted:  Mon 13 May 2024 07:50:35 PM UTC
Severity:  3 - Normal Item Group:  Bug
Status:  None Privacy:  Public
Assigned to:  None Open/Closed:  Open
Component Version:  4.4.1 Operating System:  Any
Fixed Release:  None Triage Status:  None
* Mandatory Fields

Add a New Comment Rich Markup

Mon 13 May 2024 08:12:49 PM UTC, comment #1: 

Also the diagnostic doesn't consider groups.
In the above makefile example, the diagnostic is:
Makefile:7: update target 'b' due to: unknown reasons

And if `b` depends on eg `Makefile` itself (just for
the sake of an example), then the diagnostic will
misleadingly tell:
Makefile:7: update target 'b' due to: Makefile

Which is entirely wrong: update happens because of
the group invalidation, but groups seems to be
not considered by diagnostic.

Stas Sergeev <stsp>
Mon 13 May 2024 07:50:35 PM UTC, original submission:  

FILES = a b

all: foo

$(FILES) &:
        touch $(FILES)

foo: b
        cat $< >$@

This makefile causes infinite rebuilds.
The problem is that file `a` is deleted
as being intermediate, but that mistakenly
invalidates entire group. As the result,
the targets that depend on `b` are re-built.

Missing intermediate targets should not
invalidate group.

Stas Sergeev <stsp>


(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:

No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by stsp (Submitted the item)

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.


    No changes have been made to this item

    Back to the top

    Powered by Savane 3.13-b921.
    Corresponding source code