WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
214696
Submission failure with "make: *** No rule to make target `installsrc'. Stop"
https://bugs.webkit.org/show_bug.cgi?id=214696
Summary
Submission failure with "make: *** No rule to make target `installsrc'. Stop"
Ryan Hostetler
Reported
2020-07-23 12:08:39 PDT
Submission as a single project fails with: stderr: make: *** No rule to make target `installsrc'. Stop.
Attachments
Patch
(1.35 KB, patch)
2020-07-23 12:39 PDT
,
Ryan Hostetler
no flags
Details
Formatted Diff
Diff
Patch
(1.37 KB, patch)
2020-07-23 13:30 PDT
,
Ryan Hostetler
no flags
Details
Formatted Diff
Diff
Patch
(1.37 KB, patch)
2020-07-23 14:08 PDT
,
Ryan Hostetler
no flags
Details
Formatted Diff
Diff
Patch
(1.41 KB, patch)
2020-07-23 18:35 PDT
,
Ryan Hostetler
no flags
Details
Formatted Diff
Diff
Patch
(1.41 KB, patch)
2020-07-23 19:01 PDT
,
Ryan Hostetler
no flags
Details
Formatted Diff
Diff
Patch
(1.41 KB, patch)
2020-07-23 19:09 PDT
,
Ryan Hostetler
no flags
Details
Formatted Diff
Diff
Patch
(1.36 KB, patch)
2020-08-03 17:39 PDT
,
Ryan Hostetler
no flags
Details
Formatted Diff
Diff
Patch
(5.29 KB, patch)
2020-10-02 14:52 PDT
,
Ryan Hostetler
no flags
Details
Formatted Diff
Diff
Show Obsolete
(7)
View All
Add attachment
proposed patch, testcase, etc.
Ryan Hostetler
Comment 1
2020-07-23 12:39:43 PDT
Created
attachment 405066
[details]
Patch
Tim Horton
Comment 2
2020-07-23 12:54:56 PDT
Comment on
attachment 405066
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=405066&action=review
> Makefile:42 > +clean:
Seems like we now have two `clean` targets?
Ryan Hostetler
Comment 3
2020-07-23 13:21:45 PDT
Comment on
attachment 405066
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=405066&action=review
>> Makefile:42 >> +clean: > > Seems like we now have two `clean` targets?
Yes, we need a "clean:\n\t" as a fall-through for any projects not listed in MODULES.
Ryan Hostetler
Comment 4
2020-07-23 13:30:30 PDT
Created
attachment 405071
[details]
Patch
Alexey Proskuryakov
Comment 5
2020-07-23 13:40:36 PDT
Comment on
attachment 405071
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=405071&action=review
> Makefile:34 > + ditto Makefile $(SRCROOT)/Makefile > + ditto Source $(SRCROOT)/Source > + mkdir -p $(SRCROOT)/WebKitLibraries
Is modifying SRCROOT normal? It certainly sounds counter-intuitive. Also, the flag is unnecessary in mkdir -p, and should be removed - first, SRCROOT always exists, and second, the preceding commands would have failed if it didn't.
Ryan Hostetler
Comment 6
2020-07-23 13:57:06 PDT
Comment on
attachment 405071
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=405071&action=review
>> Makefile:34 >> + mkdir -p $(SRCROOT)/WebKitLibraries > > Is modifying SRCROOT normal? It certainly sounds counter-intuitive. > > Also, the flag is unnecessary in mkdir -p, and should be removed - first, SRCROOT always exists, and second, the preceding commands would have failed if it didn't.
Good catch on '-p' I'll remove it! During project submission phase we fill the SRCROOT with content required for building, we do this so we don't submit the entire repository.
Ryan Hostetler
Comment 7
2020-07-23 14:08:18 PDT
Created
attachment 405075
[details]
Patch
Jonathan Bedard
Comment 8
2020-07-23 14:16:56 PDT
Comment on
attachment 405075
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=405075&action=review
> Makefile:42 > +clean:
We already have a clean phase, line 27
Ryan Hostetler
Comment 9
2020-07-23 14:25:16 PDT
Comment on
attachment 405075
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=405075&action=review
>> Makefile:42 >> +clean: > > We already have a clean phase, line 27
You're right, see the comment to Tim Horton: "Yes, we need a "clean:\n\t" as a fall-through for any projects not listed in MODULES."
Tim Horton
Comment 10
2020-07-23 14:26:34 PDT
(In reply to Ryan Hostetler from
comment #9
)
> Comment on
attachment 405075
[details]
> Patch > > View in context: >
https://bugs.webkit.org/attachment.cgi?id=405075&action=review
> > >> Makefile:42 > >> +clean: > > > > We already have a clean phase, line 27 > > You're right, see the comment to Tim Horton: > "Yes, we need a "clean:\n\t" as a fall-through for any projects not listed > in MODULES."
I admit I am not a Make expert, but the comment doesn't make sense to me. How are the phases different? They don't have different dependencies or anything, so should run at the same time. I'm not even sure what happens if you have two identical targets!?
Darin Adler
Comment 11
2020-07-23 15:02:00 PDT
Comment on
attachment 405075
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=405075&action=review
>>>> Makefile:42 >>>> +clean: >>> >>> We already have a clean phase, line 27 >> >> You're right, see the comment to Tim Horton: >> "Yes, we need a "clean:\n\t" as a fall-through for any projects not listed in MODULES." > > I admit I am not a Make expert, but the comment doesn't make sense to me. How are the phases different? They don't have different dependencies or anything, so should run at the same time. I'm not even sure what happens if you have two identical targets!?
I am pretty expert on make and it certainly does not make sense to me.
Keith Rollin
Comment 12
2020-07-23 15:45:03 PDT
(In reply to Darin Adler from
comment #11
)
> > I am pretty expert on make and it certainly does not make sense to me.
I think you can specify a target multiple times to establish dependencies, but I think it makes sense to have only one target specify the build rules. Which means that it doesn't seem to make sense to have a bare "clean:" that doesn't establish any new dependencies or provide rules. If one types `make clean`, our existing first rule will get executed.
Keith Rollin
Comment 13
2020-07-23 15:46:38 PDT
Is this Bug related to <
rdar://62268104
>?
Ryan Hostetler
Comment 14
2020-07-23 16:30:22 PDT
(In reply to Keith Rollin from
comment #13
)
> Is this Bug related to <
rdar://62268104
>?
Yes. Is there a good way to associate it?
Tim Horton
Comment 15
2020-07-23 16:33:11 PDT
3 things: 1) mention the radar # in a comment, 2) set the InRadar keyword 3) insert the radar # below the bugzilla URL in the ChangeLog
Tim Horton
Comment 16
2020-07-23 16:33:28 PDT
(In reply to Tim Horton from
comment #15
)
> 3 things: 1) mention the radar # in a comment, 2) set the InRadar keyword 3) > insert the radar # below the bugzilla URL in the ChangeLog
(as a URL; see other ChangeLog entries)
Keith Rollin
Comment 17
2020-07-23 16:55:19 PDT
(In reply to Tim Horton from
comment #15
)
> 3 things: 1) mention the radar # in a comment, 2) set the InRadar keyword 3) > insert the radar # below the bugzilla URL in the ChangeLog
And add webkit-bug-importer to the CC list. And add the Bugzilla ID to the radar title.
Ryan Hostetler
Comment 18
2020-07-23 18:35:04 PDT
Created
attachment 405114
[details]
Patch
Ryan Hostetler
Comment 19
2020-07-23 19:01:29 PDT
Created
attachment 405117
[details]
Patch
Ryan Hostetler
Comment 20
2020-07-23 19:09:46 PDT
Created
attachment 405119
[details]
Patch
Alexey Proskuryakov
Comment 21
2020-07-24 09:26:19 PDT
Comment on
attachment 405119
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=405119&action=review
> Makefile:34 > + ditto Makefile $(SRCROOT)/Makefile > + ditto Source $(SRCROOT)/Source
I still think that this needs to recurse to actual projects. Even though I questioned the content of installhdrs/install offline, it's not clear to me if they can be omitted completely. Are you doing end-to-end testing? I don't think that testing is blocked, maybe we should discuss it if you don't have a way to test now.
Ryan Hostetler
Comment 22
2020-07-24 11:03:57 PDT
(In reply to Alexey Proskuryakov from
comment #21
)
> Comment on
attachment 405119
[details]
> Patch > > View in context: >
https://bugs.webkit.org/attachment.cgi?id=405119&action=review
> > > Makefile:34 > > + ditto Makefile $(SRCROOT)/Makefile > > + ditto Source $(SRCROOT)/Source > > I still think that this needs to recurse to actual projects. > > Even though I questioned the content of installhdrs/install offline, it's > not clear to me if they can be omitted completely. Are you doing end-to-end > testing? I don't think that testing is blocked, maybe we should discuss it > if you don't have a way to test now.
If we recurse the projects we end up copying the same content in more steps. We have support for end to end testing.
Alexey Proskuryakov
Comment 23
2020-07-24 11:26:04 PDT
I don't expect the content to be the same. Have you compared what goes into SRCROOT before and after?
Keith Rollin
Comment 24
2020-07-27 23:47:51 PDT
It's not apparent to me what these changes are for or why they're being made. It will probably not be apparent to future generations, either, so good explanatory comments (or directions to documentation) seem necessary. For instance, the description of this bug is merely "No rule to make target `installsrc'". OK, so you added such a target. I can follow that much. But why are you updating the "clean" target? My first guess would be that it would clean up whatever was done by "installsrc". But your change to "clean" effectively stubs it out under certain conditions. So it can't be the case that "clean" is cleaning up after "installsrc". So what's the intent here? And those "certain conditions" seem to involve building the WebKit project. What effect does your change have on the current process of building WebKit?
Keith Rollin
Comment 25
2020-07-27 23:49:57 PDT
> OK, so you added such a target. I can follow that much.
Though, actually, it's not clear to me why we need such a target now. We haven't needed one before. The reason for needing it now might be a good one, but it's not apparent what that reason is from the patch -- it's not self-apparent. So that reason will need to be made clear somehow and somewhere.
Ryan Hostetler
Comment 26
2020-08-03 17:39:02 PDT
Created
attachment 405896
[details]
Patch
Alexey Proskuryakov
Comment 27
2020-08-04 09:43:43 PDT
Comment on
attachment 405896
[details]
Patch Marking r- until there is evidence that copying everything is OK, or the patch is updated to recurse into modules and perform installsrc in each project.
Alexey Proskuryakov
Comment 28
2020-08-05 18:16:16 PDT
As discovered while discussing offline, the EXCLUDED_INSTALLSRC_SUBDIRECTORY_PATTERNS rule in libwebrtc was added to fix the build, so bypassing it will likely break the build.
Ryan Hostetler
Comment 29
2020-10-02 14:52:50 PDT
Created
attachment 410374
[details]
Patch
EWS
Comment 30
2020-10-04 14:09:18 PDT
Committed
r267949
: <
https://trac.webkit.org/changeset/267949
> All reviewed patches have been landed. Closing bug and clearing flags on
attachment 410374
[details]
.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug