rust-lang / rust-lang/rust

Warning during compiler build: Compiler version doesn't include clang or GCC

Open
#122,231 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

T-bootstrap
Dominant language
Rust
Stars
119k
Forks
16.1k
PR merge metrics
PR metrics pending

Description

Running ./x.py check compiler shows a warning:

warning: rustc_llvm@0.0.0: Compiler version doesn't include clang or GCC: "c++" "--version"

I think this must have started pretty recently.

FTR, c++ --version shows

$ c++ --version
c++ (Debian 13.2.0-13) 13.2.0
Copyright (C) 2023 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Run ./x.py check compiler and compare the warning with the reported c++ --version output. Trace the compiler-version detection used during the compiler build and determine why this Debian C++ version is not recognized as clang or GCC. Done means the check completes without this warning for the reported setup.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp, rust
Domain
build-system, compilers
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.