[swift-lldb-dev] [swift-dev] repl/test-repl-glibc.py Failure on Ubuntu

Dmitri Gribenko gribozavr at gmail.com
Thu Apr 14 16:47:25 CDT 2016


+Brian

On Thu, Apr 14, 2016 at 2:46 PM, Ryan Lovelett via swift-dev
<swift-dev at swift.org> wrote:
> I've played around with `git bisect` and I think I've tracked it down to
> this commit [1]. Which came from PR #1704 [2]. I've also updated the issue,
> SR-1109, to include this information.
>
> c6121d56b19305cf59148d46af54c06b771f3180 is the first bad commit
> commit c6121d56b19305cf59148d46af54c06b771f3180
> Author: Brian Gesiak <bgesiak at fb.com>
> Date:   Wed Mar 16 13:29:42 2016 -0400
>
>     [Un-revert][Glibc] Configure modulemap for target, not host
>
>     This reverts commit f2154ee94d, which reverted 04e1cd5bda. The original
>     commit needed to be reverted because of an issue in which install
>     targets were added to OS X builds that did not target Linux. This
>     addresses that issue by guarding all the Linux-only CMake logic with a
>     check for the SDK being built.
>
> :040000 040000 e92829c16aa22f20edfdf95f3bb18bb15a3fa226
> 90062ad44050a19fc0d5bc846409945e83619b01 M    lib
> :040000 040000 bbe94bf4af832e154065bc0bcafffab2dacb839e
> 1a8be73f86884bda848cde22885bcd72a17660b2 M    stdlib
> :040000 040000 abf55068f67ee44e2bd52169aa8b988fb8aead28
> 41db0f8ddec3281f51c6798dd47c86675b7118b3 M    tools
>
> [1]
> https://github.com/apple/swift/commit/c6121d56b19305cf59148d46af54c06b771f3180
> [2] https://github.com/apple/swift/pull/1704
>
>
> On Thu, Apr 14, 2016, at 12:36 PM, Jordan Rose wrote:
>
> +swift-lldb-dev
>
>
> On Apr 14, 2016, at 7:20 , Joseph Bell via swift-dev <swift-dev at swift.org>
> wrote:
>
> Ryan, thanks.  I've voted on SR-1109 and will add the steps I use to
> reproduce as well.
>
> I think now its clear why the 14.04 and 15.10 packaging tests are passing,
> and that's because they aren't running the tests that leverage pexpect, if
> you look at the console log for the 14.04 test:
> https://ci.swift.org/view/Packages/job/oss-swift-package-linux-ubuntu-14_04/993/consoleText
>
> lit.py: lit.cfg:101: note: 'pexpect' module unavailable, skipping related
> tests
>
> Perhaps pexpect should be added to the CI server so these tests can begin
> failing properly.
>
>
> On Thu, Apr 14, 2016 at 8:47 AM, Ryan Lovelett via swift-dev
> <swift-dev at swift.org> wrote:
>
>
>
> On Thu, Apr 14, 2016, at 09:17 AM, Joseph Bell via swift-dev wrote:
>
> Howdy,
>
> I've mentioned this once before and didn't get any feedback; I thought I'd
> give it one more shot.
>
> Has anyone out there tried building, from scratch, the Swift 3.0 package on
> Ubuntu?  The compile, link, packaging steps all complete successfully, but
> then the repl/test-repl-glibc.py fails.  The failure is that the REPL
> doesn't interact (the underlying script is using pexpect to send/expect)
> properly:
>
>   2> import Glibc
> warning: <REPL>:1:1: warning: #line directive is deprecated, please use
> #sourceLocation instead
> #line 2 "repl.swift"
> ^~~~~
> #sourceLocation
>
> warning: repl.swift:3:1: warning: #line directive is deprecated, please use
> #sourceLocation instead
> #line
> ^~~~~
> #sourceLocation
>
> error: repl.swift:2:8: error: missing required module 'SwiftGlibc'
> import Glibc
>
> This is occurring on two separate Ubuntu 14.04 systems, one of which is a
> greenfield VM with all of the prerequisites/clang-3.6 installed.
>
> Stumped on this one and was just curious if anyone can reproduce.
>
>
>
> I can also reproduce. I actually broght this up yesterday too (just on a
> different list) [1]. I suggest you go vote for SR-1109 [2] which is the bug
> report for this issue.
>
> I think this is show stopper. Not for the REPL break but because it also
> breaks the debugger on Linux as well.
>
> Right now I'm trying to bisect the repos to see which commit(s?) might have
> introduced this regression. Kate Stone mentioned that she thinks this issue
> was introduced sometime after the 3-16 snapshot. I'm trying to corroborate
> that.
>
> [1]
> https://lists.swift.org/pipermail/swift-lldb-dev/Week-of-Mon-20160411/000106.html
> [2] https://bugs.swift.org/browse/SR-1109
>
>
>
>
> Thanks,
> Joe
>
>
>
> ---
> http://dev.iachieved.it/iachievedit/
> @iachievedit
>
> _______________________________________________
> swift-dev mailing list
> swift-dev at swift.org
> https://lists.swift.org/mailman/listinfo/swift-dev
>
>
>
> _______________________________________________
> swift-dev mailing list
> swift-dev at swift.org
> https://lists.swift.org/mailman/listinfo/swift-dev
>
>
>
>
>
> --
> ---
> http://dev.iachieved.it/iachievedit/
> @iachievedit
> _______________________________________________
> swift-dev mailing list
> swift-dev at swift.org
> https://lists.swift.org/mailman/listinfo/swift-dev
>
>
>
> _______________________________________________
> swift-dev mailing list
> swift-dev at swift.org
> https://lists.swift.org/mailman/listinfo/swift-dev
>



-- 
main(i,j){for(i=2;;i++){for(j=2;j<i;j++){if(!(i%j)){j=0;break;}}if
(j){printf("%d\n",i);}}} /*Dmitri Gribenko <gribozavr at gmail.com>*/


More information about the swift-lldb-dev mailing list