<html><body><p>I'm playing with something. Should have a PR ready shortly.<br><br>--dave<br><br><br><img width="16" height="16" src="cid:1__=0ABB0AA4DFE5C9BE8f9e8a93df938690918c0AB@" border="0" alt="Inactive hide details for "Daniel A. Steffen via swift-dev" ---09/23/2016 04:45:06 PM---I don’t know how these dependencies ar"><font color="#424282">"Daniel A. Steffen via swift-dev" ---09/23/2016 04:45:06 PM---I don’t know how these dependencies are expressed in CMake but it doesn’t seem very difficult to do</font><br><br><font size="2" color="#5F5F5F">From: </font><font size="2">"Daniel A. Steffen via swift-dev" <swift-dev@swift.org></font><br><font size="2" color="#5F5F5F">To: </font><font size="2">Ted Kremenek <kremenek@apple.com></font><br><font size="2" color="#5F5F5F">Cc: </font><font size="2">swift-dev <swift-dev@swift.org></font><br><font size="2" color="#5F5F5F">Date: </font><font size="2">09/23/2016 04:45 PM</font><br><font size="2" color="#5F5F5F">Subject: </font><font size="2">Re: [swift-dev] Swift CI PR builder dispatch linux failure</font><br><font size="2" color="#5F5F5F">Sent by: </font><font size="2">swift-dev-bounces@swift.org</font><br><hr width="100%" size="2" align="left" noshade style="color:#8091A5; "><br><br><br><font size="4">I don’t know how these dependencies are expressed in CMake but it doesn’t seem very difficult to do so in the autotools buildsystem, we have</font><br><br><font size="4">AC_ARG_WITH([swift-toolchain],<br> [AS_HELP_STRING([--with-swift-toolchain], [Specify path to Swift toolchain])],<br> [swift_toolchain_path=${withval}<br> AC_DEFINE(HAVE_SWIFT, 1, [Define if building for Swift])<br> SWIFTC="$swift_toolchain_path/bin/swiftc”<br></font><br><font size="4">in configure.ac which ends up as a SWIFTC makefile variable, so as long as that argument is passed as an absolute path, it should work as a dependency in the build rules</font><br><br><font size="4">$(abs_builddir)/swift/%.o: $(abs_srcdir)/swift/%.swift<br> $(SWIFTC) -frontend -c $(SWIFT_ABS_SRC_FILES) -primary-file $< \<br></font><br><font size="4">Is there a JIRA ticket for this ? the IBM folks should probably be the ones making these changes since we still don’t have the whitelist in place for Apple contributors to do so…</font><br><br><font size="4">Daniel</font><br><br>
<ul><ul><font size="4">On Sep 23, 2016, at 13:00, Ted Kremenek <</font><a href="mailto:kremenek@apple.com"><u><font size="4" color="#0000FF">kremenek@apple.com</font></u></a><font size="4">> wrote:</font><br><br><font size="4">+ Daniel</font><br><br><b><font size="4">Daniel</font></b><font size="4">: how hard would it be for the Dispatch project to be modified to add the swiftc binary used to build the project as a dependency?</font><br>
<ul><ul><font size="4">On Sep 23, 2016, at 12:55 PM, Ted Kremenek via swift-dev <</font><a href="mailto:swift-dev@swift.org"><u><font size="4" color="#0000FF">swift-dev@swift.org</font></u></a><font size="4">> wrote:</font><br><br><font size="4">Dispatch is a separate project. There isn’t a dependency in the Dispatch project to tell it is building with a new compiler. The project would need to be modified to add a dependency on the swiftc binary being used to compile this project.</font><br>
<ul><ul><font size="4">On Sep 21, 2016, at 9:39 AM, Mishal Shah via swift-dev <</font><a href="mailto:swift-dev@swift.org"><u><font size="4" color="#0000FF">swift-dev@swift.org</font></u></a><font size="4">> wrote:</font><br><br><font size="4">We should look into why it's not rebuilding dependencies. Do we need to fix CMake logic? Can you please file a bug?</font><br><br><br><font size="4">Thanks,</font><br><font size="4">Mishal Shah</font><br><font size="4"><br>On Sep 21, 2016, at 9:28 AM, Michael Gottesman <</font><a href="mailto:mgottesman@apple.com"><u><font size="4" color="#0000FF">mgottesman@apple.com</font></u></a><font size="4">> wrote:<br></font><ul><ul><font size="4">+CC Mishal</font><br>
<ul><ul><font size="4">On Sep 21, 2016, at 6:59 AM, David P Grove via swift-dev <</font><a href="mailto:swift-dev@swift.org"><u><font size="4" color="#0000FF">swift-dev@swift.org</font></u></a><font size="4">> wrote:</font><br>
<p><font size="2" face="Helvetica">I don't know how the PR jobs are setup, but the error suggests that they are trying to reuse too much of the workspace of previous runs.<br></font><font size="5" color="#FFFFFF" face="Helvetica"><br><</font><font size="5" face="Helvetica">unknown>:0: error: module file was created by an older version of the compiler; rebuild 'Dispatch' and try again: /home/buildnode/jenkins/workspace/swift-package-manager-PR-Linux/build/buildbot_linux/libdispatch-linux-x86_64/src/swift/Dispatch.o.~partial.swiftmodule</font><font size="2" face="Helvetica"><br></font><font size="5" face="Helvetica"><br>--dave</font><font size="2" face="Helvetica"><br><br><br><graycol.gif></font><font size="2" color="#424282" face="Helvetica">Ankit Aggarwal via swift-dev ---09/21/2016 03:08:58 AM---This has been consistently failing on PRs, can someone look into this: <unknown>:0: error: module fi</font><font size="2" face="Helvetica"><br></font><font color="#5F5F5F" face="Helvetica"><br>From: </font><font face="Helvetica">Ankit Aggarwal via swift-dev <</font><a href="mailto:swift-dev@swift.org"><u><font color="#0000FF" face="Helvetica">swift-dev@swift.org</font></u></a><font face="Helvetica">></font><font color="#5F5F5F" face="Helvetica"><br>To: </font><font face="Helvetica">swift-dev <</font><a href="mailto:swift-dev@swift.org"><u><font color="#0000FF" face="Helvetica">swift-dev@swift.org</font></u></a><font face="Helvetica">></font><font color="#5F5F5F" face="Helvetica"><br>Date: </font><font face="Helvetica">09/21/2016 03:08 AM</font><font color="#5F5F5F" face="Helvetica"><br>Subject: </font><font face="Helvetica">[swift-dev] Swift CI PR builder dispatch linux failure</font><font color="#5F5F5F" face="Helvetica"><br>Sent by: </font><a href="mailto:swift-dev-bounces@swift.org"><u><font color="#0000FF" face="Helvetica">swift-dev-bounces@swift.org</font></u></a><p><hr width="100%" size="2" align="left" noshade><font size="4"><br><br></font><font size="5" face="Helvetica"><br>This has been consistently failing on PRs, can someone look into this:</font><font size="4"><br></font><tt><font size="2" color="#FFFFFF"><br><unknown>:0: error: module file was created by an older version of the compiler; rebuild 'Dispatch' and try again: /home/buildnode/jenkins/workspace/swift-package-manager-PR-Linux/build/buildbot_linux/libdispatch-linux-x86_64/src/swift/Dispatch.o.~partial.swiftmodule</font></tt><tt><font size="2" color="#C0C5CE"><br>make[2]: *** [/home/buildnode/jenkins/workspace/swift-package-manager-PR-Linux/build/buildbot_linux/libdispatch-linux-x86_64/src/swift/Dispatch.swiftmodule] Error 1<br>make[2]: Leaving directory `/home/buildnode/jenkins/workspace/swift-package-manager-PR-Linux/build/buildbot_linux/libdispatch-linux-x86_64/src'<br>make[1]: *** [all] Error 2<br>make[1]: Leaving directory `/home/buildnode/jenkins/workspace/swift-package-manager-PR-Linux/build/buildbot_linux/libdispatch-linux-x86_64/src'<br>make: *** [all-recursive] Error 1<br>/home/buildnode/jenkins/workspace/swift-package-manager-PR-Linux/swift/utils/build-script: fatal error: command terminated with a non-zero exit status 2, aborting<br>/home/buildnode/jenkins/workspace/swift-package-manager-PR-Linux/swift/utils/build-script: fatal error: command terminated with a non-zero exit status 1, aborting</font></tt><font size="4"><br><br></font><u><font size="2" color="#0000FF" face="Helvetica"><br></font></u><a href="https://ci.swift.org/job/swift-package-manager-PR-Linux/497/console"><u><font size="5" color="#0000FF" face="Helvetica">https://ci.swift.org/job/swift-package-manager-PR-Linux/497/console</font></u></a><font face="Helvetica"><br><br>- Ankit</font><font size="5" face="Helvetica"> </font><font size="2" face="Helvetica"><br>[attachment "signature.asc" deleted by David P Grove/Watson/IBM] </font><tt><font size="2">_______________________________________________<br>swift-dev mailing list</font></tt><tt><u><font size="2" color="#0000FF"><br></font></u></tt><a href="mailto:swift-dev@swift.org"><tt><u><font size="2" color="#0000FF">swift-dev@swift.org</font></u></tt></a><tt><u><font size="2" color="#0000FF"><br></font></u></tt><a href="https://lists.swift.org/mailman/listinfo/swift-dev"><tt><u><font size="2" color="#0000FF">https://lists.swift.org/mailman/listinfo/swift-dev</font></u></tt></a><font size="4"><br><br><br></font><font size="2" face="Helvetica"><br>_______________________________________________<br>swift-dev mailing list</font><u><font size="2" color="#0000FF" face="Helvetica"><br></font></u><a href="mailto:swift-dev@swift.org"><u><font size="2" color="#0000FF" face="Helvetica">swift-dev@swift.org</font></u></a><u><font size="2" color="#0000FF" face="Helvetica"><br></font></u><a href="https://lists.swift.org/mailman/listinfo/swift-dev"><u><font size="2" color="#0000FF" face="Helvetica">https://lists.swift.org/mailman/listinfo/swift-dev</font></u></a></ul></ul></ul></ul><font size="4">_______________________________________________<br>swift-dev mailing list</font><u><font size="4" color="#0000FF"><br></font></u><a href="mailto:swift-dev@swift.org"><u><font size="4" color="#0000FF">swift-dev@swift.org</font></u></a><u><font size="4" color="#0000FF"><br></font></u><a href="https://lists.swift.org/mailman/listinfo/swift-dev"><u><font size="4" color="#0000FF">https://lists.swift.org/mailman/listinfo/swift-dev</font></u></a></ul></ul><br><font size="4">_______________________________________________<br>swift-dev mailing list</font><u><font size="4" color="#0000FF"><br></font></u><a href="mailto:swift-dev@swift.org"><u><font size="4" color="#0000FF">swift-dev@swift.org</font></u></a><u><font size="4" color="#0000FF"><br></font></u><a href="https://lists.swift.org/mailman/listinfo/swift-dev"><u><font size="4" color="#0000FF">https://lists.swift.org/mailman/listinfo/swift-dev</font></u></a></ul></ul></ul></ul><tt>_______________________________________________<br>swift-dev mailing list<br>swift-dev@swift.org<br></tt><tt><a href="https://lists.swift.org/mailman/listinfo/swift-dev">https://lists.swift.org/mailman/listinfo/swift-dev</a></tt><tt><br></tt><br><br><BR>
</body></html>