<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class="">I was able to build it with <span style="font-family: Menlo; font-size: 11px;" class="">2016-08-04-a snapshot.</span></div><div class=""><div class=""><br class=""></div><div class="">Regards,</div><div class="">Andrey</div>

</div>
<br class=""><div><blockquote type="cite" class=""><div class="">On 07 Aug 2016, at 13:43, Andrey Fidrya &lt;<a href="mailto:af@zabiyaka.com" class="">af@zabiyaka.com</a>&gt; wrote:</div><br class="Apple-interchange-newline"><div class=""><div class="">Hi,<br class=""><br class="">I'm trying to compile swift-3.0-branch of swift-corelibs-libdispatch on Ubuntu 14,<br class="">but swiftc crashes. Which Swift version should i use?<br class=""><br class="">I'm using 2016-07-25 binary snapshot.<br class=""><br class="">$ swift --version<br class="">Swift version 3.0-dev (LLVM 440a472499, Clang e10506ae1c, Swift 395e967875)<br class="">Target: x86_64-unknown-linux-gnu<br class=""><br class="">$ clang --version<br class="">clang version 3.8.0-2ubuntu3~trusty4 (tags/RELEASE_380/final)<br class="">Target: x86_64-unknown-linux-gnu<br class="">Thread model: posix<br class="">InstalledDir: /usr/bin<br class="">I've tried swift-3.0-preview branches but they crash in the same place.<br class="">exeperimental/foundation branch builds succesfully.<br class=""><br class="">Steps I've done:<br class=""><br class="">sudo apt-get install autoconf libtool libkqueue-dev libkqueue0 libcurl4-openssl-dev libbsd-dev libblocksruntime-dev<br class="">export SWIFT_HOME=~/.swiftenv/versions/DEVELOPMENT-SNAPSHOT-2016-07-25-a<br class="">git clone --recursive -b swift-3.0-branch <a href="https://github.com/apple/swift-corelibs-libdispatch.git" class="">https://github.com/apple/swift-corelibs-libdispatch.git</a><br class="">cd swift-corelibs-libdispatch<br class="">sh ./autogen.sh<br class="">./configure --with-swift-toolchain=$SWIFT_HOME/usr --prefix=$SWIFT_HOME/usr<br class="">make<br class=""><br class=""><br class="">Build log tail:<br class=""><br class="">/home/user/.swiftenv/versions/DEVELOPMENT-SNAPSHOT-2016-07-25-a/usr/bin/swiftc -frontend -c /home/user/dev/swift-corelibs-libdispatch/src/swift/Block.swift /home/user/dev/swift-corelibs-libdispatch/src/swift/Data.swift /home/user/dev/swift-corelibs-libdispatch/src/swift/Dispatch.swift /home/user/dev/swift-corelibs-libdispatch/src/swift/IO.swift /home/user/dev/swift-corelibs-libdispatch/src/swift/Private.swift /home/user/dev/swift-corelibs-libdispatch/src/swift/Queue.swift /home/user/dev/swift-corelibs-libdispatch/src/swift/Source.swift /home/user/dev/swift-corelibs-libdispatch/src/swift/Time.swift /home/user/dev/swift-corelibs-libdispatch/src/swift/Wrapper.swift -primary-file /home/user/dev/swift-corelibs-libdispatch/src/swift/Block.swift \<br class=""><span class="Apple-tab-span" style="white-space:pre">        </span>-Xcc -fmodule-map-file=/home/user/dev/swift-corelibs-libdispatch/dispatch/module.modulemap -I/home/user/dev/swift-corelibs-libdispatch -Xcc -fblocks -O -module-name Dispatch -module-link-name dispatch \<br class=""><span class="Apple-tab-span" style="white-space:pre">        </span>-o /home/user/dev/swift-corelibs-libdispatch/src/swift/Block.o -emit-module-path /home/user/dev/swift-corelibs-libdispatch/src/swift/Block.o.~partial.swiftmodule \<br class=""><span class="Apple-tab-span" style="white-space:pre">        </span>-emit-module-doc-path /home/user/dev/swift-corelibs-libdispatch/src/swift/Block.o.~partial.swiftdoc -emit-dependencies-path /home/user/dev/swift-corelibs-libdispatch/src/swift/Block.o.d \<br class=""><span class="Apple-tab-span" style="white-space:pre">        </span>-emit-reference-dependencies-path /home/user/dev/swift-corelibs-libdispatch/src/swift/Block.o.swiftdeps \<br class=""><span class="Apple-tab-span" style="white-space:pre">        </span>-module-cache-path ..<br class="">swiftc: /home/buildnode/jenkins/workspace/oss-swift-package-linux-ubuntu-14_04/llvm/tools/clang/lib/Serialization/ASTWriter.cpp:2376: unsigned int clang::ASTWriter::getSubmoduleID(clang::Module *): Assertion `(ID || !Mod) &amp;&amp; "asked for module ID for non-local, non-imported module"' failed.<br class="">0 &nbsp;swiftc &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;0x0000000003321058 llvm::sys::PrintStackTrace(llvm::raw_ostream&amp;) + 40<br class="">1 &nbsp;swiftc &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;0x000000000331f826 llvm::sys::RunSignalHandlers() + 54<br class="">2 &nbsp;swiftc &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;0x0000000003321b8a<br class="">3 &nbsp;libpthread.so.0 0x00002b3be0734330<br class="">4 &nbsp;libc.so.6 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;0x00002b3be1c02c37 gsignal + 55<br class="">5 &nbsp;libc.so.6 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;0x00002b3be1c06028 abort + 328<br class="">6 &nbsp;libc.so.6 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;0x00002b3be1bfbbf6<br class="">7 &nbsp;libc.so.6 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;0x00002b3be1bfbca2<br class="">8 &nbsp;swiftc &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;0x000000000168b436 clang::ASTWriter::WritePreprocessor(clang::Preprocessor const&amp;, bool) + 5974<br class="">9 &nbsp;swiftc &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;0x00000000016a6558 clang::ASTWriter::WriteASTCore(clang::Sema&amp;, llvm::StringRef, std::string const&amp;, clang::Module*) + 12488<br class="">10 swiftc &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;0x00000000016a344d clang::ASTWriter::WriteAST(clang::Sema&amp;, std::string const&amp;, clang::Module*, llvm::StringRef, bool) + 589<br class="">11 swiftc &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;0x00000000016dfa2b clang::PCHGenerator::HandleTranslationUnit(clang::ASTContext&amp;) + 91<br class="">12 swiftc &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;0x00000000014e983c clang::MultiplexConsumer::HandleTranslationUnit(clang::ASTContext&amp;) + 44<br class="">13 swiftc &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;0x00000000016ec726 clang::ParseAST(clang::Sema&amp;, bool, bool) + 614<br class="">14 swiftc &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;0x00000000014c5595 clang::FrontendAction::Execute() + 69<br class="">15 swiftc &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;0x000000000148e571 clang::CompilerInstance::ExecuteAction(clang::FrontendAction&amp;) + 1153<br class="">16 swiftc &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;0x00000000032befba llvm::CrashRecoveryContext::RunSafely(llvm::function_ref&lt;void ()&gt;) + 266<br class="">17 swiftc &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;0x00000000032bf144<br class="">18 swiftc &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;0x0000000003322aea<br class="">19 libpthread.so.0 0x00002b3be072c184<br class="">20 libc.so.6 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;0x00002b3be1cc637d clone + 109<br class="">Stack dump:<br class="">0.<span class="Apple-tab-span" style="white-space:pre">        </span>&lt;eof&gt; parser at end of file<br class="">make[2]: *** [/home/user/dev/swift-corelibs-libdispatch/src/swift/Block.o] Aborted (core dumped)<br class="">make[2]: Leaving directory `/home/user/dev/swift-corelibs-libdispatch/src'<br class="">make[1]: *** [all] Error 2<br class="">make[1]: Leaving directory `/home/user/dev/swift-corelibs-libdispatch/src'<br class="">make: *** [all-recursive] Error 1<br class="">user@smud:~/dev/swift-corelibs-libdispatch$ <br class=""><br class="">Regards,<br class="">Andrey<br class=""><br class=""></div></div></blockquote></div><br class=""></body></html>