<div dir="ltr">+Mishal, while Ryan et al are looking at the broken REPL, would it make sense to update the CI servers with the Python pexpect module so that the test-repl-glibc.py will fail the build?<div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Apr 15, 2016 at 10:19 AM, Ryan Lovelett <span dir="ltr">&lt;<a href="mailto:swift-dev@ryan.lovelett.me" target="_blank">swift-dev@ryan.lovelett.me</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I&#39;ve tried reverting c6121d56b19305cf59148d46af54c06b771f3180 just to<br>
see if doing that will restore functionality to lldb/repl.<br>
<br>
Unfortunately too many things have changed in the build system since<br>
that commit for a revert to make sense anymore.<br>
<br>
Can anyone provide documentation/explain the mechanics of what happens<br>
when I type &quot;import Glibc&quot; into the REPL/lldb?<br>
<div><div><br>
On Thu, Apr 14, 2016, at 05:47 PM, Dmitri Gribenko wrote:<br>
&gt; +Brian<br>
&gt;<br>
&gt; On Thu, Apr 14, 2016 at 2:46 PM, Ryan Lovelett via swift-dev<br>
&gt; &lt;<a href="mailto:swift-dev@swift.org" target="_blank">swift-dev@swift.org</a>&gt; wrote:<br>
&gt; &gt; I&#39;ve played around with `git bisect` and I think I&#39;ve tracked it down to<br>
&gt; &gt; this commit [1]. Which came from PR #1704 [2]. I&#39;ve also updated the issue,<br>
&gt; &gt; SR-1109, to include this information.<br>
&gt; &gt;<br>
&gt; &gt; c6121d56b19305cf59148d46af54c06b771f3180 is the first bad commit<br>
&gt; &gt; commit c6121d56b19305cf59148d46af54c06b771f3180<br>
&gt; &gt; Author: Brian Gesiak &lt;<a href="mailto:bgesiak@fb.com" target="_blank">bgesiak@fb.com</a>&gt;<br>
&gt; &gt; Date:   Wed Mar 16 13:29:42 2016 -0400<br>
&gt; &gt;<br>
&gt; &gt;     [Un-revert][Glibc] Configure modulemap for target, not host<br>
&gt; &gt;<br>
&gt; &gt;     This reverts commit f2154ee94d, which reverted 04e1cd5bda. The original<br>
&gt; &gt;     commit needed to be reverted because of an issue in which install<br>
&gt; &gt;     targets were added to OS X builds that did not target Linux. This<br>
&gt; &gt;     addresses that issue by guarding all the Linux-only CMake logic with a<br>
&gt; &gt;     check for the SDK being built.<br>
&gt; &gt;<br>
&gt; &gt; :040000 040000 e92829c16aa22f20edfdf95f3bb18bb15a3fa226<br>
&gt; &gt; 90062ad44050a19fc0d5bc846409945e83619b01 M    lib<br>
&gt; &gt; :040000 040000 bbe94bf4af832e154065bc0bcafffab2dacb839e<br>
&gt; &gt; 1a8be73f86884bda848cde22885bcd72a17660b2 M    stdlib<br>
&gt; &gt; :040000 040000 abf55068f67ee44e2bd52169aa8b988fb8aead28<br>
&gt; &gt; 41db0f8ddec3281f51c6798dd47c86675b7118b3 M    tools<br>
&gt; &gt;<br>
&gt; &gt; [1]<br>
&gt; &gt; <a href="https://github.com/apple/swift/commit/c6121d56b19305cf59148d46af54c06b771f3180" rel="noreferrer" target="_blank">https://github.com/apple/swift/commit/c6121d56b19305cf59148d46af54c06b771f3180</a><br>
&gt; &gt; [2] <a href="https://github.com/apple/swift/pull/1704" rel="noreferrer" target="_blank">https://github.com/apple/swift/pull/1704</a><br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; On Thu, Apr 14, 2016, at 12:36 PM, Jordan Rose wrote:<br>
&gt; &gt;<br>
&gt; &gt; +swift-lldb-dev<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; On Apr 14, 2016, at 7:20 , Joseph Bell via swift-dev &lt;<a href="mailto:swift-dev@swift.org" target="_blank">swift-dev@swift.org</a>&gt;<br>
&gt; &gt; wrote:<br>
&gt; &gt;<br>
&gt; &gt; Ryan, thanks.  I&#39;ve voted on SR-1109 and will add the steps I use to<br>
&gt; &gt; reproduce as well.<br>
&gt; &gt;<br>
&gt; &gt; I think now its clear why the 14.04 and 15.10 packaging tests are passing,<br>
&gt; &gt; and that&#39;s because they aren&#39;t running the tests that leverage pexpect, if<br>
&gt; &gt; you look at the console log for the 14.04 test:<br>
&gt; &gt; <a href="https://ci.swift.org/view/Packages/job/oss-swift-package-linux-ubuntu-14_04/993/consoleText" rel="noreferrer" target="_blank">https://ci.swift.org/view/Packages/job/oss-swift-package-linux-ubuntu-14_04/993/consoleText</a><br>
&gt; &gt;<br>
&gt; &gt; lit.py: lit.cfg:101: note: &#39;pexpect&#39; module unavailable, skipping related<br>
&gt; &gt; tests<br>
&gt; &gt;<br>
&gt; &gt; Perhaps pexpect should be added to the CI server so these tests can begin<br>
&gt; &gt; failing properly.<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; On Thu, Apr 14, 2016 at 8:47 AM, Ryan Lovelett via swift-dev<br>
&gt; &gt; &lt;<a href="mailto:swift-dev@swift.org" target="_blank">swift-dev@swift.org</a>&gt; wrote:<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; On Thu, Apr 14, 2016, at 09:17 AM, Joseph Bell via swift-dev wrote:<br>
&gt; &gt;<br>
&gt; &gt; Howdy,<br>
&gt; &gt;<br>
&gt; &gt; I&#39;ve mentioned this once before and didn&#39;t get any feedback; I thought I&#39;d<br>
&gt; &gt; give it one more shot.<br>
&gt; &gt;<br>
&gt; &gt; Has anyone out there tried building, from scratch, the Swift 3.0 package on<br>
&gt; &gt; Ubuntu?  The compile, link, packaging steps all complete successfully, but<br>
&gt; &gt; then the repl/test-repl-glibc.py fails.  The failure is that the REPL<br>
&gt; &gt; doesn&#39;t interact (the underlying script is using pexpect to send/expect)<br>
&gt; &gt; properly:<br>
&gt; &gt;<br>
&gt; &gt;   2&gt; import Glibc<br>
&gt; &gt; warning: &lt;REPL&gt;:1:1: warning: #line directive is deprecated, please use<br>
&gt; &gt; #sourceLocation instead<br>
&gt; &gt; #line 2 &quot;repl.swift&quot;<br>
&gt; &gt; ^~~~~<br>
&gt; &gt; #sourceLocation<br>
&gt; &gt;<br>
&gt; &gt; warning: repl.swift:3:1: warning: #line directive is deprecated, please use<br>
&gt; &gt; #sourceLocation instead<br>
&gt; &gt; #line<br>
&gt; &gt; ^~~~~<br>
&gt; &gt; #sourceLocation<br>
&gt; &gt;<br>
&gt; &gt; error: repl.swift:2:8: error: missing required module &#39;SwiftGlibc&#39;<br>
&gt; &gt; import Glibc<br>
&gt; &gt;<br>
&gt; &gt; This is occurring on two separate Ubuntu 14.04 systems, one of which is a<br>
&gt; &gt; greenfield VM with all of the prerequisites/clang-3.6 installed.<br>
&gt; &gt;<br>
&gt; &gt; Stumped on this one and was just curious if anyone can reproduce.<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; I can also reproduce. I actually broght this up yesterday too (just on a<br>
&gt; &gt; different list) [1]. I suggest you go vote for SR-1109 [2] which is the bug<br>
&gt; &gt; report for this issue.<br>
&gt; &gt;<br>
&gt; &gt; I think this is show stopper. Not for the REPL break but because it also<br>
&gt; &gt; breaks the debugger on Linux as well.<br>
&gt; &gt;<br>
&gt; &gt; Right now I&#39;m trying to bisect the repos to see which commit(s?) might have<br>
&gt; &gt; introduced this regression. Kate Stone mentioned that she thinks this issue<br>
&gt; &gt; was introduced sometime after the 3-16 snapshot. I&#39;m trying to corroborate<br>
&gt; &gt; that.<br>
&gt; &gt;<br>
&gt; &gt; [1]<br>
&gt; &gt; <a href="https://lists.swift.org/pipermail/swift-lldb-dev/Week-of-Mon-20160411/000106.html" rel="noreferrer" target="_blank">https://lists.swift.org/pipermail/swift-lldb-dev/Week-of-Mon-20160411/000106.html</a><br>
&gt; &gt; [2] <a href="https://bugs.swift.org/browse/SR-1109" rel="noreferrer" target="_blank">https://bugs.swift.org/browse/SR-1109</a><br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; Thanks,<br>
&gt; &gt; Joe<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; ---<br>
&gt; &gt; <a href="http://dev.iachieved.it/iachievedit/" rel="noreferrer" target="_blank">http://dev.iachieved.it/iachievedit/</a><br>
&gt; &gt; @iachievedit<br>
&gt; &gt;<br>
&gt; &gt; _______________________________________________<br>
&gt; &gt; swift-dev mailing list<br>
&gt; &gt; <a href="mailto:swift-dev@swift.org" target="_blank">swift-dev@swift.org</a><br>
&gt; &gt; <a href="https://lists.swift.org/mailman/listinfo/swift-dev" rel="noreferrer" target="_blank">https://lists.swift.org/mailman/listinfo/swift-dev</a><br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; _______________________________________________<br>
&gt; &gt; swift-dev mailing list<br>
&gt; &gt; <a href="mailto:swift-dev@swift.org" target="_blank">swift-dev@swift.org</a><br>
&gt; &gt; <a href="https://lists.swift.org/mailman/listinfo/swift-dev" rel="noreferrer" target="_blank">https://lists.swift.org/mailman/listinfo/swift-dev</a><br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; --<br>
&gt; &gt; ---<br>
&gt; &gt; <a href="http://dev.iachieved.it/iachievedit/" rel="noreferrer" target="_blank">http://dev.iachieved.it/iachievedit/</a><br>
&gt; &gt; @iachievedit<br>
&gt; &gt; _______________________________________________<br>
&gt; &gt; swift-dev mailing list<br>
&gt; &gt; <a href="mailto:swift-dev@swift.org" target="_blank">swift-dev@swift.org</a><br>
&gt; &gt; <a href="https://lists.swift.org/mailman/listinfo/swift-dev" rel="noreferrer" target="_blank">https://lists.swift.org/mailman/listinfo/swift-dev</a><br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; _______________________________________________<br>
&gt; &gt; swift-dev mailing list<br>
&gt; &gt; <a href="mailto:swift-dev@swift.org" target="_blank">swift-dev@swift.org</a><br>
&gt; &gt; <a href="https://lists.swift.org/mailman/listinfo/swift-dev" rel="noreferrer" target="_blank">https://lists.swift.org/mailman/listinfo/swift-dev</a><br>
&gt; &gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; --<br>
&gt; main(i,j){for(i=2;;i++){for(j=2;j&lt;i;j++){if(!(i%j)){j=0;break;}}if<br>
&gt; (j){printf(&quot;%d\n&quot;,i);}}} /*Dmitri Gribenko &lt;<a href="mailto:gribozavr@gmail.com" target="_blank">gribozavr@gmail.com</a>&gt;*/<br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div><div dir="ltr">---<div><a href="http://dev.iachieved.it/iachievedit/" target="_blank">http://dev.iachieved.it/iachievedit/</a></div><div>@iachievedit</div></div></div>
</div></div></div>