Skip to content

Remove outdated aarch64/arm64e clang selection workaround for Clang 18 - #165991

Draft
jieyouxu wants to merge 2 commits into
rust-lang:mainfrom
jieyouxu:jieyouxu/cleanup/remove-outdated-workaround
Draft

jieyouxu wants to merge 2 commits into
rust-lang:mainfrom
jieyouxu:jieyouxu/cleanup/remove-outdated-workaround

Conversation

@jieyouxu

@jieyouxu jieyouxu commented Nov 15, 2026 •

Copy link
Copy Markdown
Member

View all comments

This was introduced in #124850 to workaround clang 18 bug

There is a bug in Clang 18 that causes issues when building for Arm64 in later parts of the build (specifically libgit2). As a workaround, we will still use the pre-built Clang to build LLVM but will use MSVC for the rest of the Arm64 build.

cc #92948.

We don't use clang 18 anymore.

try-job: dist-aarch64-msvc

@rustbot rustbot added S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap) labels Nov 15, 2026
@jieyouxu

Copy link
Copy Markdown
Member Author

@bors try

rust-bors Bot pushed a commit that referenced this pull request Nov 15, 2026
…karound, r=<try>

Remove outdated aarch64/arm64e clang selection workaround for Clang 18

try-job: test-aarch64-*
@rust-bors

This comment has been minimized.

@rust-log-analyzer

This comment has been minimized.

@rust-bors

rust-bors Bot commented Nov 15, 2026

Copy link
Copy Markdown
Contributor

💔 Test for 553e731 failed: CI. Failed jobs:

@jieyouxu

Copy link
Copy Markdown
Member Author

@bors try

rust-bors Bot pushed a commit that referenced this pull request Nov 16, 2026
…karound, r=<try>

Remove outdated aarch64/arm64e clang selection workaround for Clang 18

try-job: test-aarch64-*
@rust-bors

This comment has been minimized.

@rust-bors

rust-bors Bot commented Nov 16, 2026

Copy link
Copy Markdown
Contributor

☀️ Try build successful (CI)
Build commit: c87360f (c87360fd2081ce6672cbedbee41c51d90d1efac6)
Base parent: c55b900 (c55b900aa3e4d23bb5628a00718304b31077d619)

@jieyouxu
jieyouxu marked this pull request as ready for review November 16, 2026 05:50
@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Nov 16, 2026
@rustbot rustbot removed the S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. label Nov 16, 2026
@rustbot

rustbot commented Nov 16, 2026

Copy link
Copy Markdown
Collaborator

r? @clubby789

rustbot has assigned @clubby789.
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

Why was this reviewer chosen?

The reviewer was selected based on:

  • Owners of files modified in this PR: bootstrap
  • bootstrap expanded to 6 candidates
  • Random selection from Mark-Simulacrum, clubby789

@clubby789

Copy link
Copy Markdown
Contributor

@bors r+ rollup

@rust-bors

rust-bors Bot commented Nov 19, 2026

Copy link
Copy Markdown
Contributor

📌 Commit 389aedd has been approved by clubby789

It is now in the queue for this repository.

@rust-bors rust-bors Bot 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 Nov 19, 2026
Zalathar added a commit to Zalathar/rust that referenced this pull request Nov 19, 2026
…utdated-workaround, r=clubby789

Remove outdated aarch64/arm64e clang selection workaround for Clang 18

This was introduced in rust-lang#124850 to workaround clang 18 bug

> There is a [bug in Clang 18](llvm/llvm-project#81849) that causes issues when building for Arm64 in later parts of the build (specifically `libgit2`). As a workaround, we will still use the pre-built Clang to build LLVM but will use MSVC for the rest of the Arm64 build.

cc rust-lang#92948.

We don't use clang 18 anymore.

try-job: test-aarch64-*
rust-bors Bot pushed a commit that referenced this pull request Nov 19, 2026
Rollup of 6 pull requests

Successful merges:

 - #165943 (Tweak "missing method on type available here" diagnostic)
 - #165321 (Add examples to Allocator methods)
 - #165851 (fix ICE when confirming invalid dyn method receivers)
 - #165991 (Remove outdated aarch64/arm64e clang selection workaround for Clang 18)
 - #166146 (Remove `#[allow(missing_docs)]` where possible)
 - #166165 (Fix spurious parallel frontend test failure + Fix link)
rust-bors Bot pushed a commit that referenced this pull request Nov 19, 2026
Rollup of 6 pull requests

Successful merges:

 - #165943 (Tweak "missing method on type available here" diagnostic)
 - #165321 (Add examples to Allocator methods)
 - #165851 (fix ICE when confirming invalid dyn method receivers)
 - #165991 (Remove outdated aarch64/arm64e clang selection workaround for Clang 18)
 - #166146 (Remove `#[allow(missing_docs)]` where possible)
 - #166165 (Fix spurious parallel frontend test failure + Fix link)
jhpratt added a commit to jhpratt/rust that referenced this pull request Nov 19, 2026
…utdated-workaround, r=clubby789

Remove outdated aarch64/arm64e clang selection workaround for Clang 18

This was introduced in rust-lang#124850 to workaround clang 18 bug

> There is a [bug in Clang 18](llvm/llvm-project#81849) that causes issues when building for Arm64 in later parts of the build (specifically `libgit2`). As a workaround, we will still use the pre-built Clang to build LLVM but will use MSVC for the rest of the Arm64 build.

cc rust-lang#92948.

We don't use clang 18 anymore.

try-job: test-aarch64-*
rust-bors Bot pushed a commit that referenced this pull request Nov 19, 2026
Rollup of 7 pull requests

Successful merges:

 - #165943 (Tweak "missing method on type available here" diagnostic)
 - #165321 (Add examples to Allocator methods)
 - #165851 (fix ICE when confirming invalid dyn method receivers)
 - #165991 (Remove outdated aarch64/arm64e clang selection workaround for Clang 18)
 - #166146 (Remove `#[allow(missing_docs)]` where possible)
 - #166165 (Fix spurious parallel frontend test failure + Fix link)
 - #166172 (Remove dead size assertion)
@Zalathar

Copy link
Copy Markdown
Member

@bors try jobs=dist-aarch64-msvc

@rust-bors

This comment has been minimized.

rust-bors Bot pushed a commit that referenced this pull request Nov 19, 2026
…karound, r=<try>

Remove outdated aarch64/arm64e clang selection workaround for Clang 18


try-job: dist-aarch64-msvc
@rust-bors rust-bors Bot added the S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. label Nov 19, 2026
@rust-bors

rust-bors Bot commented Nov 19, 2026

Copy link
Copy Markdown
Contributor

💔 Test for 866e10c failed: CI. Failed job:

@JonathanBrouwer

Copy link
Copy Markdown
Member

💔 I suspect this PR failed tests as part of a rollup
@bors r-

After fixing the problem, consider running a try job for the failed job before re-approving.

Link to failure: #166179 (comment)

@rust-bors rust-bors Bot removed the S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. label Nov 19, 2026
@rust-bors

rust-bors Bot commented Nov 19, 2026

Copy link
Copy Markdown
Contributor

This pull request was unapproved.

This PR was contained in a rollup (#166179), which was unapproved.

View changes since this unapproval

@jieyouxu
jieyouxu force-pushed the jieyouxu/cleanup/remove-outdated-workaround branch from 389aedd to 67da21c Compare November 21, 2026 10:26
@rustbot

rustbot commented Nov 21, 2026

Copy link
Copy Markdown
Collaborator

These commits modify the library/Cargo.lock file. Unintentional changes to library/Cargo.lock can be introduced when switching branches and rebasing PRs.

If this was unintentional then you should revert the changes before this PR is merged.
Otherwise, you can ignore this comment.

@rustbot

rustbot commented Nov 21, 2026

Copy link
Copy Markdown
Collaborator

This PR was rebased onto a different main commit. Here's a range-diff highlighting what actually changed.

Rebasing is a normal part of keeping PRs up to date, so no action is needed—this note is just to help reviewers.

@jieyouxu
jieyouxu marked this pull request as draft November 21, 2026 10:26
@jieyouxu

Copy link
Copy Markdown
Member Author

@bors try

@rust-bors

This comment has been minimized.

rust-bors Bot pushed a commit that referenced this pull request Nov 21, 2026
…karound, r=<try>

Remove outdated aarch64/arm64e clang selection workaround for Clang 18

try-job: dist-aarch64-msvc
@rust-log-analyzer

Copy link
Copy Markdown
Collaborator

The job test-tidy failed! Check out the build log: (web) (plain enhanced) (plain)

Click to see the possible cause of the failure (guessed by this bot)
#10 2.595 + mv node-v24.22.2-linux-x64 /node
#10 2.596 + /node/bin/node /node/bin/npm install --global yarn@1.22.22
#10 3.153 
#10 3.153 added 1 package in 486ms
#10 3.154 npm warn install-scripts 1 package has install scripts not yet covered by allowScripts:
#10 3.154 npm warn install-scripts   yarn@1.22.22 (preinstall: :; (node ./preinstall.js > /dev/null 2>&1 || true))
#10 3.154 npm warn install-scripts
#10 3.154 npm warn install-scripts Run `npm install -g --allow-scripts=yarn` to allow these scripts once, or `npm config set allow-scripts=yarn --location=user` to allow them for all global installs.
#10 3.156 npm notice
#10 3.156 npm notice New major version of npm available! 11.19.1 -> 12.2.3
#10 3.156 npm notice Changelog: https://github.com/npm/cli/releases/tag/v12.2.3
#10 3.156 npm notice To update run: npm install -g npm@12.2.3
#10 3.156 npm notice
---
[TIMING:end] format::InternalRustfmt {  } -- 12.904
fmt: checked 7462 files
tidy check
x.py completions check
tidy [extdeps]: invalid source: "git+https://github.com/jieyouxu/cc-rs?branch=jieyouxu%2Ffix%2Farm64ec-explicit-machine#1c6d2598894da3034265cc4f170b89a2e7841e63"
tidy [extdeps]: invalid source: "git+https://github.com/jieyouxu/cc-rs?branch=jieyouxu%2Ffix%2Farm64ec-explicit-machine#1c6d2598894da3034265cc4f170b89a2e7841e63"
tidy [extdeps]: FAIL
tidy [rustdoc_json (src)]: `rustdoc-json-types` modified, checking format version
tidy: Skipping binary file check, read-only filesystem
removing old virtual environment
creating virtual environment at '/checkout/obj/build/venv' using 'python3.12' and 'venv'
Requirement already satisfied: pip in ./build/venv/lib/python3.12/site-packages (24.0)
---
typechecking javascript files
tidy: The following check failed: extdeps
Bootstrap failed while executing `test src/tools/tidy tidyselftest --extra-checks=py,cpp,js,spellcheck`
Currently active steps:
test::Tidy {  } at src/bootstrap/src/core/build_steps/test.rs:1744
Command `/checkout/obj/build/x86_64-unknown-linux-gnu/stage1-tools-bin/rust-tidy --root-path=/checkout --cargo-path=/checkout/obj/build/x86_64-unknown-linux-gnu/stage0/bin/cargo --output-dir=/checkout/obj/build --concurrency=4 --npm-path=/node/bin/yarn --ci=true --extra-checks=py,cpp,js,spellcheck` failed with exit code 1
Created at: src/bootstrap/src/core/build_steps/tool.rs:1668:23
Executed at: src/bootstrap/src/core/build_steps/test.rs:1829:24

Command has failed. Rerun with -v to see more details.
Build completed unsuccessfully in 0:02:38
  local time: Sat Nov 21 10:33:33 UTC 2026
  network time: Sat, 21 Nov 2026 10:33:33 GMT
##[error]Process completed with exit code 1.
##[group]Run echo "disk usage:"

@rust-bors

rust-bors Bot commented Nov 21, 2026

Copy link
Copy Markdown
Contributor

☀️ Try build successful (CI)
Build commit: 2899a1a (2899a1a22d636a80be3c90c5280830c9e20954d3)
Base parent: c7d5ba5 (c7d5ba59d8e11ee2e2204b173458eec4cb41c973)

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants