<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 <<a href="mailto:swift-dev@swift.org" class="">swift-dev@swift.org</a>> 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 <<a href="mailto:william@housedillon.com" class="">william@housedillon.com</a>> 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> </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 <<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>>, 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 Jessie (2016-03-18), did the clang-3.6 install from <<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>> 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 -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 -UNDEBUG -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<std::pair<Record *, SMRange>>' to 'ArrayRef<llvm::Record *>'</div></div><div><div style="margin: 0px; line-height: normal;" class=""> ArrayRef<Record*> Bases = Search->getSuperClasses();</div></div><div><div style="margin: 0px; line-height: normal;" class=""> ^ ~~~~~~~~~~~~~~~~~~~~~~~~~</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<std::pair<Record *, SMRange> >' to 'const llvm::ArrayRef<llvm::Record *> &' for 1st argument</div></div><div><div style="margin: 0px; line-height: normal;" class=""> class ArrayRef {</div></div><div><div style="margin: 0px; line-height: normal;" class=""> ^</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<std::pair<Record *, SMRange> >' to 'llvm::ArrayRef<llvm::Record *> &&' for 1st argument</div></div><div><div style="margin: 0px; line-height: normal;" class=""> 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>