-
Notifications
You must be signed in to change notification settings - Fork 551
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
Compiler not supported: "error: Unrecognized option: \'E\'\n\n" #1000
Comments
Are you, by any chance, using |
I am seeing the same error and I don't install |
Could you try rerunning this with |
Here's a full build log. Relevant output: Relevant output (in case the log expires)``` TRACE 2021-05-07T21:48:29Z: sccache::commands: request_compile: Compile(Compile { exe: "/usr/local/rustup/toolchains/1.52.0-x86_64-unknown-linux-gnu/bin/clippy-driver", cwd: "/builds/rust", args: ["rustc", "--crate-name", "yaml_merge_keys", "--edition=2018", "src/lib.rs", "--error-format=json", "--json=diagnostic-rendered-ansi", "--emit=dep-info,metadata", "-C", "embed-bitcode=no", "-C", "debuginfo=2", "--test", "-C", "metadata=e34754249b915b1d", "-C", "extra-filename=-e34754249b915b1d", "--out-dir", "/builds/rust/target/debug/deps", "-C", "incremental=/builds/rust/target/debug/incremental", "-L", "dependency=/builds/rust/target/debug/deps", "--extern", "lazy_static=/builds/rust/target/debug/deps/liblazy_static-21b7aee633bbe6c2.rmeta", "--extern", "thiserror=/builds/rust/target/debug/deps/libthiserror-f7d3c332bf7f4fd7.rmeta", "--extern", "yaml_rust=/builds/rust/target/debug/deps/libyaml_rust-839b757bdb24aa8c.rmeta"], env_vars: [("CARGO", "/usr/local/rustup/toolchains/1.52.0-x86_64-unknown-linux-gnu/bin/cargo"), ("CARGO_CRATE_NAME", "yaml_merge_keys"), ("CARGO_HOME", "/builds/rust/.cargo-cache"), ("CARGO_MAKEFLAGS", "--jobserver-fds=5,6 -j --jobserver-auth=5,6 -j"), ("CARGO_MANIFEST_DIR", "/builds/rust"), ("CARGO_PKG_AUTHORS", "Ben Boeckel "), ("CARGO_PKG_DESCRIPTION", "Implementation of the YAML merge key extension.\n\nhttp://yaml.org/type/merge.html\n"), ("CARGO_PKG_HOMEPAGE", ""), ("CARGO_PKG_LICENSE", "MIT/Apache-2.0"), ("CARGO_PKG_LICENSE_FILE", ""), ("CARGO_PKG_NAME", "yaml-merge-keys"), ("CARGO_PKG_REPOSITORY", "https://gitlab.kitware.com/utils/rust-yaml-merge-keys"), ("CARGO_PKG_VERSION", "0.4.1"), ("CARGO_PKG_VERSION_MAJOR", "0"), ("CARGO_PKG_VERSION_MINOR", "4"), ("CARGO_PKG_VERSION_PATCH", "1"), ("CARGO_PKG_VERSION_PRE", ""), ("CARGO_PRIMARY_PACKAGE", "1"), ("CARGO_UPDATE_POLICY", "newest"), ("CI", "true"), ("CI_API_V4_URL", "https://gitlab.kitware.com/api/v4"), ("CI_BUILDS_DIR", "/builds"), ("CI_BUILD_BEFORE_SHA", "0000000000000000000000000000000000000000"), ("CI_BUILD_ID", "5771744"), ("CI_BUILD_NAME", "build:cargo-clippy"), ("CI_BUILD_REF", "f4a9ec58270de9a620aeb46824f57550ad1b5ca9"), ("CI_BUILD_REF_NAME", "sccache-testing"), ("CI_BUILD_REF_SLUG", "sccache-testing"), ("CI_BUILD_STAGE", "build"), ("CI_BUILD_TOKEN", "[MASKED]"), ("CI_COMMIT_AUTHOR", "Ben Boeckel "), ("CI_COMMIT_BEFORE_SHA", "0000000000000000000000000000000000000000"), ("CI_COMMIT_DESCRIPTION", ""), ("CI_COMMIT_MESSAGE", "WIP: gitlab-ci: trace sccache execution\n"), ("CI_COMMIT_REF_NAME", "sccache-testing"), ("CI_COMMIT_REF_PROTECTED", "false"), ("CI_COMMIT_REF_SLUG", "sccache-testing"), ("CI_COMMIT_SHA", "f4a9ec58270de9a620aeb46824f57550ad1b5ca9"), ("CI_COMMIT_SHORT_SHA", "f4a9ec58"), ("CI_COMMIT_TIMESTAMP", "2021-05-07T17:47:41-04:00"), ("CI_COMMIT_TITLE", "WIP: gitlab-ci: trace sccache execution"), ("CI_CONCURRENT_ID", "2"), ("CI_CONCURRENT_PROJECT_ID", "2"), ("CI_CONFIG_PATH", ".gitlab-ci.yml"), ("CI_DEFAULT_BRANCH", "master"), ("CI_DEPENDENCY_PROXY_GROUP_IMAGE_PREFIX", "gitlab.kitware.com:443/utils/dependency_proxy/containers"), ("CI_DEPENDENCY_PROXY_PASSWORD", "[MASKED]"), ("CI_DEPENDENCY_PROXY_SERVER", "gitlab.kitware.com:443"), ("CI_DEPENDENCY_PROXY_USER", "gitlab-ci-token"), ("CI_DISPOSABLE_ENVIRONMENT", "true"), ("CI_JOB_ID", "5771744"), ("CI_JOB_IMAGE", "rust:latest"), ("CI_JOB_JWT", "[MASKED]"), ("CI_JOB_NAME", "build:cargo-clippy"), ("CI_JOB_STAGE", "build"), ("CI_JOB_STARTED_AT", "2021-05-07T17:48:12-04:00"), ("CI_JOB_STATUS", "running"), ("CI_JOB_TOKEN", "[MASKED]"), ("CI_JOB_URL", "https://gitlab.kitware.com/utils/rust-yaml-merge-keys/-/jobs/5771744"), ("CI_MERGE_REQUEST_DIFF_BASE_SHA", "291f3f69b6e9d9be52bd7f4e3d6cfc47d6403254"), ("CI_MERGE_REQUEST_DIFF_ID", "164685"), ("CI_MERGE_REQUEST_EVENT_TYPE", "detached"), ("CI_MERGE_REQUEST_ID", "58050"), ("CI_MERGE_REQUEST_IID", "25"), ("CI_MERGE_REQUEST_PROJECT_ID", "1470"), ("CI_MERGE_REQUEST_PROJECT_PATH", "utils/rust-yaml-merge-keys"), ("CI_MERGE_REQUEST_PROJECT_URL", "https://gitlab.kitware.com/utils/rust-yaml-merge-keys"), ("CI_MERGE_REQUEST_REF_PATH", "refs/merge-requests/25/head"), ("CI_MERGE_REQUEST_SOURCE_BRANCH_NAME", "sccache-testing"), ("CI_MERGE_REQUEST_SOURCE_BRANCH_SHA", ""), ("CI_MERGE_REQUEST_SOURCE_PROJECT_ID", "1472"), ("CI_MERGE_REQUEST_SOURCE_PROJECT_PATH", "ben.boeckel/rust-yaml-merge-keys"), ("CI_MERGE_REQUEST_SOURCE_PROJECT_URL", "https://gitlab.kitware.com/ben.boeckel/rust-yaml-merge-keys"), ("CI_MERGE_REQUEST_TARGET_BRANCH_NAME", "master"), ("CI_MERGE_REQUEST_TARGET_BRANCH_SHA", ""), ("CI_MERGE_REQUEST_TITLE", "WIP: gitlab-ci: trace sccache execution"), ("CI_NODE_TOTAL", "1"), ("CI_OPEN_MERGE_REQUESTS", "utils/rust-yaml-merge-keys!25"), ("CI_PAGES_DOMAIN", "example.com"), ("CI_PAGES_URL", "http://utils.example.com/rust-yaml-merge-keys"), ("CI_PIPELINE_CREATED_AT", "2021-05-07T17:47:46-04:00"), ("CI_PIPELINE_ID", "227693"), ("CI_PIPELINE_IID", "564"), ("CI_PIPELINE_SOURCE", "merge_request_event"), ("CI_PIPELINE_URL", "https://gitlab.kitware.com/utils/rust-yaml-merge-keys/-/pipelines/227693"), ("CI_PROJECT_CONFIG_PATH", ".gitlab-ci.yml"), ("CI_PROJECT_DIR", "/builds/rust"), ("CI_PROJECT_ID", "1470"), ("CI_PROJECT_NAME", "rust-yaml-merge-keys"), ("CI_PROJECT_NAMESPACE", "utils"), ("CI_PROJECT_PATH", "utils/rust-yaml-merge-keys"), ("CI_PROJECT_PATH_SLUG", "utils-rust-yaml-merge-keys"), ("CI_PROJECT_REPOSITORY_LANGUAGES", "rust,shell"), ("CI_PROJECT_ROOT_NAMESPACE", "utils"), ("CI_PROJECT_TITLE", "rust-yaml-merge-keys"), ("CI_PROJECT_URL", "https://gitlab.kitware.com/utils/rust-yaml-merge-keys"), ("CI_PROJECT_VISIBILITY", "public"), ("CI_REGISTRY", "gitlab.kitware.com:4567"), ("CI_REGISTRY_PASSWORD", "[MASKED]"), ("CI_REGISTRY_USER", "gitlab-ci-token"), ("CI_REPOSITORY_URL", "https://gitlab-ci-token:[MASKED]@gitlab.kitware.com/utils/rust-yaml-merge-keys.git"), ("CI_RUNNER_DESCRIPTION", "dovim.shared.build"), ("CI_RUNNER_EXECUTABLE_ARCH", "linux/amd64"), ("CI_RUNNER_ID", "82"), ("CI_RUNNER_REVISION", "ece86343"), ("CI_RUNNER_SHORT_TOKEN", "sJWh3aLK"), ("CI_RUNNER_TAGS", "dovim, cmake, linux-3.17, paraview, build, ghostflow, cmb, linux, docker"), ("CI_RUNNER_VERSION", "13.5.0~beta.3.g746cb52c"), ("CI_SERVER", "yes"), ("CI_SERVER_HOST", "gitlab.kitware.com"), ("CI_SERVER_NAME", "GitLab"), ("CI_SERVER_PORT", "443"), ("CI_SERVER_PROTOCOL", "https"), ("CI_SERVER_REVISION", "b321336e443"), ("CI_SERVER_TLS_CA_FILE", "/builds/rust.tmp/CI_SERVER_TLS_CA_FILE"), ("CI_SERVER_URL", "https://gitlab.kitware.com"), ("CI_SERVER_VERSION", "13.11.3"), ("CI_SERVER_VERSION_MAJOR", "13"), ("CI_SERVER_VERSION_MINOR", "11"), ("CI_SERVER_VERSION_PATCH", "3"), ("CLIPPY_ARGS", "-D__CLIPPY_HACKERY__warnings__CLIPPY_HACKERY__"), ("FF_CMD_DISABLE_DELAYED_ERROR_LEVEL_EXPANSION", "false"), ("FF_NETWORK_PER_BUILD", "false"), ("FF_RESET_HELPER_IMAGE_ENTRYPOINT", "true"), ("FF_SHELL_EXECUTOR_USE_LEGACY_PROCESS_KILL", "false"), ("FF_SKIP_NOOP_BUILD_STAGES", "true"), ("FF_USE_DIRECT_DOWNLOAD", "true"), ("FF_USE_LEGACY_KUBERNETES_EXECUTION_STRATEGY", "true"), ("GITLAB_CI", "true"), ("GITLAB_FEATURES", ""), ("GITLAB_USER_EMAIL", "[email protected]"), ("GITLAB_USER_ID", "13"), ("GITLAB_USER_LOGIN", "ben.boeckel"), ("GITLAB_USER_NAME", "Ben Boeckel"), ("GIT_CLONE_PATH", "/builds/rust"), ("HOME", "/root"), ("HOSTNAME", "runner-sjwh3alk-project-1470-concurrent-2"), ("LD_LIBRARY_PATH", "/builds/rust/target/debug/deps:/usr/local/rustup/toolchains/1.52.0-x86_64-unknown-linux-gnu/lib:/usr/local/rustup/toolchains/1.52.0-x86_64-unknown-linux-gnu/lib:/usr/local/rustup/toolchains/1.52.0-x86_64-unknown-linux-gnu/lib:/usr/local/rustup/toolchains/1.52.0-x86_64-unknown-linux-gnu/lib"), ("OLDPWD", "/"), ("PATH", "/builds/rust/.cargo-cache/bin:/builds/rust/.cargo-cache/bin:/builds/rust/.cargo-cache/bin:/usr/local/cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"), ("PWD", "/builds/rust"), ("RUSTC_WORKSPACE_WRAPPER", "/usr/local/rustup/toolchains/1.52.0-x86_64-unknown-linux-gnu/bin/clippy-driver"), ("RUSTC_WRAPPER", "/builds/rust/.gitlab/sccache"), ("RUSTUP_HOME", "/usr/local/rustup"), ("RUSTUP_TOOLCHAIN", "1.52.0-x86_64-unknown-linux-gnu"), ("RUST_LOG", "sccache=trace"), ("RUST_RECURSION_COUNT", "3"), ("RUST_VERSION", "1.52.0"), ("SCCACHE_REDIS", "redis://redis.kitware.com:6380"), ("SHLVL", "1"), ("SSL_CERT_DIR", "/usr/lib/ssl/certs"), ("SSL_CERT_FILE", "/usr/lib/ssl/certs/ca-certificates.crt"), ("_", "/usr/local/cargo/bin/cargo")] }) TRACE 2021-05-07T21:48:29Z: sccache::client: ServerConnection::request TRACE 2021-05-07T21:48:29Z: sccache::client: ServerConnection::request: sent request TRACE 2021-05-07T21:48:29Z: sccache::client: ServerConnection::read_one_response TRACE 2021-05-07T21:48:29Z: sccache::client: Should read 53 more bytes TRACE 2021-05-07T21:48:29Z: sccache::client: Done reading DEBUG 2021-05-07T21:48:29Z: sccache::commands: Server sent UnsupportedCompiler: "error: Unrecognized option: \'E\'\n\n" error: failed to execute compile caused by: Compiler not supported: "error: Unrecognized option: \'E\'\n\n" ``` |
Is this a normal build or are you attempting to use cargo clippy ? |
Ah, it is |
Maybe a |
|
Started seeing this as well, are there any workarounds at least? |
I get the same error when building Build command:
|
After a little investigation, this is because Rust is trying to call |
Are there any updates on this? @GZGavinZhao can you find a solution to use |
|
I've also stumbled upon this issue. (In my case I only had However, I've managed to implement a small proof-of-concept
One can just download it, change the extension, Then one can just use it transparently. (If one doesn't use |
@cipriancraciun is there a minimal reproducible test case one could look at? |
@drahnr I don't seem to be able to actually trigger this with a simple use-case. I've encountered this issue on some internal codebase that uses the latest Rust via When I'll get the chance I'll try to trigger it once more and see if I can reduce it to a simpler scenario. |
Just installed ➜ sccache cargo build
sccache: error: failed to execute compile
sccache: caused by: Compiler not supported: "error: unexpected argument \'-E\' found\n\nUsage: cargo [+toolchain] [OPTIONS] [COMMAND]\n\nFor more information, try \'--help\'.\n" These are the versions I'm currently using:
I'm trying to build this: https://github.com/mrmarble/rust-playground At first I'd install sccache via |
I ran into this issue, and in my case the problem was that I had installed sccache with I reinstalled without the symlink with PS: I'm using this as part of some GitHub actions I recently created because I didn't like the existing ones: https://github.com/brndnmtthws/rust-action Perhaps other people will get some value out of these. |
just tried this and its no longer working, which directory was this file supposed to go in? |
@MustCodeAl the way I've implemented it you can put my wrapper script anywhere on the file-system, as long as that folder is at the beginning of the You can also then symlink this script as However, could you say how it does not work? Does it give some errors? (Perhaps set a |
Just upgraded to Rust 1.52.0 and get this:
The text was updated successfully, but these errors were encountered: