Bug 2074 - make-3.77-5 misses dependencies that worked fine with make-3.76.1-5
make-3.77-5 misses dependencies that worked fine with make-3.76.1-5
Status: CLOSED RAWHIDE
Product: Red Hat Linux
Classification: Retired
Component: make (Show other bugs)
6.1
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: Jakub Jelinek
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 1999-04-08 21:08 EDT by Aleksey Nogin
Modified: 2008-05-01 11:37 EDT (History)
4 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 1999-12-03 13:43:48 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
Makefile that demonstrates the problem (run make -j). (144 bytes, text/plain)
1999-12-03 12:32 EST, Aleksey Nogin
no flags Details

  None (edit)
Description Aleksey Nogin 1999-04-08 21:08:20 EDT
When I use something like

---
all:
	...

include Makefile.dep

Makefile.dep: mk/config
	@touch Makefile.dep
	@$(MAKE) depend

depend: $(GENERATED_C_FILES)
	...

---
it was working fine with make-3.76.1-5 (RedHat 5.2), but
with make-3.77-5 (RedHat 5.9 SRPM compiled on RedHat 5.2)
"make all" seems to ignore dependencies that end up in
Makefile.dep
Comment 1 Jeff Johnson 1999-04-09 10:37:59 EDT
Have you tried moving the include Makefile.dep after the
other 2 rules?
Comment 2 Aleksey Nogin 1999-04-09 22:56:59 EDT
Oh, sorry, I didn't describe my Makefile accurately enough. In fact
"include Makefile.dep" does go after the rules. To describe it even
more accurately, in my Makefile I have

include $(ROOT)/mk/rules
include Makefile.dep

and mk/rules has the rules for Makefile.dep and for depend.
Comment 3 Brian Ryner 1999-04-13 14:39:59 EDT
From what I understand, make v3.77 has some brokenness issues with the
wildcard function.  It might not be a bad idea to return to the
previous 3.76 version.
Comment 4 Preston Brown 1999-04-13 17:02:59 EDT
Cristian:  should we revert?  A broken make in the distrib would be a
very bad thing.
Comment 5 Aleksey Nogin 1999-11-16 18:05:59 EST
As far as I know, this problem still exists in RH 6.1
Comment 6 Aleksey Nogin 1999-11-22 18:20:59 EST
As James Amundson <amundson@fnal.gov> (reporter of bug #7079) suggested, I tried
make 3.78.1. It does not seem to have this problem
Comment 7 Jeff Johnson 1999-12-03 11:36:59 EST
Can you send a self contained example that demonstrates the problem? Without
a concrete example, we're probably never going to be able to close this bug :-)
Comment 8 Aleksey Nogin 1999-12-03 12:32:59 EST
Created attachment 22 [details]
Makefile that demonstrates the problem (run make -j).
Comment 9 Aleksey Nogin 1999-12-03 12:45:59 EST
If you run make, using the Makefile I've just attached, you'll get "This make
works correctly" printed. However, if you run "make -j", then you'll get "This
make works correctly" only from make-3.76.1, but not make-3.77. I haven't tested
this example with make 3.78.1, but I believe it should work.
Comment 10 Aleksey Nogin 1999-12-03 13:06:59 EST
I tired make-3.78.1-1 from RawHide, it worked fine (on the test example).
Comment 11 Jeff Johnson 1999-12-03 13:41:59 EST
Does "worked fine" mean I can close the bug or does it mean that the test case
exhibits the problem?

Note You need to log in before you can comment on or make changes to this bug.