<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>146877</bug_id>
          
          <creation_ts>2015-07-11 11:13:26 -0700</creation_ts>
          <short_desc>Build failure with: No rule to make target &apos;...Release/include/private/JavaScriptCore/JSInputs.json&apos;, needed by &apos;WebReplayInputs.h&apos;.  Stop.</short_desc>
          <delta_ts>2015-08-04 10:16:51 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Tools / Tests</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>INVALID</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Simon Fraser (smfr)">simon.fraser</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>andersca</cc>
    
    <cc>ap</cc>
    
    <cc>bburg</cc>
    
    <cc>bfulgham</cc>
    
    <cc>dbates</cc>
    
    <cc>ddkilzer</cc>
    
    <cc>joepeck</cc>
    
    <cc>mitz</cc>
    
    <cc>simon.fraser</cc>
    
    <cc>timothy</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1108939</commentid>
    <comment_count>0</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2015-07-11 11:13:26 -0700</bug_when>
    <thetext>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 &apos;/home/buildbot/WebKit/WebKitBuild/Release/include/private/JavaScriptCore/JSInputs.json&apos;, needed by &apos;WebReplayInputs.h&apos;.  Stop.

Seems like there&apos;s a dependency issue with JSInputs.json and WebReplayInputs.h.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1108965</commentid>
    <comment_count>1</comment_count>
    <who name="Brian Burg">burg</who>
    <bug_when>2015-07-11 13:59:27 -0700</bug_when>
    <thetext>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?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1108966</commentid>
    <comment_count>2</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2015-07-11 14:03:55 -0700</bug_when>
    <thetext>The point is that this sporadically breaks incremental builds, meaning it affects EWS etc.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1109142</commentid>
    <comment_count>3</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2015-07-13 11:20:46 -0700</bug_when>
    <thetext>This just broke my local build.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1109149</commentid>
    <comment_count>4</comment_count>
    <who name="Joseph Pecoraro">joepeck</who>
    <bug_when>2015-07-13 11:37:24 -0700</bug_when>
    <thetext>(In reply to comment #0)
&gt; My Mac build often fails with this error the first time, then builds a
&gt; second time.
&gt; 
&gt; Windows is now also showing this same error:
&gt; https://webkit-queues.appspot.com/results/6038448339156992
&gt; 
&gt;   make: *** No rule to make target
&gt; &apos;/home/buildbot/WebKit/WebKitBuild/Release/include/private/JavaScriptCore/
&gt; JSInputs.json&apos;, needed by &apos;WebReplayInputs.h&apos;.  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&apos;t exist, so for some reason it wasn&apos;t copied earlier?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1109154</commentid>
    <comment_count>5</comment_count>
    <who name="Joseph Pecoraro">joepeck</who>
    <bug_when>2015-07-13 11:51:48 -0700</bug_when>
    <thetext>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 &quot;%PrivateHeadersDirectory%&quot; &gt;NUL

And then WebCore&apos;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{&apos;WebReplayScripts&apos;} = File::Spec-&gt;catdir($XDSTROOT, &apos;include&apos;, &apos;private&apos;, &apos;JavaScriptCore&apos;);

That said, WebCore&apos;s `make-generated-sources.sh` meant for manually invoking DerivedSources wouldn&apos;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.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1109211</commentid>
    <comment_count>6</comment_count>
    <who name="Brian Burg">burg</who>
    <bug_when>2015-07-13 14:08:25 -0700</bug_when>
    <thetext>Simon, can you check whether this file actually exists prior to and after the failed build? If it&apos;s not obvious what&apos;s going on, you can use DTrace to see what files are touched during the build:

# Files opened by process,
dtrace -n &apos;syscall::open*:entry { printf(&quot;%s %s&quot;,execname,copyinstr(arg0)); }&apos;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1110074</commentid>
    <comment_count>7</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2015-07-16 20:40:41 -0700</bug_when>
    <thetext>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 -&gt; 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</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1110109</commentid>
    <comment_count>8</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2015-07-17 02:31:29 -0700</bug_when>
    <thetext>There have certainly been script changes lately WRT JavaSriptCore symlinks.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1114635</commentid>
    <comment_count>9</comment_count>
    <who name="">mitz</who>
    <bug_when>2015-08-04 10:16:51 -0700</bug_when>
    <thetext>This was caused by an issue in the version of Xcode Simon was using, &lt;rdar://problem/22081897&gt;.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>