Skip to content
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

x.py dist cross-compile packages the wrong LLVM build #85250

Closed
adamgemmell opened this issue May 13, 2021 · 1 comment · Fixed by #87191
Closed

x.py dist cross-compile packages the wrong LLVM build #85250

adamgemmell opened this issue May 13, 2021 · 1 comment · Fixed by #87191
Assignees

Comments

@adamgemmell
Copy link
Contributor

adamgemmell commented May 13, 2021

Reproduction, on an x86_64 host:

./x.py dist --host aarch64-unknown-linux-gnu --target aarch64-unknown-linux-gnu
or
./src/ci/docker/run.sh dist-aarch64-linux

Expected:

All packaged artifacts are targeted at aarch64.

Actual:

The LLVM libs in dist/rust-dev-nightly-aarch64-unknown-linux-gnu.tar.xz are x86_64.

More info

The binaries in the same archive are fine.

Building rustc on an aarch64 host with download-ci-llvm = if-available results in linker errors.
Setting this to false and building LLVM locally works fine.

https://rust-lang.zulipchat.com/#narrow/stream/242791-t-infra/topic/llvm-project.20aarch64.20builds.20corrupt
The oldest CI artifact currently available (https://ci-artifacts.rust-lang.org/rustc-builds/6645da366eed0c61258a04265bea513e94df7ea6/rust-dev-nightly-aarch64-unknown-linux-gnu.tar.gz) has this bug.

It could conceivably affect other distribution artifacts cross-compiled from x86_64 but I haven't tested them.

@adamgemmell
Copy link
Contributor Author

@rustbot claim

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant