<div dir="ltr">Hi,<div><br></div><div>I'm trying to create a swift 2.2 build for armhf (raspberry pi), and I'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<swift::ProtocolConformance *, 2, swift::ConformanceKind, llvm::PointerLikeTypeTraits<swift::ProtocolConformance *> >::setPointerAndInt(PointerTy, IntType) [PointerTy = swift::ProtocolConformance *, IntBits = 2, IntType = swift::ConformanceKind, PtrTraits = llvm::PointerLikeTypeTraits<swift::ProtocolConformance *>]: Assertion `(PtrWord & ~PointerBitMask) == 0 && "Pointer is not sufficiently aligned"' failed.</span></p><p class=""><br></p><p class="">I'm guessing that this is generally a problem for any 32-bit architecture for swift.</p><p class=""><br></p><p class="">Here'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'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'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>