-
Notifications
You must be signed in to change notification settings - Fork 12.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't cross-build rustc for aarch64-apple-darwin anymore #76733
Comments
How are you invoking x.py? I've just run src/ci/docker/run.sh dist-arm-linux, which has an almost-identical configuration, just targeting arm-unknown-linux-gnueabi instead of aarch64-apple-darwin, which runs That gets me the following in build/dist:
I also see a build/aarch64-apple-darwin/stage2 directory and it contains a stage2 compiler, as expected. x.py build doesn't work (still) in the sense that it doesn't assemble a compiler for you, but it does build all the components. This is due to the (prior) change in defaults where --stage 1 for a cross-compilation build doesn't really make a lot of sense, but is what we default to now. |
|
|
Hm, and that's on latest master? I guess I can try to reproduce this on a DTK, but I find it pretty odd that you're seeing different behavior than I am for essentially equivalent configurations, just different concrete targets... Do you have anything else in config.toml? |
It was on latest master or close when I filed, which was 9b41541. My config.toml is literally what I pasted (didn't copy from config.toml.example). |
Okay, I've been able to reproduce. I guess something about the docker container (dist-arm-linux) is different perhaps? Or I wasn't building on the right commit before -- not sure. Looking at fixing now. |
Both bugs should be fixed by #76799. |
This looks more like |
…ist, r=alexcrichton Fix cross compiling dist/build invocations I am uncertain why the first commit is not affecting CI. I suspect it's because we pass --disable-docs on most of our cross-compilation builders. The second commit doesn't affect CI because CI runs x.py dist, not x.py build. Both commits are standalone; together they should resolve rust-lang#76733. The first commit doesn't really fix that issue but rather just fixes cross-compiled x.py dist, resolving a bug introduced in rust-lang#76549.
…ist, r=alexcrichton Fix cross compiling dist/build invocations I am uncertain why the first commit is not affecting CI. I suspect it's because we pass --disable-docs on most of our cross-compilation builders. The second commit doesn't affect CI because CI runs x.py dist, not x.py build. Both commits are standalone; together they should resolve rust-lang#76733. The first commit doesn't really fix that issue but rather just fixes cross-compiled x.py dist, resolving a bug introduced in rust-lang#76549.
…ist, r=alexcrichton Fix cross compiling dist/build invocations I am uncertain why the first commit is not affecting CI. I suspect it's because we pass --disable-docs on most of our cross-compilation builders. The second commit doesn't affect CI because CI runs x.py dist, not x.py build. Both commits are standalone; together they should resolve rust-lang#76733. The first commit doesn't really fix that issue but rather just fixes cross-compiled x.py dist, resolving a bug introduced in rust-lang#76549.
…ist, r=alexcrichton Fix cross compiling dist/build invocations I am uncertain why the first commit is not affecting CI. I suspect it's because we pass --disable-docs on most of our cross-compilation builders. The second commit doesn't affect CI because CI runs x.py dist, not x.py build. Both commits are standalone; together they should resolve rust-lang#76733. The first commit doesn't really fix that issue but rather just fixes cross-compiled x.py dist, resolving a bug introduced in rust-lang#76549.
…ist, r=alexcrichton Fix cross compiling dist/build invocations I am uncertain why the first commit is not affecting CI. I suspect it's because we pass --disable-docs on most of our cross-compilation builders. The second commit doesn't affect CI because CI runs x.py dist, not x.py build. Both commits are standalone; together they should resolve rust-lang#76733. The first commit doesn't really fix that issue but rather just fixes cross-compiled x.py dist, resolving a bug introduced in rust-lang#76549.
With the following config.toml:
when building on a Apple Silicon DTK, you'd get an aarch64-apple-darwin rustc and libstd. That's not the case since #76415, where you only end up with an x86_64-apple-darwin compiler and libstd. There isn't even a build/aarch64-apple-darwin directory at all.
The text was updated successfully, but these errors were encountered: