WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED INVALID
146877
Build failure with: No rule to make target '...Release/include/private/JavaScriptCore/JSInputs.json', needed by 'WebReplayInputs.h'. Stop.
https://bugs.webkit.org/show_bug.cgi?id=146877
Summary
Build failure with: No rule to make target '...Release/include/private/JavaSc...
Simon Fraser (smfr)
Reported
2015-07-11 11:13:26 PDT
My Mac build often fails with this error the first time, then builds a second time. Windows is now also showing this same error:
https://webkit-queues.appspot.com/results/6038448339156992
make: *** No rule to make target '/home/buildbot/WebKit/WebKitBuild/Release/include/private/JavaScriptCore/JSInputs.json', needed by 'WebReplayInputs.h'. Stop. Seems like there's a dependency issue with JSInputs.json and WebReplayInputs.h.
Attachments
Add attachment
proposed patch, testcase, etc.
Brian Burg
Comment 1
2015-07-11 13:59:27 PDT
Not sure what changed, I will not have access to a dev machine until the 15th at the earliest. Have you tried a clean build?
Simon Fraser (smfr)
Comment 2
2015-07-11 14:03:55 PDT
The point is that this sporadically breaks incremental builds, meaning it affects EWS etc.
Simon Fraser (smfr)
Comment 3
2015-07-13 11:20:46 PDT
This just broke my local build.
Joseph Pecoraro
Comment 4
2015-07-13 11:37:24 PDT
(In reply to
comment #0
)
> My Mac build often fails with this error the first time, then builds a > second time. > > Windows is now also showing this same error: >
https://webkit-queues.appspot.com/results/6038448339156992
> > make: *** No rule to make target > '/home/buildbot/WebKit/WebKitBuild/Release/include/private/JavaScriptCore/ > JSInputs.json', needed by 'WebReplayInputs.h'. Stop.
JSInputs.json is just copied to Private Headers on Mac. It does not need to be generated at all. It sounds like this build error is saying JSInputs.json doesn't exist, so for some reason it wasn't copied earlier?
Joseph Pecoraro
Comment 5
2015-07-13 11:51:48 PDT
Same thing for Windows: Source/JavaScriptCore/JavaScriptCore.vcxproj/copy-files.cmd copies the JSInputs.json as a private headers: echo Copying Web Replay specification files as if they were private headers... @xcopy /y /d ..\replay\*.json "%PrivateHeadersDirectory%" >NUL And then WebCore's Derived Sources attempts to use it as expected: INPUT_GENERATOR_SPECIFICATIONS = \ $(WebCore)/replay/WebInputs.json \ $(WebReplayScripts)/JSInputs.json \ # all : WebReplayInputs.h WebReplayInputs.h : $(INPUT_GENERATOR_SPECIFICATIONS) $(INPUT_GENERATOR_SCRIPTS) $(PYTHON) $(WebReplayScripts)/CodeGeneratorReplayInputs.py --outputDir . --framework WebCore $(INPUT_GENERATOR_SPECIFICATIONS) On Windows the $(WebReplayScripts) build variable is setup to point to what looks like the right place: WebCore.vcxproj/build-generated-files.pl 76:$ENV{'WebReplayScripts'} = File::Spec->catdir($XDSTROOT, 'include', 'private', 'JavaScriptCore'); That said, WebCore's `make-generated-sources.sh` meant for manually invoking DerivedSources wouldn't work as is, since the scripts and JSON input are in different places in the source directory: make-generated-sources.sh 6:export WebReplayScripts=$PWD/../JavaScriptCore/replay/scripts So, other than a possible issue with this script, the regular order of build operations looks reasonable to me.
Brian Burg
Comment 6
2015-07-13 14:08:25 PDT
Simon, can you check whether this file actually exists prior to and after the failed build? If it's not obvious what's going on, you can use DTrace to see what files are touched during the build: # Files opened by process, dtrace -n 'syscall::open*:entry { printf("%s %s",execname,copyinstr(arg0)); }'
Simon Fraser (smfr)
Comment 7
2015-07-16 20:40:41 PDT
This happened again. When it happened, OpenSource/WebKitBuild/Debug/JavaScriptCore.framework/PrivateHeaders was a broken symlink: lrwxr-xr-x 1 smfr staff 31 Jul 6 12:05 PrivateHeaders -> Versions/Current/PrivateHeaders 16$ $ ls -la /Volumes/Data/Development/OSX/webkit/OpenSource/WebKitBuild/Debug/JavaScriptCore.framework/Versions/Current/ total 0 drwxr-xr-x 3 smfr staff 102 Jul 16 20:37 . drwxr-xr-x 3 smfr staff 136 Jul 16 20:37 .. drwxr-xr-x 2 smfr staff 102 Jul 16 20:37 Resources
Alexey Proskuryakov
Comment 8
2015-07-17 02:31:29 PDT
There have certainly been script changes lately WRT JavaSriptCore symlinks.
mitz
Comment 9
2015-08-04 10:16:51 PDT
This was caused by an issue in the version of Xcode Simon was using, <
rdar://problem/22081897
>.
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