bugmake - Bugs: bug #64797, Pathalogically slow statting with...


bug #64797: Pathalogically slow statting with .SECONDARY

Submitter:  David Given <hjalfi>
Submitted:  Thu 19 Oct 2023 10:12:06 PM UTC
Severity:  3 - Normal Item Group:  Bug
Status:  None Privacy:  Public
Assigned to:  None Open/Closed:  Open
Component Version:  4.3 Operating System:  POSIX-Based
Fixed Release:  None Triage Status:  None
* Mandatory Fields

Add a New Comment Rich Markup

Thu 19 Oct 2023 10:12:06 PM UTC, original submission:  

I have a weird edge case where a makefile (generated by a build tool) is taking literally minutes to stat all the files and start execution. I boiled it down to the presence of .SECONDARY: if I remove this, it starts more or less instantly. If I run it with strace I can see that it stats a whole bunch of files very quickly, and then starts taking a couple of seconds for each file (all these files don't exist).

I've attached a test case.

$ time make
make: * No rule to make target 'src/fluxengine.cc', needed by '.obj/src+fluxengine/src/fluxengine.cc/fluxengine.o'.  Stop.

real    3m46.112s
user    3m46.112s
sys     0m0.000s

It turns out that .SECONDARY is useless for my makefile anyway, so removing it fixes the problem for me, but this still seems very wrong.

This is on make 4.3 on Debian Linux. I've tried 4.2 and it behaves the same way there.

David Given <hjalfi>


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

Attach Files:

Attached Files
file #55260:  bad.tar.xz added by hjalfi (8KiB - application/x-xz)


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by hjalfi (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.


    Follows 1 latest change.

    Date Changed by Updated Field Previous Value => Replaced by
    2023-10-19 hjalfi Attached File- Added bad.tar.xz, #55260

    Back to the top

    Powered by Savane 3.12.
    Corresponding source code