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

Add a test case for #131164 #132036

Merged
merged 1 commit into from
Oct 24, 2024
Merged

Add a test case for #131164 #132036

merged 1 commit into from
Oct 24, 2024

Conversation

DianQK
Copy link
Member

@DianQK DianQK commented Oct 22, 2024

The upstream has already been fixed, but it won't be backported to LLVM 19.

r? jieyouxu or compiler

try-job: x86_64-gnu-stable

@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. labels Oct 22, 2024
@rustbot
Copy link
Collaborator

rustbot commented Oct 22, 2024

This PR modifies tests/run-make/. If this PR is trying to port a Makefile
run-make test to use rmake.rs, please update the
run-make port tracking issue
so we can track our progress. You can either modify the tracking issue
directly, or you can comment on the tracking issue and link this PR.

cc @jieyouxu

Copy link
Member

@jieyouxu jieyouxu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, you can r=me after PR CI is green.

@jieyouxu
Copy link
Member

@bors delegate+

@bors
Copy link
Contributor

bors commented Oct 22, 2024

✌️ @DianQK, you can now approve this pull request!

If @jieyouxu told you to "r=me" after making some further change, please make that change, then do @bors r=@jieyouxu

@jieyouxu
Copy link
Member

@bors r+ rollup

@bors
Copy link
Contributor

bors commented Oct 22, 2024

📌 Commit ff00622 has been approved by jieyouxu

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 Oct 22, 2024
matthiaskrgr added a commit to matthiaskrgr/rust that referenced this pull request Oct 22, 2024
Add a test case for rust-lang#131164

The upstream has already been fixed, but it won't be backported to LLVM 19.

r? jieyouxu or compiler
bors added a commit to rust-lang-ci/rust that referenced this pull request Oct 22, 2024
…iaskrgr

Rollup of 4 pull requests

Successful merges:

 - rust-lang#132002 (abi/compatibility: also test Option-like types)
 - rust-lang#132026 (analyse: remove unused uncanonicalized field)
 - rust-lang#132036 (Add a test case for rust-lang#131164)
 - rust-lang#132040 (relnotes: fix stabilizations of `assume_init`)

r? `@ghost`
`@rustbot` modify labels: rollup
@DianQK
Copy link
Member Author

DianQK commented Oct 22, 2024

#132042 (comment)
@bors r-

@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-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. labels Oct 22, 2024
@DianQK
Copy link
Member Author

DianQK commented Oct 23, 2024

Weird, I can’t reproduce it locally.

@bors try

@bors
Copy link
Contributor

bors commented Oct 23, 2024

⌛ Trying commit ff00622 with merge 3e8141c...

bors added a commit to rust-lang-ci/rust that referenced this pull request Oct 23, 2024
Add a test case for rust-lang#131164

The upstream has already been fixed, but it won't be backported to LLVM 19.

r? jieyouxu or compiler

try-job: x86_64-gnu-stable
@jieyouxu
Copy link
Member

jieyouxu commented Oct 23, 2024

@DianQK the directive //@ needs-rust-lld only checks if rust-lld is available I believe, whereas the test I think looks for ld, which is not always available, i.e. in the CI jobs that don't have it.

@jieyouxu
Copy link
Member

You may need to add a directive like //@ needs-ld which does a capability check (e.g. tries to run ld --version to check if ld is available or by other means) and conditionally runs the test if ld is in fact available.

@bors
Copy link
Contributor

bors commented Oct 23, 2024

☀️ Try build successful - checks-actions
Build commit: 3e8141c (3e8141cdb58a22154bcbe9f9db945688f8706c7a)

@DianQK
Copy link
Member Author

DianQK commented Oct 23, 2024

You may need to add a directive like //@ needs-ld which does a capability check (e.g. tries to run ld --version to check if ld is available or by other means) and conditionally runs the test if ld is in fact available.

I think ld is always available because this image has installed ld during installing g++.

@DianQK
Copy link
Member Author

DianQK commented Oct 23, 2024

Ah, I believe this is lld is unavailable. A simple way to reproduce it: remove lld in PATH then run gcc -fuse-ld=lld main.c.

@DianQK
Copy link
Member Author

DianQK commented Oct 23, 2024

Ah, I believe this is lld is unavailable. A simple way to reproduce it: remove lld in PATH then run gcc -fuse-ld=lld main.c.

Edit: I should pass -Clink-self-contained=+linker, see:

if self_contained_linker && !sess.opts.cg.link_self_contained.is_linker_disabled() {
let mut linker_path_exists = false;
for path in sess.get_tools_search_paths(false) {
let linker_path = path.join("gcc-ld");
linker_path_exists |= linker_path.exists();
cmd.cc_arg({
let mut arg = OsString::from("-B");
arg.push(linker_path);
arg
});
}
if !linker_path_exists {
// As a sanity check, we emit an error if none of these paths exist: we want
// self-contained linking and have no linker.
sess.dcx().emit_fatal(errors::SelfContainedLinkerMissing);
}
}
.

@jieyouxu
Copy link
Member

Cool, you can r=me after PR CI is green.

@jieyouxu
Copy link
Member

@bors rollup=iffy (linkers)

@DianQK
Copy link
Member Author

DianQK commented Oct 23, 2024

@bors r=@jieyouxu

@bors
Copy link
Contributor

bors commented Oct 23, 2024

📌 Commit 6570a6f has been approved by jieyouxu

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-author Status: This is awaiting some action (such as code changes or more information) from the author. labels Oct 23, 2024
fmease added a commit to fmease/rust that referenced this pull request Oct 23, 2024
Add a test case for rust-lang#131164

The upstream has already been fixed, but it won't be backported to LLVM 19.

r? jieyouxu or compiler

try-job: x86_64-gnu-stable
bors added a commit to rust-lang-ci/rust that referenced this pull request Oct 23, 2024
Rollup of 9 pull requests

Successful merges:

 - rust-lang#130991 (Vectorized SliceContains)
 - rust-lang#131928 (rustdoc: Document `markdown` module.)
 - rust-lang#131955 (Set `signext` or `zeroext` for integer arguments on RISC-V and LoongArch64)
 - rust-lang#131979 (Minor tweaks to `compare_impl_item.rs`)
 - rust-lang#132036 (Add a test case for rust-lang#131164)
 - rust-lang#132039 (Specialize `read_exact` and `read_buf_exact` for `VecDeque`)
 - rust-lang#132060 ("innermost", "outermost", "leftmost", and "rightmost" don't need hyphens)
 - rust-lang#132065 (Clarify documentation of `ptr::dangling()` function)
 - rust-lang#132066 (Fix a typo in documentation of `pointer::sub_ptr()`)

r? `@ghost`
`@rustbot` modify labels: rollup
@bors bors merged commit f3d4887 into rust-lang:master Oct 24, 2024
6 checks passed
@rustbot rustbot added this to the 1.84.0 milestone Oct 24, 2024
rust-timer added a commit to rust-lang-ci/rust that referenced this pull request Oct 24, 2024
Rollup merge of rust-lang#132036 - DianQK:test-131164, r=jieyouxu

Add a test case for rust-lang#131164

The upstream has already been fixed, but it won't be backported to LLVM 19.

r? jieyouxu or compiler

try-job: x86_64-gnu-stable
@DianQK DianQK deleted the test-131164 branch October 24, 2024 01:23
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 S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants