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

rustc.exe -vV didn't exit successfully (exit code: 0xc000007b) on i686-pc-windows-gnu #136795

Open
tgross35 opened this issue Feb 9, 2025 · 6 comments · Fixed by #136815
Open
Labels
C-bug Category: This is a bug. I-crash Issue: The compiler crashes (SIGSEGV, SIGABRT, etc). Use I-ICE instead when the compiler panics. O-windows-gnu Toolchain: GNU, Operating system: Windows O-x86_32 Target: x86 processors, 32 bit (like i686-*) P-high High priority regression-from-stable-to-nightly Performance or correctness regression from stable to nightly. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.

Comments

@tgross35
Copy link
Contributor

tgross35 commented Feb 9, 2025

I am seeing a new CI failure with the latest nightly rust version 1.86.0-nightly (43ca9d18e 2025-02-08):

 + cargo check -p libm --no-default-features
error: process didn't exit successfully: `C:\Users\runneradmin\.rustup\toolchains\nightly-i686-pc-windows-gnu\bin\rustc.exe -vV` (exit code: 0xc000007b)

rust version 1.86.0-nightly (43ca9d18e 2025-02-08) works correctly.

This happened attempting to build the libm crate; however, it looks like this is just failing to run rustc.exe -vV so it doesn't seem crate-specific. I am still investigating, some work at rust-lang/libm#506.

@tgross35 tgross35 added C-bug Category: This is a bug. I-crash Issue: The compiler crashes (SIGSEGV, SIGABRT, etc). Use I-ICE instead when the compiler panics. O-windows-gnu Toolchain: GNU, Operating system: Windows labels Feb 9, 2025
@rustbot rustbot added the needs-triage This issue may need triage. Remove it if it has been sufficiently triaged. label Feb 9, 2025
@tgross35 tgross35 added S-needs-repro Status: This issue has no reproduction and needs a reproduction to make progress. and removed needs-triage This issue may need triage. Remove it if it has been sufficiently triaged. labels Feb 9, 2025
@tgross35
Copy link
Contributor Author

tgross35 commented Feb 9, 2025

@tgross35
Copy link
Contributor Author

tgross35 commented Feb 9, 2025

tgross35 added a commit to tgross35/rust-libm that referenced this issue Feb 10, 2025
Pin i686-pc-windows-gnu to nightly-2025-02-07 until [1] is resolved.

[1]: rust-lang/rust#136795
@tgross35
Copy link
Contributor Author

Reproduces just running rustc -vV with an i686-pc-windows-gnu host toolchain.

@rustbot label -S-needs-repro

@rustbot rustbot removed the S-needs-repro Status: This issue has no reproduction and needs a reproduction to make progress. label Feb 10, 2025
tgross35 added a commit to tgross35/rust-libm that referenced this issue Feb 10, 2025
Pin i686-pc-windows-gnu to nightly-2025-02-07 until [1] is resolved.

[1]: rust-lang/rust#136795
tgross35 added a commit to tgross35/rust-libm that referenced this issue Feb 10, 2025
Pin i686-pc-windows-gnu to nightly-2025-02-07 until [1] is resolved.

[1]: rust-lang/rust#136795
tgross35 added a commit to tgross35/rust-libm that referenced this issue Feb 10, 2025
Pin i686-pc-windows-gnu to nightly-2025-02-07 until [1] is resolved.

[1]: rust-lang/rust#136795
tgross35 added a commit to tgross35/rust-libm that referenced this issue Feb 10, 2025
Pin i686-pc-windows-gnu to nightly-2025-02-07 until [1] is resolved.

[1]: rust-lang/rust#136795
tgross35 added a commit to tgross35/rust-libm that referenced this issue Feb 10, 2025
Pin i686-pc-windows-gnu to nightly-2025-02-07 until [1] is resolved.

[1]: rust-lang/rust#136795
tgross35 added a commit to tgross35/rust-libm that referenced this issue Feb 10, 2025
Pin i686-pc-windows-gnu to nightly-2025-02-07 until [1] is resolved.

[1]: rust-lang/rust#136795
tgross35 added a commit to rust-lang/libm that referenced this issue Feb 10, 2025
Pin i686-pc-windows-gnu to nightly-2025-02-07 until [1] is resolved.

[1]: rust-lang/rust#136795
@jieyouxu jieyouxu added regression-from-stable-to-nightly Performance or correctness regression from stable to nightly. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. labels Feb 10, 2025
@rustbot rustbot added the I-prioritize Issue: Indicates that prioritization has been requested for this issue. label Feb 10, 2025
bors added a commit to rust-lang-ci/rust that referenced this issue Feb 10, 2025
Do install msys2 in CI explicitly

Reverts rust-lang#136588.
Only papers over rust-lang#136795, but the root cause needs to be investigated (likely a bug in how `i686-pc-windows-gnu` is built?).

Seems like for whatever reason the msys2 installation here is needed for the 32-bit `i686-pc-windows-gnu` target, otherwise `rustc` distributed for that target seems to link against the 64-bit `libwinpthread-1.dll` and such. This revert is mostly just to buy time to investigate without having to debug why the build logic for the 32-bit windows-gnu target is wrong.

This reverts commit e060723, reversing changes made to a9e7b30.

r? infra
cc `@ChrisDenton` `@mati865`

try-job: dist-x86_64-msvc
try-job: dist-i686-msvc
try-job: dist-aarch64-msvc
try-job: dist-i686-mingw
try-job: dist-x86_64-mingw
try-job: dist-x86_64-msvc-alt
@ChrisDenton
Copy link
Member

From my testing it looks to me like something is forcing /mingw64/bin:/usr/bin:/c/Users/runneradmin/bin to be at the front of PATH. Even if we prepend other paths then it looks like these two get moved up front.

bors added a commit to rust-lang-ci/rust that referenced this issue Feb 10, 2025
Prevent Git4Win from prepending its bin directory to `PATH`

We used to do this along time ago but we stopped doing it when we started installing msys2 manually. https://github.com/rust-lang/rust/blob/4fd3cf96a1db7771ef4f332b9eb1ad17fa0fd091/src/ci/scripts/install-msys2.sh#L11-L13

Fixes rust-lang#136795

try-job: dist-i686-mingw
@apiraino
Copy link
Contributor

WG-prioritization assigning priority (Zulip discussion).

@rustbot label -I-prioritize +P-high

@rustbot rustbot added P-high High priority and removed I-prioritize Issue: Indicates that prioritization has been requested for this issue. labels Feb 10, 2025
@workingjubilee workingjubilee added the O-x86_32 Target: x86 processors, 32 bit (like i686-*) label Feb 10, 2025
taiki-e added a commit to taiki-e/portable-atomic that referenced this issue Feb 11, 2025
taiki-e added a commit to taiki-e/portable-atomic that referenced this issue Feb 11, 2025
tgross35 added a commit to tgross35/compiler-builtins that referenced this issue Feb 18, 2025
Pin i686-pc-windows-gnu to nightly-2025-02-07 until [1] is resolved.

[1]: rust-lang/rust#136795
matthiaskrgr added a commit to matthiaskrgr/rust that referenced this issue Feb 19, 2025
CI: Stop /msys64/bin from being prepended to PATH in msys2 shell

We used to do this along time ago but we stopped doing it when we started installing msys2 manually. https://github.com/rust-lang/rust/blob/4fd3cf96a1db7771ef4f332b9eb1ad17fa0fd091/src/ci/scripts/install-msys2.sh#L11-L13

Fixes rust-lang#136795

try-job: dist-i686-mingw
tgross35 added a commit to rust-lang/compiler-builtins that referenced this issue Feb 19, 2025
Pin i686-pc-windows-gnu to nightly-2025-02-07 until [1] is resolved.

[1]: rust-lang/rust#136795
@bors bors closed this as completed in 40379e2 Feb 20, 2025
rust-timer added a commit to rust-lang-ci/rust that referenced this issue Feb 20, 2025
Rollup merge of rust-lang#136815 - ChrisDenton:fix-mingw-ci, r=Kobzol

CI: Stop /msys64/bin from being prepended to PATH in msys2 shell

We used to do this along time ago but we stopped doing it when we started installing msys2 manually. https://github.com/rust-lang/rust/blob/4fd3cf96a1db7771ef4f332b9eb1ad17fa0fd091/src/ci/scripts/install-msys2.sh#L11-L13

Fixes rust-lang#136795

try-job: dist-i686-mingw
@jieyouxu
Copy link
Member

Reopening to track beta backport nomination of #136815

@jieyouxu jieyouxu reopened this Mar 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: This is a bug. I-crash Issue: The compiler crashes (SIGSEGV, SIGABRT, etc). Use I-ICE instead when the compiler panics. O-windows-gnu Toolchain: GNU, Operating system: Windows O-x86_32 Target: x86 processors, 32 bit (like i686-*) P-high High priority regression-from-stable-to-nightly Performance or correctness regression from stable to nightly. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants