<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">https://github.com/apple/swift/blob/master/docs/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-libicu-android/armeabi-v7a \</div><div> --android-icu-uc-include ~/GitHub/apple/libiconv-libicu-android/armeabi-v7a/icu/source/common \</div><div> --android-icu-i18n ~/GitHub/apple/libiconv-libicu-android/armeabi-v7a \</div><div> --android-icu-i18n-include ~/GitHub/apple/libiconv-libicu-android/armeabi-v7a/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><div><br></div><div>- Brian Gesiak<br><br></div></div><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/<wbr>swift-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=<wbr>autolink-driver;compiler;<wbr>clang-builtin-headers;stdlib;<wbr>swift-remote-mirror;sdk-<wbr>overlay;dev' --build-swift-static-stdlib --build-swift-static-sdk-<wbr>overlay --skip-test-lldb --install-destdir=swift-<wbr>install --installable-package=swift.<wbr>tar.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=<wbr>autolink-driver;compiler;<wbr>clang-builtin-headers;stdlib;<wbr>swift-remote-mirror;sdk-<wbr>overlay;dev' --build-swift-static-stdlib --build-swift-static-sdk-<wbr>overlay --skip-test-lldb --install-destdir=swift-<wbr>install --installable-package=swift.<wbr>tar.gz<br>
<br>
I hope that helps.<br>
<br>
- Will<br>
<div class="HOEnZb"><div class="h5"><br>
> On Sep 14, 2016, at 3:51 PM, Eric Wing <<a href="mailto:ewmailing@gmail.com">ewmailing@gmail.com</a>> wrote:<br>
><br>
> On 9/14/16, william <<a href="mailto:william@housedillon.com">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">swift-dev@swift.org</a><br>
<a href="https://lists.swift.org/mailman/listinfo/swift-dev" rel="noreferrer" target="_blank">https://lists.swift.org/<wbr>mailman/listinfo/swift-dev</a><br>
</div></div></blockquote></div><br></div>