-
Notifications
You must be signed in to change notification settings - Fork 13.3k
functions marked with #[no_mangle]
cannot be GC-ed on MacOS
#139744
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Labels
A-linkage
Area: linking into static, shared libraries and binaries
C-bug
Category: This is a bug.
O-apple
Operating system: Apple (macOS, iOS, tvOS, visionOS, watchOS)
regression-from-stable-to-beta
Performance or correctness regression from stable to beta.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Comments
For completeness, the error looks like:
@rustbot label O-apple |
Zalathar
added a commit
to Zalathar/rust
that referenced
this issue
Apr 24, 2025
set subsections_via_symbols for ld64 helper sections closes rust-lang#139744 cc `@madsmtm`
bors
added a commit
to rust-lang-ci/rust
that referenced
this issue
Apr 24, 2025
set subsections_via_symbols for ld64 helper sections closes rust-lang#139744 cc `@madsmtm` --- try-job: x86_64-msvc-1
bors
added a commit
to rust-lang-ci/rust
that referenced
this issue
Apr 24, 2025
set subsections_via_symbols for ld64 helper sections closes rust-lang#139744 cc `@madsmtm` --- try-job: x86_64-msvc-1
bors
added a commit
to rust-lang-ci/rust
that referenced
this issue
Apr 24, 2025
set subsections_via_symbols for ld64 helper sections closes rust-lang#139744 cc `@madsmtm`
github-actions bot
pushed a commit
to rust-lang/miri
that referenced
this issue
Apr 25, 2025
set subsections_via_symbols for ld64 helper sections closes rust-lang/rust#139744 cc `@madsmtm`
github-actions bot
pushed a commit
to rust-lang/rustc-dev-guide
that referenced
this issue
Apr 28, 2025
set subsections_via_symbols for ld64 helper sections closes rust-lang/rust#139744 cc `@madsmtm`
lnicola
pushed a commit
to lnicola/rust-analyzer
that referenced
this issue
Apr 28, 2025
set subsections_via_symbols for ld64 helper sections closes rust-lang/rust#139744 cc `@madsmtm`
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
Labels
A-linkage
Area: linking into static, shared libraries and binaries
C-bug
Category: This is a bug.
O-apple
Operating system: Apple (macOS, iOS, tvOS, visionOS, watchOS)
regression-from-stable-to-beta
Performance or correctness regression from stable to beta.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Code
I tried this code:
I expected to see this happen: it builds
Instead, this happened: it emits linker errors
Version it worked on
1.86.0
Version with regression
nightly-2025-02-26; bisects to #133832
The text was updated successfully, but these errors were encountered: