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

Error: Compiler not supported: "error: Unrecognized option: \'E\'\n\n" #2128

Closed
mkesper opened this issue Oct 8, 2024 · 2 comments
Closed

Comments

@mkesper
Copy link

mkesper commented Oct 8, 2024

On running the rustlings I get this error:
error: process didn't exit successfully: /home/mkesper/.cargo/bin/sccache /home/mkesper/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/bin/clippy-driver /home/mkesper/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/bin/rustc -vV (exit status: 2)
--- stderr
error: failed to execute compile
caused by: Compiler not supported: "error: Unrecognized option: 'E'\n\n"

Seems to be linked to this root cause: mozilla/sccache#1000

Installed versions:

~/g/m/rustlings (main|✔) $ sccache --version
sccache 0.8.2
~/g/m/rustlings (main|✔) $ cargo --version
cargo 1.81.0 (2dbb1af80 2024-08-20)
~/g/m/rustlings (main|✔) $ rustup --version
rustup 1.27.1 (54dd3d00f 2024-04-24)
info: This is the version for the rustup toolchain manager, not the rustc compiler.
info: The currently active `rustc` version is `rustc 1.81.0 (eeb90cda1 2024-09-04)`
~/g/m/rustlings (main|✔) $ rustc --version
rustc 1.81.0 (eeb90cda1 2024-09-04)
~/g/m/rustlings (main|✔) $ which rustc
/home/mkesper/.cargo/bin/rustc
~/g/m/rustlings (main|✔) $ which sccache
/home/mkesper/.cargo/bin/sccache
~/g/m/rustlings (main|✔) $ which cargo
/home/mkesper/.cargo/bin/cargo
@mo8it
Copy link
Contributor

mo8it commented Oct 8, 2024

This is a problem with sccache, not specific to Rustlings. Maybe just deactivate it. I don't have experience with it to help any further.

@mo8it mo8it closed this as not planned Won't fix, can't repro, duplicate, stale Oct 8, 2024
@mkesper
Copy link
Author

mkesper commented Oct 9, 2024

Just to add info for others: I had to remove the line which sets RUSTC_WRAPPER from ~/.cargo/config.toml
cargo uninstall sccache alone was not sufficient.
Everything works again now!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants