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

Don't attempt to export compiler-builtins symbols from rust dylibs #137736

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

bjorn3
Copy link
Member

@bjorn3 bjorn3 commented Feb 27, 2025

They are marked with hidden visibility to prevent them from getting exported, so we shouldn't ask the linker to export them anyway. The only thing that does it cause a warning on macOS.

Part of #136096

cc @jyn514

@rustbot
Copy link
Collaborator

rustbot commented Feb 27, 2025

r? @BoxyUwU

rustbot has assigned @BoxyUwU.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

@rustbot rustbot added A-attributes Area: Attributes (`#[…]`, `#![…]`) S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. labels Feb 27, 2025
@rustbot
Copy link
Collaborator

rustbot commented Feb 27, 2025

Some changes occurred in compiler/rustc_passes/src/check_attr.rs

cc @jdonszelmann

@bjorn3 bjorn3 force-pushed the compiler_builtins_export_fix branch from f32294a to d73479e Compare February 27, 2025 17:15
@BoxyUwU
Copy link
Member

BoxyUwU commented Feb 28, 2025

r? @bjorn3

@rustbot
Copy link
Collaborator

rustbot commented Feb 28, 2025

Could not assign reviewer from: bjorn3.
User(s) bjorn3 are either the PR author, already assigned, or on vacation. Please use r? to specify someone else to assign.

@BoxyUwU
Copy link
Member

BoxyUwU commented Feb 28, 2025

wait...

@BoxyUwU
Copy link
Member

BoxyUwU commented Feb 28, 2025

r? @petrochenkov

maybe?

@rustbot rustbot assigned petrochenkov and unassigned BoxyUwU Feb 28, 2025
@petrochenkov
Copy link
Contributor

@bors r+

@bors
Copy link
Contributor

bors commented Mar 13, 2025

📌 Commit d73479e has been approved by petrochenkov

It is now in the queue for this repository.

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Mar 13, 2025
jhpratt added a commit to jhpratt/rust that referenced this pull request Mar 14, 2025
…x, r=petrochenkov

Don't attempt to export compiler-builtins symbols from rust dylibs

They are marked with hidden visibility to prevent them from getting exported, so we shouldn't ask the linker to export them anyway. The only thing that does it cause a warning on macOS.

Part of rust-lang#136096

cc `@jyn514`
bors added a commit to rust-lang-ci/rust that referenced this pull request Mar 14, 2025
Rollup of 6 pull requests

Successful merges:

 - rust-lang#134720 (Display valid crate types in error message for --crate-type flag)
 - rust-lang#137424 (uefi: helpers: Add DevicePathNode abstractions)
 - rust-lang#137736 (Don't attempt to export compiler-builtins symbols from rust dylibs)
 - rust-lang#138451 (Build GCC on CI with GCC, not Clang)
 - rust-lang#138454 (Improve post-merge workflow)
 - rust-lang#138477 (Deny impls for `BikeshedGuaranteedNoDrop`)

r? `@ghost`
`@rustbot` modify labels: rollup
@bors
Copy link
Contributor

bors commented Mar 14, 2025

⌛ Testing commit d73479e with merge 0672762...

bors added a commit to rust-lang-ci/rust that referenced this pull request Mar 14, 2025
… r=petrochenkov

Don't attempt to export compiler-builtins symbols from rust dylibs

They are marked with hidden visibility to prevent them from getting exported, so we shouldn't ask the linker to export them anyway. The only thing that does it cause a warning on macOS.

Part of rust-lang#136096

cc `@jyn514`
@rust-log-analyzer

This comment has been minimized.

@bors

This comment was marked as resolved.

@bors bors added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. and removed S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. labels Mar 14, 2025
@petrochenkov petrochenkov added S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Mar 14, 2025
They are marked with hidden visibility to prevent them from getting
exported, so we shouldn't ask the linker to export them anyway. The only
thing that does it cause a warning on macOS.
@bjorn3 bjorn3 force-pushed the compiler_builtins_export_fix branch from d73479e to 63cfd47 Compare March 21, 2025 13:59
@rustbot
Copy link
Collaborator

rustbot commented Mar 21, 2025

Some changes occurred in compiler/rustc_codegen_ssa

cc @WaffleLapkin

Otherwise the linker complains about EC symbols missing when compiling
for arm64ec.
@bjorn3
Copy link
Member Author

bjorn3 commented Mar 21, 2025

@bors try

@bors
Copy link
Contributor

bors commented Mar 21, 2025

⌛ Trying commit 530ab61 with merge c49fce8...

bors added a commit to rust-lang-ci/rust that referenced this pull request Mar 21, 2025
… r=<try>

Don't attempt to export compiler-builtins symbols from rust dylibs

They are marked with hidden visibility to prevent them from getting exported, so we shouldn't ask the linker to export them anyway. The only thing that does it cause a warning on macOS.

Part of rust-lang#136096

cc `@jyn514`

try-job: dist-aarch64-msvc
@bors
Copy link
Contributor

bors commented Mar 21, 2025

☀️ Try build successful - checks-actions
Build commit: c49fce8 (c49fce8bb237fee5ec3d8a6289ef774115fbc66f)

@bjorn3
Copy link
Member Author

bjorn3 commented Mar 21, 2025

Looks like that did the trick.

@rustbot ready

@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. and removed S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. labels Mar 21, 2025
@petrochenkov
Copy link
Contributor

@bors r+

@bors
Copy link
Contributor

bors commented Mar 21, 2025

📌 Commit 530ab61 has been approved by petrochenkov

It is now in the queue for this repository.

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Mar 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-attributes Area: Attributes (`#[…]`, `#![…]`) S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants