<div dir="ltr">In case anyone's interested in writing some Python, here's a task for giving utils/update-checkout a --tag option: <a href="https://bugs.swift.org/browse/SR-2695">https://bugs.swift.org/browse/SR-2695</a><br><br>- Brian<div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Sep 19, 2016 at 9:01 AM, Brian Gesiak <span dir="ltr"><<a href="mailto:modocache@gmail.com" target="_blank">modocache@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Swift Android builds successfully for me. Following all the preliminary steps from <a href="https://github.com/apple/swift/blob/master/docs/Android.md" target="_blank">https://github.com/apple/<wbr>swift/blob/master/docs/<wbr>Android.md</a>, such as building libicu, I can successfully build with the following command on the master branch of apple/swift this morning:<br><br>utils/build-script -R \<div> --android \</div><div> --android-ndk ~/android-ndk-r12b \</div><div> --android-api-level 21 \</div><div> --android-icu-uc ~/GitHub/apple/libiconv-<wbr>libicu-android/armeabi-v7a \</div><div> --android-icu-uc-include ~/GitHub/apple/libiconv-<wbr>libicu-android/armeabi-v7a/<wbr>icu/source/common \</div><div> --android-icu-i18n ~/GitHub/apple/libiconv-<wbr>libicu-android/armeabi-v7a \</div><div> --android-icu-i18n-include ~/GitHub/apple/libiconv-<wbr>libicu-android/armeabi-v7a/<wbr>icu/source/i18n \</div><div> -- --reconfigure<br><br>I haven't tried building --lldb and --foundation, so I'm not sure about those. I also haven't tried checking out the swift-3.0-release branch. (It'd be handy if utils/update-checkout could checkout a particular tag across all repositories!)</div><div><br></div><div>I'd recommend using `--reconfigure` to ensure CMake isn't carrying over values from previous builds. Also, keep in mind that only an Ubnutu 15.10 host is currently supported, as per the documentation. If you're still having trouble despite all that, let me know as much about your build environment as you can, and I'll try to help!</div><span class="HOEnZb"><font color="#888888"><div><br></div><div>- Brian Gesiak<br><br></div></font></span></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Sep 18, 2016 at 10:52 PM, william via swift-dev <span dir="ltr"><<a href="mailto:swift-dev@swift.org" target="_blank">swift-dev@swift.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I've finally succeeded in re-creating the process for building (not on the Android port, mind).<br>
<br>
The trick this time was to build without the install options:<br>
<br>
./swift/utils/build-script -R<br>
<br>
This should SUCCEED<br>
<br>
Then, delete the swift build directory:<br>
<br>
rm -rf build/Ninja-ReleaseAssert/swif<wbr>t-linux-armv7<br>
<br>
Then, build swift again *with* the install options:<br>
<br>
./swift/utils/build-script -R -- --install-swift --install-prefix=/usr '--swift-install-components=au<wbr>tolink-driver;compiler;clang-<wbr>builtin-headers;stdlib;swift-<wbr>remote-mirror;sdk-overlay;dev' --build-swift-static-stdlib --build-swift-static-sdk-overl<wbr>ay --skip-test-lldb --install-destdir=swift-instal<wbr>l --installable-package=swift.ta<wbr>r.gz<br>
<br>
If that succeeds, go ahead and build the whole project:<br>
<br>
./swift/utils/build-script -R --llbuild --lldb --foundation --xctest --swiftpm --libdispatch -- --install-libdispatch --install-swift --install-lldb --install-llbuild --install-foundation --install-swiftpm --install-xctest --install-prefix=/usr '--swift-install-components=au<wbr>tolink-driver;compiler;clang-<wbr>builtin-headers;stdlib;swift-<wbr>remote-mirror;sdk-overlay;dev' --build-swift-static-stdlib --build-swift-static-sdk-overl<wbr>ay --skip-test-lldb --install-destdir=swift-instal<wbr>l --installable-package=swift.ta<wbr>r.gz<br>
<br>
I hope that helps.<br>
<br>
- Will<br>
<div><div><br>
> On Sep 14, 2016, at 3:51 PM, Eric Wing <<a href="mailto:ewmailing@gmail.com" target="_blank">ewmailing@gmail.com</a>> wrote:<br>
><br>
> On 9/14/16, william <<a href="mailto:william@housedillon.com" target="_blank">william@housedillon.com</a>> wrote:<br>
>> I'm so glad someone else is hitting this problem!<br>
>><br>
>> I've been seeing this relatively often. I have a set of superstitions that<br>
>> allow me to get past it, and once I do, I try very hard not to delete<br>
>> anything in my build directory.<br>
>><br>
>> - Will<br>
>><br>
><br>
> Can you suggest some mirrors to break or rabbit feet to rub, because I<br>
> have no idea where to start for this.<br>
><br>
> Thanks,<br>
> Eric<br>
<br>
______________________________<wbr>_________________<br>
swift-dev mailing list<br>
<a href="mailto:swift-dev@swift.org" target="_blank">swift-dev@swift.org</a><br>
<a href="https://lists.swift.org/mailman/listinfo/swift-dev" rel="noreferrer" target="_blank">https://lists.swift.org/mailma<wbr>n/listinfo/swift-dev</a><br>
</div></div></blockquote></div><br></div>
</div></div></blockquote></div><br></div>