<div dir="ltr">Just noticed Joe Groff&#39;s previous reply to a similar issue:<div><br></div><div><a href="https://lists.swift.org/pipermail/swift-users/Week-of-Mon-20160321/001547.html" target="_blank">https://lists.swift.org/pipermail/swift-users/Week-of-Mon-20160321/001547.html</a><br></div><div><br></div><div>&quot;<span style="color:rgb(0,0,0);white-space:pre-wrap">You might be able to work around this by annotating ProtocolDecl and ProtocolConformance as explicitly having `alignof(8)`.&quot;</span></div><div><span style="color:rgb(0,0,0);white-space:pre-wrap"><br></span></div><div><span style="color:rgb(0,0,0);white-space:pre-wrap">I&#39;ll look into giving that a shot.</span></div><div><span style="color:rgb(0,0,0);white-space:pre-wrap"><br></span></div><div><font color="#000000"><span style="white-space:pre-wrap">Thanks,
Jason Pepas</span></font></div><div><font color="#000000"><span style="white-space:pre-wrap"><br></span></font></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Apr 17, 2016 at 11:34 AM, Jason Pepas <span dir="ltr">&lt;<a href="mailto:jasonpepas@gmail.com" target="_blank">jasonpepas@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">note: I&#39;ve updated the README.md of the scripts repo with explicit instructions on how to reproduce exactly what I&#39;ve done:<div><br></div><div><a href="https://github.com/cellularmitosis/swift-build-scripts/blob/master/README.md" target="_blank">https://github.com/cellularmitosis/swift-build-scripts/blob/master/README.md</a><br></div><div><br></div><div>this was built on a raspbian/jessie install on a Raspberry Pi 3 with the clang-3.7 package installed.</div><div><br></div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Apr 17, 2016 at 11:22 AM, Jason Pepas <span dir="ltr">&lt;<a href="mailto:jasonpepas@gmail.com" target="_blank">jasonpepas@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><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" target="_blank">https://gist.github.com/cellularmitosis/5493f105fba36a70bdb8cadbcc9b17df</a><br></div><div><br></div><div>







<p><span>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><br></p><p>I&#39;m guessing that this is generally a problem for any 32-bit architecture for swift.</p><p><br></p><p>Here&#39;s a reference to a similar error from a FreeBSD clang bug report from 2013 (also built on raspberry pi):</p><p><a href="https://llvm.org/bugs/show_bug.cgi?id=15696" target="_blank">https://llvm.org/bugs/show_bug.cgi?id=15696</a><br></p><p>However, it looks like the bug became unreproducible, so they didn&#39;t pursue it.</p><p><br></p><p>This build was created using the following scripts:</p><p><a href="https://github.com/cellularmitosis/swift-build-scripts/blob/master/arm/build.sh" target="_blank">https://github.com/cellularmitosis/swift-build-scripts/blob/master/arm/build.sh</a><br></p><p>sources were fetched via:</p><p><a href="https://github.com/cellularmitosis/swift-build-scripts/blob/master/arm/fetch.sh" target="_blank">https://github.com/cellularmitosis/swift-build-scripts/blob/master/arm/fetch.sh</a><br></p><p>according to this list of SHA&#39;s:</p><p><a href="https://github.com/cellularmitosis/swift-build-scripts/blob/master/arm/shas.bash" target="_blank">https://github.com/cellularmitosis/swift-build-scripts/blob/master/arm/shas.bash</a><br></p><p><br></p><p>Thanks,<br>Jason Pepas</p><p><br></p></div></div>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div>