<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Apr 17, 2016, at 1:46 PM, Timothy Wood via swift-dev &lt;<a href="mailto:swift-dev@swift.org" class="">swift-dev@swift.org</a>&gt; wrote:</div><br class="Apple-interchange-newline"><div class=""><meta http-equiv="Content-Type" content="text/html charset=us-ascii" class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><br class=""><div class=""><blockquote type="cite" class=""><div class="">On Apr 16, 2016, at 2:23 PM, William Dillon &lt;<a href="mailto:william@housedillon.com" class="">william@housedillon.com</a>&gt; wrote:</div><br class="Apple-interchange-newline"><div class=""><meta http-equiv="Content-Type" content="text/html charset=utf-8" class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">What LLVM are you using?<div class=""><br class=""></div><div class="">You have to use the one from my github (and the arm branch) or it won't work:</div><div class=""><br class=""></div><div class=""><a href="https://github.com/hpux735/swift-llvm/tree/arm" class="">https://github.com/hpux735/swift-llvm/tree/arm</a>&nbsp;</div><div class=""><br class=""></div><div class="">I haven't had time to upstream the changes to LLVM.</div><div class=""><br class=""></div><div class="">- Will</div></div></div></blockquote></div><br class=""><div class=""><br class=""></div><div class="">Ah, thanks! I was using &lt;<a href="https://github.com/apple/swift-llvm/tree/swift-2.2-branch" class="">https://github.com/apple/swift-llvm/tree/swift-2.2-branch</a>&gt;, but will give your fork a try!</div><div class=""><br class=""></div><div class="">-tim</div><div class=""><br class=""></div></div></div></blockquote><br class=""></div><div>I reset my Pi 3 to a fresh install of&nbsp;Jessie (2016-03-18), did the clang-3.6 install from &lt;<a href="http://dev.iachieved.it/iachievedit/open-source-swift-on-raspberry-pi-2/" class="">http://dev.iachieved.it/iachievedit/open-source-swift-on-raspberry-pi-2/</a>&gt;&nbsp;and tried building with the above mentioned branch of llvm. This fixed the spurious build failures I was seeing, but I’m hitting a persistent build failure now:</div><div><br class=""></div><blockquote style="margin: 0 0 0 40px; border: none; padding: 0px;" class=""><div><div style="margin: 0px; line-height: normal;" class="">[939/1818] Building CXX object tools/clang/utils/TableGen/CMakeFiles/obj.clang-tblgen.dir/ClangAttrEmitter.cpp.o</div></div><div><div style="margin: 0px; line-height: normal;" class="">FAILED: /usr/bin/clang++-3.6 &nbsp; -DCLANG_ENABLE_ARCMT -DCLANG_ENABLE_OBJC_REWRITER -DCLANG_ENABLE_STATIC_ANALYZER -DGTEST_HAS_RTTI=0 -D_DEBUG -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -Itools/clang/utils/TableGen -I/home/pi/Source/Swift/llvm/tools/clang/utils/TableGen -I/home/pi/Source/Swift/llvm/tools/clang/include -Itools/clang/include -Iinclude -I/home/pi/Source/Swift/llvm/include -fno-stack-protector -fPIC -fvisibility-inlines-hidden -Wall -W -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wcovered-switch-default -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -std=c++11 -fcolor-diagnostics -ffunction-sections -fdata-sections -fno-common -Woverloaded-virtual -Wno-nested-anon-types -O3&nbsp; &nbsp; -UNDEBUG&nbsp; -fno-exceptions -fno-rtti -MMD -MT tools/clang/utils/TableGen/CMakeFiles/obj.clang-tblgen.dir/ClangAttrEmitter.cpp.o -MF tools/clang/utils/TableGen/CMakeFiles/obj.clang-tblgen.dir/ClangAttrEmitter.cpp.o.d -o tools/clang/utils/TableGen/CMakeFiles/obj.clang-tblgen.dir/ClangAttrEmitter.cpp.o -c /home/pi/Source/Swift/llvm/tools/clang/utils/TableGen/ClangAttrEmitter.cpp</div></div><div><div style="margin: 0px; line-height: normal;" class="">/home/pi/Source/Swift/llvm/tools/clang/utils/TableGen/ClangAttrEmitter.cpp:1075:23: error: no viable conversion from 'ArrayRef&lt;std::pair&lt;Record *, SMRange&gt;&gt;' to 'ArrayRef&lt;llvm::Record *&gt;'</div></div><div><div style="margin: 0px; line-height: normal;" class="">&nbsp; &nbsp; ArrayRef&lt;Record*&gt; Bases = Search-&gt;getSuperClasses();</div></div><div><div style="margin: 0px; line-height: normal;" class="">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ^ &nbsp; &nbsp; &nbsp; ~~~~~~~~~~~~~~~~~~~~~~~~~</div></div><div><div style="margin: 0px; line-height: normal;" class="">/home/pi/Source/Swift/llvm/include/llvm/ADT/ArrayRef.h:32:9: note: candidate constructor (the implicit copy constructor) not viable: no known conversion from 'ArrayRef&lt;std::pair&lt;Record *, SMRange&gt; &gt;' to 'const llvm::ArrayRef&lt;llvm::Record *&gt; &amp;' for 1st argument</div></div><div><div style="margin: 0px; line-height: normal;" class="">&nbsp; class ArrayRef {</div></div><div><div style="margin: 0px; line-height: normal;" class="">&nbsp; &nbsp; &nbsp; &nbsp; ^</div></div><div><div style="margin: 0px; line-height: normal;" class="">/home/pi/Source/Swift/llvm/include/llvm/ADT/ArrayRef.h:32:9: note: candidate constructor (the implicit move constructor) not viable: no known conversion from 'ArrayRef&lt;std::pair&lt;Record *, SMRange&gt; &gt;' to 'llvm::ArrayRef&lt;llvm::Record *&gt; &amp;&amp;' for 1st argument</div></div><div><div style="margin: 0px; line-height: normal;" class="">&nbsp; class ArrayRef {</div></div><div><div class="">...</div></div></blockquote><br class=""><div class="">I might try again tomorrow updating to a newer clang build, or maybe I should just wave the white flag and rewrite my tiny codebase in C++ instead of trying to use Swift here, and wait for it to be a bit more stable/supported.</div><div class=""><br class=""></div><div class="">-tim</div><div class=""><br class=""></div></body></html>