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

cargo clippy with clippy-preview not working with stable-i686-pc-windows-msvc (exit code 3221225477) #3202

Closed
ncoish opened this issue Sep 20, 2018 · 8 comments
Labels
I-ICE Issue: Clippy panicked, giving an Internal Compilation Error (ICE) ❄️

Comments

@ncoish
Copy link

ncoish commented Sep 20, 2018

With the new clippy-preview I can run cargo clippy on my projects with no issue using the stable-x86_64-pc-windows-msvc toolchain, but if I try to use stable-i686-pc-windows-msvc I get the following errors as it tries to check dependencies:

$ cargo clippy
    Checking winapi v0.2.8
    Checking nodrop v0.1.12
    Checking lazy_static v1.0.2
    Checking scopeguard v0.3.3
    Checking byteorder v1.2.3
    Checking libc v0.2.42
    Checking slab v0.4.0
    Checking futures v0.1.23
error: Could not compile `nodrop`.
warning: build failed, waiting for other jobs to finish...
error: Could not compile `scopeguard`.
warning: build failed, waiting for other jobs to finish...
error: Could not compile `lazy_static`.
warning: build failed, waiting for other jobs to finish...
error: Could not compile `slab`.
warning: build failed, waiting for other jobs to finish...
error: Could not compile `libc`.
warning: build failed, waiting for other jobs to finish...
error: Could not compile `byteorder`.
warning: build failed, waiting for other jobs to finish...
error: Could not compile `futures`.
warning: build failed, waiting for other jobs to finish...
error: Could not compile `winapi`.

The verbose output is:

$ cargo clippy --verbose
       Fresh winapi-build v0.1.1
    Checking nodrop v0.1.12
    Checking winapi v0.2.8
       Fresh cfg-if v0.1.4
       Fresh memoffset v0.2.1
    Checking lazy_static v1.0.2
     Running `C:\Users\NCoish\.rustup\toolchains\stable-i686-pc-windows-msvc\bin\clippy-driver.exe rustc --crate-name nodrop 'C:\Users\NCoish\.cargo\registry\src\github.com-1ecc6299db9ec823\nodrop-0.1.12\src\lib.rs' --crate-type lib --emit=dep-info,metadata -C debuginfo=2 -C metadata=b760c96e2173e7fd -C extra-filename=-b760c96e2173e7fd --out-dir 'C:\Users\NCoish\sdk5-group\sdk5\giles\target\debug\deps' -L 'dependency=C:\Users\NCoish\sdk5-group\sdk5\giles\target\debug\deps' --cap-lints allow`
     Running `C:\Users\NCoish\.rustup\toolchains\stable-i686-pc-windows-msvc\bin\clippy-driver.exe rustc --crate-name winapi 'C:\Users\NCoish\.cargo\registry\src\github.com-1ecc6299db9ec823\winapi-0.2.8\src\lib.rs' --crate-type lib --emit=dep-info,metadata -C debuginfo=2 -C metadata=2b3652cf895fbe3e -C extra-filename=-2b3652cf895fbe3e --out-dir 'C:\Users\NCoish\sdk5-group\sdk5\giles\target\debug\deps' -L 'dependency=C:\Users\NCoish\sdk5-group\sdk5\giles\target\debug\deps' --cap-lints allow`
    Checking byteorder v1.2.3
       Fresh version_check v0.1.4
    Checking scopeguard v0.3.3
    Checking lazycell v0.6.0
    Checking libc v0.2.42
     Running `C:\Users\NCoish\.rustup\toolchains\stable-i686-pc-windows-msvc\bin\clippy-driver.exe rustc --crate-name lazy_static 'C:\Users\NCoish\.cargo\registry\src\github.com-1ecc6299db9ec823\lazy_static-1.0.2\src\lib.rs' --crate-type lib --emit=dep-info,metadata -C debuginfo=2 -C metadata=d9c3890184683214 -C extra-filename=-d9c3890184683214 --out-dir 'C:\Users\NCoish\sdk5-group\sdk5\giles\target\debug\deps' -L 'dependency=C:\Users\NCoish\sdk5-group\sdk5\giles\target\debug\deps' --cap-lints allow`
     Running `C:\Users\NCoish\.rustup\toolchains\stable-i686-pc-windows-msvc\bin\clippy-driver.exe rustc --crate-name byteorder 'C:\Users\NCoish\.cargo\registry\src\github.com-1ecc6299db9ec823\byteorder-1.2.3\src\lib.rs' --crate-type lib --emit=dep-info,metadata -C debuginfo=2 --cfg 'feature="default"' --cfg 'feature="std"' -C metadata=bd41702ccd348a9e -C extra-filename=-bd41702ccd348a9e --out-dir 'C:\Users\NCoish\sdk5-group\sdk5\giles\target\debug\deps' -L 'dependency=C:\Users\NCoish\sdk5-group\sdk5\giles\target\debug\deps' --cap-lints allow`
    Checking slab v0.4.0
     Running `C:\Users\NCoish\.rustup\toolchains\stable-i686-pc-windows-msvc\bin\clippy-driver.exe rustc --crate-name scopeguard 'C:\Users\NCoish\.cargo\registry\src\github.com-1ecc6299db9ec823\scopeguard-0.3.3\src\lib.rs' --crate-type lib --emit=dep-info,metadata -C debuginfo=2 -C metadata=7d9f037997ed0cc0 -C extra-filename=-7d9f037997ed0cc0 --out-dir 'C:\Users\NCoish\sdk5-group\sdk5\giles\target\debug\deps' -L 'dependency=C:\Users\NCoish\sdk5-group\sdk5\giles\target\debug\deps' --cap-lints allow`
     Running `C:\Users\NCoish\.rustup\toolchains\stable-i686-pc-windows-msvc\bin\clippy-driver.exe rustc --crate-name lazycell 'C:\Users\NCoish\.cargo\registry\src\github.com-1ecc6299db9ec823\lazycell-0.6.0\src\lib.rs' --crate-type lib --emit=dep-info,metadata -C debuginfo=2 -C metadata=18cf9cc08cfdb9b9 -C extra-filename=-18cf9cc08cfdb9b9 --out-dir 'C:\Users\NCoish\sdk5-group\sdk5\giles\target\debug\deps' -L 'dependency=C:\Users\NCoish\sdk5-group\sdk5\giles\target\debug\deps' --cap-lints allow`
     Running `C:\Users\NCoish\.rustup\toolchains\stable-i686-pc-windows-msvc\bin\clippy-driver.exe rustc --crate-name libc 'C:\Users\NCoish\.cargo\registry\src\github.com-1ecc6299db9ec823\libc-0.2.42\src\lib.rs' --crate-type lib --emit=dep-info,metadata -C debuginfo=2 --cfg 'feature="default"' --cfg 'feature="use_std"' -C metadata=e5c6432a7375ce6b -C extra-filename=-e5c6432a7375ce6b --out-dir 'C:\Users\NCoish\sdk5-group\sdk5\giles\target\debug\deps' -L 'dependency=C:\Users\NCoish\sdk5-group\sdk5\giles\target\debug\deps' --cap-lints allow`
     Running `C:\Users\NCoish\.rustup\toolchains\stable-i686-pc-windows-msvc\bin\clippy-driver.exe rustc --crate-name slab 'C:\Users\NCoish\.cargo\registry\src\github.com-1ecc6299db9ec823\slab-0.4.0\src\lib.rs' --crate-type lib --emit=dep-info,metadata -C debuginfo=2 -C metadata=b446210c68018ae1 -C extra-filename=-b446210c68018ae1 --out-dir 'C:\Users\NCoish\sdk5-group\sdk5\giles\target\debug\deps' -L 'dependency=C:\Users\NCoish\sdk5-group\sdk5\giles\target\debug\deps' --cap-lints allow`
error: Could not compile `nodrop`.

Caused by:
  process didn't exit successfully: `C:\Users\NCoish\.rustup\toolchains\stable-i686-pc-windows-msvc\bin\clippy-driver.exe rustc --crate-name nodrop 'C:\Users\NCoish\.cargo\registry\src\github.com-1ecc6299db9ec823\nodrop-0.1.12\src\lib.rs' --crate-type lib --emit=dep-info,metadata -C debuginfo=2 -C metadata=b760c96e2173e7fd -C extra-filename=-b760c96e2173e7fd --out-dir 'C:\Users\NCoish\sdk5-group\sdk5\giles\target\debug\deps' -L 'dependency=C:\Users\NCoish\sdk5-group\sdk5\giles\target\debug\deps' --cap-lints allow` (exit code: 3221225477)
warning: build failed, waiting for other jobs to finish...
error: Could not compile `scopeguard`.

Caused by:
  process didn't exit successfully: `C:\Users\NCoish\.rustup\toolchains\stable-i686-pc-windows-msvc\bin\clippy-driver.exe rustc --crate-name scopeguard 'C:\Users\NCoish\.cargo\registry\src\github.com-1ecc6299db9ec823\scopeguard-0.3.3\src\lib.rs' --crate-type lib --emit=dep-info,metadata -C debuginfo=2 -C metadata=7d9f037997ed0cc0 -C extra-filename=-7d9f037997ed0cc0 --out-dir 'C:\Users\NCoish\sdk5-group\sdk5\giles\target\debug\deps' -L 'dependency=C:\Users\NCoish\sdk5-group\sdk5\giles\target\debug\deps' --cap-lints allow` (exit code: 3221225477)
warning: build failed, waiting for other jobs to finish...
error: Could not compile `slab`.

Caused by:
  process didn't exit successfully: `C:\Users\NCoish\.rustup\toolchains\stable-i686-pc-windows-msvc\bin\clippy-driver.exe rustc --crate-name slab 'C:\Users\NCoish\.cargo\registry\src\github.com-1ecc6299db9ec823\slab-0.4.0\src\lib.rs' --crate-type lib --emit=dep-info,metadata -C debuginfo=2 -C metadata=b446210c68018ae1 -C extra-filename=-b446210c68018ae1 --out-dir 'C:\Users\NCoish\sdk5-group\sdk5\giles\target\debug\deps' -L 'dependency=C:\Users\NCoish\sdk5-group\sdk5\giles\target\debug\deps' --cap-lints allow` (exit code: 3221225477)
warning: build failed, waiting for other jobs to finish...
error: Could not compile `libc`.

Caused by:
  process didn't exit successfully: `C:\Users\NCoish\.rustup\toolchains\stable-i686-pc-windows-msvc\bin\clippy-driver.exe rustc --crate-name libc 'C:\Users\NCoish\.cargo\registry\src\github.com-1ecc6299db9ec823\libc-0.2.42\src\lib.rs' --crate-type lib --emit=dep-info,metadata -C debuginfo=2 --cfg 'feature="default"' --cfg 'feature="use_std"' -C metadata=e5c6432a7375ce6b -C extra-filename=-e5c6432a7375ce6b --out-dir 'C:\Users\NCoish\sdk5-group\sdk5\giles\target\debug\deps' -L 'dependency=C:\Users\NCoish\sdk5-group\sdk5\giles\target\debug\deps' --cap-lints allow` (exit code: 3221225477)
warning: build failed, waiting for other jobs to finish...
error: Could not compile `lazycell`.

Caused by:
  process didn't exit successfully: `C:\Users\NCoish\.rustup\toolchains\stable-i686-pc-windows-msvc\bin\clippy-driver.exe rustc --crate-name lazycell 'C:\Users\NCoish\.cargo\registry\src\github.com-1ecc6299db9ec823\lazycell-0.6.0\src\lib.rs' --crate-type lib --emit=dep-info,metadata -C debuginfo=2 -C metadata=18cf9cc08cfdb9b9 -C extra-filename=-18cf9cc08cfdb9b9 --out-dir 'C:\Users\NCoish\sdk5-group\sdk5\giles\target\debug\deps' -L 'dependency=C:\Users\NCoish\sdk5-group\sdk5\giles\target\debug\deps' --cap-lints allow` (exit code: 3221225477)
warning: build failed, waiting for other jobs to finish...
error: Could not compile `byteorder`.

Caused by:
  process didn't exit successfully: `C:\Users\NCoish\.rustup\toolchains\stable-i686-pc-windows-msvc\bin\clippy-driver.exe rustc --crate-name byteorder 'C:\Users\NCoish\.cargo\registry\src\github.com-1ecc6299db9ec823\byteorder-1.2.3\src\lib.rs' --crate-type lib --emit=dep-info,metadata -C debuginfo=2 --cfg 'feature="default"' --cfg 'feature="std"' -C metadata=bd41702ccd348a9e -C extra-filename=-bd41702ccd348a9e --out-dir 'C:\Users\NCoish\sdk5-group\sdk5\giles\target\debug\deps' -L 'dependency=C:\Users\NCoish\sdk5-group\sdk5\giles\target\debug\deps' --cap-lints allow` (exit code: 3221225477)
warning: build failed, waiting for other jobs to finish...
error: Could not compile `winapi`.

Caused by:
  process didn't exit successfully: `C:\Users\NCoish\.rustup\toolchains\stable-i686-pc-windows-msvc\bin\clippy-driver.exe rustc --crate-name winapi 'C:\Users\NCoish\.cargo\registry\src\github.com-1ecc6299db9ec823\winapi-0.2.8\src\lib.rs' --crate-type lib --emit=dep-info,metadata -C debuginfo=2 -C metadata=2b3652cf895fbe3e -C extra-filename=-2b3652cf895fbe3e --out-dir 'C:\Users\NCoish\sdk5-group\sdk5\giles\target\debug\deps' -L 'dependency=C:\Users\NCoish\sdk5-group\sdk5\giles\target\debug\deps' --cap-lints allow` (exit code: 3221225477)

Metadata and info:

$ cargo clippy -V
0.0.212
$ rustc --version
rustc 1.29.0 (aa3ca1994 2018-09-11)

If there's any other information I can provide that would be helpful, please let me know.

@mati865
Copy link
Contributor

mati865 commented Sep 20, 2018

Does cargo check work with stable-i686-pc-windows-msvc?

@ncoish
Copy link
Author

ncoish commented Sep 20, 2018

@mati865 cargo check runs fine against the same crate

@mati865
Copy link
Contributor

mati865 commented Sep 20, 2018

Looks like rust-lang/rust#50604
I have no idea what is wrong, it can even be a Windows bug.

@hcpl
Copy link

hcpl commented Oct 21, 2018

On Appveyor, it doesn't work for both i686-pc-windows-gnu and i686-pc-windows-msvc on:

  • 1.29.2 (17a9dc751 2018-10-05);
  • 1.30.0-beta.16 (777a59a4f 2018-10-18);
  • 1.31.0-nightly (155510e37 2018-10-20).

Normal and verbose outputs (same exit code 3221225477).

Perhaps related to #2336? Quote from there:

32-bit tests are broken in general. Travis never runs these so the failures don't matter there.

AIUI, this means that 32-bit clippy shipped via rustup is only built, but has never run (any tests) at all.

EDIT: or this means that 32-bit clippy cannot be run on 64-bit Windows (and vice versa) which sounds more plausible to me.

@hcpl
Copy link

hcpl commented Oct 28, 2018

cc #2310

@phansch phansch added O-windows I-ICE Issue: Clippy panicked, giving an Internal Compilation Error (ICE) ❄️ labels Dec 11, 2018
@mati865
Copy link
Contributor

mati865 commented Dec 17, 2018

Probably it's the same thing as in #3345

@ncoish @hcpl could you try with the latest nightly?

@mati865
Copy link
Contributor

mati865 commented Jan 8, 2019

I think it's safe to close this one because similar issues are fixed and there was no response here.

@flip1995 flip1995 closed this as completed Jan 8, 2019
@liudonghua123
Copy link

I have the same problems when update.

C:\Users\Liu.D.H> rustup upgrade
info: syncing channel updates for 'stable-i686-pc-windows-msvc'
info: latest update on 2023-03-28, rust version 1.68.2 (9eb3afe9e 2023-03-27)
info: downloading component 'cargo'
info: downloading component 'clippy'
info: downloading component 'rust-docs'
info: downloading component 'rust-std'
info: downloading component 'rustc'
info: downloading component 'rustfmt'
info: removing previous version of component 'cargo'
warning: during uninstall component cargo was not found
info: removing previous version of component 'clippy'
warning: during uninstall component clippy was not found
info: removing previous version of component 'rust-docs'
warning: during uninstall component rust-docs was not found
info: removing previous version of component 'rust-std'
warning: during uninstall component rust-std was not found
info: removing previous version of component 'rustc'
warning: during uninstall component rustc was not found
info: removing previous version of component 'rustfmt'
warning: during uninstall component rustfmt was not found
info: installing component 'cargo'
info: installing component 'clippy'
info: rolling back changes
error: failed to install component: 'clippy-preview-i686-pc-windows-msvc', detected conflict: 'lib/rustlib\manifest-clippy-preview-i686-pc-windows-msvc'
...

Then I remove the %USERPROFILE%\.rustup\toolchains\stable-i686-pc-windows-msvc\lib\rustlib\manifest-clippy-preview-i686-pc-windows-msvc and tried again without errors.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
I-ICE Issue: Clippy panicked, giving an Internal Compilation Error (ICE) ❄️
Projects
None yet
Development

No branches or pull requests

6 participants