<div dir="ltr">What I've found out so far is that the tree built in the 'install' directory (./install/usr) is not suitable to live side-by-side with /usr/ on the host machine. My original approach (documented on <a href="http://dev.iachieved.it/iachievedit/">http://dev.iachieved.it/iachievedit/</a>) was to ball everything up into a .deb package that installed as an overlay to /usr/, this was just to make it simple to get started.<div><br></div><div>Now with swift-2.2 and swift-3.0 and the possibility one might want to use both (python2.7, python3), I'm going to change over to placing in /opt/swift/VERSION and provide some alternatives mechanism, OR, use the approach that python2.7, 3, etc. use where there is a /usr/bin/python2.7/, /usr/lib/python2.7/, etc. and /usr/bin/python links back there. </div><div><br></div><div>tl;dr: I don't know what occurs exactly but the equivalent of rsync -a ./install/usr/ /usr/ (overlay) causes mayhem for starting the REPL.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Apr 25, 2016 at 8:02 AM, Joseph Bell <span dir="ltr"><<a href="mailto:joe@iachieved.it" target="_blank">joe@iachieved.it</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">I've just noticed (thanks to you Ryan) that compiler-rt is indeed checked out and included in the 14.04 build but not the 15.10. I'm going to rebuild from the ground up on 15.10 to see if it grabs compiler-rt and reproduces, as this is being checked out by the <a href="http://ci.swift.org" target="_blank">ci.swift.org</a> CI server.<div><br></div><div>This error occurs before any downstream packaging (deb) and is failing the build itself (on the test REPL, it can't even load). Will report back in a bit.</div><div><br></div><div>Joe</div><div><br></div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Apr 25, 2016 at 7:52 AM, Ryan Lovelett <span dir="ltr"><<a href="mailto:swift-dev@ryan.lovelett.me" target="_blank">swift-dev@ryan.lovelett.me</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><u></u>
<div><span><div>On Sun, Apr 24, 2016, at 05:44 PM, Joseph Bell via swift-dev wrote:<br></div>
<blockquote type="cite"><div dir="ltr"><div>Well, I thought the REPL issues had all been put to rest, but now I am seeing this on Ubuntu 14.04 (15.10 I do not see it):<br></div>
<div> </div>
<div><div><span style="font-family:monospace," monospace"">➜ package-swift-3.0 git:(swift-3.0) ✗ ./install/usr/bin/swift</span><br></div>
<div><span style="font-family:monospace," monospace"">==18928==ASan runtime does not come first in initial library list; you should either link runtime to your application or manually preload it with LD_PRELOAD.</span><br></div>
<div> </div>
<div>This is with the "master" branches that build Swift 3.0, hashes:<br></div>
<div> </div>
<div><div><span style="font-family:monospace," monospace"">$ swift swiftrevs.swift</span><br></div>
<div><span style="font-family:monospace," monospace"">swift:95e3be665d</span><br></div>
<div><span style="font-family:monospace," monospace"">llvm:752e1430fc</span><br></div>
<div><span style="font-family:monospace," monospace"">clang:1e6cba3ce3</span><br></div>
<div><span style="font-family:monospace," monospace"">lldb:a38bed5855</span><br></div>
<div><span style="font-family:monospace," monospace"">compiler-rt:a897309947</span><br></div>
<div><span style="font-family:monospace," monospace"">cmark:5af77f3c1d</span><br></div>
<div><span style="font-family:monospace," monospace"">llbuild:ea9fd78a4a</span><br></div>
<div><span style="font-family:monospace," monospace"">swiftpm:22954afe9f</span><br></div>
<div><span style="font-family:monospace," monospace"">swift-corelibs-xctest:efdde9849c</span><br></div>
<div><span style="font-family:monospace," monospace"">swift-corelibs-foundation:d2dc9f3cf9</span><br></div>
<div><span style="font-family:monospace," monospace"">swift-integration-tests:98f6c6d992</span><br></div>
<div><span style="font-family:monospace," monospace"">swift-corelibs-libdispatch:65330e06d9</span><br></div>
</div>
<div> </div>
<div>Is anyone else building the world on Ubuntu 14.04 that can verify this?<br></div>
</div>
</div>
</blockquote><div> </div>
</span><div>I have seen this behavior many times in many scenarios. Almost always it has to do with a build parameter.<br></div>
<div> </div>
<div>Recently I have noticed that compiling with the "compiler-rt" project seems to cause this issue frequently. I do not understand what "compiler-rt" is, or what its value to Swift is, so I just omit it from my builds. It maybe worth while to do the same and rebuild and see if it goes away.<br></div>
<div> </div>
<div>I would think that if "compiler-rt" is the source of the issues then something likely needs to be submitted to <a href="http://bugs.swift.org" target="_blank">bugs.swift.org</a>. </div>
<div> </div>
<div>Another thing to check is if your packaging Swift (dep, rpm, pacman, etc...) that you are do not strip symbols from binaries and libraries as part of packaging.<br></div>
<div> </div>
<blockquote type="cite"><span><div dir="ltr"><div><div>Regards,<br></div>
<div>Joe<br></div>
<div> </div>
<div>-- <br></div>
<div><div dir="ltr"><div><div dir="ltr"><div>Joseph Bell<br></div>
<div><a href="http://dev.iachieved.it/iachievedit/" target="_blank">http://dev.iachieved.it/iachievedit/</a><br></div>
<div>@iachievedit<br></div>
</div>
</div>
</div>
</div>
</div>
</div>
</span><div><u>_______________________________________________</u><br></div>
<div>swift-dev mailing list<br></div>
<div><a href="mailto:swift-dev@swift.org" target="_blank">swift-dev@swift.org</a><br></div>
<div><a href="https://lists.swift.org/mailman/listinfo/swift-dev" target="_blank">https://lists.swift.org/mailman/listinfo/swift-dev</a><br></div>
</blockquote><div> </div>
</div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div><div dir="ltr"><div><div dir="ltr">Joseph Bell<br><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>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr">Joseph Bell<br><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>