<div dir="ltr">Hi,<div><br></div><div>I&#39;m trying to create a swift 2.2 build for armhf (raspberry pi), and I&#39;ve run into the following error:</div><div><br></div><div><a href="https://gist.github.com/cellularmitosis/5493f105fba36a70bdb8cadbcc9b17df">https://gist.github.com/cellularmitosis/5493f105fba36a70bdb8cadbcc9b17df</a><br></div><div><br></div><div>







<p class=""><span class="">swift: /home/cell/sda1/3/swift_src/llvm/include/llvm/ADT/PointerIntPair.h:114: void llvm::PointerIntPair&lt;swift::ProtocolConformance *, 2, swift::ConformanceKind, llvm::PointerLikeTypeTraits&lt;swift::ProtocolConformance *&gt; &gt;::setPointerAndInt(PointerTy, IntType) [PointerTy = swift::ProtocolConformance *, IntBits = 2, IntType = swift::ConformanceKind, PtrTraits = llvm::PointerLikeTypeTraits&lt;swift::ProtocolConformance *&gt;]: Assertion `(PtrWord &amp; ~PointerBitMask) == 0 &amp;&amp; &quot;Pointer is not sufficiently aligned&quot;&#39; failed.</span></p><p class=""><br></p><p class="">I&#39;m guessing that this is generally a problem for any 32-bit architecture for swift.</p><p class=""><br></p><p class="">Here&#39;s a reference to a similar error from a FreeBSD clang bug report from 2013 (also built on raspberry pi):</p><p class=""><a href="https://llvm.org/bugs/show_bug.cgi?id=15696">https://llvm.org/bugs/show_bug.cgi?id=15696</a><br></p><p class="">However, it looks like the bug became unreproducible, so they didn&#39;t pursue it.</p><p class=""><br></p><p class="">This build was created using the following scripts:</p><p class=""><a href="https://github.com/cellularmitosis/swift-build-scripts/blob/master/arm/build.sh">https://github.com/cellularmitosis/swift-build-scripts/blob/master/arm/build.sh</a><br></p><p class="">sources were fetched via:</p><p class=""><a href="https://github.com/cellularmitosis/swift-build-scripts/blob/master/arm/fetch.sh">https://github.com/cellularmitosis/swift-build-scripts/blob/master/arm/fetch.sh</a><br></p><p class="">according to this list of SHA&#39;s:</p><p class=""><a href="https://github.com/cellularmitosis/swift-build-scripts/blob/master/arm/shas.bash">https://github.com/cellularmitosis/swift-build-scripts/blob/master/arm/shas.bash</a><br></p><p class=""><br></p><p class="">Thanks,<br>Jason Pepas</p><p class=""><br></p></div></div>