Dependency of rustc_fluent_macros getting compiled with -Ztls-model=initial-exec #134863
Labels
A-thread-locals
Area: Thread local storage (TLS)
C-bug
Category: This is a bug.
T-bootstrap
Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Proc macros must not be compiled with
-Ztls-model=initial-exec
as-Ztls-model=initial-exec
is incompatible with dlopen. Glibc is somewhat lenient with dlopening dylibs compiled with-Ztls-model=initial-exec
for as long as there is room, but other libc implementations may not provide enough room or provide room at all. For example on FreeBSD trying to use rustc_driver results in the following error:https://cirrus-ci.com/task/4557776715776000
To fix this issue, the set of exclusions at
rust/src/bootstrap/src/bin/rustc.rs
Lines 166 to 173 in ceb0441
The text was updated successfully, but these errors were encountered: