Skip to content

[do not merge] Preparation for LLD stabilization #138645

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

Draft
wants to merge 16 commits into
base: master
Choose a base branch
from

Conversation

Kobzol
Copy link
Contributor

@Kobzol Kobzol commented Mar 18, 2025

This PR serves for testing test changes for stabilizing LLD.

CC @lqd

r? @ghost

try-job: dist-x86_64-linux

@rustbot rustbot added A-run-make Area: port run-make Makefiles to rmake.rs S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. 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. labels Mar 18, 2025
@rust-log-analyzer

This comment has been minimized.

@Kobzol Kobzol force-pushed the stabilize-lld-test branch from 549454f to 80cbbeb Compare March 18, 2025 07:30
@Kobzol
Copy link
Contributor Author

Kobzol commented Mar 18, 2025

@bors try

bors added a commit to rust-lang-ci/rust that referenced this pull request Mar 18, 2025
[do not merge] Preparation for LLD stabilization

This PR serves for testing test changes for stabilizing LLD.

CC `@lqd`

r? `@ghost`

try-job: dist-x86_64-linux
@bors
Copy link
Collaborator

bors commented Mar 18, 2025

⌛ Trying commit 80cbbeb with merge 8a4821f...

@bors
Copy link
Collaborator

bors commented Mar 19, 2025

☀️ Try build successful - checks-actions
Build commit: 8a4821f (8a4821f34179797445396b9696f039281dd55f84)

@Kobzol Kobzol force-pushed the stabilize-lld-test branch 3 times, most recently from 24fc786 to fd52515 Compare March 19, 2025 16:34
@rust-log-analyzer

This comment has been minimized.

@Kobzol Kobzol force-pushed the stabilize-lld-test branch from fd52515 to 94b7099 Compare March 19, 2025 16:47
@Kobzol Kobzol force-pushed the stabilize-lld-test branch from 94b7099 to a4eb811 Compare March 19, 2025 18:57
@bors
Copy link
Collaborator

bors commented Mar 25, 2025

☔ The latest upstream changes (presumably #138865) made this pull request unmergeable. Please resolve the merge conflicts.

@Kobzol Kobzol force-pushed the stabilize-lld-test branch from c8d2fe7 to 2cb937d Compare April 3, 2025 12:54
@rust-log-analyzer

This comment has been minimized.

@Kobzol Kobzol force-pushed the stabilize-lld-test branch from 2cb937d to 77fb451 Compare April 3, 2025 13:39
Zalathar added a commit to Zalathar/rust that referenced this pull request Apr 4, 2025
…eyouxu

Add helper function for checking LLD usage to `run-make-support`

Extracted out of rust-lang#138645, should be a simple refactoring.

r? `@jieyouxu`
matthiaskrgr added a commit to matthiaskrgr/rust that referenced this pull request Apr 4, 2025
…eyouxu

Add helper function for checking LLD usage to `run-make-support`

Extracted out of rust-lang#138645, should be a simple refactoring.

r? ``@jieyouxu``
rust-timer added a commit to rust-lang-ci/rust that referenced this pull request Apr 4, 2025
Rollup merge of rust-lang#139322 - Kobzol:run-make-lld-refactor, r=jieyouxu

Add helper function for checking LLD usage to `run-make-support`

Extracted out of rust-lang#138645, should be a simple refactoring.

r? ``@jieyouxu``
@bors
Copy link
Collaborator

bors commented Apr 4, 2025

☔ The latest upstream changes (presumably #139354) made this pull request unmergeable. Please resolve the merge conflicts.

@lqd lqd self-assigned this Apr 4, 2025
@lqd lqd force-pushed the stabilize-lld-test branch from 77fb451 to 75587e7 Compare April 4, 2025 14:00
@lqd lqd force-pushed the stabilize-lld-test branch from cf94827 to 49cabaa Compare April 4, 2025 18:47
@lqd
Copy link
Member

lqd commented Apr 4, 2025

Might as well @bors try

@bors
Copy link
Collaborator

bors commented Apr 4, 2025

⌛ Trying commit 49cabaa with merge 0c623eb...

bors added a commit to rust-lang-ci/rust that referenced this pull request Apr 4, 2025
[do not merge] Preparation for LLD stabilization

This PR serves for testing test changes for stabilizing LLD.

CC `@lqd`

r? `@ghost`

try-job: dist-x86_64-linux
@bors
Copy link
Collaborator

bors commented Apr 4, 2025

☀️ Try build successful - checks-actions
Build commit: 0c623eb (0c623eb581ae54ed553869852e1d1b3bf0bb6a82)

Kobzol and others added 16 commits April 25, 2025 15:48
And remove the previous beta/stable/nightly LLD tests.
…+]lld`

- separate enabling and disabling the feature in the error
- add both polarities to the dedicated test
- update documentation and precondition
…atures`

- to show the enabled and disabled unstable features in the error
move the unstable `-Clinker-features` documentation to
the stable book, as there's only a single feature, and it is now stable
now that it's been stabilized, beta and stage1 need to use different
flags (-C vs -Z)
@lqd lqd force-pushed the stabilize-lld-test branch from 49cabaa to 5d920a3 Compare April 25, 2025 15:53
@rustbot rustbot added the A-testsuite Area: The testsuite used to check the correctness of rustc label Apr 25, 2025
@lqd
Copy link
Member

lqd commented Apr 25, 2025

@bors try

bors added a commit to rust-lang-ci/rust that referenced this pull request Apr 25, 2025
[do not merge] Preparation for LLD stabilization

This PR serves for testing test changes for stabilizing LLD.

CC `@lqd`

r? `@ghost`

try-job: dist-x86_64-linux
@bors
Copy link
Collaborator

bors commented Apr 25, 2025

⌛ Trying commit 5d920a3 with merge f88e20107e2356d368ffcc8c3e225e7e7e1f6d4a...

@rust-log-analyzer
Copy link
Collaborator

The job dist-x86_64-linux failed! Check out the build log: (web) (plain)

Click to see the possible cause of the failure (guessed by this bot)
file:.git/config remote.origin.url=https://github.com/rust-lang-ci/rust
file:.git/config remote.origin.fetch=+refs/heads/*:refs/remotes/origin/*
file:.git/config gc.auto=0
file:.git/config http.https://github.com/.extraheader=AUTHORIZATION: basic ***
file:.git/config branch.try.remote=origin
file:.git/config branch.try.merge=refs/heads/try
file:.git/config submodule.library/backtrace.active=true
file:.git/config submodule.library/backtrace.url=https://github.com/rust-lang/backtrace-rs.git
file:.git/config submodule.library/stdarch.active=true
file:.git/config submodule.library/stdarch.url=https://github.com/rust-lang/stdarch.git
file:.git/config submodule.src/doc/book.active=true
---
##[group]Building compiler artifacts (stage1 -> stage2, x86_64-unknown-linux-gnu)
error: failed to run `rustc` to learn about target-specific information

Caused by:
  process didn't exit successfully: `/checkout/obj/build/bootstrap/debug/rustc /checkout/obj/build/bootstrap/debug/rustc - --crate-name ___ --print=file-names --crate-type bin --crate-type rlib --crate-type dylib --crate-type cdylib --crate-type staticlib --crate-type proc-macro --print=sysroot --print=split-debuginfo --print=crate-name --print=cfg -Wwarnings` (exit status: 1)
  --- stderr
  error: unknown unstable option: `linker-features`

  [RUSTC-TIMING] ___ test:false 0.010
Build completed unsuccessfully in 0:07:50
---
Caused by:
    Command RUST_BACKTRACE=full python3 /checkout/x.py build --target x86_64-unknown-linux-gnu --host x86_64-unknown-linux-gnu --stage 2 library/std --rust-profile-generate /tmp/tmp-multistage/opt-artifacts/rustc-pgo --set llvm.thin-lto=false --set llvm.link-shared=true [at /checkout/obj] has failed with exit code Some(1)

Stack backtrace:
   0: <anyhow::Error>::msg::<alloc::string::String>
             at /rust/deps/anyhow-1.0.97/src/backtrace.rs:27:14
   1: <opt_dist::exec::CmdBuilder>::run
             at /rustc/f88e20107e2356d368ffcc8c3e225e7e7e1f6d4a/src/tools/opt-dist/src/exec.rs:80:17
   2: <opt_dist::exec::Bootstrap>::run
             at /rustc/f88e20107e2356d368ffcc8c3e225e7e7e1f6d4a/src/tools/opt-dist/src/exec.rs:181:9
   3: opt_dist::execute_pipeline::{closure#1}::{closure#0}
             at /rustc/f88e20107e2356d368ffcc8c3e225e7e7e1f6d4a/src/tools/opt-dist/src/main.rs:230:13
   4: <opt_dist::timer::TimerSection>::section::<opt_dist::execute_pipeline::{closure#1}::{closure#0}, ()>
             at /rustc/f88e20107e2356d368ffcc8c3e225e7e7e1f6d4a/src/tools/opt-dist/src/timer.rs:111:22
   5: opt_dist::execute_pipeline::{closure#1}
             at /rustc/f88e20107e2356d368ffcc8c3e225e7e7e1f6d4a/src/tools/opt-dist/src/main.rs:219:9
   6: <opt_dist::timer::TimerSection>::section::<opt_dist::execute_pipeline::{closure#1}, opt_dist::training::RustcPGOProfile>
             at /rustc/f88e20107e2356d368ffcc8c3e225e7e7e1f6d4a/src/tools/opt-dist/src/timer.rs:111:22
   7: opt_dist::execute_pipeline
             at /rustc/f88e20107e2356d368ffcc8c3e225e7e7e1f6d4a/src/tools/opt-dist/src/main.rs:216:29
   8: opt_dist::main
             at /rustc/f88e20107e2356d368ffcc8c3e225e7e7e1f6d4a/src/tools/opt-dist/src/main.rs:416:18
   9: <fn() -> core::result::Result<(), anyhow::Error> as core::ops::function::FnOnce<()>>::call_once
             at /rustc/45165c82a4c5315ff52c391ad138f41ff40b52d8/library/core/src/ops/function.rs:250:5
  10: std::sys::backtrace::__rust_begin_short_backtrace::<fn() -> core::result::Result<(), anyhow::Error>, core::result::Result<(), anyhow::Error>>
             at /rustc/45165c82a4c5315ff52c391ad138f41ff40b52d8/library/std/src/sys/backtrace.rs:152:18
  11: std::rt::lang_start::<core::result::Result<(), anyhow::Error>>::{closure#0}
             at /rustc/45165c82a4c5315ff52c391ad138f41ff40b52d8/library/std/src/rt.rs:199:18
  12: core::ops::function::impls::<impl core::ops::function::FnOnce<A> for &F>::call_once
             at /rustc/45165c82a4c5315ff52c391ad138f41ff40b52d8/library/core/src/ops/function.rs:284:13
  13: std::panicking::try::do_call
             at /rustc/45165c82a4c5315ff52c391ad138f41ff40b52d8/library/std/src/panicking.rs:589:40
  14: std::panicking::try
             at /rustc/45165c82a4c5315ff52c391ad138f41ff40b52d8/library/std/src/panicking.rs:552:19

@bors
Copy link
Collaborator

bors commented Apr 25, 2025

💔 Test failed - checks-actions

@bors bors 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 Apr 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-run-make Area: port run-make Makefiles to rmake.rs A-testsuite Area: The testsuite used to check the correctness of rustc 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) 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.

5 participants