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

Build failure with rustc_private crates on aarch64-unknown-linux-gnu #100530

Closed
Alexendoo opened this issue Aug 14, 2022 · 2 comments · Fixed by #100536
Closed

Build failure with rustc_private crates on aarch64-unknown-linux-gnu #100530

Alexendoo opened this issue Aug 14, 2022 · 2 comments · Fixed by #100536
Labels
A-linkage Area: linking into static, shared libraries and binaries A-thread-locals Area: Thread local storage (TLS) C-bug Category: This is a bug. O-AArch64 Armv8-A or later processors in AArch64 mode T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.

Comments

@Alexendoo
Copy link
Member

On aarch64-unknown-linux-gnu, with a rustup provided rustc-dev component:

#![feature(rustc_private)]

extern crate rustc_attr;

errors with:

error: /home/alex/.rustup/toolchains/nightly-2022-08-14-aarch64-unknown-linux-gnu/lib/rustlib/aarch64-unknown-linux-gnu/lib/libserde_derive-6dc9fea9ed4dba80.so: cannot allocate memory in static TLS block
 --> src/lib.rs:3:1
  |
3 | extern crate rustc_attr;
  | ^^^^^^^^^^^^^^^^^^^^^^^^

I'll try and see if I can reproduce it with ./x.py to test @bjorn3's suggestion: #99944 (comment)

@Alexendoo Alexendoo added A-linkage Area: linking into static, shared libraries and binaries O-Arm Target: 32-bit Arm processors (armv6, armv7, thumb...), including 64-bit Arm in AArch32 state T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. A-thread-locals Area: Thread local storage (TLS) C-bug Category: This is a bug. labels Aug 14, 2022
@Alexendoo
Copy link
Member Author

Couldn't reproduce it with an ./x build --stage 2, tried with download-ci-llvm = false also

Does it have to be cross compiled from a different host?

@bjorn3
Copy link
Member

bjorn3 commented Aug 14, 2022

Not sure what is necessary to reproduce it. In any case if you open a PR with the likely fix, I can run a try build on CI which you can then locally install to see if it fixes the issue.

@workingjubilee workingjubilee added O-AArch64 Armv8-A or later processors in AArch64 mode and removed O-Arm Target: 32-bit Arm processors (armv6, armv7, thumb...), including 64-bit Arm in AArch32 state labels Aug 17, 2022
@bors bors closed this as completed in f2858b5 Aug 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-linkage Area: linking into static, shared libraries and binaries A-thread-locals Area: Thread local storage (TLS) C-bug Category: This is a bug. O-AArch64 Armv8-A or later processors in AArch64 mode T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants