Skip to content

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

Closed
@Alexendoo

Description

@Alexendoo

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-linkageArea: linking into static, shared libraries and binariesA-thread-localsArea: Thread local storage (TLS)C-bugCategory: This is a bug.O-AArch64Armv8-A or later processors in AArch64 modeT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions