<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 11 May 2016, at 20:41, Donald Pinckney via swift-users <<a href="mailto:swift-users@swift.org" class="">swift-users@swift.org</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div class=""><div id="edo-message" class=""><div class="">Hi all,</div><div class="">Perhaps this has been discussed a lot already, but I'm a bit lost as to the current state of cross-compiling Swift source code from x86_64 Linux to ARM Linux. Given the documentation for cross-compiling for Android, it seems that there is some cross-compiling support, but I'm not sure how I should go about making it not Android specific.</div><div class=""><br class=""></div><div class="">To be more concrete, I would like to experiment with Swift for the FIRST Robotics Competition, which uses ARM Cortex A9, running Real-Time Linux. For now, a reasonable intermediate goal seems like figuring out cross-compiling to a Raspberry Pi, which has already seen some attention from the Swift community.</div><div class=""><br class=""></div><div class="">So, it would be awesome if anyone can point me in the right direction!</div><div class=""><br class=""></div><div class="">Thanks,</div><div class="">Donald Pinckney</div></div><div id="edo-original" class=""><div class=""></div></div></div>_______________________________________________<br class="">swift-users mailing list<br class=""><a href="mailto:swift-users@swift.org" class="">swift-users@swift.org</a><br class="">https://lists.swift.org/mailman/listinfo/swift-users<br class=""></div></blockquote></div><br class=""><div class="">Hi,</div><div class=""><br class=""></div><div class="">I don’t know if anybody else is, but I’m working on cross-compiling the entire toolchain for the RPi. Currently I’m able to compile clang, swift, the standard library, llbuild and lldb (although lldb doesn’t seem to be able to find any symbols right now, so it can pause and step through processes, but can’t set breakpoints or start the REPL — it’s a work in progress).</div><div class=""><br class=""></div><div class="">See my mail to swift-dev: <a href="http://comments.gmane.org/gmane.comp.lang.swift.devel/1966" class="">http://comments.gmane.org/gmane.comp.lang.swift.devel/1966</a></div><div class="">Note that initially my target triple was wrong; you should make binutils for "arm-linux-gnueabihf”, and you should edit “build_toolchain.sh” and “build_common.sh”, not install_toolchain and install_common (they don’t exist anyway).</div><div class=""><br class=""></div><div class="">I’ve been doing it from a Mac, but I’d love to hear if you can replicate it from linux.</div><div class=""><br class=""></div><div class="">Karl</div></body></html>