<html>
    <head>
      <base href="https://bugs.webkit.org/" />
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - [GTK] Build race with -DENABLE_WAYLAND_TARGET=ON"
   href="https://bugs.webkit.org/show_bug.cgi?id=146740#c2">Comment # 2</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - [GTK] Build race with -DENABLE_WAYLAND_TARGET=ON"
   href="https://bugs.webkit.org/show_bug.cgi?id=146740">bug 146740</a>
              from <span class="vcard"><a class="email" href="mailto:mcatanzaro&#64;igalia.com" title="Michael Catanzaro &lt;mcatanzaro&#64;igalia.com&gt;"> <span class="fn">Michael Catanzaro</span></a>
</span></b>
        <pre>In the generated build.ninja file, I see:

#############################################
# Order-only phony target for WebCorePlatformGTK

build cmake_order_depends_target_WebCorePlatformGTK: phony || lib/libbmalloc.a lib/libWTFGTK.a lib/libjavascriptcoregtk-4.0.so lib/libWebCoreGTK.a DerivedSources/WebCore/WebKitGtkWaylandClientProtocol.c

Which looks sane. But I also see:

# Custom command for DerivedSources/WebCore/WebKitGtkWaylandClientProtocol.c

build DerivedSources/WebCore/WebKitGtkWaylandClientProtocol.c: CUSTOM_COMMAND ../../Source/WebCore/platform/graphics/wayland/WebKitGtkWaylandClientProtocol.xml || lib/libWTFGTK.a lib/libWebCoreGTK.a lib/libbmalloc.a lib/libjavascriptcoregtk-4.0.so
  COMMAND = cd /home/mcatanzaro/WebKit/WebKitBuild/GNOME/Source/WebCore &amp;&amp; wayland-scanner server-header &lt; /home/mcatanzaro/WebKit/Source/WebCore/platform/graphics/wayland/WebKitGtkWaylandClientProtocol.xml &gt; /home/mcatanzaro/WebKit/WebKitBuild/GNOME/DerivedSources/WebCore/WebKitGtkWaylandServerProtocol.h &amp;&amp; wayland-scanner client-header &lt; /home/mcatanzaro/WebKit/Source/WebCore/platform/graphics/wayland/WebKitGtkWaylandClientProtocol.xml &gt; /home/mcatanzaro/WebKit/WebKitBuild/GNOME/DerivedSources/WebCore/WebKitGtkWaylandClientProtocol.h &amp;&amp; wayland-scanner code &lt; /home/mcatanzaro/WebKit/Source/WebCore/platform/graphics/wayland/WebKitGtkWaylandClientProtocol.xml &gt; /home/mcatanzaro/WebKit/WebKitBuild/GNOME/DerivedSources/WebCore/WebKitGtkWaylandClientProtocol.c
  DESC = Generating ../../DerivedSources/WebCore/WebKitGtkWaylandClientProtocol.c

Which I guess means DerivedSources/WebCore/WebKitGtkWaylandClientProtocol.c somehow has a bogus dependency on lib/libWebCoreGTK.a. I confirmed this by running 'ninja -t browse libWebCoreGTK.a' in my build directory, which showed libWebCoreGTK.a depends on lib/libWebCoreGTK.a depends on DerivedSources/WebCore/WebKitGtkWaylandClientProtocol.c depends on lib/libWebCoreGTK.a. So if I am reading this right, that is a cyclic dependency; the question is, why does it exist?


DerivedSources/WebCore/WebKitGtkWaylandClientProtocol.c
target is built using rule CUSTOM_COMMAND of

../../Source/WebCore/platform/graphics/wayland/WebKitGtkWaylandClientProtocol.xml
lib/libWTFGTK.a (order-only)
lib/libWebCoreGTK.a (order-only)
lib/libbmalloc.a (order-only)
lib/libjavascriptcoregtk-4.0.so (order-only)
dependent edges build:

Source/WebCore/CMakeFiles/WebCorePlatformGTK.dir/__/__/DerivedSources/WebCore/WebKitGtkWaylandClientProtocol.c.o
cmake_order_depends_target_WebCorePlatformGTK</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>