[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug #64797] Pathalogically slow statting with .SECONDARY
From: |
David Given |
Subject: |
[bug #64797] Pathalogically slow statting with .SECONDARY |
Date: |
Thu, 19 Oct 2023 18:12:08 -0400 (EDT) |
URL:
<https://savannah.gnu.org/bugs/?64797>
Summary: Pathalogically slow statting with .SECONDARY
Group: make
Submitter: 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
Discussion Lock: Any
Component Version: 4.3
Operating System: POSIX-Based
Fixed Release: None
Triage Status: None
_______________________________________________________
Follow-up Comments:
-------------------------------------------------------
Date: Thu 19 Oct 2023 10:12:06 PM UTC By: David Given <hjalfi>
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.
_______________________________________________________
File Attachments:
-------------------------------------------------------
Date: Thu 19 Oct 2023 10:12:06 PM UTC Name: bad.tar.xz Size: 8KiB By:
hjalfi
<http://savannah.gnu.org/bugs/download.php?file_id=55260>
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?64797>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [bug #64797] Pathalogically slow statting with .SECONDARY,
David Given <=