Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upFix Rust compiler download error on Android #17604
Conversation
highfive
commented
Jul 5, 2017
|
Heads up! This PR modifies the following files:
|
|
I would rather have us error out if |
|
This isn’t specific to Android. We have an explicit list of platforms that have these builds: servo/python/servo/command_base.py Lines 263 to 266 in 42e551f It looks like the problem is that that code only checks the host platform, not the target when cross-compiling. I wonder how #17561 landed though, since we do have CI for Android. Anyway, this should use the same list of platforms (maybe by making it a Python global variable). |
3a49129
to
996e4ca
|
Ok, I updated the PR to also check target platform in order to set llvm-assertions default configuration value |
|
Does this really fix the issue? The code added in Specifically here, I think the |
|
Taking a step back, do we need to use a "non-alt" compiler when using a non-alt standard library (because the alt one is not available for a given cross-compilation target)? If so, I think we have a problem with with how mach’s configuration is currently structured. |
996e4ca
to
345b9eb
345b9eb
to
145e2ac
I moved the code before using rust_path var. I have tested to compile, link and run on a clean directory and it worked. Is there a better place for that code? We need to use the |
|
By on a clean directory, do you mean you also removed |
Yeah, that’s the problem. Command-line arguments are not easily available in |
|
I reproduced the error. On a clean checkout:
|
|
@MortimerGoro Until we figure something out, you can copy |
This reverts commit 6b52330. This is unnecessary now that rust-lang/rust#42967 is fixed by rust-lang/rust#43167. This migth be a fix for #17604
Upgrade to rustc 1.20.0-nightly (ab91c70cc 2017-07-14), use non-"alt" std Possibly fix #17604 <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/17727) <!-- Reviewable:end -->
Upgrade to rustc 1.20.0-nightly (ab91c70cc 2017-07-14), use non-"alt" std <s>Possibly</s> fixes #17604 <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/17727) <!-- Reviewable:end -->
…-07-14), use non-"alt" std (from servo:rustup); r=nox <s>Possibly</s> fixes servo/servo#17604 Source-Repo: https://github.com/servo/servo Source-Revision: 9d30e5b4e0fe9ccdfcd47d5134b5fbfba2e68096 --HG-- extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear extra : subtree_revision : a3b91220837ef27717c62df0b8ff56a4e94b9b87
…-07-14), use non-"alt" std (from servo:rustup); r=nox <s>Possibly</s> fixes servo/servo#17604 Source-Repo: https://github.com/servo/servo Source-Revision: 9d30e5b4e0fe9ccdfcd47d5134b5fbfba2e68096
…-07-14), use non-"alt" std (from servo:rustup); r=nox <s>Possibly</s> fixes servo/servo#17604 Source-Repo: https://github.com/servo/servo Source-Revision: 9d30e5b4e0fe9ccdfcd47d5134b5fbfba2e68096
…-07-14), use non-"alt" std (from servo:rustup); r=nox <s>Possibly</s> fixes servo/servo#17604 Source-Repo: https://github.com/servo/servo Source-Revision: 9d30e5b4e0fe9ccdfcd47d5134b5fbfba2e68096
…-07-14), use non-"alt" std (from servo:rustup); r=nox <s>Possibly</s> fixes servo/servo#17604 Source-Repo: https://github.com/servo/servo Source-Revision: 9d30e5b4e0fe9ccdfcd47d5134b5fbfba2e68096
…-07-14), use non-"alt" std (from servo:rustup); r=nox <s>Possibly</s> fixes servo/servo#17604 Source-Repo: https://github.com/servo/servo Source-Revision: 9d30e5b4e0fe9ccdfcd47d5134b5fbfba2e68096
…-07-14), use non-"alt" std (from servo:rustup); r=nox <s>Possibly</s> fixes servo/servo#17604 Source-Repo: https://github.com/servo/servo Source-Revision: 9d30e5b4e0fe9ccdfcd47d5134b5fbfba2e68096 UltraBlame original commit: 8321474ca566ca5c3a7b137b16baccb97d9efe5a
…-07-14), use non-"alt" std (from servo:rustup); r=nox <s>Possibly</s> fixes servo/servo#17604 Source-Repo: https://github.com/servo/servo Source-Revision: 9d30e5b4e0fe9ccdfcd47d5134b5fbfba2e68096 UltraBlame original commit: 8321474ca566ca5c3a7b137b16baccb97d9efe5a
…-07-14), use non-"alt" std (from servo:rustup); r=nox <s>Possibly</s> fixes servo/servo#17604 Source-Repo: https://github.com/servo/servo Source-Revision: 9d30e5b4e0fe9ccdfcd47d5134b5fbfba2e68096 UltraBlame original commit: 8321474ca566ca5c3a7b137b16baccb97d9efe5a
MortimerGoro commentedJul 5, 2017
•
edited by larsbergstrom
After 6b52330 landed Android builds fail when downloading Rustc Compiler:
I asked in rust-infra and they said that
altbuilds aren't compiled yet for all platforms (e.g. Android)./mach build -ddoes not report any errors./mach test-tidydoes not report any errorsThis change is